sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
[gnulib.git] / ChangeLog
blob4e5f40c8384b722294680524688d4022f61e036e
1 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
3         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
4         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
6 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
8         fcntl: Fix syntax error (regression from 2018-10-05).
9         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13         relocatable: improve documentation.
14         * doc/relocatable-maint.texi (Supporting Relocation): For
15         substitutions performed by config.status, we need more variables
16         (for instance datarootdir defaults to '${prefix}/share' so we need
17         prefix).
19 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
21         backup: update dependencies
22         * modules/backup-rename (Depends-on): It now depends on opendirat
23         instead of opendir.  It also uses stdint, and xalloc-oversized.
24         But no longer dirfd.
25         * modules/backupfile (Depends-on): Add xalloc-oversized.
27 2019-01-13  Bruno Haible  <bruno@clisp.org>
29         getcwd: Fix test failure when building on a Linux 9p file system.
30         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
31         EINVAL from mkdir like ENAMETOOLONG.
32         * tests/test-getcwd.c (test_long_name): Likewise.
34 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
36         Fix typos found by codespell.
37         * lib/*.[hc]: Fix typos in comments.
38         * pygnulib/*.py: Fix typos in error messages and comments.
40 2019-01-12  Bruno Haible  <bruno@clisp.org>
42         doc: Fix documentation about container data types.
43         Reported by Werner Lemberg <wl@gnu.org>.
44         * doc/containers.texi (Container data types): Fix typo.
46 2019-01-10  Bruno Haible  <bruno@clisp.org>
48         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
49         Reported by Reuben Thomas <rrt@sc3d.org>.
50         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
52 2019-01-06  Bruno Haible  <bruno@clisp.org>
54         maintainer-makefile: Make the configure.ac section optional.
55         * top/maint.mk (GREP, SED): Define if not defined.
57 2019-01-06  Bruno Haible  <bruno@clisp.org>
59         localename: Assume setlocale function.
60         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
61         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
63 2019-01-06  Bruno Haible  <bruno@clisp.org>
65         doc: Add documentation about container data types.
66         * doc/containers.texi: New file.
67         * doc/gnulib.texi (Particular Modules): Include it.
69 2019-01-06  Bruno Haible  <bruno@clisp.org>
71         doc: Update documentation about 'progname' module.
72         * doc/progname.texi: Rename from doc/error.texi. Change node name and
73         title. Rewrite.
74         * doc/gnulib.texi (Particular Modules): Update.
76 2019-01-06  Bruno Haible  <bruno@clisp.org>
78         doc: Document the xstdopen and *-safer modules.
79         * doc/xstdopen.texi: New file.
80         * doc/gnulib.texi (Particular Modules): Include it.
82 2019-01-06  Bruno Haible  <bruno@clisp.org>
84         xstdopen: Add tests.
85         * tests/test-xstdopen.c: New file.
86         * tests/test-xstdopen.sh: New file.
87         * modules/xstdopen-tests: New file.
89         xstdopen: New module.
90         * lib/xstdopen.h: New file.
91         * lib/xstdopen.c: New file.
92         * modules/xstdopen: New file.
94 2019-01-06  Bruno Haible  <bruno@clisp.org>
96         stdopen: Fix compilation error with IRIX cc.
97         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
99 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
101         xfreopen need not include stdio--.h
102         * lib/xfreopen.c: Do not include stdio--.h.
104         xfreopen need not depend on freopen-safer
105         * modules/xfreopen (Depends-on):
106         Depend on freopen, not freopen-safer.
108         stdopen: modernize and simplify
109         * lib/stdopen.c: Update copyright date
110         Do not include sys/types.h; no longer needed these days.
111         (stdopen): Use C99-style decl in loop.  Return int errno
112         value, rather than just a bool.  Do not worry about fd mismatches,
113         since the caller cares only if 0, 1, 2 are occupied.
114         * lib/stdopen.h: No need to include <stdbool.h>.
115         * m4/stdopen.m4: Remove.
116         * modules/stdopen: New file.
118         stdopen: copy from last use in coreutils
119         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
120         New files, taken from their last commit in coreutils
121         2007-07-23T12:35:58Z!jim@meyering.net
122         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
124 2019-01-05  Bruno Haible  <bruno@clisp.org>
126         argp: Don't pass an invalid argument to dgettext().
127         Reported by He X <xw897002528@gmail.com>.
128         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
129         dgettext().
131 2019-01-05  Bruno Haible  <bruno@clisp.org>
133         argp: Don't pass an invalid argument to dgettext().
134         Reported by He X <xw897002528@gmail.com>.
135         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
136         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
137         dgettext().
139 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
141         stdioext: port to newer 32-bit Android
142         Problem reported by Tom Yan in:
143         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
144         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
145         (fp_) [__ANDROID__]: Use it.
147 2019-01-04  Bruno Haible  <bruno@clisp.org>
149         lock: Fix link error with --enable-threads=pth.
150         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
151         Mark as weak.
153 2019-01-04  Bruno Haible  <bruno@clisp.org>
155         Fix link errors in unit tests.
156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
157         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
158         * modules/array-map-tests (Makefile.am): Link test-array_map against
159         libintl.
160         * modules/array-set-tests (Makefile.am): Link test-array_set against
161         libintl.
162         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
163         libintl.
164         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
165         libintl.
166         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
167         against libintl.
168         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
169         against libintl.
171 2019-01-04  Bruno Haible  <bruno@clisp.org>
173         Fix incorrect 'Link' sections.
174         * modules/regex (Link): Mention the link requirement of module 'lock'.
175         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
177 2019-01-04  Bruno Haible  <bruno@clisp.org>
179         Fix some 'Link' sections.
180         * modules/c-stack (Link): Add link directive from the 'gettext-h'
181         dependency.
182         * modules/getaddrinfo (Link): Likewise.
184 2019-01-04  Bruno Haible  <bruno@clisp.org>
186         Remove redundant 'Link' sections.
187         * modules/canon-host (Link): Remove section.
188         * modules/timevar (Link): Likewise.
190 2019-01-04  Bruno Haible  <bruno@clisp.org>
192         Remove incorrect 'Link' sections.
193         * modules/acl (Link): Remove section. Use combined 'Link' sections from
194         the dependencies instead.
195         * modules/crypto/md5 (Link): Likewise.
196         * modules/crypto/sha1 (Link): Likewise.
197         * modules/crypto/sha256 (Link): Likewise.
198         * modules/crypto/sha512 (Link): Likewise.
199         * modules/faccessat (Link): Likewise.
200         * modules/fdutimensat (Link): Likewise.
201         * modules/iconv_open-utf (Link): Likewise.
202         * modules/propername (Link): Likewise.
203         * modules/qacl (Link): Likewise.
204         * modules/unicodeio (Link): Likewise.
205         * modules/utimecmp (Link): Likewise.
206         * modules/utimensat (Link): Likewise.
207         * modules/xstriconv (Link): Likewise.
208         * modules/xstriconveh (Link): Likewise.
210 2019-01-04  Bruno Haible  <bruno@clisp.org>
212         gnulib-tool: New option --extract-recursive-link-directive.
213         * gnulib-tool (func_usage): Document the new options
214         --extract-recursive-dependencies, --extract-recursive-link-directive.
215         (func_verify_module): Document output variables.
216         (func_get_dependencies_recursively): New function.
217         (func_get_link_directive_recursively): New function.
218         Use them to implement the new options
219         --extract-recursive-dependencies, --extract-recursive-link-directive.
220         * doc/gnulib-tool.texi (Link-time requirements): New section.
222 2019-01-04  Bruno Haible  <bruno@clisp.org>
224         Clarify meaning of 'Link' section in module description.
225         * doc/gnulib.texi (Module description): Clarify the meaning of the
226         'Link' section versus the one of the dependencies.
227         * NEWS: Mention the change.
229 2019-01-04  Bruno Haible  <bruno@clisp.org>
231         pselect: Fix module description.
232         * modules/pselect (Link): Put one link option per line.
234 2019-01-04  Bruno Haible  <bruno@clisp.org>
236         cosl: Fix module description.
237         * modules/cosl (Link): Fix typo.
238         * modules/mathl (configure.ac): Likewise.
240 2019-01-04  Bruno Haible  <bruno@clisp.org>
242         c-xvasprintf: Fix module dependencies.
243         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
245 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
247         bootstrap: die when some submodules are not initialized
248         * build-aux/bootstrap: Make sure all submodules are initialized.
250 2019-01-04  Bruno Haible  <bruno@clisp.org>
252         bitsetv: Fix module dependencies.
253         * lib/bitsetv.c: Include xalloc.h.
254         * modules/bitsetv (Depends-on): Add 'xalloc'.
256 2019-01-04  Bruno Haible  <bruno@clisp.org>
258         xmemdup0: Remove redundant code.
259         * lib/xmemdup0.h (xalloc_die): Remove declaration.
261 2019-01-04  Bruno Haible  <bruno@clisp.org>
263         backupfile: Fix module dependencies.
264         * modules/backupfile (Depends-on): Add 'xalloc'.
266 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
268         bitset, crypto/gc: fix conflicts with Solaris 11
269         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
270         avoid clash with Solaris 11 <sys/bitset.h>.
271         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
272         with Solaris 11 <xorg/gc.h>.
274 2019-01-04  Bruno Haible  <bruno@clisp.org>
276         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
277         Reported by Andy Fiddaman <andy@omniosce.org>.
278         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
280 2019-01-03  Eric Blake  <eblake@redhat.com>
282         maintainer-makefile: fix typo in previous patch
283         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
284         of Roman's work.
286 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
288         maintainer-makefile: prefer $(GREP) over grep
289         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
290         defined.
291         * top/maint.mk: Use it everywhere.
293         maintainer-makefile: split long argument lines
294         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
295         it would be too long for exec limits on BSD.
297 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
299         mkfifo: bring back HAVE_MKFIFO macro
300         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
301         Problem reported by Andrew Janke in:
302         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
304 2018-12-21  Bruno Haible  <bruno@clisp.org>
306         Assume Autoconf >= 2.63.
307         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
308         versions < 2.60.
310 2018-12-21  Bruno Haible  <bruno@clisp.org>
312         memcmp: Mention the clang bug.
313         * tests/test-memcmp.c: Add comment about a known test failure.
314         * doc/posix-functions/memcmp.texi: Mention the clang bug.
316 2018-12-20  Jim Meyering  <meyering@fb.com>
318         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
319         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
320           echo '123-x'|LC_ALL=C grep -E '.\bx'
321         The goal is to revert the first, but reverting it requires to restore
322         the function deleted in the second. I ran this to restore the deleted
323         function:
324           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
325             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
326             | patch -R -p1
327         * lib/dfa.c (charclass_context): Restore deleted function.
328         Reverting the primary commit removes this change:
329         dfa: Simplify a building state
330         * lib/dfa.c (build_state): Simplify a building state.
332 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
334         version-etc: allow zero authors
335         * lib/version-etc.c (version_etc_arn): If no authors are given,
336         omit authorship info instead of dumping core.
338 2018-12-19  Bruno Haible  <bruno@clisp.org>
340         lchown tests: Be more permissive regarding errno values.
341         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
342         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
343         alternative to ENOSYS.
344         * modules/lchown-tests (Depends-on): Add 'errno'.
345         * modules/fchownat-tests (Depends-on): Likewise.
347 2018-12-18  Bruno Haible  <bruno@clisp.org>
349         duplocale: Avoid test failure on AIX 7.
350         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
351         (configure.ac): Invoke gt_FUNC_USELOCALE.
352         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
353         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
354         works.
356 2018-12-18  Bruno Haible  <bruno@clisp.org>
358         localename: Fix test failure on AIX 7.
359         Reported by Assaf Gordon in
360         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
361         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
362         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
363         instead of ac_cv_func_uselocale.
364         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
365         HAVE_USELOCALE.
366         * lib/localename-table.h: Likewise.
367         * lib/localename-table.c: Likewise.
368         * tests/test-localename.c: Likewise.
369         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
371 2018-12-18  Bruno Haible  <bruno@clisp.org>
373         localename: Update comments regarding Cygwin.
374         * lib/localename.c: Update comment.
375         * doc/posix-functions/uselocale.texi: Update platforms list.
376         * doc/posix-functions/newlocale.texi: Likewise.
377         * doc/posix-functions/duplocale.texi: Likewise.
378         * doc/posix-functions/freelocale.texi: Likewise.
380 2018-12-16  Bruno Haible  <bruno@clisp.org>
382         c-stack: Fix for Linux/sparc.
383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
384         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
386 2018-12-16  Bruno Haible  <bruno@clisp.org>
388         localename: Avoid test failure on some glibc systems.
389         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
390         Unset environment variables that might disturb the first setlocale call,
391         and verify that this setlocale call succeeds.
393 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
395         random: Fix build error on native Windows (regression from 2018-06-21).
396         * lib/random.c (__srandom, __initstate, __setstate, __random,
397         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
398         to the symbols without '__' prefix.
400 2018-12-16  Bruno Haible  <bruno@clisp.org>
402         obstack, libc-config: Support HP-UX cc in C99 mode.
403         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
404         compiler, even when in C99 mode.
405         * lib/cdefs.h (__flexarr): Likewise.
406         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
408 2018-12-16  Bruno Haible  <bruno@clisp.org>
410         localename: Fix test failure on OpenBSD >= 6.2.
411         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
412         locale system. Define HAVE_FAKE_LOCALES in this case.
413         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
414         HAVE_USELOCALE.
415         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
416         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
417         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
418         platforms list.
419         * doc/posix-functions/newlocale.texi: Likewise.
420         * doc/posix-functions/duplocale.texi: Update platforms list.
421         * doc/posix-functions/freelocale.texi: Likewise.
423 2018-12-16  Bruno Haible  <bruno@clisp.org>
425         duplocale tests: Re-enable the test on platforms without <monetary.h>.
426         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
427         of the test, on platforms without <monetary.h>.
429 2018-12-16  Bruno Haible  <bruno@clisp.org>
431         localename: Update comments.
432         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
434 2018-12-15  Jim Meyering  <meyering@fb.com>
436         regex: fix indentation
437         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
439 2018-12-15  Bruno Haible  <bruno@clisp.org>
441         openat-safer tests: Avoid test failure on NetBSD 8.
442         * tests/test-openat-safer.c (main): Execute a Linux specific test only
443         on Linux.
445 2018-12-15  Jim Meyering  <meyering@fb.com>
447         regex: work around a bug in glibc-2.27 and prior
448         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
449         assertion for /0|()0|\1|0/.
450         * tests/test-regex.c (main): Add the same test here.
452 2018-12-15  Bruno Haible  <bruno@clisp.org>
454         localename: Fix use of uninitialized shell variable.
455         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
456         gt_cv_locale_solaris114 always before use. Remove assignment without
457         effect.
459 2018-12-15  Bruno Haible  <bruno@clisp.org>
461         dfa tests: Avoid test failure on Alpine Linux.
462         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
463         command found on Alpine Linux.
465 2018-12-15  Jim Meyering  <meyering@fb.com>
467         dfa: avoid new warnings from gcc
468         These would prevent building with -Werror and a Dec snapshot of gcc.
469         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
470         Rename each inner instance to "p".
471         (charclass_context): Remove unused static function.
473 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
475         mkdir-p: improve diagnostic for FUSE mounts
476         Problem reported by Niklas Hambüchen in:
477         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
478         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
479         errno to mkdir errno if the stat errno is likely more interesting.
481 2018-12-14  Bruno Haible  <bruno@clisp.org>
483         hash-map: Add tests.
484         * tests/test-hash_map.c: New file.
485         * modules/hash-map-tests: New file.
487         linkedhash-map: Add tests.
488         * tests/test-linkedhash_map.c: New file.
489         * modules/linkedhash-map-tests: New file.
491         array-map: Add tests.
492         * tests/test-array_map.c: New file.
493         * modules/array-map-tests: New file.
495         xmap: New module.
496         * lib/gl_xmap.h: New file.
497         * lib/gl_xmap.c: New file.
498         * modules/xmap: New file.
500         hash-map: New module.
501         * lib/gl_hash_map.h: New file.
502         * lib/gl_hash_map.c: New file.
503         * modules/hash-map: New file.
505         linkedhash-map: New module.
506         * lib/gl_linkedhash_map.h: New file.
507         * lib/gl_linkedhash_map.c: New file.
508         * lib/gl_anyhash1.h: Update comments.
509         * lib/gl_anyhash2.h: Likewise.
510         * modules/linkedhash-map: New file.
512         array-map: New module.
513         * lib/gl_array_map.h: New file.
514         * lib/gl_array_map.c: New file.
515         * modules/array-map: New file.
517         map: New module.
518         * lib/gl_map.h: New file.
519         * lib/gl_map.c: New file.
520         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
521         conflict with gl_map.h.
522         * modules/map: New file.
524 2018-12-13  Bruno Haible  <bruno@clisp.org>
526         select tests: Avoid test failure on Cygwin.
527         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
529 2018-12-13  Bruno Haible  <bruno@clisp.org>
531         localtime-buffer: Avoid endless recursion in localtime and gmtime.
532         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
534 2018-12-13  Bruno Haible  <bruno@clisp.org>
536         localeconv tests: Avoid test failure on Cygwin.
537         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
538         'mon_grouping' tests.
540 2018-12-11  Bruno Haible  <bruno@clisp.org>
542         omap: Don't dispose the old value when the function returns it.
543         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
544         here.
545         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
546         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
547         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
548         here.
550         array-omap, avltree-omap, rbtree-omap: Tweak style.
551         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
552         false.
553         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
555         rbtree-omap: Add tests.
556         * tests/test-rbtree_omap.c: New file.
557         * modules/rbtree-omap-tests: New file.
559         avltree-omap: Add tests.
560         * tests/test-avltree_omap.c: New file.
561         * modules/avltree-omap-tests: New file.
563         array-omap: Add tests.
564         * tests/test-array_omap.c: New file.
565         * modules/array-omap-tests: New file.
567         xomap: New module.
568         * lib/gl_xomap.h: New file.
569         * lib/gl_xomap.c: New file.
570         * modules/xomap: New file.
572         rbtree-omap: New module.
573         * lib/gl_rbtree_omap.h: New file.
574         * lib/gl_rbtree_omap.c: New file.
575         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
576         Parameterize.
577         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
578         * modules/rbtree-omap: New file.
579         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
580         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
582         avltree-omap: New module.
583         * lib/gl_avltree_omap.h: New file.
584         * lib/gl_avltree_omap.c: New file.
585         * lib/gl_avltree_ordered.h: Code moved to here from
586         lib/gl_avltree_oset.c. Parameterize.
587         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
588         * lib/gl_anytree_omap.h: New file.
589         * modules/avltree-omap: New file.
590         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
591         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
593         array-omap: New module.
594         * lib/gl_array_omap.h: New file.
595         * lib/gl_array_omap.c: New file.
596         * modules/array-omap: New file.
598         omap: New module.
599         * lib/gl_omap.h: New file.
600         * lib/gl_omap.c: New file.
601         * modules/omap: New file.
603 2018-12-11  Bruno Haible  <bruno@clisp.org>
605         hash-set, linkedhash-set: Reduce code duplication.
606         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
607         lib/gl_anyhash_set1.h.
608         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
609         lib/gl_anyhash_set2.h. Parameterize.
610         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
611         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
612         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
613         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
614         * lib/gl_rbtreehash_list.c: Likewise.
615         * lib/gl_linkedhash_list.c: Likewise.
616         (hash_resize_after_add): Remove function.
617         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
618         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
619         * gl_hash_set.c: Likewise.
620         * modules/avltreehash-list (Files, Makefile.am): Update file list.
621         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
622         * modules/linkedhash-list (Files, Makefile.am): Likewise.
623         * modules/linkedhash-set (Files, Makefile.am): Likewise.
624         * modules/hash-set (Files, Makefile.am): Likewise.
626 2018-12-11  Bruno Haible  <bruno@clisp.org>
628         array-set: Optimize.
629         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
630         outside the loop, not inside the loop.
632 2018-12-11  Bruno Haible  <bruno@clisp.org>
634         times: Fix tests.
635         * tests/test-times.c (doublecmp): Implement a total order.
637 2018-12-11  Bruno Haible  <bruno@clisp.org>
639         array-set, linkedhash-set, hash-set: Fix tests.
640         * tests/test-array_set.c (cmp_objects_in_array): New function.
641         (check_equals): Use it.
642         * tests/test-hash_set.c: Likewise.
643         * tests/test-linkedhash_set.c: Likewise.
645 2018-12-08  Bruno Haible  <bruno@clisp.org>
647         Fix comments.
648         * lib/gl_list.h (gl_list_free): Clarify what it does.
649         * lib/gl_oset.h (gl_oset_free): Likewise.
650         * lib/gl_set.h (gl_set_free): Likewise.
651         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
652         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
653         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
654         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
656 2018-12-03  Bruno Haible  <bruno@clisp.org>
658         hash-set: Add tests.
659         * tests/test-hash_set.c: New file.
660         * modules/hash-set-tests: New file.
662         linkedhash-set: Add tests.
663         * tests/test-linkedhash_set.c: New file.
664         * modules/linkedhash-set-tests: New file.
666         array-set: Add tests.
667         * tests/test-array_set.c: New file.
668         * modules/array-set-tests: New file.
670         xset: New module.
671         * lib/gl_xset.h: New file.
672         * lib/gl_xset.c: New file.
673         * modules/xset: New file.
675         hash-set: New module.
676         * lib/gl_hash_set.h: New file.
677         * lib/gl_hash_set.c: New file.
678         * modules/hash-set: New file.
680         linkedhash-set: New module.
681         * lib/gl_linkedhash_set.h: New file.
682         * lib/gl_linkedhash_set.c: New file.
683         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
684         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
685         * lib/gl_anyhash_primes.h: New file, extracted from
686         lib/gl_anyhash_list2.h.
687         * lib/gl_anyhash_list2.h: Include it.
688         (primes, next_prime): Remove definitions.
689         * modules/linkedhash-set: New file.
690         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
691         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
692         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
693         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
694         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
695         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
697         array-set: New module.
698         * lib/gl_array_set.h: New file.
699         * lib/gl_array_set.c: New file.
700         * modules/array-set: New file.
702         set: New module.
703         * lib/gl_set.h: New file.
704         * lib/gl_set.c: New file.
705         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
706         gl_set.h.
707         * modules/set: New file.
709 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
711         bison: don't force the Yacc mode
712         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
713         errors when Bison features are used in the grammar file.  Some of
714         these features (such as %expect) were flagged non-yacc recently.  Most
715         of the time, -y is actually used to please Automake's ylwrap which
716         expects the output to be y.tab.c.
717         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
719 2018-12-01  Bruno Haible  <bruno@clisp.org>
721         gnupload: Document short options.
722         * build-aux/gnupload (usage): Document the short options.
724 2018-11-28  Ben Elliston  <bje@gnu.org>
726         gnupload: Support option -h as alias of --help.
727         * build-aux/gnupload: Support -h.
729 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
731         memrchr: port better to clang
732         * lib/memrchr.c (__memrchr): Cast to void * instead of to
733         longword *, to pacify clang -Wcast-align (Bug#33544).
735 2018-11-29  Eric Blake  <eblake@redhat.com>
737         docs: mention printf %m considerations
738         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
739         is not portable, and is easy enough to work around.
740         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
741         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
742         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
743         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
744         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
745         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
746         * doc/posix-functions/printf.texi (printf): Likewise.
747         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
748         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
749         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
750         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
751         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
752         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
753         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
754         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
755         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
756         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
757         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
758         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
760 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
762         bitset: rename ebitset/expandable.* as tbitset/table.*
763         See
764         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
765         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
766         * lib/bitset/table.h, lib/bitset/table.c: these.
767         Rename all the ebitset* symbols as tbitset*.
768         Adjust dependencies.
770 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
772         bitset: check the operations
773         * tests/test-bitset.c (bitset_random): New.
774         Use it.
775         * lib/bitset/expandable.c (ebitset_not): Fix typo.
777 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
779         bitset: properly use false/true instead of 0/1 for Booleans
780         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
781         0/1, as Booleans.
783 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
785         bitset: rename BITSET_VARRAY as BITSET_VECTOR
786         For consistency with the name of the file.
787         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
788         * lib/bitset/stats.c, lib/bitset/vector.c
789         (BITSET_VARRAY): Rename as...
790         (BITSET_VECTOR): this.
792 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
794         strerror_r-posix: memmove, not memcpy
795         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
796         since the source and destination might overlap in the call
797         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
798         Simplify.
800 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
802         bitsetv: new module
803         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
805 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
807         bitset: add tests and doc
808         First stabs at providing a documentation and test for the bitset
809         module.
810         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
812 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
814         bitset: new module
815         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
816         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
817         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
818         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
819         * lib/bitset/vector.h, modules/bitset:
820         New.
822 2018-11-23  Bruno Haible  <bruno@clisp.org>
824         localename: Fix gettext test failures on mingw.
825         * lib/localename.c (gl_locale_name_posix): Convert the result of
826         gl_locale_name_environ to XPG syntax.
828 2018-11-23  Karl Berry  <karl@freefriends.org>
830         * config/srclistvars.txt,
831         * config/srclist.txt: remove all gettext references;
832         the gettext maintainers will sync as needed.
834 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
836         mktime: add libc-config dependency
837         I missed this when we synced from glibc.
838         * modules/mktime (Depends-on): Add libc-config.
840 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
842         longlong: fix comment typo
843         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
845 2018-11-11  Bruno Haible  <bruno@clisp.org>
847         havelib: Remove the need to include asm-underscore.m4.
848         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
849         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
850         gl_HOST_CPU_C_ABI.
851         * modules/havelib (Files): Add host-cpu-c-abi.m4.
852         (Depends-on): Remove host-cpu-c-abi.
854 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
856         parse-datetime: simplify test for mktime failure
857         * lib/parse-datetime.y (mktime_ok): Simplify.
858         Remove args TZ and T; no longer needed.  Callers changed.
860         posixtm: simplify test for mktime failure
861         * lib/posixtm.c (posixtime): Simplify.
863         nstrftime: simplify test for mktime failure
864         * lib/nstrftime.c (__strftime_internal): Simplify.
866 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
868         gnulib-common.m4: port _Noreturn to C++
869         Problem reported by Akim Demaille in:
870         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
871         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
872         Merge adjustments from _Noreturn.h and from glibc into the non-C++
873         version.
874         * lib/_Noreturn.h: Match gnulib-common.
876 2018-10-30  Bruno Haible  <bruno@clisp.org>
878         gnu-make: Fix for NetBSD 8 'make'.
879         Reported by Reuben Thomas in
880         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
881         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
882         output, ignoring exit codes.
884 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
886         maintainer-makefile: fix syntax-check rule for "same.h"
887         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
888         for 'same_nameat', too.
890 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
892         havelib: fix nested ‘configure’ chatter
893         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
894         AC_CACHE_CHECK calls, which resulted in confusing output like
895         “checking for the common suffixes of directories in the library
896         search path... checking for 64-bit host... no lib,lib”.
898         backupfile: tweak for better code
899         * lib/backupfile.c: Sort include directives, and remove
900         unnecessary <limits.h> include.
901         (FALLTHROUGH): New macro, copied from other modules.
902         (backupfile_internal): Use it to avoid code duplication.
903         This lets GCC 8.2.1 generate better code by inlining the
904         call to check_extension.
906 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
908         backupfile: new dir_fd args
909         New module opendirat with code taken from fts.
910         Use this module to let backupfile use a directory file descriptor.
911         * NEWS: Document the incompatible change.
912         * lib/backup-find.c (find_backup_file_name):
913         * lib/backup-rename.c (backup_file_rename):
914         New arg DIR_FD.
915         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
916         (SIZE_MAX): Remove.
917         Include opendirat.h rather than dirent--.h.
918         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
919         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
920         (backupfile_internal): New arg DIR_FD.  All callers changed.
921         * lib/fts.c: Include opendirat.h.
922         (opendirat): Move to opendirat.c.
923         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
924         * modules/backupfile (Depends-on): Remove dirfd, opendir.
925         Add opendirat.
926         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
927         Add opendirat.
929 2018-10-23  Bruno Haible  <bruno@clisp.org>
931         localename: Simplify support for per-thread locales on Solaris 11.4.
932         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
933         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
934         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
935         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
936         specific code.
937         * lib/localename-table.h: Update comments.
938         * lib/localename-table.c: Update comments.
939         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
940         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
941         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
942         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
943         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
944         HAVE_NAMELESS_LOCALES here.
945         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
946         m4/intlsolaris.m4.
947         * modules/gettext (Files): Likewise.
949 2018-10-22  Bruno Haible  <bruno@clisp.org>
951         std-gnu11: Support Autoconf versions < 2.64.
952         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
953         when _AC_DO_LIMIT does not exist.
955 2018-10-22  Bruno Haible  <bruno@clisp.org>
957         Assume Autoconf >= 2.63.
958         * DEPENDENCIES: Mention the requirement.
960         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
961         (func_get_filelist): Don't list m4/onceonly.m4 any more.
962         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
963         * m4/onceonly.m4: Remove file.
965         * m4/openmp.m4: Remove file.
966         * modules/openmp (Files): Remove m4/openmp.m4.
968         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
969         htmldir, dvidir, pdfdir, psdir, localedir.
970         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
972         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
973         Autoconf < 2.60.
974         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
975         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
977         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
978         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
979         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
981         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
982         exists.
983         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
986         Autoconf < 2.61.
988         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
989         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
990         Autoconf >= 2.52.
992         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
993         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
994         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
996 2018-10-22  Bruno Haible  <bruno@clisp.org>
998         Assume Automake >= 1.11.
999         * m4/configmake.m4: Update comments.
1000         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1001         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1002         of 'eval'.
1003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1004         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1005         requires Automake >= 1.11.
1007 2018-10-22  Bruno Haible  <bruno@clisp.org>
1009         localename: Fix typo in comment.
1010         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1012 2018-10-22  Bruno Haible  <bruno@clisp.org>
1014         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1015         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1017 2018-10-21  Bruno Haible  <bruno@clisp.org>
1019         locale: Ease integration with GNU libintl.
1020         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1021         GNULIB_defined_freelocale): New macros.
1023 2018-10-21  Bruno Haible  <bruno@clisp.org>
1025         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1026         * lib/localename-table.h: New file, extracted from lib/localename.c.
1027         * lib/localename-table.c: Likewise.
1028         * lib/localename.c: Include localename-table.h.
1029         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1030         locale_hash_function instead of pointer_hash.
1031         * modules/localename (Files): Add lib/localename-table.h,
1032         lib/localename-table.c.
1033         (lib_SOURCES): Add localename-table.c.
1034         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1035         for Solaris 11.4 locale system only on Solaris. Test for it
1036         independently whether getlocalename_l exists.
1037         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1038         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1039         HAVE_NAMELESS_LOCALES.
1040         * modules/gettext (Files): Add m4/intlsolaris.m4.
1042 2018-10-21  Bruno Haible  <bruno@clisp.org>
1044         Small update from gettext.
1045         * m4/intl.m4: Update from gettext:
1046         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1047         mode on AIX.
1048         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1049         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1051 2018-10-16  Bruno Haible  <bruno@clisp.org>
1053         mountlist: Remove support for Cray with UNICOS 9.
1054         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1055         MOUNTED_LISTMNTENT.
1056         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1058 2018-10-16  Bruno Haible  <bruno@clisp.org>
1060         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1062         STAT_STATFS2_FS_DATA.
1063         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1065         MOUNTED_GETMNT.
1066         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1067         * lib/getloadavg.c (decstation): Remove definition and case.
1068         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1069         * lib/getgroups.c: Likewise.
1070         * doc/posix-functions/getgroups.texi: Likewise.
1071         * lib/time.in.h: Update comments.
1073 2018-10-16  Bruno Haible  <bruno@clisp.org>
1075         getloadavg: Remove support for ConvexOS.
1076         * lib/getloadavg.c: Remove convex case.
1078 2018-10-16  Bruno Haible  <bruno@clisp.org>
1080         getloadavg: Remove support for Sony NEWS.
1081         * lib/getloadavg.c: Remove sony_news case.
1083 2018-10-16  Bruno Haible  <bruno@clisp.org>
1085         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1086         * lib/fsusage.c: Remove _SEQUENT_ case.
1087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1088         * lib/mountlist.c: Don't test for MNTTABNAME.
1089         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1090         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1091         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1092         * lib/stat-size.h: Don't mention the Sequent bug.
1093         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1095 2018-10-16  Bruno Haible  <bruno@clisp.org>
1097         fsusage: Remove support for AIX 3.
1098         * lib/fsusage.c: Remove code for AIX 3.
1099         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1101 2018-10-16  Bruno Haible  <bruno@clisp.org>
1103         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1104         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1105         * lib/fsusage.c: Remove code for AIX PS/2.
1106         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1107         * lib/getloadavg.c: Likewise.
1109 2018-10-16  Bruno Haible  <bruno@clisp.org>
1111         getloadavg: Remove support for HP-UX on m68k.
1112         * lib/getloadavg.c: Remove hp9000s300 case.
1114 2018-10-16  Bruno Haible  <bruno@clisp.org>
1116         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1117         * lib/fsusage.c: Remove DOLPHIN case.
1118         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1119         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1121 2018-10-16  Bruno Haible  <bruno@clisp.org>
1123         getloadavg: Remove support for Alliant FX/2800.
1124         * lib/getloadavg.c: Remove alliant case.
1126 2018-10-16  Bruno Haible  <bruno@clisp.org>
1128         getloadavg: Remove support for tek4300.
1129         * lib/getloadavg.c: Remove tek4300 case.
1131 2018-10-16  Bruno Haible  <bruno@clisp.org>
1133         getloadavg: Remove support for Ardent.
1134         * lib/getloadavg.c: Remove ardent case.
1136 2018-10-16  Bruno Haible  <bruno@clisp.org>
1138         mountlist: Remove support for SVR2.
1139         Reported by Andrew Borodin <aborodin@vmail.ru> in
1140         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1141         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1143         MOUNTED_FREAD.
1145 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1147         libc-config: merge from glibc
1148         * lib/cdefs.h (__glibc_has_attribute): New macro.
1150         regex: depend on libc-config
1151         * modules/regex (Depends-on): Add libc-config.
1152         This is needed after the recent autoupdate from glibc.
1154 2018-10-14  Bruno Haible  <bruno@clisp.org>
1156         localename: Add support for per-thread locales on Solaris 11.4.
1157         * lib/locale.in.h (newlocale, freelocale): New declarations.
1158         (duplocale): Declare also when the 'localename' module requests it.
1159         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1160         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1161         (struniq): Update.
1162         (struct locale_categories_names, struct locale_hash_node): New types.
1163         (LOCALE_HASH_TABLE_SIZE): New constant.
1164         (locale_hash_table, locale_lock): New variables.
1165         (pointer_hash, get_locale_t_name): New functions.
1166         (newlocale, duplocale, freelocale): New overridden functions.
1167         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1168         * m4/intlsolaris.m4: New file.
1169         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1170         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1171         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1172         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1173         declared.
1174         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1175         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1176         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1177         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1178         * modules/localename (Files): Add intlsolaris.m4.
1179         (Depends-on): Add 'locale'.
1180         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1181         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1182         the signatures.
1184 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1186         timevar: use gethrxtime to get wall clock time
1187         clock_gettime is not portable.  gethrxtime takes the best available
1188         option to get the wall clock time, including clock_gettime (monotonic
1189         clock), and gettime (non monotonic).
1190         Also, using xtime_t instead of float preserves the precision.
1191         Suggested by Bruno Haible.
1192         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1193         * modules/timevar (Depends-on): We need gethrxtime.
1194         We no longer use times().
1195         (Link): Update.
1196         * lib/timevar.h (timevar_time_def): Use xtime_t.
1197         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1198         (timevar_print): Instead of checking whether the timings themselves
1199         are large enough for the timevar to be printed, check the percentages.
1201 2018-10-14  Bruno Haible  <bruno@clisp.org>
1203         wcsnrtombs: Work around Solaris 11.4 bug.
1204         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1205         macro.
1206         (gl_FUNC_WCSNRTOMBS): Invoke it.
1207         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1209 2018-10-14  Bruno Haible  <bruno@clisp.org>
1211         mbsnrtowcs: Work around Solaris 11.4 bug.
1212         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1213         macro.
1214         (gl_FUNC_MBSNRTOWCS): Invoke it.
1215         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1217 2018-10-14  Bruno Haible  <bruno@clisp.org>
1219         doc: Update for Solaris 11.4.
1220         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1221         mention Solaris 11.4.
1222         * m4/printf.m4: Update comments about Solaris.
1223         * m4/log.m4: Likewise.
1224         * m4/log10.m4: Likewise.
1225         * m4/logb.m4: Likewise.
1226         * m4/logbf.m4: Likewise.
1227         * m4/logbl.m4: Likewise.
1228         * m4/rename.m4: Likewise.
1229         * m4/wcrtomb.m4: Likewise.
1230         * m4/hostent.m4: Likewise.
1231         * m4/servent.m4: Likewise.
1233 2018-10-14  Bruno Haible  <bruno@clisp.org>
1235         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1236         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1237         pointer.
1238         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1239         pointer.
1240         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1241         pointer.
1242         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1243         pointer.
1244         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1245         pointer.
1247 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1249         bootstrap: fix wget command for po files.
1250         * build-aux/bootstrap (po_download_command_format): Fix comment,
1251         and adjust callers.
1253 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1255         timevar: improve the output format
1256         Suggested by Bruno Haible.
1257         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1258         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1259         wall, since its resolution is much higher.
1261 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1263         timevar: expect that getrusage is available.
1264         Don't keep both times and getrusage as backend: both are guaranteed by
1265         gnulib, a single one suffices.  Using getrusage is open to possibly
1266         tracking other types of resources in the future.
1267         * modules/timevar (Depends-on): Add getrusage.
1268         (configure.ac): Remove gl_TIMEVAR.
1269         (Files): Remove m4/timevar.m4.
1270         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1271         * lib/timevar.h (timevar_enabled): Clarify documentation.
1272         * lib/timevar.c: Remove all the code about times.
1273         Remove all the CPP guards about getrusage: expect it to be present
1274         (courtesy of gnulib).
1276 2018-10-12  Bruno Haible  <bruno@clisp.org>
1278         mountlist: Improve support for Solaris in 64-bit mode.
1279         Reported by David Wood <David.Wood@deshaw.com> in
1280         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1282         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1283         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1285 2018-10-12  Bruno Haible  <bruno@clisp.org>
1287         mountlist: Add support for Minix.
1288         Reported by Assaf Gordon in
1289         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1291         AC_CHECK_FUNCS to check for 'getmntinfo'.
1292         * lib/mountlist.c: Update comments.
1294 2018-10-12  Bruno Haible  <bruno@clisp.org>
1296         Make better use of Autoconf.
1297         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1298         * m4/manywarnings.m4: Likewise.
1299         * m4/manywarnings-c++.m4: Likewise.
1300         * m4/socklen.m4: Likewise.
1301         * m4/sockpfaf.m4: Likewise.
1302         * m4/stdarg.m4: Likewise.
1303         * m4/visibility.m4: Likewise.
1304         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1305         indentation.
1306         * m4/ls-mntd-fs.m4: Likewise.
1308 2018-10-11  Bruno Haible  <bruno@clisp.org>
1310         mountlist: Modernize platform lists.
1311         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1312         platforms, deemphasizing the obsolete ones.
1313         * lib/mountlist.c: Likewise.
1315 2018-10-11  Bruno Haible  <bruno@clisp.org>
1317         getprogname: Add support for 32-bit programs on HP-UX.
1318         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1319         try the similar functions 32-bit programs on 64-bit HP-UX.
1321 2018-10-11  Bruno Haible  <bruno@clisp.org>
1323         getprogname: Work around program name truncation when possible.
1324         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1325         possibly use pst_cmd instead.
1327 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1329         fts: cleanup after FTS_NOATIME removal
1330         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1331         (FTS_STOP): Shrink to minimal values.  We don’t need to
1332         worry about binary compatibility in Gnulib, and the old way
1333         of doing things had a hole in the user options that caused
1334         FTS_OPTIONMASK to not work as desired.
1336 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1338         fts: remove FTS_NOATIME
1339         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1340         We cannot guarantee that O_NOATIME works: e.g. openat fails
1341         with EPERM if the effective user ID of the caller does not match
1342         the owner of the file and the caller is not privileged.
1343         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1344         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1345         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1346         (FTS_OPTIONMASK): Adjust.
1347         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1348         (fd_ring_check): Likewise.
1350 2018-10-08  Bruno Haible  <bruno@clisp.org>
1352         csharpcomp*, csharpexec*: Remove support for pnet.
1353         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1354         HAVE_CSCC.
1355         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1356         Don't test HAVE_CSCC.
1357         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1358         (compile_csharp_class): Don't invoke it.
1359         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1360         HAVE_ILRUN.
1361         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1362         Don't test HAVE_ILRUN.
1363         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1364         (execute_csharp_program): Don't invoke it.
1365         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1366         any more.
1368 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1370         renameatu: prefer renameat2 to syscall
1371         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1372         Use renameat2 instead of syscall (Bug#32796).
1373         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1375 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1377         bootstrap, gnulib-tool: use https instead of insecure rsync
1378         * build-aux/bootstrap (download_po_files, po_download_command_format):
1379         Don't try using rsync; always use wget over https to fetch PO files.
1380         * gnulib-tool (func_import): Likewise.
1381         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1383 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1385         bootstrap, gnulib-tool: correct the translations wget command
1386         * build-aux/bootstrap (po_download_command_format2): Restrict
1387         recursion to a single level.
1388         * gnulib-tool (func_import): Likewise.
1389         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1391 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1393         doc: the gnulib snapshots are not maintained
1394         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1396 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1398         timevar: add to lib_SOURCES
1399         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1401 2018-10-07  Bruno Haible  <bruno@clisp.org>
1403         dirent: Update documentation.
1404         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1406 2018-10-05  Bruno Haible  <bruno@clisp.org>
1408         strpbrk: Make it possible to namespace the defined symbol.
1409         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1411 2018-10-05  Bruno Haible  <bruno@clisp.org>
1413         strcspn: Make it possible to namespace the defined symbol.
1414         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1416 2018-10-05  Bruno Haible  <bruno@clisp.org>
1418         raise: Make it possible to namespace the defined symbol.
1419         * lib/raise.c (raise): Undefine only after the replacement function has
1420         been defined.
1421         (raise): Renamed from rpl_raise.
1422         (raise_nothrow): Move to the end of the compilation unit.
1424 2018-10-05  Bruno Haible  <bruno@clisp.org>
1426         memcmp: Make it possible to namespace the defined symbol.
1427         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1429 2018-10-05  Bruno Haible  <bruno@clisp.org>
1431         explicit_bzero: Make it possible to namespace the defined symbol.
1432         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1433         glibc.
1435 2018-10-05  Bruno Haible  <bruno@clisp.org>
1437         mkdir-p: Depend on 'mkdir'.
1438         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1440 2018-10-05  Bruno Haible  <bruno@clisp.org>
1442         tempname: Depend on 'mkdir'.
1443         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1444         at <https://savannah.gnu.org/bugs/?33379>.
1445         * modules/tempname (Depends-on): Add 'mkdir'.
1447 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1449         timevar: rely on gnulib modules for time portability.
1450         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1451         * m4/timevar.m4: Don't check for clock_t and struct tms,
1452         guaranteed by gnulib.
1453         * lib/timevar.h: Use extern "C" protection.
1454         Include <stdio.h> for FILE.
1455         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1456         they are guaranteed by gnulib.
1457         Remove uses of clock as (now useless) fallback.
1459 2018-10-04  Bruno Haible  <bruno@clisp.org>
1461         sh-filename: New module.
1462         * m4/sh-filename.m4: New file.
1463         * modules/sh-filename: New file.
1464         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1465         "/bin/sh".
1466         * tests/test-posix_spawn1.c (main): Likewise.
1467         * tests/test-posix_spawn2.c (main): Likewise.
1468         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1469         is_envjavac_gcj43): Likewise.
1470         * lib/javaexec.c (execute_java_class): Likewise.
1471         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1472         * modules/posix_spawnp-tests (Depends-on): Likewise.
1473         * modules/javacomp (Depends-on): Likewise.
1474         * modules/javaexec (Depends-on): Likewise.
1476 2018-10-04  Bruno Haible  <bruno@clisp.org>
1478         spawn-pipe tests: Avoid test failure on native Windows.
1479         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1480         that fd 2 is closed.
1482 2018-10-04  Bruno Haible  <bruno@clisp.org>
1484         fcntl: Make it possible to namespace the defined symbol.
1485         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1486         been defined.
1487         (fcntl): Renamed from rpl_fcntl.
1488         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1489         from fcntl.
1490         (klibc_fcntl): Move to the end of the compilation unit.
1492 2018-10-02  Bruno Haible  <bruno@clisp.org>
1494         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1495         * tests/test-vasnprintf.c (test_function): Change the test added on
1496         2018-09-23 to check only the 18 most significant digits.
1498         vasnprintf tests: Avoid test failure on Cygwin.
1499         * tests/test-vasnprintf.c (test_function): Change the test added on
1500         2018-09-23 to check only the 42 most significant digits.
1502 2018-10-01  Bruno Haible  <bruno@clisp.org>
1504         mkostemp, mkostemps: Update documentation.
1505         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1506         * doc/glibc-functions/mkostemps.texi: Likewise.
1508 2018-10-01  Tom Tromey  <tom@tromey.com>
1510         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1511         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1512         on OS X.
1514 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1516         hmac-*: refactor to remove repetitive code
1517         * lib/hmac.c: A new parameterized single implementation.
1518         * lib/hmac-md5.c: Define parameters and include implementation.
1519         * lib/hmac-sha1.c: Likewise.
1520         * lib/hmac-sha256.c: Likewise.
1521         * lib/hmac-sha512.c: Likewise.
1522         * modules/crypto/hmac-md5: Reference the new implementation file.
1523         * modules/crypto/hmac-sha1: Likewise.
1524         * modules/crypto/hmac-sha256: Likewise.
1525         * modules/crypto/hmac-sha512: Likewise.
1526         * tests/test-hmac-md5.c: Refactor common code to a single function.
1527         * tests/test-hmac-sha1.c: Likewise.
1528         * tests/test-hmac-sha256.c: Likewise.
1529         * tests/test-hmac-sha512.c: Likewise.
1531 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1533         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1534         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1535         key length to that output by sha512, not the blocksize.
1536         Otherwise uninitialized data from the stack
1537         is used when computing the hash.
1538         * tests/test-hmac-sha512.c: Add a shortened key test case.
1539         Reported at https://github.com/coreutils/gnulib/pull/5
1541 2018-09-30  Bruno Haible  <bruno@clisp.org>
1543         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1544         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1545         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1546         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1547         'unsigned int' before comparison with an unsigned value.
1549 2018-09-30  Bruno Haible  <bruno@clisp.org>
1551         grantpt: Remove unnecessary dependency.
1552         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1554 2018-09-30  Bruno Haible  <bruno@clisp.org>
1556         timevar: Small tweaks.
1557         * lib/timevar.h: Fix comments. Add parameter names to function
1558         declarations.
1559         * lib/timevar.c: Include timevar.h immediately after config.h.
1560         * lib/timevar.def: Fix comments.
1561         * modules/timevar (Maintainer): List Akim Demaille.
1563 2018-09-30  Bruno Haible  <bruno@clisp.org>
1565         timevar: Include documentation in gnulib manual.
1566         * doc/timevar.texi: Change node and section name to 'Profiling of
1567         program phases'.
1568         In the code snippets, tweak the #includes and use GNU coding style.
1569         * doc/gnulib.texi: Include timevar.texi.
1571 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1573         timevar: import from Bison.
1574         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1575         New files.
1576         * lib/timevar.def: New file.
1577         * doc/timevar.texi: New file.
1579 2018-09-26  Bruno Haible  <bruno@clisp.org>
1581         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1582         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1583         * lib/javacomp.c (default_target_version): Likewise.
1585 2018-09-26  Bruno Haible  <bruno@clisp.org>
1587         javacomp-script, javacomp: Add support for Java 11.
1588         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1589         target-version 11.
1590         * lib/javaversion.h: Update comments.
1591         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1592         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1593         TARGET_VERSION_BOUND, target_version_index,
1594         corresponding_classfile_version): Accept source_version 11 and
1595         target_version 11.
1596         * lib/javacomp.h: Update comments accordingly.
1598 2018-09-23  Bruno Haible  <bruno@clisp.org>
1600         vasnprintf: Fix heap memory overrun bug.
1601         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1602         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1603         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1604         memory.
1605         * tests/test-vasnprintf.c (test_function): Add another test.
1607 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1609         maint: mktime.c now shared with glibc
1610         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1611         are now the same in Gnulib and glibc.
1613         mktime: fix _LIBC typo
1614         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1616 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1618         dfa: optimization for state merge
1619         * lib/dfa.c (merge2): New function.
1620         (merge_nfa_state): Use it.
1622 2018-09-18  Jim Meyering  <meyering@fb.com>
1624         dfa: trivial comment fix: s/is/if/
1625         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1627 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1629         dfa: use more-informative function name
1630         * lib/dfa.c (maybe_disable_superset_dfa):
1631         Rename from dfautf8noss.  Use change.
1633         dfa: tweak allocation performance
1634         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1635         Prefer ptrdiff_t for indexes some more.
1636         Use char for flags, as it’s wide enough.
1637         Allocate queue and flags together, with one malloc call.
1638         No need to use xnmalloc since the multiplication and
1639         addition cannot overflow (it’s already been checked by
1640         earlier allocation).  Prefer memset to open-coding.
1642         dfa: prune states as we go
1643         * lib/dfa.c (prune): Remove.
1644         dfa: reorder enum for efficiency
1645         (merge_nfa_state): Prune as we go instead of at the end.
1646         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1648         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1649         of the enumeration to make it easier for GCC to generate
1650         efficient code by using fewer comparisons to check for
1651         ranges of values.
1652         (atom): Take advantage of the reordering.
1654 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1656         dfa: optimize alternation in NFA
1657         Even when similar states exist in alternation, the DFA treats them
1658         as separate items, which may complicate the transition in NFA and
1659         cause slowdown.  This change assembles the states into one.  For
1660         example, ab|ac is changed into a(b|c).  This change speeds-up
1661         matching for many branched patterns.  For example, grep speeds up
1662         more than 30× in:
1664           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1665           time -p env LC_ALL=C grep -vf in in
1667         * lib/dfa.c (prune): New function.
1668         (merge_nfa_state): New function.  It merges similar NFA states.
1669         (dfaoptimize): New function.  It seeks merged and removed nodes.
1670         (dfaanalyze): Call new function.
1671         (dfautf8noss): Change name from dfaoptimize because of addition of new
1672         function.
1673         (dfacomp): Update caller.
1675         dfa: simplify initial state
1676         Simplifying the initial state enables easier optimization of the NFA.
1677         * lib/dfa.c (enum token): Add new element BEG.
1678         (prtok): Adjust due to adding element BEG.
1679         (dfaparse): Put BEG at a head of tokens.
1680         (state_index): Adjust due to adding element BEG.
1681         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1682         build initial state.
1683         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1685 2018-09-18  Bruno Haible  <bruno@clisp.org>
1687         file-has-acl: Fix test failure on Cygwin 2.9.
1688         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1689         * lib/acl-internal.h: Likewise.
1690         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1691         * lib/acl-internal.c: Update comments regarding Cygwin.
1692         * lib/acl_entries.c: Likewise.
1693         * lib/file-has-acl.c: Likewise.
1694         (file_has_acl): For Cygwin, use a different way to determine whether
1695         the "default" ACL of a directory is nontrivial.
1696         * lib/get-permissions.c: Update comments regarding Cygwin.
1697         * lib/set-permissions.c: Likewise.
1699 2018-09-18  Bruno Haible  <bruno@clisp.org>
1701         stat-time tests: Fix test failure on Cygwin.
1702         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1704 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1706         doc: OS X 10.11 lacked ns time functions
1707         According to <https://github.com/zeromq/libzmq/issues/2175>,
1708         nanosecond-resolution timestamp functions were introduced
1709         in macOS 10.12, so document the last version (OS X 10.11)
1710         where they were absent.
1712         gettime: nanotime never existed
1713         Problem reported by Bruno Haible in:
1714         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1715         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1716         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1718 2018-09-18  Bruno Haible  <bruno@clisp.org>
1720         doc: Update statement about target platforms.
1721         Reported by Simon Sobisch.
1722         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1723         restrictions on MSVC versions.
1725 2018-09-18  Bruno Haible  <bruno@clisp.org>
1727         posix_spawn tests: Fix link error on 64-bit Cygwin.
1728         * tests/test-posix_spawn1.c (environ): Remove declaration.
1729         * tests/test-posix_spawn2.c (environ): Likewise.
1730         * tests/test-posix_spawn3.c (environ): Likewise.
1731         * tests/test-posix_spawn4.c (environ): Likewise.
1732         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1733         * modules/posix_spawnp-tests (Depends-on): Likewise.
1735 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1737         timespec: new function current_timespec
1738         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1739         and don’t worry about it failing on a CLOCK_REALTIME arg.
1740         POSIX requires it to succeed and I don’t know of any
1741         counterexamples where the fallbacks would work.
1742         (current_timespec): New function, taken from Emacs.  It is more
1743         convenient than gettime, and can help register allocation.
1744         * lib/timespec.h: Include arg-nonnull.h.
1745         (current_timespec): New declaration.
1746         (gettime, settime): Declare args to be nonnull.
1747         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1749 2018-09-16  Bruno Haible  <bruno@clisp.org>
1751         setlocale: Improve locale handling on macOS 10.12 or newer.
1752         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1753         gl_locale_name_canonicalize.
1754         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1755         and LC_MESSAGES.
1756         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1758 2018-09-16  Bruno Haible  <bruno@clisp.org>
1760         Update list of locale names with scripts on macOS.
1761         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1762         match Mac OS X 10.13 and recent glibc.
1764 2018-09-16  Bruno Haible  <bruno@clisp.org>
1766         gettext: Use newer macOS APIs when possible.
1767         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1768         CFLocaleCopyPreferredLanguages.
1770 2018-09-16  Bruno Haible  <bruno@clisp.org>
1772         localename: Revisit macOS specific code.
1773         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1774         Fix comments about Mac OS X versions.
1776 2018-09-15  Bruno Haible  <bruno@clisp.org>
1778         setlocale: Improve support for locales not supported by libc.
1779         Reported by Dapeng Gao <peter@dpgao.cc> at
1780         <https://savannah.gnu.org/bugs/?54479>.
1781         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1782         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1783         to be set is not supported by libc: Emit warnings instead of failing.
1785 2018-09-15  Bruno Haible  <bruno@clisp.org>
1787         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1788         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1789         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1790         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1792         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1793         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1794         * doc/glibc-functions/strcasestr.texi: Likewise.
1796 2018-09-14  Bruno Haible  <bruno@clisp.org>
1798         doc: Fix bottom of top-level page.
1799         Reported by Akim Demaille <akim.demaille@gmail.com> in
1800         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1801         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1802         mode.
1803         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1804         accordingly.
1806 2018-09-12  Bruno Haible  <bruno@clisp.org>
1808         Add test case from a recent glibc bug.
1809         * tests/test-strstr.c (main): Add test of long needle.
1810         * tests/test-strcasestr.c (main): Likewise.
1811         * tests/test-c-strstr.c (main): Likewise.
1812         * tests/test-c-strcasestr.c (main): Likewise.
1813         * tests/test-memmem.c (main): Likewise.
1815 2018-09-12  Bruno Haible  <bruno@clisp.org>
1817         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1818         * tests/test-c-strstr.c (main): Add the same tests here as well.
1820 2018-09-12  Bruno Haible  <bruno@clisp.org>
1822         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1823         * tests/test-memmem.c (main): Free haystack.
1824         * tests/test-strcasestr.c (main): Likewise.
1825         * tests/test-c-strcasestr.c (main): Likewise.
1827 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1829         xstrtol: fix missing-TYPE_SIGNED typo
1830         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1832 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1834         timespec: fix resolution confusion
1835         In normal usage, clock resolution is given in seconds, but the
1836         code was mistakenly using inverse seconds and calling it
1837         “resolution”.  Fix this, partly by renaming two identifiers.
1838         The old names will be kept for a bit, to ease transition.
1839         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1840         New constants, replacing TIMESPEC_RESOLUTION and
1841         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1842         All uses changed.
1844 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1846         mktime: simplify in prep for glibc merge
1847         * lib/mktime.c, lib/timegm.c [_LIBC]:
1848         Include mktime-internal.h (a small file just for glibc)
1849         instead of using a typedef.
1851 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1853         intprops: minor clarification of code
1854         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1855         Use _GL_INT_CONVERT rather than reinventing it.
1857 2018-09-07  Bruno Haible  <bruno@clisp.org>
1859         Fix a comment.
1860         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1862 2018-09-07  Bruno Haible  <bruno@clisp.org>
1864         posix_spawn_file_actions_addchdir: Add tests.
1865         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1866         * tests/test-posix_spawn4.c: New file.
1867         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1869 2018-09-07  Bruno Haible  <bruno@clisp.org>
1871         posix_spawn_file_actions_addchdir: New module.
1872         Suggested by Eric Blake in
1873         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1874         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1875         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1876         union member 'chdir_action'.
1877         * lib/spawn_faction_addchdir.c: New file.
1878         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1879         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1880         HAVE_WORKING_POSIX_SPAWN.
1881         * lib/spawn_faction_adddup2.c: Likewise.
1882         * lib/spawn_faction_addopen.c: Likewise.
1883         * m4/posix_spawn_faction_addchdir.m4: New file.
1884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1885         'posix_spawn_file_actions_addchdir' is present and whether
1886         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1887         instead of HAVE_WORKING_POSIX_SPAWN.
1888         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1889         posix_spawn_file_actions_addchdir is declared.
1890         (gl_SPAWN_H_DEFAULTS): Initialize
1891         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1892         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1893         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1894         * modules/spawn (Makefile.am): Substitute
1895         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1896         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1897         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1898         * modules/posix_spawn_file_actions_addchdir: New file.
1899         * modules/posix_spawn_file_actions_addclose (Depends-on,
1900         configure.ac): Test also REPLACE_POSIX_SPAWN.
1901         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
1902         configure.ac): Likewise.
1903         * modules/posix_spawn_file_actions_addopen (Depends-on,
1904         configure.ac): Likewise.
1905         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
1906         signature.
1907         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1908         * doc/posix-functions/posix_spawnp.texi: Likewise.
1910 2018-09-06  Bruno Haible  <bruno@clisp.org>
1912         stddef: Override max_align_t on NetBSD 8.0/x86.
1913         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
1914         the value of __alignof__ (max_align_t).
1915         * doc/posix-headers/stddef.texi: Mention the issue.
1917 2018-09-06  Bruno Haible  <bruno@clisp.org>
1919         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
1920         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
1921         system fcntl.
1922         * doc/posix-functions/fcntl.texi: Document the issue.
1924 2018-09-06  Bruno Haible  <bruno@clisp.org>
1926         count-trailing-zeros tests: Rely on limits-h module.
1927         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
1928         definition.
1929         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
1931 2018-09-06  Bruno Haible  <bruno@clisp.org>
1933         count-leading-zeros tests: Rely on limits-h module.
1934         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
1935         definition.
1936         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
1938 2018-09-06  Bruno Haible  <bruno@clisp.org>
1940         count-one-bits tests: Rely on limits-h module.
1941         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
1942         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
1944 2018-09-06  Bruno Haible  <bruno@clisp.org>
1946         xstrtoll: Rely on limits-h module.
1947         * lib/xstrtol.c: Don't include intprops.h.
1948         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1949         * modules/xstrtol (Depends-on): Remove 'intprops'.
1950         * modules/xstrtoll (Depends-on): Add 'limits-h'.
1952 2018-09-06  Bruno Haible  <bruno@clisp.org>
1954         strtoll, strtoull: Rely on limits-h module.
1955         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
1956         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1957         * modules/strtoll (Depends-on): Add limits-h.
1958         * modules/strtoull (Depends-on): Likewise.
1960 2018-09-06  Bruno Haible  <bruno@clisp.org>
1962         intprops tests: Fix compilation error with pre-C99 compiler.
1963         * tests/test-intprops.c (verify_stmt): New macro.
1964         (VERIFY, main): Use it.
1966 2018-09-06  Bruno Haible  <bruno@clisp.org>
1968         limits-h: Provide numerical limits macros.
1969         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
1970         IRIX and for GCC.
1971         (WORD_BIT, LONG_BIT): Define.
1972         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
1973         <limits.h> does not define LLONG_MAX or WORD_BIT.
1974         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
1975         TYPE_MAXIMUM): New macros, from intprops.h.
1976         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
1977         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
1978         provides.
1980 2018-09-05  Bruno Haible  <bruno@clisp.org>
1982         fcntl: Don't access nonexistent optional argument.
1983         Reported by Frank Busse <f.busse@imperial.ac.uk> in
1984         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
1985         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
1986         don't consume an argument. For actions that take an 'int' argument,
1987         consume an 'int' argument.
1989 2018-09-05  Eric Blake  <eblake@redhat.com>
1991         doc: mention environ pitfall
1992         * doc/posix-functions/environ.texi (environ): Assigning NULL to
1993         environ is a glibc extension.
1995 2018-09-03  Bruno Haible  <bruno@clisp.org>
1997         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
1998         Reported by Antoine Luong <antoine.luong@c-s.fr> in
1999         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2000         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2001         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2002         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2004 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2006         mktime: fix unlikely race+overflow bug
2007         Problem reported by Alexandre Oliva in:
2008         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2009         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2010         to avoid an unlikely race if the compiler delays a load and
2011         if this cascades into a signed integer overflow.
2013 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2015         mktime, timegm: simplify glibc time64_t
2016         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2017         Now long int, not time_t, since long int is the longstanding type
2018         for this in glibc and there is no need to change it even if time_t
2019         becomes 64 bits - even int would do, though this would be a change
2020         to the glibc generated code.  When this change is merged into
2021         glibc, it should simplify the time_t vs time64_t situation.
2023         mktime, timegm: simplify merge to glibc
2024         Move code around to make a merge to glibc easier to audit.
2025         This should not change behavior.
2026         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2027         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2028         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2029         simplify later conditionals; default the others to zero.  In uses
2030         of these conditionals, explicitly spell out how _LIBC affects
2031         things, so it’s easier to review from a glibc viewpoint.
2032         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2033         compartmentalize tzset issues.  Move system-dependent tzsettish
2034         code here from mktime.
2035         (mktime): Move tzsettish code to my_tzset, and move
2036         localtime_offset to within mktime so that it doesn’t
2037         need a separate ifdef.
2039 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2041         intprops: avoid evaluation of some expressions
2042         This makes EXPR_SIGNED (e) easier to use, as it no longer
2043         evaluates the expression E.  Formerly, E was required to be free
2044         of side effects.
2045         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2046         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2047         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2049 2018-08-23  Bruno Haible  <bruno@clisp.org>
2051         getcwd: Add cross-compilation guesses.
2052         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2053         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2054         Based on a patch by Paul Eggert.
2055         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2056         guesses for all GNU systems.
2058 2018-08-19  Bruno Haible  <bruno@clisp.org>
2060         glob-h: Formalize side effects from other modules.
2061         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2062         * m4/glob.m4 (gl_GLOB): Invoke it.
2064         fnmatch-h: Formalize side effects from other modules.
2065         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2066         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2068         limits-h: Formalize side effects from other modules.
2069         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2070         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2072 2018-08-19  Bruno Haible  <bruno@clisp.org>
2074         getpass: Move declaration to <unistd.h>.
2075         * lib/unistd.in.h (getpass): New declaration.
2076         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2077         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2078         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2079         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2080         On glibc systems, don't set REPLACE_GETPASS to 1.
2081         * modules/getpass (Depends-on): Add 'unistd'.
2082         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2083         (Include): Specify <unistd.h> instead of "getpass.h".
2084         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2085         (configure.ac): Sync with the configure.ac section of modules/getpass.
2086         (Include): Specify <unistd.h> instead of "getpass.h".
2087         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2088         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2089         REPLACE_GETPASS.
2090         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2091         REPLACE_GETPASS.
2092         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2093         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2094         and musl.
2095         * NEWS: Mention the change.
2097 2018-08-19  Bruno Haible  <bruno@clisp.org>
2099         glob: Fix over-optimization due to attribute __nonnull__.
2100         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2102 2018-08-19  Bruno Haible  <bruno@clisp.org>
2104         glob: Fix another compilation error when glob.h is not replaced.
2105         Reported by Reuben Thomas <rrt@sc3d.org> in
2106         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2107         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2108         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2110 2018-08-18  Bruno Haible  <bruno@clisp.org>
2112         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2113         Reported by Reuben Thomas <rrt@sc3d.org> in
2114         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2115         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2116         in config.h.
2118 2018-08-18  Bruno Haible  <bruno@clisp.org>
2120         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2121         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2122         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2123         Solution proposed by Eli Zaretskii.
2124         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2125         * lib/gettimeofday.c (GetProcAddress): Likewise.
2126         * lib/link.c (GetProcAddress): Likewise.
2127         * lib/physmem.c (GetProcAddress): Likewise.
2128         * lib/poll.c (GetProcAddress): Likewise.
2129         * lib/select.c (GetProcAddress): Likewise.
2130         * lib/stat-w32.c (GetProcAddress): Likewise.
2132 2018-08-18  Bruno Haible  <bruno@clisp.org>
2134         glob: Fix another compilation error when glob.h is not replaced.
2135         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2136         * lib/globfree.c: Include <libc-config.h>.
2138 2018-08-18  Bruno Haible  <bruno@clisp.org>
2140         glob: Fix compilation error when glob.h is not replaced.
2141         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2142         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2143         * lib/glob_pattern_p.c: Include <libc-config.h>.
2144         * modules/glob (Depends-on): Add libc-config.
2146 2018-08-18  Bruno Haible  <bruno@clisp.org>
2148         scratch_buffer: Add tests.
2149         * tests/test-scratch-buffer.c: New file.
2150         * modules/scratch_buffer-tests: New file.
2152 2018-08-18  Bruno Haible  <bruno@clisp.org>
2154         scratch_buffer: Fix include file.
2155         Reported by Reuben Thomas <rrt@sc3d.org> in
2156         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2157         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2158         double-inclusion guard.
2160 2018-08-18  Bruno Haible  <bruno@clisp.org>
2162         glob-h: Revert Paul Eggert's revert.
2163         * m4/glob_h.m4: Revert to previous state.
2164         * modules/glob-h: Likewise.
2166 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2168         glob-h: always build glob.h
2169         This works around a problem reported by Reuben Thomas in:
2170         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2171         This workaround always builds glob.h, even on platforms that
2172         do not need it; perhaps this could be improved someday.
2173         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2174         is always created now.
2175         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2177 2018-08-13  Bruno Haible  <bruno@clisp.org>
2179         monetary: Simplify m4 code.
2180         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2181         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2183 2018-08-13  Bruno Haible  <bruno@clisp.org>
2185         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2186         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2187         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2188         and by Paul J. Lucas <paul@lucasmail.org> in
2189         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2190         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2192 2018-08-11  Bruno Haible  <bruno@clisp.org>
2194         setlocale: Trivial simplification.
2195         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2197 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2199         verify: port 'assume' to traditional tools
2200         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2201         and other tools that use /*NOTREACHED*/ comments.
2203 2018-08-10  Bruno Haible  <bruno@clisp.org>
2205         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2206         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2207         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2208         'fnmatch-gnu' is in use.
2210 2018-08-07  Bruno Haible  <bruno@clisp.org>
2212         glob-h: Add tests.
2213         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2214         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2215         tests/test-glob-h.c.
2216         * modules/glob-h-tests: New file.
2217         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2218         conditions.
2219         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2220         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2222 2018-08-07  Bruno Haible  <bruno@clisp.org>
2224         glob-h: New module.
2225         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2226         replacements.
2227         * lib/glob.c: Include <config.h>.
2228         * m4/glob_h.m4: New file.
2229         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2230         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2231         REPLACE_GLOB_PATTERN_P as appropriate.
2232         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2233         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2234         * modules/glob-h: New file.
2235         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2236         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2237         lstat, sys_stat. Change conditions.
2238         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2239         REPLACE_GLOB_PATTERN_P. Set module indicator.
2240         (Makefile.am): Remove code that is moved to glob-h.
2241         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2242         * modules/posixcheck (Depends-on): Add glob-h.
2244 2018-08-06  Bruno Haible  <bruno@clisp.org>
2246         Force generation of substitute .h file when C++ support is enabled.
2247         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2248         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2249         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2250         FNMATCH_H to non-empty.
2251         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2252         ICONV_H to non-empty.
2253         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2254         MONETARY_H to non-empty.
2255         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2256         non-empty.
2258 2018-08-06  Bruno Haible  <bruno@clisp.org>
2260         fnmatch-h: Fix test compilation error on mingw (regression from today).
2261         * lib/fnmatch.in.h: Fix conditions.
2263 2018-08-06  Bruno Haible  <bruno@clisp.org>
2265         sys_resource: Relicense under LGPLv2+.
2266         John Malmberg's approval is in
2267         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2268         * modules/sys_resource (License): Change to LGPLv2+.
2270 2018-08-06  Bruno Haible  <bruno@clisp.org>
2272         fnmatch-h: Add tests.
2273         * tests/test-fnmatch-h.c: New file.
2274         * modules/fnmatch-h-tests: New file.
2275         * tests/test-fnmatch-h-c++.cc: New file.
2276         * modules/fnmatch-h-c++-tests: New file.
2278 2018-08-06  Bruno Haible  <bruno@clisp.org>
2280         fnmatch-h: New module.
2281         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2282         replacements.
2283         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2284         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2285         'posixcheck' warning.
2286         * m4/fnmatch_h.m4: New file.
2287         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2288         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2289         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2290         as appropriate.
2291         * modules/fnmatch-h: New file.
2292         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2293         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2294         conditions.
2295         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2296         indicator.
2297         (Makefile.am): Remove code that is moved to fnmatch-h.
2298         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2299         REPLACE_FNMATCH.
2300         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2301         * modules/posixcheck (Depends-on): Add fnmatch-h.
2303 2018-08-06  Bruno Haible  <bruno@clisp.org>
2305         Enable more C++ tests.
2306         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2307         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2308         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2309         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2310         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2312 2018-08-06  Bruno Haible  <bruno@clisp.org>
2314         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2315         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2316         getopt.h.
2317         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2319 2018-08-05  Bruno Haible  <bruno@clisp.org>
2321         utime-h: Generate header file when module 'posixcheck' is in use.
2322         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2323         UTIME_H to non-empty.
2325 2018-08-05  Bruno Haible  <bruno@clisp.org>
2327         monetary: Generate header file when module 'posixcheck' is in use.
2328         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2329         use, set MONETARY_H to non-empty.
2331 2018-08-05  Bruno Haible  <bruno@clisp.org>
2333         iconv-h: Generate header file when module 'posixcheck' is in use.
2334         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2335         set ICONV_H to non-empty.
2337 2018-08-05  Bruno Haible  <bruno@clisp.org>
2339         Optimize the "checking whether ... is declared without a macro" checks.
2340         Suggested by Paul Eggert in
2341         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2342         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2343         Gnulib module 'posixcheck' is not in use.
2345 2018-08-05  Bruno Haible  <bruno@clisp.org>
2347         iconv-h: Enable 'posixcheck' warnings.
2348         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2349         iconv_open.
2350         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2352 2018-08-05  Bruno Haible  <bruno@clisp.org>
2354         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2355         * m4/extern-inline.m4: Add more comments.
2356         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2357         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2358         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2360 2018-08-04  Bruno Haible  <bruno@clisp.org>
2362         New module 'posixcheck'.
2363         * modules/posixcheck: New file.
2364         * m4/posixcheck.m4: New file.
2365         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2366         (Which modules?): Reference it.
2368 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2370         dfa: fix memory leak
2371         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2373 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2375         ieee754-h: new module
2376         It looks like Emacs can use this for some NaN processing.
2377         Emacs uses it only on double NaNs so it should be safe.
2378         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2379         * config/srclist.txt: Mention ieee754.h in a comment.
2380         * doc/glibc-headers/ieee754.texi (ieee754.h):
2381         Gnulib now has a substitute that should work
2382         except for long double and for non-IEEE platforms.
2383         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2384         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2386 2018-07-27  Bruno Haible  <bruno@clisp.org>
2388         iswcntrl: Mention minor problem on macOS.
2389         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2391 2018-07-26  Colin Watson  <cjwatson@debian.org>
2393         bootstrap, gnulib-tool: fix translations rsync
2394         Previously, we created files such as $pobase/Makefile.in.in and then the
2395         subsequent rsync would immediately delete them.
2396         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2397         non-.po files in target directory when rsyncing translations.
2398         * gnulib-tool (func_import): Likewise.
2399         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2401 2018-07-25  Jim Meyering  <meyering@fb.com>
2403         bootstrap: reinstate definition fo gnulib_mk.
2404         That variable is used at least by cppi.
2405         * build-aux/bootstrap (gnulib_mk): Restore definition.
2406         This reverts the deletion from v0.1-1844-gc66dba9ba.
2408 2018-07-23  Bruno Haible  <bruno@clisp.org>
2410         doc: For module names, use texinfo markup @code{} or @samp{}.
2411         * doc/alloca.texi: Mark gnulib module names with @code.
2412         * doc/alloca-opt.texi: Likewise.
2413         * doc/quote.texi: Likewise.
2414         * doc/posix-functions/freopen.texi: Likewise.
2415         * doc/posix-functions/open.texi: Likewise.
2416         * doc/posix-functions/readlink.texi: Likewise.
2417         * doc/posix-functions/readlinkat.texi: Likewise.
2418         * doc/posix-functions/stdout.texi: Likewise.
2419         * doc/posix-functions/stderr.texi: Likewise.
2420         * doc/posix-functions/unlink.texi: Likewise.
2421         * doc/posix-functions/unlinkat.texi: Likewise.
2422         * doc/posix-functions/utime.texi: Likewise.
2423         * doc/posix-functions/utimensat.texi: Likewise.
2424         * doc/posix-functions/utimes.texi: Likewise.
2425         * doc/posix-headers/stdint.texi: Likewise.
2426         * doc/glibc-functions/futimesat.texi: Likewise.
2427         * doc/glibc-functions/lutimes.texi: Likewise.
2428         * doc/glibc-functions/memmem.texi: Likewise.
2430 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2432         doc: Avoid some overfull lines in the TeX output.
2433         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2434         @example.
2435         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2436         newline before the long URL.
2437         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2438         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2439         Add line breaks in code snippets.
2441 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2443         hard-locale: simplify by removing hard-locale.m4
2444         * m4/hard-locale.m4: Remove.
2445         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2446         (configure.ac): Do not call gl_HARD_LOCALE.
2448         gnulib-tool: limit line length for git send-email
2449         * gnulib-tool (func_import): Break actioncmd log line
2450         into multiple lines.
2452 2018-07-16  Bruno Haible  <bruno@clisp.org>
2454         ffs: Ensure declaration on mingw.
2455         Reported by Daniel P. Berrangé <berrange@redhat.com>
2456         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2457         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2458         also declared.
2460 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2462         regex-tests: add dependency
2463         * modules/regex-tests (Depends-on): Add gettext-h.
2464         This is needed given the recent changes to regex,
2465         which no longer depends on gettext-h.
2467 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2469         regex: now in sync with glibc
2470         * config/srclist.txt: Gnulib and glibc regex code
2471         are synchronized again.
2473 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2475         renameatu: rename from renameat2
2476         It's looking like Glibc will add a renameat2 function
2477         that is incompatible with Gnulib renameat2; see:
2478         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2479         To help avoid future confusion, rename renameat2 to something else.
2480         Use the name 'renameatu', as the Gnulib function is close to the
2481         Glibc function.  Perhaps someday there will also be a renameat2
2482         Gnulib module, which mimicks the future glibc renameat2, but that
2483         can wait as nobody seems to need such a module now.
2484         * NEWS: Mention this.
2485         * lib/renameatu.c: Rename from lib/renameat2.c.
2486         * lib/renameatu.h: Rename from lib/renameat2.h.
2487         * modules/renameatu: Rename from modules/renameat2.
2488         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2489         All uses of "renameat2" in identifiers or file name
2490         changed to "renameatu", except for two instances in
2491         lib/renameatu.c that deal with the Linux kernel's
2492         renameat2 syscall.
2494 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2496         gnulib-tool: minor tweaks for --gnu-make
2497         * gnulib-tool: Do not allow --gnu-make in test modes,
2498         since they all require automake.
2499         (func_emit_lib_Makefile_am): Don’t emit automake comment
2500         if --gnu-make.
2502         regex: work around conditional-dependencies glitch
2503         * modules/regex (Depends-on): Add langinfo.
2504         Without this change, I had problems building an experimental
2505         version of GNU Emacs.  The symptom of the bug was a message
2506         ‘./configure: line 12726: test: =: unary operator expected’.
2507         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2508         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2509         was unset.  Although gl_FUNC_NL_LANGINFO has
2510         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2511         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2512         --conditional-dependencies sometimes arranges for the
2513         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2514         code.  Since the regex code includes <langinfo.h> it should be
2515         depending on the langinfo module anyway, and this happens to work
2516         around the bug, so install that as a workaround for now.  To
2517         reproduce the original problem, run the following shell script on
2518         the version of Gnulib just before this patch was installed.
2519                 rm -fr foo
2520                 mkdir foo
2521                 cat >foo/configure.ac <<'EOF'
2522                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2523                 gl_EARLY
2524                 gl_INIT
2525                 AC_OUTPUT
2526                 EOF
2527                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2528                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2529                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2530                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2531                 cd foo
2532                 aclocal -I m4
2533                 autoconf
2534                 ./configure --with-included-regex
2536 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2538         wchar: fix bug when checking for ‘inline’
2539         I discovered this when looking into using the regex module
2540         with Emacs.
2541         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2542         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2543         conftest1.c and conftest2.c but these files were not created.
2544         As far as I can see, this check never worked and nobody reported
2545         it until now, which is a bit worrisome.
2547 2018-06-30  Jim Meyering  <meyering@fb.com>
2549         bootstrap: s/--option val/--option=val/
2550         * build-aux/bootstrap (gnulib_tool_options): Change the
2551         spelling of "--option val" pairs to "--option=val", for
2552         aesthetics, and also so that this file no longer triggers
2553         a common help2man syntax-check warning when copied into
2554         projects like grep, gzip, etc.
2556 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2558         manywarnings: omit -Wswitch-default
2559         This should make things more consistent, as we already ignore
2560         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2561         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2562         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2563         Add -Wswitch-default.
2564         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2565         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2566         Remove -Wswitch-default.
2568         regex: revert most trimming
2569         Problems reported by Bruno Haible in:
2570         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2571         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2572         and wctype back in.  lock because regex users shouldn’t
2573         need to know that regex needs locking, and the rest because
2574         gnulib-tool should ordinarily ignore them anyway.
2576 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2578         regex: trim module dependencies
2579         * modules/regex (Depends-on): Remove gettext-h and lock,
2580         since the regex code should work OK without these modules,
2581         and Emacs uses it that way.  Also remove memcmp, memmove,
2582         and wctype, as these modules are obsolete and should not be
2583         needed any more.
2585 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2587         regex: glibc does not use intprops.h
2588         Maybe we can talk glibc into using intprops.h someday, but
2589         now doesn’t seem to be a good time.
2590         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2591         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2592         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2594 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2596         regex: port to recently proposed glibc regex merge
2597         This patch is inspired by Adhemerval Zanella's recent proposal
2598         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2599         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2600         the glibc side, without keeping Gnulib portable.
2601         * lib/regex.h: Fix a problem with glibc installed-header checking,
2602         as follows:
2603         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2604         (_Restrict_arr_): Prefer __restrict_arr if defined,
2605         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2606         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2607         (build_wcs_upper_buffer, build_upper_buffer)
2608         (re_string_translate_buffer, re_string_context_at):
2609         Move decls here from lib/regex_internal.h, for glibc internal tests.
2610         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2611         glibc BZ #18496.
2612         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2613         -Wunused-value.
2614         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2615         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2616         (bitset_mask): Now static inline, and without any __attribute__
2617         ((unused)) decoration, for glibc internal tests.
2619 2018-06-25  Bruno Haible  <bruno@clisp.org>
2621         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2622         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2623         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2625         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2626         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2627         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2628         / -lthread / -lpth does not get optimized away by a preceding
2629         --as-needed option.
2631 2018-06-25  Bruno Haible  <bruno@clisp.org>
2633         Continue to use spaces for indentation, not tabs.
2634         * MODULES.html.sh: Untabify.
2635         * doc/regex.texi: Likewise.
2636         * lib/acl-internal.c: Likewise.
2637         * lib/dfa.c: Likewise.
2638         * lib/exclude.c: Likewise.
2639         * lib/exclude.h: Likewise.
2640         * lib/get-permissions.c: Likewise.
2641         * lib/gettimeofday.c: Likewise.
2642         * lib/parse-datetime.y: Likewise.
2643         * lib/pselect.c: Likewise.
2644         * lib/set-permissions.c: Likewise.
2645         * lib/time.in.h: Likewise.
2646         * m4/canonicalize.m4: Likewise.
2647         * m4/gc.m4: Likewise.
2648         * m4/gnulib-common.m4: Likewise.
2649         * m4/pthread_sigmask.m4: Likewise.
2650         * m4/vararrays.m4: Likewise.
2651         * tests/test-digest.h: Likewise.
2652         * tests/test-fcntl-h.c: Likewise.
2653         * tests/test-timespec.c: Likewise.
2654         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2656 2018-06-25  Bruno Haible  <bruno@clisp.org>
2658         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2659         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2660         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2661         -Wjump-misses-init.
2663 2018-06-25  Jim Meyering  <meyering@fb.com>
2665         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2666         * lib/acl-internal.h (free_permission_context): Remove that
2667         attribute directive.  Otherwise, it would provoke this from GCC 9:
2668         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2669           returning 'void' [-Werror=attributes]
2671 2018-06-24  Jim Meyering  <meyering@fb.com>
2673         parse-datetime: accommodate gcc-4.8.5
2674         Bruno Haible reported the build failure in
2675         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2676         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2677         on declaration of new local.
2679 2018-06-24  Bruno Haible  <bruno@clisp.org>
2681         af_alg: Fail in continuable manner on Linux/powerpc64le.
2682         Reported by Assaf Gordon <assafgordon@gmail.com>
2683         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2684         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2685         byte send() as the first round.
2687 2018-06-24  Bruno Haible  <bruno@clisp.org>
2689         af_alg: Fix state of stream after sendfile() succeeds.
2690         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2691         the stream is correctly positioned afterwards.
2692         * modules/crypto/af_alg (Depends-on): Add fflush.
2693         * tests/test-digest.h (test_digest_on_files): Verify that after the
2694         operation the stream is positioned at end of file.
2696 2018-06-24  Jim Meyering  <meyering@fb.com>
2698         canon-host: take GCC9's advice rather than ignoring warning
2699         Pádraig Brady suggested not to ignore this GCC9 advice.
2700         * lib/canon-host.c: Undo preceding change.
2701         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2703         parse-datetime.y: avoid spurious GCC 9 warning
2704         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2705         a function local prior to the first "goto fail".  The prior use would
2706         evoke this:
2707         parse-datetime.y: In function 'parse_datetime2':
2708         parse-datetime.y:1791:19: error: jump skips variable initialization \
2709           [-Werror=jump-misses-init]
2710         parse-datetime.y:2385:2: note: label 'fail' defined here
2711         parse-datetime.y:188:43: note: '({anonymous})' declared here
2712         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2714         canon-host.c: avoid spurious GCC 9 warning
2715         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2717         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2718         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2719         * m4/manywarnings.m4: Remove them.
2720         Otherwise, building coreutils, I would see this:
2721         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2722         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2723         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2724           which is also used by default
2725         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2727 2018-06-24  Bruno Haible  <bruno@clisp.org>
2729         af_alg tests: Add another test.
2730         * tests/test-digest.h (test_digest_on_files): Also check a large file
2731         with a skipped header.
2732         * tests/test-md5.c: Include macros.h.
2733         * tests/test-sha1.c: Likewise.
2734         * tests/test-sha256.c: Likewise.
2735         * tests/test-sha512.c: Likewise.
2736         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2737         * modules/crypto/sha1-tests (Files): Likewise.
2738         * modules/crypto/sha256-tests (Files): Likewise.
2739         * modules/crypto/sha512-tests (Files): Likewise.
2741 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2743         maint: clarify comments about sticky EOF
2744         * lib/af_alg.c: Be more direct that we can't
2745         assume stickiness of EOF for portability reasons.
2746         * lib/md5.c: Clarify that this isn't just a glibc issue.
2747         * lib/sha1.c: Likewise.
2748         * lib/sha256.c: Likewise.
2749         * lib/sha512.c: Likewise.
2751 2018-06-24  Bruno Haible  <bruno@clisp.org>
2753         af_alg: Comment and style improvements.
2754         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2755         (afalg_buffer, afalg_stream): Improve comments.
2757 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2759         af_alg: disable kernel hash functions by default
2760         All the kernel routines were seen to be significantly slower
2761         with these relatively recent components on an i3-2310M system:
2762           kernel-4.10.6-200.fc25.x86_64
2763           openssl-1.0.2m-1.fc25.x86_64
2764         sha1 was nearly twice as slow in the kernel for example.
2765         Further considerations why this should not be the default, at:
2766         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2768         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2769         * m4/gl-openssl.m4: Tweak accordingly.
2771 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2773         af_alg: avoid hangs when reading from streams
2774         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2775         and thus avoid doing a fread() when feof() is set.
2776         * lib/md5.c: Ensure feof() is called before fread().
2777         * lib/sha1.c: Likewise.
2778         * lib/sha256.c: Likewise.
2779         * lib/sha512.c: Likewise.
2781 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2783         af_alg: fix error handling when hash not returned
2784         * lib/af_alg.c (afalg_stream): Handle the case where we've
2785         successfully written data to the kernel in the read/write loop,
2786         but the kernel doesn't respond with the hash.
2788 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2790         libc-config: merge from glibc
2791         * lib/cdefs.h (__inline, __restrict):
2792         Copy from current glibc.  This fixes glibc bug 17721,
2793         which Gnulib had already fixed in a different way.
2794         (__nonnull): Lessen the distance from glibc by using the
2795         glibc definition inside an ‘#ifndef __nonnull’.
2796         (__attribute_nonstring__): New macro, copied from
2797         current glibc.
2798         * lib/libc-config.h (__attribute_nonstring__): New undef.
2799         (__restrict): Remove; workaround no longer needed.
2800         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2801         support more compilers than the glibc __inline can.
2803 2018-06-24  Bruno Haible  <bruno@clisp.org>
2805         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2806         * lib/mbrtowc.c (enc_t): New enum type.
2807         (locale_enc, locale_enc_cached): New functions.
2808         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2809         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2810         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2811         instead.
2812         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2813         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2814         * modules/wcwidth (configure.ac): Invoke it.
2816 2018-06-24  Bruno Haible  <bruno@clisp.org>
2818         wchar-single: Fix test failure in wcwidth tests.
2819         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2820         skip the tests in the C locale.
2822 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2824         crypto: mention --without-linux-crypto in --with-openssl --help
2825         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2826         routines take precedence in --with-openssl help output.
2828 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2830         wchar-single: a new module to enable optimizations in wchar replacements
2831         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2832         GNULIB_WCHAR_SINGLE is enabled.
2833         * lib/wcwidth.c (wcwidth): Likewise.
2835 2018-06-23  Bruno Haible  <bruno@clisp.org>
2837         libc-config: Fix conflict with FreeBSD include files.
2838         * lib/cdefs.h (__nonnull): Remove definition.
2839         * lib/libc-config.h (__nonnull): Remove undefinition.
2841 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2843         random_r: do not crash if state is unaligned
2844         Problem reported by Bruce Korb in:
2845         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2846         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2847         with 'cc -O2 -xmemalign=8s'.
2848         * lib/random_r.c: Include string.h, for memcpy.
2849         (get_int32, set_int32): New functions.
2850         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2851         Use them to avoid assumption that state pointer is aligned.
2852         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2853         * tests/test-random_r.c (test_failed): New function.
2854         (main): Use it, to test for alignment bugs.
2856         random_r: omit unnecessary include
2857         * lib/random_r.c: Do not include limits.h.
2859         random, random_r: merge from glibc
2860         * lib/random.c, lib/random_r.c:
2861         Include libc-config.h if !_LIBC, not config.h unilaterally.
2862         * lib/random.c:
2863         Do not include stdint.h or time.h; not needed.
2864         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2865         (unsafe_state): Rename from generator.  All uses changed.
2866         Use C99-style initializers.
2867         (__random, __srandom, __initstate, __setstate): Rename from
2868         non-underscored version, but define it to non-underscored version
2869         on Gnulib.  Add a lock.
2870         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2871         Likewise.
2872         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2873         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2874         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2875         (__random_r): Use uint32 to fix glibc bug 17343.
2876         * modules/random, modules/random_r (Depends-on): Add libc-config.
2877         Depend on stdint only if $HAVE_RANDOM = 0.
2879 2018-06-19  Jim Meyering  <meyering@fb.com>
2881         README-release: also run any check-very-expensive tests
2882         * top/README-release: Adjust instructions so they run the
2883         check-very-expensive tests when there is such a target.
2885 2018-06-18  Bruno Haible  <bruno@clisp.org>
2887         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2888         * m4/pthread_rwlock_rdlock.m4: Add comment.
2889         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2890         are reader-preferring in glibc.
2891         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2892         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2894 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2896         crypto: use byteswap
2897         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2898         * lib/sm3.c: Include <byteswap.h>.
2899         (SWAP): Use its macros rather than reinventing the wheel.
2900         * modules/crypto/md4, modules/crypto/md5-buffer:
2901         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
2902         * modules/crypto/sha512-buffer, modules/crypto/sm3:
2903         (Depends-on): Add byteswap.
2905 2018-06-17  Pádraig Brady  <P@draigBrady.com>
2907         gendocs.sh: fix support for legacy --texi2html
2908         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
2909         to the default makeinfo invocation.
2910         Reported by Bruce Korb
2912 2018-06-17  Bruno Haible  <bruno@clisp.org>
2914         gettext po infrastructure: Update from current gettext git.
2915         Reported by Akim Demaille <akim@lrde.epita.fr>.
2916         * build-aux/po/Makefile.in.in: Update from current gettext git.
2917         * build-aux/po/remove-potcdate.sin: Likewise.
2918         * config/srclist.txt: Temporarily disable sync for these files.
2920 2018-06-17  Bruno Haible  <bruno@clisp.org>
2922         getloadavg: Return 0 on Windows without Cygwin.
2923         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
2925 2018-06-17  Paul Smith  <psmith@gnu.org>
2927         getloadavg: Allow building on Windows without Cygwin
2928         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
2929         * m4/getloadavg.m4: Check for unistd.h.
2931 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2933         Port crypto/af_alg to GCC 4.8.4
2934         Problem reported by Peter Simons in:
2935         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
2936         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
2938 2018-05-27  Colin Watson  <cjwatson@debian.org>
2940         bootstrap: document source fetching in --help
2941         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
2943 2018-04-09  Colin Watson  <cjwatson@debian.org>
2945         bootstrap: allow non-submodule control of gnulib
2946         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
2947         bootstrap.conf when fetching gnulib using "git clone" or via
2948         GNULIB_SRCDIR.
2950 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2952         crypto: omit stream ops Emacs doesn’t need
2953         * lib/md5.c (md5_stream):
2954         * lib/sha1.c (sha1_stream):
2955         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
2956         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2957         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
2958         defined.  Emacs needs this, as it does not use the stream
2959         operations and doesn’t need all the af_alg stuff we’ve recently
2960         added.  Perhaps a similar change is needed to the other crypto
2961         modules, but this patch changes only those needed for Emacs.
2962         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
2963         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
2964         New modules, used by Emacs.
2965         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2966         * modules/crypto/sha512: Rewrite to depend on the new modules.
2968 2018-05-20  Pádraig Brady  <P@draigBrady.com>
2970         fts: avoid a memory leak edge case
2971         * lib/fts.c (fts_open): Set an appropriate fts_level
2972         so that an immediate fts_close() will free the allocation.
2973         * tests/test-fts.c (fts_dealloc): Add a test case which
2974         will trigger under valgrind or address sanitizer.
2975         Fixes https://bugs.gnu.org/31439
2977 2018-05-20  Bruno Haible  <bruno@clisp.org>
2979         wcwidth tests: Fix link error.
2980         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
2981         $(LIBUNISTRING).
2983 2018-05-20  Bruno Haible  <bruno@clisp.org>
2985         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
2986         * modules/regex (Files): Add m4/glibc21.m4.
2988 2018-05-20  Bruno Haible  <bruno@clisp.org>
2990         localcharset: Optimize.
2991         * lib/localcharset.c (alias_table): Comment out no-op mappings for
2992         platforms where these don't matter. This reduces the table size,
2993         which in turn reduces the lookup time.
2995 2018-05-19  Bruno Haible  <bruno@clisp.org>
2997         localcharset: Map the locale encodings found in newer OSes.
2998         * lib/localcharset.c (alias_table): Add mapping for locale encodings
2999         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3000         IRIX 6.5, Minix 3.3.
3001         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3003 2018-05-19  Bruno Haible  <bruno@clisp.org>
3005         localcharset: Move mapping tables into the code. Use a binary search.
3006         * lib/localcharset.h: Document the GNU canonical names for character
3007         encodings here.
3008         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3009         relocatable.h, configmake.h.
3010         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3011         macros.
3012         (charset_aliases): Remove variable.
3013         (get_charset_aliases): Remove function.
3014         (struct table_entry): New type.
3015         (alias_table, locale_table): New constants.
3016         (locale_charset): Use the alias_table or locale_table to get the
3017         canonicalized encoding name.
3018         * lib/config.charset: Remove file.
3019         * lib/ref-add.sin: Remove file.
3020         * lib/ref-del.sin: Remove file.
3021         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3022         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3023         * modules/localcharset (Notice): Remove.
3024         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3025         glibc21.m4.
3026         (Depends-on): Remove configmake.
3027         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3028         (Makefile.am): Simplify.
3029         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3031 2018-05-19  Bruno Haible  <bruno@clisp.org>
3033         localcharset: Add a manual test.
3034         * tests/test-localcharset.c: New file.
3035         * modules/localcharset-tests: New file.
3037 2018-05-19  Bruno Haible  <bruno@clisp.org>
3039         localcharset: Remove support for obsolete platforms.
3040         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3041         Mac OS X 10.2. Comment out dubious entry for Solaris.
3043 2018-05-19  Jim Meyering  <meyering@fb.com>
3045         gnupload: adjust comment
3046         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3047         more likely we'll remove the just-added code in a year or two.
3049 2018-05-19  Bruno Haible  <bruno@clisp.org>
3051         gnupload: Fix "gpg-agent is not available in this session" error.
3052         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3054 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3056         crypto/af_alg: fix --help
3057         * m4/af_alg.m4: Avoid spurious newline in --help output.
3059 2018-05-13  Bruno Haible  <bruno@clisp.org>
3061         nl_langinfo: Fix compilation error on Android.
3062         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3063         INT_CURR_SYMBOL, etc. only if these items are defined.
3065 2018-05-13  Bruno Haible  <bruno@clisp.org>
3067         truncate: Fix compilation error on Android.
3068         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3069         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3070         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3071         HAVE_TRUNCATE.
3072         * modules/truncate: Likewise.
3073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3074         not HAVE_TRUNCATE.
3075         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3076         HAVE_TRUNCATE.
3077         * doc/posix-functions/truncate.texi: Mention the issue.
3079 2018-05-13  Bruno Haible  <bruno@clisp.org>
3081         pthread: Fix compilation error on Android.
3082         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3083         recursive inclusion of this file.
3085 2018-05-13  Bruno Haible  <bruno@clisp.org>
3087         posix_spawn: Fix compilation error on Android.
3088         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3089         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3090         (posix_spawn_file_actions_t): Consider also the case
3091         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3093 2018-05-13  Bruno Haible  <bruno@clisp.org>
3095         tsearch: Move from K&R C to ANSI C.
3096         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3098 2018-05-13  Bruno Haible  <bruno@clisp.org>
3100         tsearch: Fix compilation error on Android.
3101         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3102         is 0.
3103         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3104         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3105         GNULIB_defined_tsearch is true.
3106         (twalk): Define only if GNULIB_defined_twalk is true.
3107         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3108         is 0.
3109         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3110         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3111         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3113 2018-05-13  Bruno Haible  <bruno@clisp.org>
3115         imaxdiv: Fix compilation error on Android.
3116         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3117         is not defined.
3118         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3119         HAVE_DECL_IMAXDIV, is 0.
3120         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3121         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3123 2018-05-13  Bruno Haible  <bruno@clisp.org>
3125         Support selective inclusion mechanism of recent mingw.org header files.
3126         Reported by Eli Zaretskii <eliz@gnu.org>.
3127         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3128         __need_ssize_t, or __need_time_t is defined, just include the system's
3129         <sys/types.h>.
3130         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3131         include the system's <locale.h>.
3133 2018-05-13  Bruno Haible  <bruno@clisp.org>
3135         Avoid compilation error due to 'mmap' on Android.
3136         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3137         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3138         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3139         Undefine on Android.
3141 2018-05-13  Bruno Haible  <bruno@clisp.org>
3143         Add cross-compilation guesses for Linux systems without glibc.
3144         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3146         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3147         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3148         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3149         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3150         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3151         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3152         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3153         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3154         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3155         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3156         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3157         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3159         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3160         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3161         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3163 2018-05-13  Bruno Haible  <bruno@clisp.org>
3165         getpagesize: Fix compilation error on Android.
3166         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3167         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3168         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3169         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3170         HAVE_GETPAGESIZE accordingly.
3171         * modules/getcwd (Files): Add m4/getpagesize.m4.
3173 2018-05-13  Bruno Haible  <bruno@clisp.org>
3175         tcgetsid: Fix compilation error on Android.
3176         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3177         AC_CHECK_FUNC.
3179 2018-05-13  Bruno Haible  <bruno@clisp.org>
3181         getpass: Fix configure test for Android.
3182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3183         AC_CHECK_FUNC.
3185 2018-05-13  Bruno Haible  <bruno@clisp.org>
3187         ffs: Fix compilation error on Android.
3188         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3190 2018-05-13  Bruno Haible  <bruno@clisp.org>
3192         mkfifo: Fix compilation error on Android.
3193         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3194         AC_CHECK_FUNC.
3196 2018-05-13  Bruno Haible  <bruno@clisp.org>
3198         c-strtod: Fix configure test for Android.
3199         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3200         AC_CHECK_FUNC.
3202 2018-05-13  Bruno Haible  <bruno@clisp.org>
3204         random: Fix compilation error on Android.
3205         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3206         AC_CHECK_FUNC.
3208 2018-05-13  Bruno Haible  <bruno@clisp.org>
3210         grantpt: Fix compilation error on Android.
3211         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3212         AC_CHECK_FUNC.
3214 2018-05-13  Bruno Haible  <bruno@clisp.org>
3216         stdioext: Fix compilation errors with newer Android headers.
3217         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3218         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3219         fallbacks for Android.
3220         * lib/fpending.c: Update comments.
3221         * lib/fpurge.c: Likewise.
3222         * lib/freadable.h: Likewise.
3223         * lib/freadable.c: Likewise.
3224         * lib/freadahead.c: Likewise.
3225         * lib/freading.h: Likewise.
3226         * lib/freadptr.c: Likewise.
3227         * lib/fseterr.c: Likewise.
3228         * lib/fwritable.h: Likewise.
3229         * lib/fwritable.c: Likewise.
3230         * lib/fwriting.h: Likewise.
3231         * lib/fwriting.c: Likewise.
3233 2018-05-13  Bruno Haible  <bruno@clisp.org>
3235         doc: Add info about Android versions 2.0 to 8.1.
3236         * doc/**/*.texi: Add info about functions in all released versions of
3237         Bionic.
3239 2018-05-12  Bruno Haible  <bruno@clisp.org>
3241         fseeko: On mingw, don't use the hidden function _fseeki64.
3242         Reported by Eli Zaretskii <eliz@gnu.org>.
3243         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3244         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3246 2018-05-12  Bruno Haible  <bruno@clisp.org>
3248         glob: Choose 'dirent_type' in a way that works better on mingw.
3249         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3250         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3252 2018-05-12  Bruno Haible  <bruno@clisp.org>
3254         execute, spawn-pipe: Avoid warning about redefining 'close'.
3255         Reported by Eli Zaretskii <eliz@gnu.org>.
3256         * lib/execute.c: Undefine 'close' before redefining it.
3257         * lib/spawn-pipe.c: Likewise.
3259 2018-05-12  Bruno Haible  <bruno@clisp.org>
3261         nanosleep: Avoid test failure on mingw when it has nanosleep.
3262         Reported by Eli Zaretskii <eliz@gnu.org>.
3263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3264         If it does not exist, use a simpler test program that does not call
3265         alarm().
3267 2018-05-10  Bruno Haible  <bruno@clisp.org>
3269         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3270         Reported by Devin Hussey <husseydevin@gmail.com>.
3271         Based on a patch by Paul Eggert.
3272         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3273         as witness of libpthread.
3274         * lib/glthread/cond.h (pthread_in_use): Likewise.
3275         * lib/glthread/thread.h (pthread_in_use): Likewise.
3276         * lib/glthread/tls.h (pthread_in_use): Likewise.
3278 2018-05-10  Bruno Haible  <bruno@clisp.org>
3280         cond tests: Fix compilation error on Solaris.
3281         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3282         macro.
3284 2018-05-10  Bruno Haible  <bruno@clisp.org>
3286         doc: Add partial info about Android 4.3.
3287         * doc/*-functions/*.texi: Add info about functions that were added
3288         to Bionic between Android 4.3 and Android 9.0.
3290 2018-05-10  Bruno Haible  <bruno@clisp.org>
3292         doc: Add info about Android 9.0.
3293         * doc/**/*.texi: Add info about functions and headers in Bionic from
3294         Android 9.0.
3296 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3298         af_alg: fix my typo in afalg_buffer
3299         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3300         (afalg_stream): Simplify and avoid the need for a runtime test
3301         at the end.
3303         af_alg: recover better from crypto failures
3304         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3305         input stream is seekable, by repositioning the stream back to
3306         where it was, possibly by just calling sendfile with an offset
3307         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3308         cases, which lets our callers try again with user-mode code.
3309         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3310         instead of on fflush and lseek.
3312         af_alg: distiguish I/O errors better
3313         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3314         not -EIO, if it’s OK for the caller to try again with user-mode code.
3315         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3316         some other error number) if fflush fails, as the caller should not
3317         try again that case.
3319         af_alg: avoid gotos
3320         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3321         gotos, as they were a source of unreliability and made the code a
3322         bit harder to follow.
3324         af_alg: don’t leak file descriptors into children
3325         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3326         This code should be compiled only on recent GNU/Linux platforms
3327         so we shouldn’t have to also depend on the accept4 module.
3329         af_alg: coalesce socket creation
3330         * lib/af_alg.c (alg_socket): New function.
3331         (afalg_buffer, afalg_stream): Use it.  This avoids some
3332         code duplication and gotos.
3334         af_alg: fix file descriptor leak
3335         * lib/af_alg.c (afalg_stream): Close leak.
3337         af_alg: Pacify --enable-gcc-warnings on GCC 8
3338         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3339         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3341 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3343         af_alg: Pacify --enable-gcc-warnings
3344         Problem reported by Assaf Gordon in:
3345         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3346         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3347         gcc -Wjump-misses-init.
3348         * lib/sha512.c (shaxxx_stream): Now static.
3350 2018-05-06  Bruno Haible  <bruno@clisp.org>
3352         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3353         * lib/af_alg.h (afalg_buffer): New declaration.
3354         * lib/af_alg.c (afalg_buffer): New function.
3356 2018-05-06  Bruno Haible  <bruno@clisp.org>
3358         af_alg: Avoid warnings.
3359         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3360         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3362 2018-05-06  Bruno Haible  <bruno@clisp.org>
3364         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3365         * tests/bench-digest.h: New file.
3366         * tests/bench-md5.c: New file.
3367         * tests/bench-sha1.c: New file.
3368         * tests/bench-sha224.c: New file.
3369         * tests/bench-sha256.c: New file.
3370         * tests/bench-sha384.c: New file.
3371         * tests/bench-sha512.c: New file.
3372         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3373         tests/bench-digest.h.
3374         (Depends-on): Add getrusage, gettimeofday.
3375         (Makefile.am): Add variables to build bench-md5.
3376         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3377         tests/bench-digest.h.
3378         (Depends-on): Add getrusage, gettimeofday.
3379         (Makefile.am): Add variables to build bench-sha1.
3380         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3381         tests/bench-sha256.c, tests/bench-digest.h.
3382         (Depends-on): Add getrusage, gettimeofday.
3383         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3384         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3385         tests/bench-sha512.c, tests/bench-digest.h.
3386         (Depends-on): Add getrusage, gettimeofday.
3387         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3389 2018-05-06  Bruno Haible  <bruno@clisp.org>
3391         af_alg: Fix a resource leak.
3392         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3393         New local variable 'result'.
3395 2018-05-06  Bruno Haible  <bruno@clisp.org>
3397         af_alg: Fix bug with streams that are not at position 0.
3398         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3399         assume that the stream is positioned at position 0.
3400         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3401         of the stream.
3402         * lib/md5.h (md5_stream): Likewise.
3403         * lib/sha1.h (sha1_stream): Likewise.
3404         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3405         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3406         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3408         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3409         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3410         stream that is not positioned at the beginning.
3412 2018-05-06  Bruno Haible  <bruno@clisp.org>
3414         af_alg: Add configure option to enable/disable use of Linux crypto API.
3415         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3416         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3417         USE_LINUX_CRYPTO_API.
3418         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3419         * lib/af_alg.c: Likewise.
3421 2018-05-06  Bruno Haible  <bruno@clisp.org>
3423         Followup to 'af_alg: New module.'.
3424         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3425         * modules/crypto/sha1 (Depends-on): Likewise.
3426         * modules/crypto/sha256 (Depends-on): Likewise.
3427         * modules/crypto/sha512 (Depends-on): Likewise.
3429 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3431         crypto/{md5,sha1,sha256,sha512}: simplify
3432         * lib/md5.c (md5_stream):
3433         * lib/sha1.c (sha1_stream):
3434         * lib/sha256.c (shaxxx_stream):
3435         Simplify, partly by assuming C99.
3436         * lib/sha256.c (shaxxx_stream):
3437         New function, which implements both sha256 and sha224.
3438         Simplify, partly by assuming C99.
3439         (sha256_stream, sha224_stream):
3440         Use it to avoid code duplication, removing a FIXME.
3441         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3442         Likewise.
3444         af_alg: Improve comments.
3445         * lib/af_alg.h: Use imperatives and tighten up wording.
3447 2018-05-05  Bruno Haible  <bruno@clisp.org>
3449         af_alg: Improve comments.
3450         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3452 2018-05-05  Bruno Haible  <bruno@clisp.org>
3454         af_alg: New module.
3455         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3456         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3457         * lib/md5.c: Include "af_alg.h" unconditionally.
3458         (md5_stream): Invoke afalg_stream unconditionally.
3459         * lib/sha1.c: Include "af_alg.h" unconditionally.
3460         (sha1_stream): Invoke afalg_stream unconditionally.
3461         * lib/sha256.c: Include "af_alg.h" unconditionally.
3462         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3463         * lib/sha512.c: Include "af_alg.h" unconditionally.
3464         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3465         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3466         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3467         * modules/crypto/af_alg: New file.
3468         * modules/crypto/md5 (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/sha1 (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.
3478         * modules/crypto/sha256 (Files): Remove files that are now in the
3479         'crypto/af_alg' module.
3480         (Depends-on): Add crypto/af_alg.
3481         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3482         (Makefile.am): Don't mention af_alg.c here.
3483         * modules/crypto/sha512 (Files): Remove files that are now in the
3484         'crypto/af_alg' module.
3485         (Depends-on): Add crypto/af_alg.
3486         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3487         (Makefile.am): Don't mention af_alg.c here.
3489 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3491         crypto tests: pacify GCC
3492         * tests/test-digest.h (test_digest_on_files):
3493         Don’t assume digest size fits in int (!).
3495         af_alg: minor style improvements
3496         * lib/af_alg.c (afalg_stream): Prefer C99 style
3497         decl-after-statement, since we’re already assuming C99.  Clarify
3498         by strengthening the bind test and omit unnecessary assignment.
3500 2018-05-05  Bruno Haible  <bruno@clisp.org>
3502         af_alg: Fix bug on empty files.
3503         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3504         stream is empty.
3506 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3508         sys-limits.h: new file for crypto and safe I/O
3509         * lib/af_alg.c: Include sys-limits.h.
3510         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3511         (afalg_stream): Also reject negative sizes for sendfile; they
3512         should not happen and the code is a bit cleaner and faster this way.
3513         * lib/safe-read.c: Include sys-limits.h.
3514         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3515         * lib/sys-limits.h: New file, with values and commentary derived
3516         from the old safe-read.c and from GNU Emacs sysdep.c.
3517         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3518         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3519         Add lib/sys-limits.h to Files section.
3521 2018-05-05  Bruno Haible  <bruno@clisp.org>
3523         af_alg: Improve function signature.
3524         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3525         * lib/af_alg.c (afalg_stream): Likewise.
3526         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3528 2018-05-05  Bruno Haible  <bruno@clisp.org>
3530         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3531         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3532         * modules/crypto/sha1 (Depends-on): Likewise.
3533         * modules/crypto/sha256 (Depends-on): Likewise.
3534         * modules/crypto/sha512 (Depends-on): Likewise.
3536 2018-05-05  Bruno Haible  <bruno@clisp.org>
3538         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3539         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3540         * modules/crypto/sha1 (Depends-on): Likewise.
3541         * modules/crypto/sha256 (Depends-on): Likewise.
3542         * modules/crypto/sha512 (Depends-on): Likewise.
3544 2018-05-05  Bruno Haible  <bruno@clisp.org>
3546         af_alg: Add documentation.
3547         * lib/af_alg.h: Add comments.
3549 2018-05-05  Bruno Haible  <bruno@clisp.org>
3551         sha512: Add tests.
3552         * tests/test-sha512.c: New file.
3553         * modules/crypto/sha512-tests: New file.
3555 2018-05-05  Bruno Haible  <bruno@clisp.org>
3557         sha256: Add tests.
3558         * tests/test-sha256.c: New file.
3559         * modules/crypto/sha256-tests: New file.
3561 2018-05-05  Bruno Haible  <bruno@clisp.org>
3563         sha1 tests: Add test for sha1_stream.
3564         * tests/test-sha1.c: Include test-digest.h.
3565         (main): Invoke test_digest_on_files on 'sha1_stream'.
3566         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3568 2018-05-05  Bruno Haible  <bruno@clisp.org>
3570         md5 tests: Add test for md5_stream.
3571         * tests/test-digest.h: New file.
3572         * tests/test-md5.c: Include test-digest.h.
3573         (main): Invoke test_digest_on_files on 'md5_stream'.
3574         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3576 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3578         md5sum: Use AF_ALG when available.
3579         * lib/md5.c: Include af_alg.h.
3580         (md5_stream): Use afalg_stream when available.
3581         * modules/crypto/md5 (Files): Add the af_alg files.
3582         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3583         (Makefile.am): Add af_alg.c.
3585 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3587         sha512sum: Use AF_ALG when available.
3588         * lib/sha512.c: Include af_alg.h.
3589         (sha512_stream, sha384_stream): Use afalg_stream when available.
3590         * modules/crypto/sha512 (Files): Add the af_alg files.
3591         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3592         (Makefile.am): Add af_alg.c.
3594 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3596         sha256sum: Use AF_ALG when available.
3597         * lib/sha256.c: Include af_alg.h.
3598         (sha256_stream, sha224_stream): Use afalg_stream when available.
3599         * modules/crypto/sha256 (Files): Add the af_alg files.
3600         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3601         (Makefile.am): Add af_alg.c.
3603 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3605         sha1sum: Use AF_ALG when available.
3606         * lib/af_alg.h: New file.
3607         * lib/af_alg.c: New file.
3608         * lib/sha1.c: Include af_alg.h.
3609         (sha1_stream): Use afalg_stream when available.
3610         * m4/linux-if-alg.m4: New file.
3611         * modules/crypto/sha1 (Files): Add the new files.
3612         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3613         (Makefile.am): Add af_alg.c.
3615 2018-05-05  Bruno Haible  <bruno@clisp.org>
3617         all: Replace more http URLs by https URLs.
3618         * lib/localename.c: Use https: URL.
3619         * lib/timespec.h: Likewise.
3621 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3623         maint: port more modules to GCC 8
3624         * lib/dirname.h (base_name):
3625         * lib/exclude.h (new_exclude):
3626         * lib/xstrndup.h (xstrndup):
3627         Add malloc attribute.
3628         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3629         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3630         This pacifies GCC 8.
3631         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3632         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3634 2018-05-03  Bruno Haible  <bruno@clisp.org>
3636         Simplify code. Drop support for Borland C++ on Windows.
3637         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3638         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3639         'defined _WIN32'.
3640         * lib/canonicalize-lgpl.c: Likewise.
3641         * lib/classpath.c: Likewise.
3642         * lib/clean-temp.c: Likewise.
3643         * lib/csharpexec.c: Likewise.
3644         * lib/ctime.c: Likewise.
3645         * lib/dosname.h: Likewise.
3646         * lib/dup2.c: Likewise.
3647         * lib/errno.in.h: Likewise.
3648         * lib/error.c: Likewise.
3649         * lib/euidaccess.c: Likewise.
3650         * lib/execute.c: Likewise.
3651         * lib/fcntl.in.h: Likewise.
3652         * lib/fcntl.c: Likewise.
3653         * lib/filename.h: Likewise.
3654         * lib/findprog.c: Likewise.
3655         * lib/flock.c: Likewise.
3656         * lib/fopen.c: Likewise.
3657         * lib/freopen.c: Likewise.
3658         * lib/fstat.c: Likewise.
3659         * lib/fsync.c: Likewise.
3660         * lib/gc-gnulib.c: Likewise.
3661         * lib/get-rusage-data.c: Likewise.
3662         * lib/getaddrinfo.c: Likewise.
3663         * lib/getdelim.c: Likewise.
3664         * lib/getdtablesize.c: Likewise.
3665         * lib/gethostname.c: Likewise.
3666         * lib/getlogin.c: Likewise.
3667         * lib/getlogin_r.c: Likewise.
3668         * lib/getopt.c: Likewise.
3669         * lib/getpagesize.c: Likewise.
3670         * lib/getpass.c: Likewise.
3671         * lib/getrusage.c: Likewise.
3672         * lib/gettimeofday.c: Likewise.
3673         * lib/glob.c: Likewise.
3674         * lib/inttypes.in.h: Likewise.
3675         * lib/isapipe.c: Likewise.
3676         * lib/javaexec.c: Likewise.
3677         * lib/link.c: Likewise.
3678         * lib/localcharset.c: Likewise.
3679         * lib/localename.h: Likewise.
3680         * lib/localename.c: Likewise.
3681         * lib/localtime.c: Likewise.
3682         * lib/lseek.c: Likewise.
3683         * lib/mbsinit.c: Likewise.
3684         * lib/mkdir.c: Likewise.
3685         * lib/msvc-nothrow.h: Likewise.
3686         * lib/nanosleep.c: Likewise.
3687         * lib/nl_langinfo.c: Likewise.
3688         * lib/nonblocking.c: Likewise.
3689         * lib/nproc.c: Likewise.
3690         * lib/open.c: Likewise.
3691         * lib/openpty.c: Likewise.
3692         * lib/pathmax.h: Likewise.
3693         * lib/pipe-filter-aux.c: Likewise.
3694         * lib/pipe-filter-gi.c: Likewise.
3695         * lib/pipe-filter-ii.c: Likewise.
3696         * lib/pipe.c: Likewise.
3697         * lib/pipe2.c: Likewise.
3698         * lib/poll.c: Likewise.
3699         * lib/popen.c: Likewise.
3700         * lib/posix_openpt.c: Likewise.
3701         * lib/printf-parse.c: Likewise.
3702         * lib/progreloc.c: Likewise.
3703         * lib/putenv.c: Likewise.
3704         * lib/read.c: Likewise.
3705         * lib/relocatable.c: Likewise.
3706         * lib/rename.c: Likewise.
3707         * lib/same-inode.h: Likewise.
3708         * lib/secure_getenv.c: Likewise.
3709         * lib/select.c: Likewise.
3710         * lib/sethostname.c: Likewise.
3711         * lib/setlocale.c: Likewise.
3712         * lib/sigaction.c: Likewise.
3713         * lib/sigprocmask.c: Likewise.
3714         * lib/sleep.c: Likewise.
3715         * lib/spawn-pipe.h: Likewise.
3716         * lib/spawn-pipe.c: Likewise.
3717         * lib/spawni.c: Likewise.
3718         * lib/stat-time.h: Likewise.
3719         * lib/stat-w32.c: Likewise.
3720         * lib/stat.c: Likewise.
3721         * lib/stdio.in.h: Likewise.
3722         * lib/stdio-impl.h: Likewise.
3723         * lib/stdio-read.c: Likewise.
3724         * lib/stdio-write.c: Likewise.
3725         * lib/stdlib.in.h: Likewise.
3726         * lib/strerror_r.c: Likewise.
3727         * lib/strftime-fixes.c: Likewise.
3728         * lib/sys_stat.in.h: Likewise.
3729         * lib/sys_types.in.h: Likewise.
3730         * lib/sys_wait.in.h : Likewise.
3731         * lib/system-quote.h: Likewise.
3732         * lib/system-quote.c: Likewise.
3733         * lib/tmpdir.c: Likewise.
3734         * lib/tzset.c: Likewise.
3735         * lib/uname.c: Likewise.
3736         * lib/unistd.in.h: Likewise.
3737         * lib/utime.in.h: Likewise.
3738         * lib/utime.c: Likewise.
3739         * lib/utimecmp.c: Likewise.
3740         * lib/utimens.c: Likewise.
3741         * lib/vasnprintf.c: Likewise.
3742         * lib/vma-iter.h: Likewise.
3743         * lib/vma-iter.c: Likewise.
3744         * lib/wait-process.c: Likewise.
3745         * lib/wcsftime.c: Likewise.
3746         * lib/wctype.in.h: Likewise.
3747         * lib/write.c: Likewise.
3748         * tests/nap.h: Likewise.
3749         * tests/test-cloexec.c: Likewise.
3750         * tests/test-dup-safer.c: Likewise.
3751         * tests/test-dup2.c: Likewise.
3752         * tests/test-dup3.c: Likewise.
3753         * tests/test-fcntl.c: Likewise.
3754         * tests/test-get-rusage-data.c: Likewise.
3755         * tests/test-getaddrinfo.c: Likewise.
3756         * tests/test-getlogin.h: Likewise.
3757         * tests/test-isatty.c: Likewise.
3758         * tests/test-localename.c: Likewise.
3759         * tests/test-mbrtowc-w32.c: Likewise.
3760         * tests/test-nonblocking.c: Likewise.
3761         * tests/test-nonblocking-pipe-main.c: Likewise.
3762         * tests/test-nonblocking-socket-main.c: Likewise.
3763         * tests/test-nonblocking-socket.h: Likewise.
3764         * tests/test-pipe.c: Likewise.
3765         * tests/test-pipe2.c: Likewise.
3766         * tests/test-poll.c: Likewise.
3767         * tests/test-pthread_sigmask1.c: Likewise.
3768         * tests/test-select.h: Likewise.
3769         * tests/test-sethostname2.c: Likewise.
3770         * tests/test-sigprocmask.c: Likewise.
3771         * tests/test-spawn-pipe-child.c: Likewise.
3772         * tests/test-stat-time.c: Likewise.
3773         * tests/test-system-quote-main.c: Likewise.
3774         * tests/test-utimens-common.h: Likewise.
3775         * tests/test-wcrtomb-w32.c: Likewise.
3776         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3777         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3778         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3779         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3780         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3781         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3782         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3783         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3784         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3785         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3786         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3787         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3788         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3789         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3790         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3791         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3793 2018-05-02  Bruno Haible  <bruno@clisp.org>
3795         localename: Fix test failures on mingw.
3796         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3797         native Windows.
3798         (gl_locale_name_posix): Move code specific to native Windows here.
3799         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3800         Accept result without charset suffix, as it appears on mingw.
3802 2018-04-28  Paul Smith  <psmith@gnu.org>
3804         bootstrap: Avoid gnulib operations if not needed
3805         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3806         Set $gnulib_extra_files early so it can be overridden in .conf.
3807         Remove redundant --import flag from $gnulib_tool_options.
3808         Set $use_gnulib to false if no gnulib modules or files are needed.
3809         If $use_gnulib is false, don't do anything related to gnulib.
3810         A lot of this is just whitespace (indentation) changes.
3812 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3814         manywarnings: port to GCC 8.0
3815         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3816         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3817         fact that the GCC help message now mentions operands for
3818         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3819         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3820         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3821         and -Wunused-const-variable.
3822         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3823         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3824         -Wmissing-attributes, -Wmultistatement-macros,
3825         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3826         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3828 2018-04-24  Bruno Haible  <bruno@clisp.org>
3830         sys_socket: Make SO_REUSEPORT available across platforms.
3831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3832         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3833         * doc/posix-headers/sys_socket.texi: Mention the issue.
3834         * tests/test-poll.c (SO_REUSEPORT): Remove.
3835         * tests/test-select.h: Include <sys/socket.h>.
3836         (SO_REUSEPORT): Remove.
3837         * modules/select-tests (Depends-on): Add 'sys_socket'.
3839 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3841         localcharset: short-circuit the search for an alias on a Mac
3842         * lib/localcharset.c (get_charset_aliases): Add a tautological
3843         UTF-8 entry to speed up the search for this case.
3844         Most machines default to a UTF-8 locale nowadays, so begin the
3845         list of aliases with a dummy UTF-8 entry so it will be found
3846         immediately and a time-consuming search through the rest of
3847         the list is avoided.
3849 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3851         fts: add comment
3852         * lib/fts.c (fts_build): Explain why ==, not >.
3853         See remark by Bernhard Voelker in:
3854         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3856         fts: fix bug in find across filesystems
3857         This fixes a bug I introduced last summer.
3858         Problem reported by Kamil Dudka in:
3859         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3860         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3861         (leaf_optimization):
3862         New arg for file descriptor.  All callers changed.
3863         (fts_build): Check for whether inodes should be sorted
3864         before closing the directory.
3866 2018-04-07  Bruno Haible  <bruno@clisp.org>
3868         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3869         Reported by Genki Sky <sky@genki.is>.
3870         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3871         version 0.9.10 or newer.
3872         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3873         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3874         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3875         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3876         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3878 2018-04-07  Bruno Haible  <bruno@clisp.org>
3880         execute: Update comment.
3881         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3883 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3885         fts: treat CIFS like NFS
3886         Problem reported by Kamil Dudka in:
3887         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3888         * lib/fts.c (S_MAGIC_CIFS): New macro.
3889         (dirent_inode_sort_may_be_useful, leaf_optimization):
3890         Treat CIFS like NFS.
3892 2018-03-28  Bruno Haible  <bruno@clisp.org>
3894         c-stack: Fix possible build failure on some platforms.
3895         * lib/c-stack.c (die): Define whenever this function is referenced.
3897 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
3899         time_rz: fix workaround for Mac OS X 10.6 infloop
3900         Problems reported by Charles A. Roelli (Bug#27736#117).
3901         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
3902         Also, discard output, which clutters the 'configure' log.
3904 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3906         havelib: port to Solaris 10 /bin/sh
3907         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
3908         instead of '! test EXPR'.
3910 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3912         time_rz: work around Mac OS X 10.6 infloop
3913         * doc/posix-functions/localtime.texi:
3914         * doc/posix-functions/localtime_r.texi: Mention the bug.
3915         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
3916         better to fix localtime and localtime_r instead, but that would be
3917         more work and is not needed to fix the Emacs problem.
3918         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
3920 2018-03-24  Jim Meyering  <meyering@fb.com>
3922         test-version-etc.sh: don't use diff directly: use init.sh's compare
3923         We'd rather not sacrifice readable "diff -u" output even for
3924         "diff -c" output (not supported by busybox) or for even less
3925         readable ed-style "diff" output.  So use init.sh's compare function
3926         * tests/test-version-etc.sh: Source init.sh and add "." to path.
3927         Remove "./" from invocation of test-version-etc, so we use path.
3928         And s/diff/compare/.
3929         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
3930         to get init.sh.
3931         Prompted by Eric Blake's comments in
3932         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
3934 2018-03-24  Bruno Haible  <bruno@clisp.org>
3936         javacomp-script, javacomp: Add support for Java 10.
3937         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
3938         target-version 10.
3939         * lib/javaversion.h: Update comments.
3940         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3941         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3942         TARGET_VERSION_BOUND, target_version_index,
3943         corresponding_classfile_version): Accept source_version 10 and
3944         target_version 10.
3945         * lib/javacomp.h: Update comments accordingly.
3947 2018-03-24  Bruno Haible  <bruno@clisp.org>
3949         javacomp-script, javacomp: Update comments.
3950         * m4/javacomp.m4: Update comments regarding gcj.
3951         * lib/javacomp.h: Likewise.
3953 2018-03-24  Bruno Haible  <bruno@clisp.org>
3955         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
3956         * lib/javaversion.h: Update comments.
3957         * lib/javacomp.h: Likewise.
3958         * lib/javacomp.c (default_target_version, source_version_index,
3959         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
3960         "1.9".
3961         (TARGET_VERSION_BOUND): Bump to 9.
3962         (target_version_index, corresponding_classfile_version): Recognize "9"
3963         instead of "1.9".
3964         (get_source_version_for_javac): New function.
3965         (is_envjavac_nongcj_usable, is_javac_usable): Add
3966         source_version_for_javac argument.
3967         (compile_java_class): Determine and pass source_version_for_javac.
3968         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
3969         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
3970         appropriate.
3972 2018-03-23  Jim Meyering  <meyering@fb.com>
3974         test-version-etc.sh: port to diff without -c
3975         * tests/test-version-etc.sh: Don't use diff's -c option.
3976         This caused spurious test failure on Alpine Linux, which
3977         uses busybox's diff. Reported by Assaf Gordon in
3978         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
3980 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3982         c-stack: port to recent GCC build
3983         Problem reported by The Fireplace (Bug#30913).
3984         * lib/c-stack.c (die): Define only if used.
3986 2018-03-20  Bruno Haible  <bruno@clisp.org>
3988         euidaccess: Port to native Windows.
3989         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
3990         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
3992 2018-03-19  Bruno Haible  <bruno@clisp.org>
3994         javacomp: Add support for Java 7, 8, 9.
3995         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3996         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3997         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
3998         and target_version 1,7, 1.8, 1.9.
3999         * lib/javacomp.h: Update comments accordingly.
4001 2018-03-19  Bruno Haible  <bruno@clisp.org>
4003         javacomp-script: Add support for Java 9.
4004         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4005         target-version 1.9.
4007 2018-03-16  Bruno Haible  <bruno@clisp.org>
4009         glob: Don't compile replacements on recent glibc systems.
4010         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4011         REPLACE_GLOB is 0, include the system's <glob.h> and use
4012         _GL_CXXALIAS_SYS.
4013         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4014         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4015         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4016         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4017         Remove snippet/warn-on-use.
4018         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4019         (Makefile.am): Create glob.h always. Update list of substitutions in
4020         glob.h. Don't depend on $(WARN_ON_USE_H).
4022 2018-03-16  Bruno Haible  <bruno@clisp.org>
4024         glob: Fix link error on native Windows.
4025         * modules/glob (Depends-on): Add 'lstat'.
4027 2018-03-15  Bruno Haible  <bruno@clisp.org>
4029         glob: Fix compilation error in C++ mode.
4030         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4032 2018-03-15  Bruno Haible  <bruno@clisp.org>
4034         host-cpu-c-abi: Support for RISC-V CPU.
4035         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4036         riscv32 and riscv64 ABIs.
4037         References:
4038         https://github.com/riscv/riscv-toolchain-conventions
4039         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4040         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4042 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4044         fflush: be more paranoid about libio.h change
4045         Suggested by Eli Zaretskii in:
4046         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4047         * lib/fbufmode.c (fbufmode):
4048         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4049         (disable_seek_optimization, rpl_fflush):
4050         * lib/fpending.c (__fpending):
4051         * lib/fpurge.c (fpurge):
4052         * lib/freadable.c (freadable):
4053         * lib/freadahead.c (freadahead):
4054         * lib/freading.c (freading):
4055         * lib/freadptr.c (freadptr):
4056         * lib/freadseek.c (freadptrinc):
4057         * lib/fseeko.c (fseeko):
4058         * lib/fseterr.c (fseterr):
4059         * lib/fwritable.c (fwritable):
4060         * lib/fwriting.c (fwriting):
4061         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4063 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4065         maint: write-file-hooks -> before-save-hook
4066         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4067         it's time to use the recommended replacement.
4068         Problem reported by Glenn Morris in:
4069         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4070         * build-aux/announce-gen, build-aux/bootstrap:
4071         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4072         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4073         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4074         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4075         * build-aux/update-copyright, build-aux/useless-if-before-free:
4076         * build-aux/vc-list-files:
4077         Update hook usage for files where Gnulib is the canonical source.
4079 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4081         binary-io: pacify gcc -Wunused-parameter
4082         Problem reported by Reuben Thomas in:
4083         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4084         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4085         Use _GL_UNUSED where appropriate.
4087         fflush: adjust to glibc 2.28 libio.h removal
4088         Problem reported by Daniel P. Berrangé in:
4089         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4090         * lib/fbufmode.c (fbufmode):
4091         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4092         (disable_seek_optimization, rpl_fflush):
4093         * lib/fpending.c (__fpending):
4094         * lib/fpurge.c (fpurge):
4095         * lib/freadable.c (freadable):
4096         * lib/freadahead.c (freadahead):
4097         * lib/freading.c (freading):
4098         * lib/freadptr.c (freadptr):
4099         * lib/freadseek.c (freadptrinc):
4100         * lib/fseeko.c (fseeko):
4101         * lib/fseterr.c (fseterr):
4102         * lib/fwritable.c (fwritable):
4103         * lib/fwriting.c (fwriting):
4104         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4105         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4106         Define if not already defined.
4108 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4110         environ: fix link error on 32-bit Cygwin
4111         Problem reported for GNU Emacs by Ken Brown in:
4112         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4113         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4115 2018-02-24  Bruno Haible  <bruno@clisp.org>
4117         mbrtowc tests: Fix regression on glibc.
4118         Reported by Bernhard Voelker.
4119         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4121 2018-02-24  Bruno Haible  <bruno@clisp.org>
4123         striconveha, uniconv/*: Avoid test failures on musl libc.
4124         * tests/iconvsupport.c: New file.
4125         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4126         does not support the ISO-2022-JP-2 encoding.
4127         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4128         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4129         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4130         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4131         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4132         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4133         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4134         (Makefile.am): Link test-striconveha with iconvsupport.o.
4135         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4136         tests/iconvsupport.c.
4137         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4138         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4139         tests/iconvsupport.c.
4140         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4141         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4142         tests/iconvsupport.c.
4143         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4144         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4145         tests/iconvsupport.c.
4146         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4147         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4148         tests/iconvsupport.c.
4149         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4150         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4151         tests/iconvsupport.c.
4152         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4154 2018-02-24  Bruno Haible  <bruno@clisp.org>
4156         localename: Add support for musl libc.
4157         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4158         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4159         on Linux platforms which define NL_LOCALE_NAME.
4161 2018-02-24  Bruno Haible  <bruno@clisp.org>
4163         mbrtowc tests: Don't make assumptions about the charset the C locale.
4164         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4165         particular mapping in the C locale.
4167 2018-02-24  Bruno Haible  <bruno@clisp.org>
4169         ptsname_r: Don't expect that this function sets errno.
4170         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4171         from ptsname_r().
4172         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4174 2018-02-23  Bruno Haible  <bruno@clisp.org>
4176         xmalloca: pacify gcc -Wbad-function-cast
4177         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4179 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4181         nl_langinfo: pacify gcc -Wunused-function
4182         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4183         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4184         this case.  Without this change, I got a diagnostic when building
4185         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4187         same: pacify gcc -Wunused-variable
4188         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4189         Omit unused variable.
4191         malloca: pacify gcc -Wbad-function-cast
4192         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4193         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4194         To pacify GCC, I had to cast alloca’s result to some type other
4195         than void * before casting that to uintptr_t.
4197 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4199         utimecmp: new function utimecmpat
4200         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4201         Do not include utimens.h.
4202         (utimecmpat): New function, generalizing utimecmp.
4203         (utimecmp): Now a thin layer around utimecmpat.
4204         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4205         utimensat instead of on lstat and utimens.
4207         same: new function same_nameat
4208         * lib/same.c: Include fcntl.h.
4209         * lib/same.c (same_nameat): New function, generalizing same_name.
4210         (same_name): Now a thin layer around same_nameat.
4211         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4212         * modules/same (Depends-on): Depend on fstatat, openat.
4214 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4216         warnings: Add support for Objective C.
4217         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4218         macro.
4220 2018-02-17  Bruno Haible  <bruno@clisp.org>
4222         lock: Fix test-once1 crash on FreeBSD11.
4223         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4224         'pthread_create', not 'pthread_cancel'.
4226 2018-02-17  Bruno Haible  <bruno@clisp.org>
4228         lock: Add test of gl_once.
4229         * tests/test-once.c: New file.
4230         * modules/lock-tests (Files): Add it.
4231         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4233 2018-02-17  Bruno Haible  <bruno@clisp.org>
4235         thread: Fix compilation error on IRIX.
4236         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4237         needed; include it outside the C++ extern "C" {} block.
4238         * doc/posix-headers/pthread.texi: Mention the problem with
4239         pthread_atfork on IRIX.
4241 2018-02-04  Bruno Haible  <bruno@clisp.org>
4243         nl_langinfo: Override the system's nl_langinfo() when needed.
4244         Reported by Jim Meyering.
4245         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4246         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4248 2018-02-04  Bruno Haible  <bruno@clisp.org>
4250         signal-h, monetary, strings: Fix build failure in some cases.
4251         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4252         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4253         as delimiter in sed command, not '|'.
4254         * modules/monetary (Makefile.am): Likewise.
4255         * modules/strings (Makefile.am): Likewise.
4257 2018-02-03  Jim Meyering  <meyering@fb.com>
4259         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4260         * top/maint.mk (sc_file_system): Don't complain about
4261         "/proc/filesystems".
4263 2018-02-03  Bruno Haible  <bruno@clisp.org>
4265         stdlib: Fix compilation error on OpenIndiana.
4266         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4267         <sys/time.h>.
4268         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4269         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4271 2018-02-03  Bruno Haible  <bruno@clisp.org>
4273         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4274         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4275         and use $EGREP instead of 'grep -E'.
4276         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4277         'grep -E'.
4279 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4281         malloca: Add a compile-time verification.
4282         * lib/malloca.c (small_t): Verify that it is wide enough.
4283         * modules/malloca (Depends-on): Add verify.
4285 2018-02-02  Bruno Haible  <bruno@clisp.org>
4287         malloca: Add an argument check.
4288         Suggested by Paul Eggert.
4289         * lib/malloca.c (freea): Check against an invalid argument.
4291 2018-02-02  Bruno Haible  <bruno@clisp.org>
4293         localename: Add support for OpenIndiana.
4294         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4295         Solaris 11 variants with uselocale() but without getlocalename_l().
4297 2018-02-02  Bruno Haible  <bruno@clisp.org>
4299         malloca, xmalloca: Make multithread-safe.
4300         Reported by Florian Weimer <fweimer@redhat.com>.
4301         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4302         * lib/malloca.h (malloca): In the stack allocation case, return a
4303         pointer that is a multiple of 2 * sa_alignment_max.
4304         (sa_increment): Remove enum item.
4305         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4306         a pointer that is a multiple of 2 * sa_alignment_max.
4307         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4308         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4309         HASH_TABLE_SIZE, mmalloca_results): Remove.
4310         (small_t): New type.
4311         (mmalloca, free): Rewritten.
4312         * lib/malloca.valgrind: Remove file.
4313         * modules/malloca (Files): Remove it.
4314         (Depends-on): Remove verify.
4316 2018-01-31  Bruno Haible  <bruno@clisp.org>
4318         environ: Fix link error on 64-bit Cygwin.
4319         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4320         __declspec(dllimport) attribute.
4321         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4323 2018-01-30  Bruno Haible  <bruno@clisp.org>
4325         get-rusage-data: Add support for Minix 3.
4326         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4328 2018-01-30  Bruno Haible  <bruno@clisp.org>
4330         vma-iter: Add support for Minix 3.
4331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4332         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4334 2018-01-27  Bruno Haible  <bruno@clisp.org>
4336         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4337         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4338         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4339         _HPUX_ALT_XOPEN_SOCKET_API.
4340         * modules/accept (Depends-on): Add 'extensions'.
4341         * modules/getpeername (Depends-on): Likewise.
4342         * modules/getsockname (Depends-on): Likewise.
4343         * modules/getsockopt (Depends-on): Likewise.
4344         * modules/recvfrom (Depends-on): Likewise.
4345         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4346         * doc/posix-functions/getpeername.texi: Likewise.
4347         * doc/posix-functions/getsockname.texi: Likewise.
4348         * doc/posix-functions/getsockopt.texi: Likewise.
4349         * doc/posix-functions/recvfrom.texi: Likewise.
4351 2018-01-27  Bruno Haible  <bruno@clisp.org>
4353         getsockname tests: More tests.
4354         * tests/test-getsockname.c (open_server_socket): New function, mostly
4355         copied from test-poll.c.
4356         (main): Check that getsockname fills in addr.
4357         * modules/getsockname-tests (Depends-on): Add the necessary
4358         dependencies.
4359         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4361 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4363         manywarnings: fix maintainer comment
4364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4365         it does not mistakenly think that ‘-1)’ is an option.
4367 2018-01-26  Bruno Haible  <bruno@clisp.org>
4369         langinfo: Fix last commit.
4370         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4371         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4373 2018-01-24  Bruno Haible  <bruno@clisp.org>
4375         langinfo, nl_langinfo: Add support for alternative month names.
4376         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4377         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4378         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4379         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4380         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4381         * doc/posix-functions/nl_langinfo.texi: Likewise.
4383 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4385         Merge strftime.c changes from glibc
4386         This incorporates:
4387         2017-11-14 [BZ #10871] Implement alternative month names
4388         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4389         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4390         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4391         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4392         Use locale_t, not __locale_t.
4393         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4394         (__strftime_internal): Add support for alternate months.
4396 2018-01-23  Bruno Haible  <bruno@clisp.org>
4398         doc: Mention another prerequisite for using Gnulib.
4399         Reported at <https://stackoverflow.com/questions/48378214/>.
4400         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4401         AC_CONFIG_HEADERS.
4403 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4405         build: GuixSD doesn't have /bin/bash
4406         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4408 2018-01-21  Bruno Haible  <bruno@clisp.org>
4410         Avoid test failures on Microsoft Windows Subsystem for Linux.
4411         * tests/test-fcntl.c (main): Allow a different errno.
4412         * tests/test-rename.h (test_rename): Likewise.
4413         * tests/test-renameat.c (main): Likewise.
4414         * tests/test-renameat2.c (main): Likewise.
4416 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4418         filenamecat: make base a suffix of result
4419         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4420         (mfile_name_concat): Always make BASE a suffix of the result, as
4421         cp expects this.  To implement this, separate with '.' instead of
4422         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4423         * tests/test-filenamecat.c (main): Adjust tests to match
4424         current behavior.  Check that BASE_IN_RESULT points to
4425         a copy of BASE and is a suffix of the resultk, and that DIR
4426         is a prefix of the result that is no longer than the prefix
4427         indicated by BASE_IN_RESULT.
4429 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4431         update-copyright: Handle use of ©
4432         * build-aux/update-copyright ($circle_c_re): Update regex to
4433         handle use of © in headers.
4435 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4437         Fix -Wundef warning in user-included header lib/cdefs.h.
4438         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4440 2018-01-04  Bruno Haible  <bruno@clisp.org>
4442         pthread_sigmask: Avoid compilation error on mingw.
4443         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4444         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4445         macro.
4447 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4449         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4450         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4451         Suggested by Bob Proulx (Bug#29968).
4452         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4454 2018-01-02  Eric Blake  <eblake@redhat.com>
4456         stat-time: silence -Wunused-parameter regression
4457         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4458         Prefer attribute over cast-to-void.
4459         (stat_time_normalize): Mark st as potentially unused.
4461 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4463         test-framework-sh: avoid netstat
4464         Problem reported by Kristýna Streitová (Bug#29947).
4465         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4466         deprecated on SuSE and it's not that important anyway.
4468 2018-01-01  Jim Meyering  <meyering@fb.com>
4470         update-copyright: add code to handle more special cases
4471         After running "make update-copyright" this year, five files
4472         required additional manual changes.  Automate those adjustments
4473         for next year.
4474         * Makefile (_year_and_prev): Define.
4475         (update-copyright): Add perl commands to induce this year's post-
4476         update-copyright adjustments.
4478 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4480         version-etc: new year
4481         * build-aux/gendocs.sh (version):
4482         * doc/gendocs_template:
4483         * doc/gendocs_template_min:
4484         * doc/gnulib.texi:
4485         * lib/version-etc.c (COPYRIGHT_YEAR):
4486         Update copyright dates by hand in templates and the like.
4488         maint: fix 'make update-copyright'
4489         * Makefile (update-copyright): Adjust to 2016-11-23 change
4490         to config/srclist-update, which changed the format of srclist.txt.
4492 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4494         chdir-safer: remove this module
4495         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4496         * NEWS: Document removal.
4497         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4498         * modules/chdir-safer: Remove these files.
4500 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4502         Add cross-compilation results for GNU/Hurd.
4503         * m4/calloc.m4: Add GNU/Hurd guess.
4504         * m4/cbrtl.m4: Likewise.
4505         * m4/ceil.m4: Likewise.
4506         * m4/ceilf.m4: Likewise.
4507         * m4/ceill.m4: Likewise.
4508         * m4/chown.m4: Likewise.
4509         * m4/duplocale.m4: Likewise.
4510         * m4/exp2l.m4: Likewise.
4511         * m4/expm1.m4: Likewise.
4512         * m4/fchdir.m4: Likewise.
4513         * m4/floor.m4: Likewise.
4514         * m4/floorf.m4: Likewise.
4515         * m4/fmod.m4: Likewise.
4516         * m4/fmodf.m4: Likewise.
4517         * m4/fmodl.m4: Likewise.
4518         * m4/getcwd.m4: Likewise.
4519         * m4/getgroups.m4: Likewise.
4520         * m4/gettimeofday.m4: Likewise.
4521         * m4/hypot.m4: Likewise.
4522         * m4/hypotf.m4: Likewise.
4523         * m4/hypotl.m4: Likewise.
4524         * m4/link-follow.m4: Likewise.
4525         * m4/link.m4: Likewise.
4526         * m4/linkat.m4: Likewise.
4527         * m4/log.m4: Likewise.
4528         * m4/log10.m4: Likewise.
4529         * m4/log10f.m4: Likewise.
4530         * m4/log1p.m4: Likewise.
4531         * m4/log1pf.m4: Likewise.
4532         * m4/log1pl.m4: Likewise.
4533         * m4/log2.m4: Likewise.
4534         * m4/log2f.m4: Likewise.
4535         * m4/logf.m4: Likewise.
4536         * m4/lstat.m4: Likewise.
4537         * m4/malloc.m4: Likewise.
4538         * m4/mbrlen.m4: Likewise.
4539         * m4/mbrtowc.m4: Likewise.
4540         * m4/mkdir.m4: Likewise.
4541         * m4/mkfifo.m4: Likewise.
4542         * m4/mknod.m4: Likewise.
4543         * m4/mkstemp.m4: Likewise.
4544         * m4/modf.m4: Likewise.
4545         * m4/modff.m4: Likewise.
4546         * m4/modfl.m4: Likewise.
4547         * m4/printf.m4: Likewise.
4548         * m4/pselect.m4: Likewise.
4549         * m4/ptsname.m4: Likewise.
4550         * m4/putenv.m4: Likewise.
4551         * m4/readlink.m4: Likewise.
4552         * m4/realloc.m4: Likewise.
4553         * m4/remainder.m4: Likewise.
4554         * m4/remainderf.m4: Likewise.
4555         * m4/remainderl.m4: Likewise.
4556         * m4/rmdir.m4: Likewise.
4557         * m4/round.m4: Likewise.
4558         * m4/roundf.m4: Likewise.
4559         * m4/roundl.m4: Likewise.
4560         * m4/select.m4: Likewise.
4561         * m4/setenv.m4: Likewise.
4562         * m4/signbit.m4: Likewise.
4563         * m4/sleep.m4: Likewise.
4564         * m4/stat.m4: Likewise.
4565         * m4/strerror.m4: Likewise.
4566         * m4/strtok_r.m4: Likewise.
4567         * m4/symlink.m4: Likewise.
4568         * m4/symlinkat.m4: Likewise.
4569         * m4/trunc.m4: Likewise.
4570         * m4/truncf.m4: Likewise.
4571         * m4/truncl.m4: Likewise.
4572         * m4/tzset.m4: Likewise.
4573         * m4/ungetc.m4: Likewise.
4574         * m4/usleep.m4: Likewise.
4575         * m4/wcwidth.m4: Likewise.
4577 2017-12-28  Bruno Haible  <bruno@clisp.org>
4579         gnulib-tool: Make --conditional-dependencies work better.
4580         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4581         * gnulib-tool (Options): Don't reject the combination of
4582         --conditional-dependencies with --with-tests.
4583         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4584         Don't reference $modules.
4585         (func_import, func_create_testdir): Pass it.
4587 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4589         regex: use re_malloc etc. consistently
4590         Problem and original patch reported by Arnold Robbins in:
4591         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4592         * lib/regcomp.c (re_comp):
4593         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4594         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4596 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4597             Paul Eggert  <eggert@cs.ucla.edu>
4599         glob: Silence warning about void pointer arithmetic.
4600         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4601         arithmetic.
4603 2017-12-15  Bruno Haible  <bruno@clisp.org>
4605         spawn-pipe: Silence a clang warning.
4606         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4607         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4608         in this file.
4610 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4612         explicit_bzero: port to macOS + Clang 9.0.0
4613         Problem reported by Marcus Johnson (Bug#29658).
4614         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4615         Don’t use asm.
4617 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4619         doc: Improve explanation of supporting relocatable libraries.
4620         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4621         properly how to build the relocatable module for
4622         libraries. (Method and example code from Bruno Haible.)
4624 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4626         doc: Use better texinfo tags in a few cases.
4627         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4628         instead of @samp in a few places.
4630 2017-12-11  Bruno Haible  <bruno@clisp.org>
4632         unistr/base: Update comment.
4633         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4635 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4637         test-faccessat.c: unlink temp file to avoid subsequent test failure
4638         * tests/test-faccessat.c: Remove the file to avoid failure
4639         to open the file on subsequent runs due to being created
4640         with no permissions.
4642 2017-12-10  Bruno Haible  <bruno@clisp.org>
4644         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4645         * doc/gnulib-tool.texi (Modified build rules): New node.
4647 2017-12-10  Bruno Haible  <bruno@clisp.org>
4649         doc: Tweak wording.
4650         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4651         "binaries".
4653 2017-12-05  Sam Steingold  <sds@gnu.org>
4654             Bruno Haible  <bruno@clisp.org>
4656         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4657         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4658         AC_EGREP_CPP pattern.
4660 2017-12-03  Bruno Haible  <bruno@clisp.org>
4662         all: Replace more http URLs by https URLs.
4663         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4664         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4665         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4666         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4668 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4670         Port better to CentOS 5
4671         Problems reported by Tom G. Christensen in:
4672         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4673         * doc/glibc-functions/strverscmp.texi (strverscmp):
4674         Document strverscmp bug with glibc 2.9 and earlier.
4675         * doc/posix-functions/tzset.texi (tzset):
4676         Document that TZ with angle brackets is POSIX-2001 and later.
4677         * tests/test-nstrftime.c: Include unistd.h.
4678         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4679         (TZ): Use it to skip tests with angle brackets in TZ,
4680         for older systems.
4682         stat: add missing module dependencies
4683         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4684         Add stat-time.
4686 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4688         stat: fix compilation failure on macOS Sierra
4689         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4690         https://savannah.gnu.org/bugs/?52546
4691         * lib/stat.c: Add missing include of stat-time.h.
4693 2017-11-28  Jim Meyering  <meyering@fb.com>
4695         test-faccessat.c: correct BASE definition to avoid parallel test failure
4696         * tests/test-faccessat.c (BASE): Define using this file's name, not
4697         that of test-lstat.c.  Using the latter caused this test to fail
4698         sometimes when run concurrently with test-lstat.
4700 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4702         unicase: fix VPATH build
4703         * modules/unicase/special-casing (Makefile.am): Ensure that the
4704         base directory is created when generating
4705         unicase/special-casing.h.
4707 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4709         libunistring: update to Unicode 9.0.0
4710         * lib/gen-uni-tables.c (fill_properties): Recognize
4711         Sentence_Terminal and Prepended_Concatenation_Mark.
4712         (is_property_default_ignorable_code_point): Exclude U+08E2.
4713         (fill_arabicshaping): Allow missing whitespace when parsing;
4714         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4715         (output_blocks): Increase the element size of the level1 table to
4716         accommodate more blocks.
4717         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4718         Update each class according to the standard.
4719         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4720         E_Base_GAZ characters.
4721         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4722         Glue_After_Zwj, and E_Base_GAZ characters.
4723         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4724         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4725         enum value.
4726         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4727         value.
4728         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4729         LBP_ZWJ, LBP_EB, and LBP_EM.
4730         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4731         enum value.
4732         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4733         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4734         declaration.
4735         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4736         (uniwbrk_table): Implement WB14.
4737         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4738         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4739         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4740         uc-is-grapheme-break.
4741         * modules/unigbrk/uc-grapheme-breaks: New module.
4742         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4743         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4744         enum value.
4745         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4746         * lib/unigbrk/u-grapheme-breaks.h: New file.
4747         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4748         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4749         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4750         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4751         29.
4752         * tests/unigbrk/test-uc-gbrk-prop.c
4753         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4754         GBP_GAZ, and GBP_EBG.
4755         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4756         * tests/unigbrk/test-uc-is-grapheme-break.c
4757         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4758         GBP_GAZ, and GBP_EBG.
4759         (main): Skip unsupported rules involving 3 or more characters,
4760         namely GB10, GB12, and GB13.
4761         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4762         * all generated files under lib/uni* and tests/uni*: Regenerate.
4763         * all the affected modules: Bump version.
4765 2017-11-26  Bruno Haible  <bruno@clisp.org>
4767         strfmon_l: Fix compilation error with glibc 2.5.
4768         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4769         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4770         * lib/monetary.in.h: Include also <locale.h>.
4772 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4774         posixtm: remove PDS_LEADING_YEAR
4775         This changes the API slightly, in a hopefully-innocuous way.
4776         Without this change the code had undefined behavior when a
4777         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4778         Problem reported by Pádraig Brady in:
4779         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4780         * NEWS: Mention this.
4781         * lib/posixtm.c (posix_time_parse): Treat the absence of
4782         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4783         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4784         present, but define it as zero, for compatibility with existing
4785         source code).  All other PDS_* values moved up.
4786         * tests/test-posixtm.c (LY): New macro.
4787         (T): Use it.  Do not expect a particular numeric encoding
4788         for PDS_CENTURY etc.
4790 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4792         stat: work around Solaris bug with tv_nsec < 0
4793         * doc/posix-functions/fstat.texi (fstat):
4794         * doc/posix-functions/fstatat.texi (fstatat):
4795         * doc/posix-functions/lstat.texi (lstat):
4796         * doc/posix-functions/stat.texi (stat):
4797         Mention Solaris 11 bug.
4798         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4799         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4800         * lib/lstat.c (rpl_lstat):
4801         * lib/stat.c (rpl_stat):
4802         Normalize resulting timestamps.
4803         * lib/fstatat.c (normal_fstatat): New function.
4804         (rpl_fstatat): Use it.
4805         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4806         (stat_time_normalize): New function.
4807         * m4/fstat.m4 (gl_FUNC_FSTAT):
4808         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4809         * m4/lstat.m4 (gl_FUNC_LSTAT):
4810         * m4/stat.m4 (gl_FUNC_STAT):
4811         Replace on Solaris.
4812         * modules/fstat (Depends-on):
4813         * modules/fstatat (Depends-on):
4814         Add stat-time.
4815         * modules/stat-time (Depends-on): Add errno, intprops.
4817 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4819         regex: merge from glibc
4820         * lib/regcomp.c (init_word_char): Add comments.
4822 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4824         regex: merge from glibc
4825         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4826         * lib/regex_internal.h (internal_function): Remove.
4827         All uses removed.
4829 2017-11-20  Bruno Haible  <bruno@clisp.org>
4831         crypto/gc-sm3: Fix buffer overrun.
4832         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4833         Reported by Coverity.
4835 2017-11-12  Jim Meyering  <meyering@fb.com>
4837         maint: shorten https://lists.gnu.org/archive/html/... links
4838         Each /archive/html/ part can be replace with /r/.
4839         Run this to induce the change:
4840         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4841         * ChangeLog: Perform that substitution.
4842         * Makefile: Likewise.
4843         * STATUS-libposix: Likewise.
4844         * build-aux/bootstrap: Likewise.
4845         * doc/maintain.texi: Likewise.
4846         * gnulib-tool: Likewise.
4847         * lib/allocator.h: Likewise.
4848         * lib/argp-ba.c: Likewise.
4849         * lib/argp-pv.c: Likewise.
4850         * lib/canon-host.c: Likewise.
4851         * lib/canonicalize-lgpl.c: Likewise.
4852         * lib/float.in.h: Likewise.
4853         * lib/fstat.c: Likewise.
4854         * lib/getdelim.c: Likewise.
4855         * lib/getprogname.c: Likewise.
4856         * lib/glthread/thread.h: Likewise.
4857         * lib/intprops.h: Likewise.
4858         * lib/mbsrtowcs-state.c: Likewise.
4859         * lib/safe-read.c: Likewise.
4860         * lib/signal.in.h: Likewise.
4861         * lib/stat.c: Likewise.
4862         * lib/stdbool.in.h: Likewise.
4863         * lib/stdio-impl.h: Likewise.
4864         * lib/stdio.in.h: Likewise.
4865         * lib/sysexits.in.h: Likewise.
4866         * lib/timespec.h: Likewise.
4867         * lib/wcsrtombs-state.c: Likewise.
4868         * m4/alloca.m4: Likewise.
4869         * m4/extern-inline.m4: Likewise.
4870         * m4/fstatat.m4: Likewise.
4871         * m4/gnulib-common.m4: Likewise.
4872         * m4/lib-ignore.m4: Likewise.
4873         * m4/printf.m4: Likewise.
4874         * m4/regex.m4: Likewise.
4875         * m4/stat-size.m4: Likewise.
4876         * m4/std-gnu11.m4: Likewise.
4877         * m4/stdbool.m4: Likewise.
4878         * m4/sys_types_h.m4: Likewise.
4879         * m4/threadlib.m4: Likewise.
4880         * m4/vararrays.m4: Likewise.
4881         * pygnulib/GLImport.py: Likewise.
4882         * tests/test-exp.h: Likewise.
4883         * tests/test-exp2.h: Likewise.
4884         * tests/test-expm1.h: Likewise.
4885         * tests/test-fflush2.c: Likewise.
4886         * tests/test-getopt_long.h: Likewise.
4887         * tests/test-intprops.c: Likewise.
4888         * tests/test-log.h: Likewise.
4889         * tests/test-log10.h: Likewise.
4890         * tests/test-log1p.h: Likewise.
4891         * tests/test-log2.h: Likewise.
4892         * tests/test-printf-posix.h: Likewise.
4893         * tests/test-regex.c: Likewise.
4894         * tests/test-snprintf-posix.h: Likewise.
4895         * tests/test-sprintf-posix.h: Likewise.
4896         * tests/test-stdalign.c: Likewise.
4897         * tests/test-stdbool.c: Likewise.
4898         * tests/test-vasnprintf-posix.c: Likewise.
4899         * tests/test-vasprintf-posix.c: Likewise.
4900         * top/maint.mk: Likewise.
4902 2017-11-12  Bruno Haible  <bruno@clisp.org>
4904         faccessat: Make the last change more robust.
4905         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
4906         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
4908 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4910         faccessat: port to macOS (Bug#29231)
4911         macOS faccessat has the same bug that lstat does: if the file
4912         name ends in '/' it ignores the trailing slash.
4913         Problem reported for Emacs by Vincent Zhang.
4914         * doc/posix-functions/faccessat.texi (faccessat): Document this.
4915         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
4916         around the initial includes.  Include errno.h, string.h, sys/stat.h.
4917         (orig_faccessat) [HAVE_FACCESSAT]: New function.
4918         Include "unistd.h" after defining it.
4919         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
4920         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
4921         Handle in the usual way.
4922         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
4923         lstat dereferences symlinks, since faccessat is likely to
4924         have the same problem.
4925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
4926         * modules/faccessat (Depends-on): Add fstatat.
4927         Depend if REPLACE_FACCESSAT is 1, too.
4928         (configure.ac): Link if REPLACE_FACCESSAT is 1.
4929         * modules/faccessat-tests (Depends-on): Add symlink.
4930         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
4931         * tests/test-faccessat.c (main): Test for the bug.
4933 2017-11-11  Bruno Haible  <bruno@clisp.org>
4935         getprogname: Fix compilation error on IRIX.
4936         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
4937         'namesize'.
4939 2017-11-11  Bruno Haible  <bruno@clisp.org>
4941         year2038: Tweak last patch.
4942         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
4944 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4946         year2038: be more insistent about 64-bit time_t
4947         Applications requiring access to arbitrary files should not be
4948         built with 32-bit time_t on hosts that have 64-bit timestamps,
4949         as this can lead to real trouble at runtime.
4950         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
4951         Check on all systems, not just MinGW.  Use a heuristic involving
4952         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
4953         output a failure or just a warning, to make it more likely that
4954         builders will select 64-bit time_t.
4956 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4958         havelib: fix typo in previous change
4959         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
4961         Don’t use AC_EGREP_CPP if affected by CFLAGS
4962         * m4/float_h.m4 (gl_FLOAT_H):
4963         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
4964         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
4965         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
4966         * m4/year2038.m4 (gl_YEAR2038):
4967         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
4968         likely to be affected by the choice of CFLAGS, since CFLAGS are
4969         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
4970         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
4972         fstatat: pacify GCC on unusual platform
4973         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
4974         Omit, as it’s unused in this case.
4976 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
4978         timespec: prefer ‘assume’ to ‘assure’
4979         This avoids some runtime tests.  The rest of the module makes
4980         similar assumptions and there is little point to testing here.
4981         * lib/timespec.h: Include verify.h instead of assure.h.
4982         (timespec_cmp): Use ‘assume’, not ‘assure’.
4983         Also, remove an unnecessary cast to ‘int’, as lots of other
4984         code in this module now causes -Wconversion to complain, and
4985         this is a problem with -Wconversion not with the code.
4987         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
4989         Port recent gnulib-tool change to Dash
4990         * gnulib-tool (func_create_testdir): Don't assume that the shell
4991         retokenizes after expanding "$@" inside the call to
4992         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
4994 2017-10-27  Jim Meyering  <meyering@fb.com>
4996         timespec.h: use "assure" to avoid a spurious warning
4997         * lib/timespec.h: Include "assure.h" and use it to help
4998         gcc7's -Wstrict-overflow avoid a false positive warning
4999         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5000         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5001         * modules/timespec (Depends-on): Add assure.
5003 2017-10-29  Bruno Haible  <bruno@clisp.org>
5005         Avoid several test failures with traditional locales on Haiku.
5006         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5007         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5008         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5010         LOCALE_ZH_CN=none.
5012 2017-10-29  Bruno Haible  <bruno@clisp.org>
5014         strerror_r-posix: Fix behaviour and test failure on Haiku.
5015         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5016         are positive. Work around return value 0 instead of ERANGE on Haiku.
5017         For unknown error numbers, use a format string consistent with perror().
5018         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5019         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5020         are positive.
5022 2017-10-29  Bruno Haible  <bruno@clisp.org>
5024         get-rusage-data: Avoid crash on Haiku.
5025         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5027 2017-10-29  Bruno Haible  <bruno@clisp.org>
5029         get-rusage-as: Avoid crash on Haiku.
5030         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5032 2017-10-29  Bruno Haible  <bruno@clisp.org>
5034         ilogbl: Ensure replacement on Haiku.
5035         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5036         REPLACE_ILOGBL if ilogbl does not work.
5037         (gl_FUNC_ILOGBL_WORKS): New macro.
5038         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5040         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5041         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5042         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5044 2017-10-29  Bruno Haible  <bruno@clisp.org>
5046         expl: Ensure replacement on Haiku.
5047         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5048         zero.
5049         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5051 2017-10-29  Bruno Haible  <bruno@clisp.org>
5053         math: Fix test failure on Haiku.
5054         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5055         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5056         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5057         * doc/posix-headers/math.texi: Mention the Haiku problem.
5059 2017-10-29  Bruno Haible  <bruno@clisp.org>
5061         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5062         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5063         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5065 2017-10-29  Bruno Haible  <bruno@clisp.org>
5067         crypto/*: Verify that the header file is self-contained.
5068         * tests/test-gc-*.c: Include the module's header file immediately after
5069         <config.h>.
5070         * tests/test-hmac-*.c: Likewise.
5071         * tests/test-arcfour.c: Likewise.
5072         * tests/test-arctwo.c: Likewise.
5073         * tests/test-des.c: Likewise.
5074         * tests/test-md2.c: Likewise.
5075         * tests/test-md4.c: Likewise.
5076         * tests/test-md5.c: Likewise.
5077         * tests/test-rijndael.c: Likewise.
5078         * tests/test-sha1.c: Likewise.
5079         * tests/test-sm3.c: Likewise.
5081 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5082             Bruno Haible  <bruno@clisp.org>
5084         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5085         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5087 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5089         New module: crypto/gc-sm3
5090         * lib/gc.h: Declare SM3-related stuffs.
5091         * lib/gc-gnulib.c: Support sm3 in internal functions.
5092         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5093         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5094         * modules/crypto/gc-sm3: Define gc-sm3 module.
5095         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5096         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5097         * MODULES.html.sh: List gc-sm3 module.
5099 2017-10-29  Bruno Haible  <bruno@clisp.org>
5101         random, random_r: Mention different prototypes on Haiku.
5102         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5103         * doc/glibc-functions/random_r.texi: Likewise.
5104         * doc/glibc-functions/initstate_r.texi: Likewise.
5105         * doc/glibc-functions/setstate_r.texi: Likewise.
5107 2017-10-28  Bruno Haible  <bruno@clisp.org>
5109         posix_spawn: Avoid spurious message in configure output.
5110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5111         'cmp' command.
5113 2017-10-28  Bruno Haible  <bruno@clisp.org>
5115         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5116         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5117         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5119 2017-10-28  Bruno Haible  <bruno@clisp.org>
5121         ioctl: Override non-POSIX declaration on Haiku.
5122         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5123         * lib/sys_ioctl.in.h: Add comment about Haiku.
5124         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5125         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5127 2017-10-28  Bruno Haible  <bruno@clisp.org>
5129         crypto/sm3: Add overview documentation to the .h file.
5130         * lib/sm3.h: Add comments.
5132 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5134         New module: crypto/sm3
5135         This new module can be used to compute SM3 message digest of files or
5136         memory blocks according to the specification GM/T 004-2012
5137         Cryptographic Hash Algorithm SM3, published by State Cryptography
5138         Administration, China.
5139         The official SM3 cryptographic hash algorithm specification is
5140         available at
5141         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5142         * lib/sm3.h: Declare the APIs of sm3 module.
5143         * lib/sm3.c: Implement SM3 hash algorithm.
5144         * m4/sm3.m4: m4 file for sm3 module.
5145         * modules/crypto/sm3: Define sm3 module.
5146         * tests/test-sm3.c: Implement SM3 test case.
5147         * modules/crypto/sm3-tests: Define sm3 test module.
5148         * MODULES.html.sh: List sm3 module.
5150 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5152         gc-libgcrypt: fix undefined enum type in switch statement
5153         Resolve the following build failure:
5154         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5155         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5156         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5157              case 0:
5158              ^~~~
5159         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5160         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5162 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5164         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5165         Resolve the following build failure:
5166         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5167         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5168         in signedness [-Werror=pointer-sign]
5169             digest = gcry_md_read (ctx->gch, 0);
5170                    ^
5171         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5173 2017-10-26  Bruno Haible  <bruno@clisp.org>
5175         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5176         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5177         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5179 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5181         glob: fix another heap buffer overflow
5182         Problem reported by Tim Rühsen in:
5183         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5184         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5186 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5188         quotearg: pacify compiler re unsigned
5189         * lib/quotearg.c (quotearg_n_options):
5190         Rewrite to avoid diagnostic from overly-picky compiler.
5191         Problem reported by Sami Kerola in:
5192         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5194         glob: fix heap buffer overflow
5195         * lib/glob.c (glob): Fix off-by-one error introduced into
5196         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5197         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5198         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5199         Fix suggested by Bruno Haible.
5201 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5203         glob: pacify fuzzer for mempcpy
5204         Problem reported by Tim Rühsen in:
5205         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5206         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5208 2017-10-12  Bruno Haible  <bruno@clisp.org>
5210         doc: Fix syntax error (regression from 2017-10-03).
5211         * doc/posix-functions/strncpy.texi: Fix syntax error.
5213 2017-10-12  Bruno Haible  <bruno@clisp.org>
5215         doc: Update for Solaris 11.3.
5216         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5217         mention Solaris 11.3.
5218         * m4/log2.m4: Fix comments.
5219         * m4/log2f.m4: Likewise.
5220         * m4/printf.m4: Update comments.
5221         * m4/rename.m4: Likewise.
5222         * m4/strncat.m4: Likewise.
5224         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5226 2017-10-10  Bruno Haible  <bruno@clisp.org>
5228         doc: Improve doc about ioctl.
5229         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5230         prototype.
5232 2017-10-09  Bruno Haible  <bruno@clisp.org>
5234         wcwidth: Don't use obsolete syntax of 'test'.
5235         Reported by Eric Blake.
5236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5237         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5239 2017-10-09  Bruno Haible  <bruno@clisp.org>
5241         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5242         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5243         and Daniel P. Berrange <berrange@redhat.com>.
5244         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5245         on glibc systems. The getopt-pfx-core.h file declares exactly what
5246         unistd.h needs, nothing more.
5248 2017-10-08  Bruno Haible  <bruno@clisp.org>
5250         vma-iter: Improve support for FreeBSD.
5251         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5252         vma_iterate.
5253         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5255 2017-10-08  Bruno Haible  <bruno@clisp.org>
5257         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5258         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5260 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5262         test-framework-sh: Fix 'invalid path dir' error.
5263         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5264         separator between a drive letter and directory parts.
5265         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5266         treated as an invalid path dir.
5267         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5268         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5269         instead of hard coded ':'.
5271 2017-10-07  Bruno Haible  <bruno@clisp.org>
5273         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5274         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5275         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5276         (rof_open): On Linux, do multiple read() calls and make sure
5277         MIN_LEFTOVER bytes are left when read() returns.
5279 2017-10-07  Bruno Haible  <bruno@clisp.org>
5281         vma-iter: Improve support for GNU/Hurd.
5282         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5283         API, not the /proc file system.
5285 2017-10-07  Bruno Haible  <bruno@clisp.org>
5287         test-framework-sh: Don't require bash on Windows and OS/2.
5288         Reported by KO Myung-Hun.
5289         * tests/test-init.sh: Use 'shopt' only when running in bash.
5291 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5293         wcwidth: check a macro version of wcwidth () as well
5294         * lib/wchar.in.h: Revert commit from 2016-01-14.
5295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5297 2017-10-06  Bruno Haible  <bruno@clisp.org>
5299         getopt-posix: Clarify copyright header.
5300         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5301         * lib/getopt-pfx-core.h: Likewise.
5302         * lib/getopt-pfx-ext.h: Likewise.
5303         * lib/getopt-cdefs.in.h: Likewise.
5305 2017-10-03  Bruno Haible  <bruno@clisp.org>
5307         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5308         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5309         gl_HOST_CPU_C_ABI.
5311 2017-10-03  Bruno Haible  <bruno@clisp.org>
5313         doc: warn about misuse of strncpy and wcsncpy.
5314         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5315         memory allocation.
5316         * doc/posix-functions/wcscpy.texi: Likewise.
5317         * doc/posix-functions/strncpy.texi: Describe what this function is not
5318         useful for.
5319         * doc/posix-functions/wcsncpy.texi: Likewise.
5321 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5323         fsuage: fix typo in previous change
5324         * lib/fsusage.c: Remove stray include of full-read.h.
5325         Problem reported by Sam Steingold for macOS (Bug#28669).
5327 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5329         fsusage: remove SVR2 support
5330         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5331         and its code was getting in the way of use of this module by
5332         Emacs, which has its own ‘read’ function anyway.
5333         * lib/fsusage.c: Do not include sys/filsys.h.
5334         (get_fs_usage): Remove SVR2-specific code.
5335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5336         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5337         * modules/fsusage (Depends-on): Do not depend on full-read.
5339         Simplify autoupdate of licenses
5340         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5341         place.
5343 2017-10-01  Bruno Haible  <bruno@clisp.org>
5345         vma-iter: Add support for GNU/Hurd.
5346         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5347         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5349 2017-09-30  Bruno Haible  <bruno@clisp.org>
5351         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5352         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5353         fail when module 'largefile' is in use.
5354         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5355         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5356         Don't test HAVE_SYS_PROCFS_H.
5358 2017-09-30  Bruno Haible  <bruno@clisp.org>
5360         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5361         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5362         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5363         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5365 2017-09-30  Bruno Haible  <bruno@clisp.org>
5367         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5368         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5369         scope of local variables.
5371 2017-09-28  Bruno Haible  <bruno@clisp.org>
5373         string: code style
5374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5375         substitutable variables.
5376         * modules/string (Makefile.am): Likewise.
5378 2017-09-26  Bruno Haible  <bruno@clisp.org>
5380         uniname/uniname-tests: Tighten code.
5381         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5382         local variables into one.
5384 2017-09-26  Bruno Haible  <bruno@clisp.org>
5386         vma-iter: Improvements for Linux and BSD platforms.
5387         - Add support for DragonFly BSD.
5388         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5389         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5390         Read the entire file into memory in a single system call.
5391         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5392         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5394 2017-09-26  Bruno Haible  <bruno@clisp.org>
5396         vma-iter: Provide the protection flags on FreeBSD.
5397         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5398         skip three fields between the addresses and the protection flags.
5400 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5402         glob: remove bogus extern decl
5403         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5404         extern declaration.  Problem reported by Adhemerval Zanella in:
5405         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5407 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5409         uniname/uniname-tests: integer overflow fix
5410         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5411         Check for integer overflow.
5413         duplocale-tests: fix unlikely crash
5414         * tests/test-duplocale.c (get_locale_dependent_values):
5415         Don’t crash with absurdly long month names.
5417         maint: fix overflow checking in nap.h
5418         * modules/chown-tests:
5419         * modules/fchownat-tests, modules/fdutimensat-tests:
5420         * modules/futimens-tests, modules/lchown-tests:
5421         * modules/stat-time-tests, modules/utime-tests:
5422         * modules/utimens-tests, modules/utimensat-tests:
5423         Depend on intprops.
5424         * tests/nap.h: Include intprops.h.
5425         (diff_timespec): Handle overflow properly.
5427         sys_types: update URL
5428         * m4/sys_types_h.m4: Use https: URL.
5430         parse-datetime: fix dependency
5431         * modules/parse-datetime (Depends-on): Depend
5432         on nstrftime, not strftime.
5434         parse-datetime, posixtm: avoid uninit access
5435         * lib/parse-datetime.y (parse_datetime2):
5436         * lib/posixtm.c (posixtime):
5437         Do not access uninitialized storage, even though the resulting
5438         value is never used.
5440 2017-09-25  Bruno Haible  <bruno@clisp.org>
5442         vma-iter: Improvements for BSD platforms.
5443         - Add support for GNU/kFreeBSD.
5444         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5445         - Speed up on OpenBSD.
5446         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5447         (vma_iterate_bsd): New function.
5448         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5449         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5450         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5451         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5453 2017-09-23  Bruno Haible  <bruno@clisp.org>
5455         strfmon_l: New module.
5456         * modules/strfmon_l: New file.
5457         * lib/strfmon_l.c: New file.
5458         * m4/strfmon_l.m4: New file.
5459         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5460         * modules/strfmon_l-tests: New file.
5461         * tests/test-strfmon_l.c: New file.
5463         monetary: New module.
5464         * modules/monetary: New file.
5465         * lib/monetary.in.h: New file.
5466         * m4/monetary_h.m4: New file.
5467         * doc/posix-headers/monetary.texi: Mention the new module.
5468         * modules/monetary-tests: New file.
5469         * tests/test-monetary.c: New file.
5470         * modules/monetary-c++-tests: New file.
5471         * tests/test-monetary-c++.cc: New file.
5472         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5474 2017-09-23  Bruno Haible  <bruno@clisp.org>
5476         duplocale tests: Fix test crash on Linux/x86.
5477         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5478         locale from the current thread before freeing it.
5480 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5482         mktime: port to OpenVMS
5483         Problem reported by John E. Malmberg in:
5484         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5485         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5487 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5489         manywarnings: port to GCC on 64-bit MS-Windows
5490         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5491         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5492         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5494 2017-09-13  Bruno Haible  <bruno@clisp.org>
5496         all: Replace many more http URLs by https URLs. Update stale URLs.
5497         * users.txt: Remove mention of 'newts'.
5498         * lib/localename.c: Update comment about LANG_SOTHO.
5500 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5502         all: Replace many http URLs by https URLs.
5504 2017-09-12  Bruno Haible  <bruno@clisp.org>
5506         doc: Prefer https URLs where possible.
5507         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5508         * doc/ld-output-def.texi: Remove unavailable URL.
5510 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5512         maintainer-makefile: FTP -> HTTPS
5513         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5514         of FTP, which is planned to be decommissioned on 2017-11-01.
5516 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5518         libc-config: Fix __GNUC_PREREQ macro.
5519         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5520         __GNUC_MINOR.
5522 2017-09-09  Bruno Haible  <bruno@clisp.org>
5524         gnulib-tool: Simplify commit from 2015-08-20.
5525         * gnulib-tool (func_add_or_update): Remove local variable
5526         is_binary_file.
5528 2017-09-08  Bruno Haible  <bruno@clisp.org>
5530         stddef: Avoid conflict with system-defined max_align_t.
5531         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5532         Reported by Werner Lemberg <wl@gnu.org> in
5533         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5534         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5535         (max_align_t): Define as a macro.
5536         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5537         definitions of rpl_max_align_t in different copies of gnulib-generated
5538         <stddef.h>.
5540 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5542         libc-config: port to MSVC
5543         Problems reported by Gisle Vanem in:
5544         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5545         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5546         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5547         * m4/__inline.m4: New file.
5548         * modules/libc-config (Files): Add it.
5549         (Depends-on): Use it.
5551         glob: Use enum for __glob_pattern_type result
5552         From a patch proposed by Adhemerval Zanella in:
5553         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5554         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5555         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5556         * lib/glob_internal.h (__glob_pattern_type):
5557         * lib/glob.c (glob):
5558         * lib/glob_pattern_p.c (__glob_pattern_p):
5559         Use them.
5561         glob: fix for use in glibc
5562         Problem reported by Adhemerval Zanella in:
5563         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5564         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5565         Do not redefine if _LIBC.
5567 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5569         glob: fix bugs with long login names
5570         Problem reported by Adhemerval Zanella in:
5571         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5572         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5573         (glob): Use the same scratch buffer for both getlogin_r and
5574         getpwnam_r.  Don’t require preallocation of the login name.  This
5575         simplifies storage allocation, and corrects the handling of
5576         long login names.
5578 2017-09-02  Bruno Haible  <bruno@clisp.org>
5580         dirent: Update doc.
5581         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5583 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5585         glob: fix getpwnam_r errno typo
5586         * lib/glob.c (glob): Fix longstanding misuse of errno after
5587         getpwnam_r, which returns an error number rather than setting
5588         errno.
5590         glob: fix typo in recent change
5591         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5592         Fix recently-introduced typo.
5594 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5596         glob: don't save and restore errno unnecessarily
5597         * lib/glob.c (glob): Don't save and restore errno
5598         merely because we have getpwnam_r.
5600         glob: don't assume getpwnam_r
5601         * lib/glob.c (glob): Port recent patches to platforms
5602         lacking getpwnam_r.
5604         scratch_buffer: don’t use private glibc API
5605         Suggested by Florian Weimer in:
5606         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5607         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5608         * lib/scratch_buffer_grow.c: Rename to
5609         lib/malloc/scratch_buffer_grow.c.
5610         * lib/scratch_buffer_grow_preserve.c: Rename to
5611         lib/malloc/scratch_buffer_grow_preserve.c.
5612         * lib/scratch_buffer_set_array_size.c: Rename to
5613         lib/malloc/scratch_buffer_set_array_size.c.
5614         * lib/scratch_buffer.h: New file.
5615         * modules/scratch_buffer (Files, Makefile.am):
5616         Adjust to source-file renaming.
5618 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5620         glob: use scratch_buffer instead of extend_alloca
5621         Much of the lib/glob.c part of this patch comes from a glibc patch
5622         proposed by Adhemerval Zanella in:
5623         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5624         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5625         included via glob.h, does this for us now.
5626         (__set_errno): Remove, as libc-config does this for us now.
5627         Include <scratch_buffer.h>.
5628         (GETPW_R_SIZE_MAX): Remove.
5629         (glob): Use struct scratch_buffer instead of extend_alloca.
5630         * lib/glob.in.h: Include libc-config.h rather than
5631         including <sys/cdefs.h> conditionally.
5632         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5633         (__glibc_unlikely, __restrict, weak_alias):
5634         Remove, as libc-config does this for us now.
5635         * m4/glob.m4 (gl_PREREQ_GLOB):
5636         Remove sys/cdefs.h tests; no longer needed.
5637         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5638         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5640         scratch_buffer: new module
5641         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5642         * lib/scratch_buffer_grow_preserve.c:
5643         * lib/scratch_buffer_set_array_size.c:
5644         New files, copied from glibc with very minor changes that can be
5645         copied back.
5646         * modules/scratch_buffer: New file.
5648         libc-config: new module
5649         * MODULES.html.sh: Add libc-config.
5650         * lib/cdefs.h: New file, copied from the GNU C Library with very
5651         minor changes that can be copied back.
5652         * lib/libc-config.h, modules/libc-config: New files.
5654 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5656         glob: match dangling symlinks
5657         This fixes a bug I inadvertently introduced to Gnulib when I
5658         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5659         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5660         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5661         * doc/posix-functions/glob.texi: Update list of affected platforms.
5662         * lib/glob.c (__lstat64): New macro.
5663         (is_dir): New function.
5664         (glob, glob_in_dir): Match symlinks even if they are dangling.
5665         (link_stat, link_exists_p): Remove.  All uses removed.
5666         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5667         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5668         * modules/glob-tests (Depends-on): Add symlink.
5669         * tests/test-glob.c: Include errno.h, unistd.h.
5670         (BASE): New macro.
5671         (main): Test dangling symlinks, if symlinks are supported.
5673         glob, backupfile: inode 0 is a valid inode number
5674         * doc/posix-functions/readdir.texi (readdir):
5675         * doc/posix-headers/dirent.texi (dirent.h):
5676         Document more readdir portability issues.
5677         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5678         (numbered_backup): Don’t treat inode 0 any differently from
5679         other inode values.
5680         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5681         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5682         All uses removed.
5683         * modules/glob (Depends-on): Remove d-ino.
5685         glob: simplify symlink detection
5686         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5687         uint8_t, as C99 does not require uint8_t.
5688         (struct readdir_result): Use it.  Do not define skip_entry unless
5689         it is needed; this saves a byte on platforms lacking d_ino.
5690         (readdir_result_type, readdir_result_skip_entry):
5691         New functions, replacing ...
5692         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5693         ... these functions, which were removed.  This makes the callers
5694         easier to read.  All callers changed.
5695         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5697 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5699         fts-tests: tag as a longrunning-test so not included by default
5700         * modules/fts-tests: This test takes about 20s on current systems,
5701         and uses about 285M of space on ext4.
5703 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5705         renameat2: fix compilation on alpine linux
5706         * m4/renameat.m4: Check for <linux/fs.h> presence.
5707         * lib/renameat2.h: Only include <linux/fs.h> if present.
5708         Reported by Assaf Gordon on Alpine Linux.
5710 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5712         glob: try to port recent changes to MS-Windows
5713         Problem reported by Bruno Haible in:
5714         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5715         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5716         * lib/glob.in.h (__glob_pattern_p): ... to here.
5718 2017-08-24  Eric Blake  <eblake@redhat.com>
5720         warnings: fix compilation with old autoconf
5721         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5722         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5723         AC_DEFUN.
5724         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5725         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5727 2017-08-24  Bruno Haible  <bruno@clisp.org>
5729         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5730         * modules/glob (Depends-on): Add c99.
5732 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5734         glob: fix typo that broke platforms lacking d_ino
5735         This typo also hurt performance on GNU/Linux and similar hosts.
5736         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5737         in previous change.
5739 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5741         glob: merge from glibc with Zanella glob changes
5742         Merge glob from glibc, with changes for glob proposed
5743         by Adhemerval Zanella in the thread starting here:
5744         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5745         plus some fixes for this merge.
5746         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5747         New files, ported from glibc.
5748         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5749         with __restrict.
5750         (__size_t): Remove.  All uses replaced by size_t.
5751         (size_t): Define by defining __need_size_t and including <stddef.h>.
5752         This should work even in non-glibc platforms, where any name
5753         pollution is OK.
5754         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5755         (struct stat64): Don’t worry about __GLOB_GNULIB.
5756         (glob, globfree, glob_pattern_p): Remove macros for
5757         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5758         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5759         but set errno.
5760         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5761         removed since the glibc behavior works on null pointers.
5762         Do not include stdio.h; old SunOS is irrelevant now.
5763         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5764         Include glob_internal.h.
5765         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5766         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5767         worked only coincidentally.
5768         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5769         Remove macros; now done in glob.in.h.
5770         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5771         (glob): Properly initialize glob structure with
5772         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5773         Remove old code using SHELL since Bash no longer
5774         uses this.
5775         (glob, prefix_array): Separate MS code better.
5776         (glob, glob_in_dir): Use C99 decls before statements when glibc
5777         does.
5778         (glob_in_dir): Remove old Amiga and VMS code.
5779         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5780         separate files.
5781         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5782         (__glibc_unlikely):
5783         Move here from glob.c.
5784         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5785         (weak_alias): New macro.
5786         (__size_t): Remove.  All uses replaced by size_t.
5787         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5788         * modules/glob (Files): Add +lib/glob_internal.h,
5789         lib/glob_pattern_p.c, lib/globfree.c.
5790         (Depends-on): Remove snippet/arg-nonnull.
5792 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5794         glob: port to clang's Undefined Sanitizer
5795         Problem reported by Tim Rühsen in:
5796         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5797         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5798         (glob_in_dir): Do not rely on undefined behavior in accessing
5799         struct members beyond their bounds.  Use a flexible array member
5800         instead.
5802 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5804         vc-list-files: port to Solaris 10
5805         * build-aux/vc-list-files: Don't assume test -e works.
5807 2017-08-21  Karl Berry  <karl@freefriends.org>
5809         * doc/posix-functions/srandom.texi (srandom): typo }.
5811 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5813         git-version-gen: port to Solaris 10
5814         Problem reported by Dagobert Michelsen in:
5815         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5816         * build-aux/git-version-gen (v_from_git):
5817         Use expr instead of shell substitution.
5819 2017-08-19  Bruno Haible  <bruno@clisp.org>
5821         host-cpu-c-abi: Improve detection of MIPS ABI.
5822         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5823         _MIPS_SIM.
5825 2017-08-17  Bruno Haible  <bruno@clisp.org>
5827         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5828         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5830 2017-08-17  Bruno Haible  <bruno@clisp.org>
5832         float: Fix LDBL_MIN value on FreeBSD/x86.
5833         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5835 2017-08-17  Bruno Haible  <bruno@clisp.org>
5837         random: Fix test compilation failure on Cygwin 1.5.25.
5838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5839         HAVE_DECL_SETSTATE.
5840         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5841         declared.
5842         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5843         HAVE_DECL_SETSTATE.
5844         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5845         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5846         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5847         * doc/posix-functions/random.texi: Likewise.
5848         * doc/posix-functions/setstate.texi: Likewise.
5849         * doc/posix-functions/srandom.texi: Likewise.
5851 2017-08-16  Bruno Haible  <bruno@clisp.org>
5853         stdnoreturn: Fix test compilation failure on Cygwin.
5854         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5855         <stdnoreturn.h> replacement.
5856         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5857         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5859 2017-08-16  Bruno Haible  <bruno@clisp.org>
5861         thread: Fix conflict with pthread_sigmask module.
5862         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5863         it's defined as a macro.
5864         * modules/thread (Depends-on): Add pthread_sigmask.
5866 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5868         rename: port better to NetBSD
5869         * doc/posix-functions/rename.texi (rename): NetBSD 7
5870         does not have the link-count bug.
5871         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5872         broken merely because rename ("a", "b") removes "a" when the two
5873         names are hard links to the same file.
5875 2017-08-16  Bruno Haible  <bruno@clisp.org>
5877         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5878         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5879         the target file names with '$(srcdir)/'.
5880         * modules/unicase/locale-language (Makefile.am): Likewise.
5881         * modules/unicase/special-casing (Makefile.am): Likewise.
5882         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5883         * modules/unictype/category-byname (Makefile.am): Likewise.
5884         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5885         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5886         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5887         * modules/unictype/property-byname (Makefile.am): Likewise.
5888         * modules/unictype/scripts (Makefile.am): Likewise.
5889         * modules/uninorm/composition (Makefile.am): Likewise.
5891 2017-08-16  Bruno Haible  <bruno@clisp.org>
5893         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
5894         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
5895         value for OpenBSD.
5897 2017-08-16  Bruno Haible  <bruno@clisp.org>
5899         rename, renameat: Update doc regarding NetBSD.
5900         * doc/posix-functions/rename.texi: Clarify that when using
5901         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
5902         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
5903         version.
5905 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5907         renameat2: port better to macOS
5908         * lib/renameat2.c (renameat2): Use renameatx_np if available.
5910         futimens: don’t assume struct timespec layout
5911         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
5912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
5913         * tests/test-fdutimensat.c (main):
5914         * tests/test-futimens.h (test_futimens):
5915         * tests/test-lutimens.h (test_lutimens):
5916         * tests/test-utimens.h (test_utimens):
5917         * tests/test-utimensat.c (main):
5918         Don’t assume that struct timespec is a two-member structure in
5919         tv_sec, tv_nsec order.  Although this is true on all platforms we
5920         know about, POSIX does not guarantee it.
5922         rename: document+test NetBSD rename
5923         Test failure reported by Bruno Haible in:
5924         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
5925         This is an area where NetBSD is better-behaved than POSIX,
5926         so allow the NetBSD behavior in tests.
5927         * doc/posix-functions/rename.texi:
5928         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
5929         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
5931 2017-08-15  Bruno Haible  <bruno@clisp.org>
5933         renameat: Ensure declaration in <stdio.h> on NetBSD.
5934         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
5935         * doc/posix-functions/renameat.texi: Mention this problem.
5937 2017-08-15  Bruno Haible  <bruno@clisp.org>
5939         duplocale: Work around NetBSD 7.0 bug.
5940         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
5941         * lib/duplocale.c: Add comment about NetBSD problem.
5942         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
5944 2017-08-15  Bruno Haible  <bruno@clisp.org>
5946         duplocale tests: Verify use with *_l functions.
5947         * modules/duplocale-tests (configure.ac): Test for uselocale and
5948         some *_l functions.
5949         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
5950         from main.
5951         (get_locale_dependent_values_from, test_with_locale_parameter): New
5952         functions.
5953         (main): Test both test_with_uselocale and test_with_locale_parameter.
5955 2017-08-15  Bruno Haible  <bruno@clisp.org>
5957         extensions: Enable NetBSD specific extensions.
5958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
5960 2017-08-14  Bruno Haible  <bruno@clisp.org>
5962         open, openat: Update doc about O_CLOEXEC.
5963         * doc/posix-functions/open.texi: More concrete list of platforms.
5964         * doc/posix-functions/openat.texi: Likewise.
5966 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5968         open: support O_CLOEXEC
5969         * NEWS, doc/posix-functions/open.texi:
5970         * doc/posix-functions/openat.texi: Document this.
5971         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
5972         (GNULIB_defined_O_CLOEXEC): New symbol.
5973         * lib/open.c: Include cloexec.h.
5974         (open): Support O_CLOEXEC.
5975         * lib/openat.c: Include cloexec.h.
5976         (rpl_openat): Support O_CLOEXEC.
5977         * lib/popen-safer.c: Do not include cloexec.h.
5978         (open_noinherit): Remove.
5979         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
5980         * lib/save-cwd.c: Do not include cloexec.h.
5981         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
5982         * m4/open-cloexec.m4: New file.
5983         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
5984         Replace 'open' if O_CLOEXEC is not present.
5985         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
5986         Replace 'openat' if O_CLOEXEC is not present.
5987         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
5988         * modules/open (Files): Add m4/open-cloexec.m4.
5989         (Depends-on): Depend on cloexec if replacing 'open'.
5990         * modules/openat (Files): Add m4/open-cloexec.m4.
5991         (Depends-on): Depend on cloexec if replacing openat.
5992         * modules/popen-safer (Depends-on): Remove cloexec.
5993         * modules/save-cwd (Depends-on): Remove cloexec, and add
5994         fd-safer-flag and 'open'.
5996 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
5998         reallocarray: minor fixes
5999         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6000         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6001         * modules/reallocarray (License): Change from GPL to LGPL.
6002         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6003         Indent properly and don't use tabs.
6005 2017-08-13  Darshit Shah  <darnir@gnu.org>
6007         reallocarray: New module
6008         reallocarray is a new function in glibc 2.26 to safely allocate an array
6009         of memory locations with integer overflow protection.
6010         * MODULES.html.sh: Add reallocarray.
6011         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6012         * lib/reallocarray.c: New file to implement module reallocarray.
6013         * lib/stdlib.in.h: Add function declarations for reallocarray.
6014         * m4/reallocarray.m4: New file.
6015         * m4/stdlib_h.m4: Declare reallocarray.
6016         * modules/reallocarray: New file.
6017         * modules/reallocarray-test: New file.
6018         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6019         * tests/test-reallocarray.c: New test.
6021 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6023         dirent-safer: fix cloexec race
6024         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6025         (opendir_safer): Use F_DUPFD_CLOEXEC.
6026         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6027         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6028         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6029         instead of dup_safer.
6031         fts: fix cloexec races
6032         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6033         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6034         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6035         (fd_ring_check): Set cloexec flag on new file descriptors.
6036         (fts_build, fd_ring_check): While we’re at it, make sure the
6037         resulting file descriptor is not 0, 1, or 2, since that is easy.
6039 2017-08-11  Bruno Haible  <bruno@clisp.org>
6041         fts tests: Fix link error.
6042         Reported by Tom G. Christensen in
6043         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6044         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6046 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6048         fts: port recent changes to CentOS 6
6049         Problem reported by Tom G. Christensen in:
6050         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6051         * lib/fts.c (fsword): New type.
6052         (struct dev_type, filesystem_type): Use it.
6053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6054         Also, check for f_type only if fstatfs and sys/vfs.h work.
6056 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6058         tempname: do not depend on secure_getenv
6059         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6060         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6061         * modules/tempname (Depends-on): Remove secure_getenv.
6063 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6065         extensions: add _OPENBSD_SOURCE
6066         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6068 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6069             Bruno Haible  <bruno@clisp.org>
6071         manywarnings: Add support for C++.
6072         * build-aux/g++-warning.spec: New file.
6073         * m4/manywarnings-c++.m4: New file.
6074         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6075         redirects to manywarnings-c++.m4.
6076         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6078 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6080         git-version-gen: another fix for tags with "-"
6081         * build-aux/git-version-gen: Improve fix for tags containing "-".
6082         Suggested by Markus Armbruster in:
6083         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6085 2017-08-06  Bruno Haible  <bruno@clisp.org>
6087         warnings, manywarnings: Add support for multiple languages, not just C.
6088         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6089         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6090         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6091         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6092         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6093         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6094         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6095         of the current language. If C++ is the current language, modify
6096         WARN_CXXFLAGS instead of WARN_CFLAGS.
6097         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6098         gl_MANYWARN_ALL_GCC.
6099         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6101 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6103         git-version-gen: Fix for tags containing '-'
6105         Really old versions of git-describe (before v1.5.0, Feb 2007)
6106         don't have the number of commits in their long format output,
6107         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6108         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6109         recognizes both patterns, and normalizes the old format to the new one.
6111         Unfortunately, this normalization code gets confused when the tag
6112         contains '-'.  Reproducer:
6114             $ git-tag -m test v0.2-rc1
6115             $ build-aux/git-version-gen .tarball-version; echo
6116             build-aux/git-version-gen: WARNING: git rev-list failed
6117             UNKNOWN
6119         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6120         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6121         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6123         * git-version-gen: We could perhaps drop support for versions from
6124         more than a decade ago.  But tightening the pattern match is easy
6125         enough, so do that.  Still breaks when you use version tags ending in
6126         something matching -g????, but you arguably get what you deserve then.
6128 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6130         valgrind-tests: use ls, and cache
6131         * m4/valgrind-tests.m4: Test ls, not bash.
6132         Problem reported by Reuben Thomas.
6133         Also, cache the result so that it can be overridden.
6135 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6137         manywarnings: port to 64-bit GCC builds of Emacs
6138         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6139         object size rather than hardwiring 2147483647.  This is needed to
6140         build GNU Emacs, which has one conditional (and used
6141         only-in-theory) call to malloc with a literal greater than
6142         2147483647.
6144 2017-08-04  Bruno Haible  <bruno@clisp.org>
6146         Relax the license of some modules with no runtime code.
6147         * modules/std-gnu11 (License): Set to 'unlimited'.
6148         * modules/c99 (License): Likewise.
6149         Reported by Reuben Thomas <rrt@sc3d.org>.
6150         * modules/d-ino (License): Set to 'LGPL'.
6151         * modules/host-os (License): Likewise.
6152         * modules/longlong (License): Likewise.
6154 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6156         renameat2: port to RHEL 7 + NFS
6157         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6158         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6159         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6161 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6163         renameat2: port to non-renameat platforms
6164         Problem reported for MSVC-2015 by Gisle Vanem in:
6165         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6166         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6167         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6169 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6171         manywarnings: port to 32-bit GCC bug
6172         Problem reported by Pino Toscano in:
6173         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6174         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6175         not 2**63 - 1, to work around the following GCC bug:
6176         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6178 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6180         backupfile: new function to validate backup suffix
6181         * lib/backupfile.c (set_simple_backup_suffix): New function.
6182         (backupfile_internal): Use it.
6184         canonicalize: fix EOVERFLOW commentary
6185         Problem reported by Bruno Haible in:
6186         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6187         * lib/canonicalize.c (canonicalize_filename_mode):
6188         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6190         Don't interpret EOVERFLOW to mean nonexistence
6191         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6192         may be EOVERFLOW; this is likely more useful than reporting the
6193         stat errno.
6194         * lib/glob.c (link_stat): Rename from link_exists2_p and
6195         return -1/0 instead of 0/1.  Caller changed.
6196         * lib/glob.c (link_exists_p):
6197         * lib/renameat2.c (rename_noreplace, renameat2):
6198         * lib/tempname.c (try_nocreate):
6199         If errno == EOVERFLOW then the directory entry exists, so do not
6200         act as if it does not exist.
6202         backup-rename: new module
6203         It is like backupfile, except it avoids some race conditions,
6204         and it does not output to stderr or exit.
6205         * MODULES.html.sh: Add backup-rename.
6206         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6207         * modules/backup-rename: New files.
6208         * lib/backupfile.c: Turn this into an internals file, which
6209         contains code common to backupfile and backup_rename.  Include
6210         backupfile-internal.h instead of backupfile.h.  Do not include
6211         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6212         renameat2.h and fcntl.h.
6213         (BACKUP_NOMEM): New constant.
6214         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6215         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6216         (backupfile_internal): Rename from find_backup_file_name.
6217         Support new arg RENAME.
6218         (backup_args, backup_types, get_version, xget_version):
6219         Move to lib/backup-find.c.
6220         * lib/backupfile.h (backup_file_rename): New decl.
6221         * modules/backupfile (Files): Add lib/backup-internal.h,
6222         lib/backup-find.c.
6223         (Depends-on): Add dirfd, fcntl, renameat2.
6224         (lib_SOURCES): Add backup-find.c.
6226         renameat2: port better to older Solaris
6227         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6228         Add goto to use a label, to silence picky compilers.
6230         fts-tests: port to gcc -Wwrite-strings
6231         * tests/test-fts.c (base, base_d): New static vars.
6232         (argv, remove_tree, main): Use them.
6234 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6236         relocatable-lib{,-lgpl}: improve documentation
6237         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6238         Various other updates.
6240 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6241             Bruno Haible  <bruno@clisp.org>
6243         relocatable-lib{,-lgpl}: add Valgrind suppressions
6244         * lib/relocatable.valgrind: New file.
6245         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6246         * modules/relocatable-lib-lgpl: Likewise.
6248 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6250         relocatable: Make the license on the sources the GPL.
6251         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6252         LGPL, which was a special case so that the relocatable source files
6253         could be used without gnulib-tool, to GPL. They can still be used under
6254         the LGPL, using the --lgpl option to gnulib-tool.
6256 2017-07-30  Bruno Haible  <bruno@clisp.org>
6258         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6259         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6260         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6261         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6262         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6264 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6266         faccessat: document AT_SYMLINK_NOFOLLOW issue
6267         * doc/posix-functions/faccessat.texi: Modernize platform list.
6268         Document AT_SYMLINK_NOFOLLOW limitation.
6270         renameat2: port to Solaris 10
6271         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6272         with AT_SYMLINK_NOFOLLOW (which is not portable).
6273         (renameat): Undef before using, to avoid endless recursion when
6274         the replacement renameat calls renameat2 which calls the
6275         replacement renameat.
6276         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6277         * modules/renameat2 (Depends-on): Remove faccessat.
6278         * modules/renameat-tests (test_renameat_LDADD):
6279         * modules/renameat2-tests (test_renameat2_LDADD):
6280         Remove $(LIB_EACCESS).
6282         renameat2: new module
6283         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6284         useful to have access to its RENAME_NOREPLACE flag.
6285         * MODULES.html.sh (func_all_modules): Add renameat2.
6286         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6287         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6288         * lib/renameat.c (renameat): Move most of the implementation
6289         to renameat2, and just call renameat2.
6290         * modules/renameat (Files): Remove lib/at-func2.c.
6291         (Depends-on): Depend only on renameat2.
6292         (Include): Remove <fcntl.h>.
6293         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6294         since renameat (via renameat2) might use faccessat.
6296 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6298         vc-list-files: Adjust the script to support git worktrees
6299         * build-aux/vc-list-files: Require existence, not directory.
6301 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6303         doc: bring MODULES.html.sh up to date
6304         Somehow a few months ago we stopped updating MODULES.html.sh.
6305         I don’t recall explicitly deciding this, so I updated it now.
6306         Alternatively I suppose we could remove it.
6307         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6308         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6309         truncate, utime, utime-h, windows-stat-inodes,
6310         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6312 2017-07-26  Jim Meyering  <meyering@fb.com>
6314         fprintftime: fix build-break caused by recent renaming
6315         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6316         "strftime.c".
6317         * modules/fprintftime: Depend directly on nstrftime.
6319 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6321         regex: work with GCC7's -Werror=implicit-fallthrough=
6322         * lib/regex_internal.h (FALLTHROUGH): New macro.
6323         * lib/regcomp.c (peek_token_bracket, parse_expression):
6324         * lib/regexec.c (check_node_accept): Use it.
6326 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6328         fts: simplify fts_build
6329         * lib/fts.c (fts_build): Simplify, and be lazier about
6330         calling leaf_optimization.
6332         fts: three levels of leaf optimization
6333         * lib/fts.c (enum leaf_optimization): New type with three values.
6334         (S_MAGIC_AFS): New macro.  Sort them.
6335         (leaf_optimization): Rename from leaf_optimization_applies, and
6336         return enum leaf_optimization instead of bool.  All uses changed.
6337         Add cases for unknown type and for AFS.
6338         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6340         fts: cache dirent_inode_sort_may_be_useful too
6341         * lib/fts.c (struct dev_type): New struct.
6342         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6343         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6344         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6345         Now takes FTSENT const *, not int.  All uses changed.  Use
6346         filesystem_type to cache.
6347         (link_count_optimize_ok): Remove.  Caller changed to use
6348         leaf_optimization_applies, which now uses shared cache.
6350         fts: introduce MIN_DIR_NLINK
6351         * lib/fts.c (MIN_DIR_NLINK): New constant.
6352         Use it instead of 2, whenever we are talking about link counts.
6354         fts: nlink_t signedness fixups
6355         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6356         so that root need not be a special case later.
6357         (fts_read): Remove now-redundant test for fts_level.
6358         Do not assume that nlink_t is signed.
6359         (fts_build): Remove useless decrement of nlinks.
6360         (fts_stat): Avoid unlikely signed integer overflow later, if
6361         nlink_t is signed.
6363         fts-tests: new module
6364         * modules/fts-tests, tests/test-fts.c: New files.
6366 2017-07-23  Bruno Haible  <bruno@clisp.org>
6368         Rename module 'strftime' to 'nstrftime'.
6369         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6370         * lib/nstrftime.c: Renamed from lib/strftime.c.
6371         * modules/nstrftime: Renamed from modules/strftime.
6372         (Files, Makefile.am): Update.
6373         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6374         Fix comment.
6375         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6376         (Files, Makefile.am): Update.
6377         * modules/strftime: New file, an obsolete indirection.
6378         * doc/posix-functions/strftime.texi: Update reference.
6379         * config/srclist.txt: Update info.
6380         * NEWS: Mention the change.
6382 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6384         malloca: Silence a warning from clang's memory sanitizer.
6385         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6386         (freea): Use it.
6388 2017-07-18  Bruno Haible  <bruno@clisp.org>
6390         host-cpu-c-abi: Fix detection of MIPS ABI.
6391         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6392         ABI, not the CPU instruction set.
6394 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6396         explicit_bzero: new module
6397         The explicit_bzero function has been added to glibc.
6398         This module is intended to supports its use in GNU programs.
6399         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6400         * m4/explicit_bzero.m4, modules/explicit_bzero:
6401         New files.
6402         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6403         * lib/string.in.h (explicit_bzero): Declare.
6404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6405         * modules/string (string.h): Substitute its vars.
6407 2017-07-16  Bruno Haible  <bruno@clisp.org>
6409         threadlib: Support static linking.
6410         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6411         set gl_cv_have_weak to 'no'.
6413 2017-07-16  Bruno Haible  <bruno@clisp.org>
6415         unicase/locale-language: Fix link dependencies.
6416         * modules/unicase/locale-language (Link): New section.
6417         * modules/unicase/locale-language-tests (Makefile.am): Link
6418         test-locale-language program with $(LIBTHREAD).
6420 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6422         sys_socket: Add support for OpenVMS.
6423         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6424         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6426 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6428         sys_resource: Add support for OpenVMS.
6429         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6430         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6432 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6433             Bruno Haible  <bruno@clisp.org>
6435         math: Add support for OpenVMS.
6436         * lib/math.in.h [__VMS]: Include <fp.h>.
6437         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6439 2017-07-15  Bruno Haible  <bruno@clisp.org>
6441         getdtablesize: Add minimal support for OpenVMS.
6442         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6443         * modules/getdtablesize (Description): Fix.
6444         * lib/getdtablesize.c: Fix comment.
6445         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6446         getdtablesize() function, even though the test fails.
6447         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6448         limitation on OpenVMS.
6450 2017-07-13  Bruno Haible  <bruno@clisp.org>
6452         Revisit cross-compilation guesses.
6453         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6455 2017-07-13  Bruno Haible  <bruno@clisp.org>
6457         Improve cross-compilation guesses for native Windows.
6458         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6459         Windows.
6460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6461         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6462         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6463         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6464         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6465         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6466         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6467         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6468         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6469         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6470         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6471         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6472         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6473         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6474         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6475         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6476         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6478         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6479         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6480         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6481         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6482         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6483         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6484         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6485         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6486         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6487         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6489         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6490         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6492         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6493         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6494         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6495         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6496         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6497         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6498         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6499         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6502         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6503         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6504         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6505         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6506         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6507         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6508         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6509         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6510         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6511         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6512         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6513         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6514         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6515         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6516         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6517         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6518         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6519         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6521         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6522         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6523         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6524         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6526         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6527         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6528         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6529         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6530         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6531         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6532         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6533         * m4/regex.m4 (gl_REGEX): Likewise.
6534         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6535         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6536         gl_FUNC_REMAINDERF_WORKS): Likewise.
6537         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6538         gl_FUNC_REMAINDERL_WORKS): Likewise.
6539         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6540         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6542         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6545         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6546         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6547         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6548         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6549         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6550         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6551         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6552         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6553         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6554         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6555         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6556         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6557         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6558         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6559         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6560         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6561         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6562         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6563         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6565         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6566         Likewise.
6567         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6568         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6569         Windows. Enable also on Autoconf 2.70.
6570         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6571         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6572         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6573         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6574         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6575         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6576         for native Windows.
6577         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6578         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6580 2017-07-13  Bruno Haible  <bruno@clisp.org>
6582         Improve cross-compilation guesses for native Windows.
6583         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6584         Windows.
6585         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6586         memchr.m4.
6587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6589 2017-07-13  Bruno Haible  <bruno@clisp.org>
6591         Improve cross-compilation guesses for native Windows.
6592         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6593         native Windows.
6594         (gl_FUNC_FFLUSH): Update accordingly.
6595         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6596         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6598 2017-07-11  Bruno Haible  <bruno@clisp.org>
6600         More systematic m4 quoting and indentation.
6601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6602         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6603         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6604         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6605         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6606         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6607         gl_WINSIZE_IN_PTEM): Likewise.
6608         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6609         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6610         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6611         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6612         Correct indentation.
6613         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6615         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6616         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6617         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6618         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6620 2017-07-10  Bruno Haible  <bruno@clisp.org>
6622         round, roundf: Avoid compiler warning in configure test.
6623         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6624         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6626 2017-07-10  Bruno Haible  <bruno@clisp.org>
6628         getlogin tests: Avoid #ifdefs when sharing code between modules.
6629         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6630         * modules/getlogin-tests (Files): Likewise. Remove
6631         tests/test-getlogin_r.c.
6632         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6633         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6634         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6635         getlogin().
6637 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6639         getlogin: don’t assume one name per uid
6640         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6641         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6642         (ttyname): Remove test.
6643         * modules/getlogin_r-tests (ttyname): Remove test.
6644         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6645         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6646         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6647         getlogin rather than getlogin_r.  This avoids code duplication.
6648         (main): Use isatty and fstat rather than ttyname and stat.
6649         Use getpwnam instead of getpwuid, to be portable to test platforms
6650         that have multiple login names for the same uid.
6652 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6653             Bruno Haible  <bruno@clisp.org>
6655         glob: Fix more memory leaks.
6656         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6657         returning.
6658         Reported by Tim Rühsen.
6660 2017-07-10  Bruno Haible  <bruno@clisp.org>
6662         Make sure $host and $host_os are defined when used.
6663         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6664         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6665         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6666         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6667         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6668         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6669         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6670         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6671         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6672         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6673         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6674         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6676         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6677         m4_ifdef block.
6679 2017-07-09  Bruno Haible  <bruno@clisp.org>
6681         *printf: Fix cross-compilation guess for Solaris.
6682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6683         2010-12-21.
6685 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6686             Bruno Haible  <bruno@clisp.org>
6688         vasnprintf: port to macOS 10.13
6689         Problem reported by comex in:
6690         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6691         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6693 2017-07-06  Bruno Haible  <bruno@clisp.org>
6695         imaxdiv tests: Fix logic.
6696         * tests/test-imaxdiv.c (main): Use == instead of =.
6697         Reported by Coverity.
6699 2017-07-06  Bruno Haible  <bruno@clisp.org>
6701         uninorm/filter: Fix use-after-free bug.
6702         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6703         sortbuf == filter->sortbuf invariant.
6704         Reported by Coverity.
6706 2017-07-06  Bruno Haible  <bruno@clisp.org>
6708         glob: Fix more memory leaks.
6709         * lib/glob.c (glob): Free dirname before returning.
6710         Reported by Coverity and Tim Rühsen.
6712 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6714         parse-datetime: fix uninit var bug
6715         Reported by Bruno Haible in:
6716         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6717         * lib/parse-datetime.y (parse_datetime2): Do not use
6718         uninitialized.
6720 2017-07-05  Bruno Haible  <bruno@clisp.org>
6722         doc: Update for MSVC 14.
6723         * doc/posix-headers/*.texi: Add info about MSVC 14.
6724         * doc/posix-functions/*.texi: Likewise.
6725         * doc/pastposix-functions/*.texi: Likewise.
6726         * doc/glibc-headers/*.texi: Likewise.
6727         * doc/glibc-functions/*.texi: Likewise.
6729 2017-07-05  Bruno Haible  <bruno@clisp.org>
6731         sched: Fix build failure on native Windows (regression from 2017-06-19).
6732         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6734 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6736         stdioext: Port to OpenVMS.
6737         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6738         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6739         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6740         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6741         * lib/fpurge.c (fpurge): Likewise.
6742         * lib/freadable.c (freadable): Likewise.
6743         * lib/freadahead.c (freadahead): Likewise.
6744         * lib/freading.c (freading): Likewise.
6745         * lib/freadptr.c (freadptr): Likewise.
6746         * lib/freadseek.c (freadseek): Likewise.
6747         * lib/fseeko.c (fseeko): Likewise.
6748         * lib/fseterr.c (fseterr): Likewise.
6749         * lib/fwritable.c (fwriteable): Likewise.
6750         * lib/fwriting.c (fwriting): Likewise.
6752 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6754         glob: Declare variables at the very start of their scope.
6755         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6756         its separate scope, so the functions will compile on Haiku.
6758 2017-07-01  Bruno Haible  <bruno@clisp.org>
6760         logbl: Work around a glibc bug on PowerPC64LE.
6761         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6762         numbers.
6763         * doc/posix-functions/logbl.texi: Update.
6765 2017-06-29  Bruno Haible  <bruno@clisp.org>
6767         stat, fstat: Compile stat-w32.c only on platforms that need it.
6768         Suggested by Paul Eggert.
6769         * modules/stat (configure.ac): Request stat-w32.o only on native
6770         Windows.
6771         * modules/fstat (configure.ac): Likewise.
6773 2017-06-25  Bruno Haible  <bruno@clisp.org>
6775         stat: Improve last change.
6776         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6778 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6780         stat: port to xlc 12.01
6781         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6782         12.01 complains "Compilation unit is empty."
6784 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6786         xalloc-oversized: port to icc
6787         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6788         __builtin_mul_overflow if ICC is defined, as this results in
6789         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6790         20170213.
6792 2017-06-19  Bruno Haible  <bruno@clisp.org>
6794         classpath: Avoid including config.h twice, as it produces warnings.
6795         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6796         * lib/classpath.h: Conditionalize the include of config.h.
6798 2017-06-19  Bruno Haible  <bruno@clisp.org>
6799             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6801         sched: Fix compilation failure on OpenVMS.
6802         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6803         test whether <pthread.h> exists and defines struct sched_param.
6804         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6806 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6808         diffseq: port to GCC 7 with --enable-gcc-warnings
6809         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6810         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6811         not complain about big_snake being defined but not used.
6813 2017-06-15  Bruno Haible  <bruno@clisp.org>
6815         gettext-h: Update theoretical condition for use of variable size arrays.
6816         Reported by Paul Eggert.
6817         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6818         to include the theoretical condition for availability of variable size
6819         arrays, if we could trust the value of __STDC_VERSION__.
6821 2017-06-12  Bruno Haible  <bruno@clisp.org>
6823         Relicense some modules under LGPLv2+.
6824         Daiki Ueno's approval is in
6825         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6826         * modules/uniwidth/base (License): Change to LGPLv2+.
6827         * modules/uniwidth/width (License): Likewise.
6829 2017-06-11  Bruno Haible  <bruno@clisp.org>
6831         localename: Fix test failure on DragonFly BSD.
6832         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6833         like FreeBSD.
6835 2017-06-11  Bruno Haible  <bruno@clisp.org>
6837         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6838         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6839         * lib/float.in.h: Likewise.
6840         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6842 2017-06-11  Bruno Haible  <bruno@clisp.org>
6844         gnulib-tool: Clean up after autotools.
6845         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6846         useless directory left over by the Autotools.
6848 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6850         getopt-posix: port to glibc 2.25.90
6851         Problem reported by Daniel P. Berrange in:
6852         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6853         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6854         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6855         #undef if __GETOPT_PREFIX is defined.
6857 2017-06-11  Bruno Haible  <bruno@clisp.org>
6859         strtod-obsolete: Fix license.
6860         * modules/strtod-obsolete (License): Change to LGPL.
6862 2017-06-10  Jim Meyering  <meyering@fb.com>
6864         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6865         * lib/savewd.c (FALLTHROUGH): Define.
6866         (savewd_save, savewd_restore): Use this, rather than a comment,
6867         whenever one switch case falls through into the next.
6869 2017-06-08  Bruno Haible  <bruno@clisp.org>
6871         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6872         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6873         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6874         case.
6876 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6878         doc: remove robots, add prereqs
6879         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6880         builds.  Simon's robot site does not seem to be up, so remove
6881         mentions of it for now.
6883 2017-06-08  Bruno Haible  <bruno@clisp.org>
6885         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6886         * gnulib-tool (func_symlink_target): New function, extracted from
6887         func_symlink.
6888         (func_symlink, func_symlink_if_changed): Use it.
6890 2017-06-08  Bruno Haible  <bruno@clisp.org>
6892         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6893         * gnulib-tool (func_ln_s): Determine cp_src correctly.
6895 2017-06-07  Bruno Haible  <bruno@clisp.org>
6897         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
6898         Reported by John E. Malmberg <wb8tyw@gmail.com> in
6899         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
6900         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
6901         override, pass 2 arguments to getcwd, not 3.
6903 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6905         same-inode: port better to VMS 8.2 and later
6906         Problem reported by John E. Malmberg in:
6907         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
6908         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
6909         Use the usual POSIX definition.
6910         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
6912 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6914         error: fix POSIX violation for va_end
6915         Problem reported by Bruno Haible in:
6916         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
6917         * lib/error.c (error_tail): Do not call va_end here.
6918         (error, error_at_line): Call it here instead.
6920 2017-05-28  Bruno Haible  <bruno@clisp.org>
6922         c-strtod: Make it usable in C++ mode.
6923         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
6925 2017-05-25  Jim Meyering  <meyering@fb.com>
6927         quotearg: fix compilation failure due to FALLTHROUGH misuse
6928         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
6929         macro back to /* fall through */ comment.  The macro can apply only
6930         to a following case statement.  Reported by Assaf Gordon.
6932 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6934         intprops: port to recent icc
6935         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
6936         but does not support __builtin_add_overflow etc.
6937         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
6938         Define to 0.
6940 2017-05-23  Karl Berry  <karl@freefriends.org>
6942         * config/srclist.txt (iconv.m4): sync broken, comment out
6943         until (hopefully) the next gettext release.
6945 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6947         Remove repeated words in comments.
6949 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6951         fallthrough: reinstate a FALLTHROUGH instance in quotearg
6952         quotearg.c: Reinstate this instance which is significant
6953         when the if branch is not taken.
6955 2017-05-21  Bruno Haible  <bruno@clisp.org>
6957         gnulib-tool: Add options to create hard links.
6958         * gnulib-tool (func_usage): Document options --hardlink,
6959         --local-hardlink, --more-hardlinks.
6960         (func_symlink): Renamed from func_ln.
6961         (func_symlink_if_changed): Renamed from func_ln_if_changed.
6962         (func_hardlink): New function.
6963         (copymode, lcopymode): New variables.
6964         (symbolic, lsymbolic): Remove variables.
6965         (Options): Implement options --hardlink, --local-hardlink,
6966         --more-hardlinks.
6967         (func_should_link): Renamed from func_should_symlink. Set copyaction.
6968         (func_add_file, func_update_file): Update invocation of
6969         func_should_link. Invoke func_hardlink when appropriate.
6970         (func_import): Update comments.
6971         (func_create_testdir): Update invocation of func_should_link. Invoke
6972         func_hardlink when appropriate.
6973         Finally, invoke 'git update-index --refresh' to mitigate the effects of
6974         the hard links on git.
6976 2017-05-20  Bruno Haible  <bruno@clisp.org>
6978         argp: Simplify bit manipulation.
6979         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
6980         on a signed integer type.
6982 2017-05-20  Bruno Haible  <bruno@clisp.org>
6984         Avoid wrong configure results with gcc -fsanitize=address.
6985         This completes the work done on 2016-02-06 on this topic.
6986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
6987         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6989         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6990         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
6991         returning.
6992         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6993         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6994         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6995         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6996         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6997         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6998         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
6999         free allocated memory before returning.
7000         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7001         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7002         objects before returning.
7003         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7004         returning.
7006 2017-05-20  Bruno Haible  <bruno@clisp.org>
7008         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7009         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7011 2017-05-20  Bruno Haible  <bruno@clisp.org>
7013         argp, tsearch tests: Fix file list.
7014         * modules/argp-tests (Files): Add tests/macros.h.
7015         * modules/tsearch-tests (Files): Likewise.
7017 2017-05-20  Bruno Haible  <bruno@clisp.org>
7019         getopt-posix tests: Remove redundant include.
7020         * tests/test-getopt.h: Don't include "macros.h". It's already included
7021         by tests/test-getopt-main.h.
7023 2017-05-19  Jim Meyering  <meyering@fb.com>
7025         dfa: two small simplifications
7026         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7028 2017-05-18  Jim Meyering  <meyering@fb.com>
7030         fallthrough: update for GCC 7/8
7031         * lib/quotearg.c (FALLTHROUGH): New macro.
7032         Use it whenever one switch case falls through into the next,
7033         replacing "/* Fall through */" comments.  This exposed one
7034         instance of an unwarranted "fall through" comment: unwarranted
7035         because it preceded a "goto" label not a case statement.
7036         * lib/freopen-safer.c (freopen_safer): Likewise.
7037         * lib/fts.c (leaf_optimization_applies): Likewise.
7038         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7039         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7040         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7041         tests/macros.h for the definition.
7042         * tests/test-argp.c (group1_parser): Likewise.
7043         * tests/test-getopt.h (getopt_loop): Likewise.
7045 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7047         argp: fix shift bug
7048         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7049         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7051         argp: fix pointer-subtraction bug
7052         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7053         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7054         See the thread containing Bruno Haible’s report in:
7055         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7057 2017-05-19  Bruno Haible  <bruno@clisp.org>
7059         printf-posix tests: Avoid test failure with "gcc --coverage".
7060         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7061         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7062         than 5000000.
7063         * tests/test-fprintf-posix2.c (main): Likewise.
7065 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7067         closeout: don’t close stderr when sanitizing
7068         * NEWS: Document this.
7069         * lib/closeout.c (__has_feature): New macro, if not already defined.
7070         (SANITIZE_ADDRESS): New constant.
7071         (close_stdout): Don’t close stderr if sanitizing addresses.
7073 2017-05-19  Bruno Haible  <bruno@clisp.org>
7075         get-rusage-data tests: Avoid failure on Linux/glibc.
7076         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7077         on glibc systems.
7079 2017-05-18  Bruno Haible  <bruno@clisp.org>
7081         localename: Include necessary header files on Cygwin.
7082         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7083         where NL_LOCALE_NAME is defined.
7085 2017-05-18  Bruno Haible  <bruno@clisp.org>
7087         gettext: Update macros from gettext git.
7088         * m4/intldir.m4: Require Autoconf >= 2.60.
7089         * m4/progtest.m4: Fix typos in copyright notice.
7091 2017-05-18  Bruno Haible  <bruno@clisp.org>
7093         copy-file tests: Fix link error (regression from 2017-05-01).
7094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7095         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7096         $(LIB_CLOCK_GETTIME).
7098 2017-05-18  Bruno Haible  <bruno@clisp.org>
7100         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7101         (regression from 2017-02-13).
7102         * lib/unicase/special-casing.in.h: Renamed from
7103         lib/unicase/special-casing.h.
7104         * modules/unicase/special-casing (Files): Add
7105         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7106         (Makefile.am): Add rule for generating unicase/special-casing.h.
7107         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7108         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7109         not "special-casing.h".
7110         * lib/unicase/u*.c: Likewise.
7112 2017-05-17  Bruno Haible  <bruno@clisp.org>
7114         README: Don't ask people to read a TeXinfo file.
7115         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7116         * README: Tell people how to read the HTML formatted manual.
7118 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7120         parse-datetime: Fix memleak
7121         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7122         localtime_rz() failure.
7124 2017-05-16  Bruno Haible  <bruno@clisp.org>
7126         javacomp: Fix handle leak.
7127         Found by Coverity.
7128         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7130 2017-05-16  Bruno Haible  <bruno@clisp.org>
7132         relocate: Make it easier to reclaim allocated memory.
7133         * lib/relocatable.h (relocate2): New declaration/macro.
7134         * lib/relocatable.c (relocate2): New function.
7135         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7136         relocate2 function.
7137         * lib/localcharset.c (relocate2): Define fallback.
7138         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7139         allocated memory.
7140         * lib/javaversion.c (relocate2): Define fallback.
7141         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7142         allocated memory.
7144 2017-05-16  Bruno Haible  <bruno@clisp.org>
7146         relocate: Simplify EMX specific code.
7147         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7148         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7150 2017-05-16  Bruno Haible  <bruno@clisp.org>
7152         sigpipe tests: Fix file list.
7153         * modules/sigpipe-tests (Files): Add tests/macros.h.
7155 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7157         manywarnings: update for GCC 7
7158         * build-aux/gcc-warning.spec:
7159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7160         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7161         requires a non-comment fallthrough attribute.  This is a bit
7162         cleaner than the comment versions.
7163         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7164         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7165         Use it whenever one switch case falls through into the next.
7166         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7167         Use FALLTHROUGH macro.
7169 2017-05-15  Bruno Haible  <bruno@clisp.org>
7171         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7172         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7173         @ALLOCA@, not @LTALLOCA@.
7175 2017-05-15  Bruno Haible  <bruno@clisp.org>
7177         sys_select: Avoid "was expanded before it was required" warning.
7178         * modules/sys_select (configure.ac): Require, not invoke,
7179         gl_HEADER_SYS_SELECT.
7181 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7183         gnulib-tool: improve GNU Make debugging
7184         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7185         Report autoconf diagnostics when it fails, in the output makefile.
7187 2017-05-14  Bruno Haible  <bruno@clisp.org>
7189         stat-time tests: Improve comment.
7190         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7192 2017-05-14  Bruno Haible  <bruno@clisp.org>
7194         same-inode: Adapt for windows-stat-inodes.
7195         * lib/same-inode.h: Include <sys/types.h>.
7196         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7197         * modules/same-inode (Depends-on): Add sys_types.
7199 2017-05-14  Bruno Haible  <bruno@clisp.org>
7201         windows-stat-inodes: New module.
7202         * m4/windows-stat-inodes.m4: New file.
7203         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7204         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7205         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7206         (_GL_WINDOWS_STAT_INODES): New macro.
7207         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7208         (GetFileInformationByHandleExFunc): New variable.
7209         (initialize): Initialize it.
7210         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7211         st_ino appropriately.
7212         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7213         a fallback, because it does not provide st_dev and st_ino values.
7214         * modules/fstat (Depends-on): Add 'verify'.
7215         * modules/windows-stat-inodes: New file.
7216         * doc/windows-stat-inodes.texi: New file.
7217         * doc/gnulib.texi: Include it.
7218         * doc/posix-headers/sys_stat.texi: Mention the new module.
7220 2017-05-14  Bruno Haible  <bruno@clisp.org>
7222         stat-time tests: Workaround for native Windows.
7223         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7224         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7225         New variables.
7226         (initialize_filenames): New function.
7227         (main): Invoke it.
7228         (cleanup, prepare_test): Update.
7230 2017-05-14  Bruno Haible  <bruno@clisp.org>
7232         stat-time: Adapt for windows-stat-timespec.
7233         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7234         entire st_ctim field.
7236 2017-05-13  Jim Meyering  <meyering@fb.com>
7238         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7239         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7240         file that uses the assume macro, claiming that verify.h is unused.
7242 2017-05-13  Bruno Haible  <bruno@clisp.org>
7244         Use symbolic values for _WIN32_WINNT.
7245         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7246         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7248 2017-05-13  Bruno Haible  <bruno@clisp.org>
7250         year2038: New module.
7251         * m4/year2038.m4: New file.
7252         * modules/year2038: New file.
7253         * doc/year2038.texi: New file.
7254         * doc/gnulib.texi: Include it.
7256 2017-05-13  Bruno Haible  <bruno@clisp.org>
7258         largefile: Simplify.
7259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7260         of _GL_WINDOWS_64_BIT_ST_SIZE.
7262 2017-05-13  Bruno Haible  <bruno@clisp.org>
7264         largefile: Improve and document.
7265         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7266         the mingw headers already define 'stat' appropriately.
7267         * modules/largefile (Description): Clarify.
7268         * doc/largefile.texi: New file.
7269         * doc/gnulib.texi: Include it.
7270         * doc/posix-headers/sys_types.texi: Update.
7272 2017-05-13  Bruno Haible  <bruno@clisp.org>
7274         truncate: New module.
7275         * lib/unistd.in.h (truncate): New declaration.
7276         * lib/truncate.c: New file.
7277         * m4/truncate.m4: New file.
7278         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7279         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7280         REPLACE_TRUNCATE.
7281         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7282         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7283         * modules/truncate: New file.
7284         * tests/test-unistd-c++.cc (truncate): Test signature.
7285         * doc/posix-functions/truncate.texi: Mention the new module.
7287         * tests/test-truncate.c: New file.
7288         * modules/truncate-tests: New file.
7290 2017-05-13  Bruno Haible  <bruno@clisp.org>
7292         windows-stat-timespec: New module.
7293         * modules/windows-stat-timespec: New file.
7294         * m4/windows-stat-timespec.m4: New file.
7295         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7296         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7297         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7298         fields st_atim, st_mtim, st_ctim.
7299         (st_atime, st_mtime, st_ctime): Define as macros.
7300         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7301         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7302         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7303         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7304         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7305         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7306         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7307         FILETIME to 'struct timespec', not 'time_t'.
7308         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7309         FILETIME to 'struct timespec', not 'time_t'.
7310         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7311         _GL_WINDOWS_STAT_TIMESPEC.
7312         * doc/windows-stat-timespec.texi: New file.
7313         * doc/gnulib.texi: Include it.
7315 2017-05-13  Bruno Haible  <bruno@clisp.org>
7317         windows-stat-override: New module.
7318         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7319         definition. Define GNULIB_defined_struct_stat.
7320         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7321         link error if this symbol is used and the corresponding module is not
7322         in use.
7323         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7324         GNULIB_OVERRIDES_STRUCT_STAT.
7325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7326         GNULIB_OVERRIDES_STRUCT_STAT.
7327         * modules/sys_stat (Makefile.am): Substitute
7328         GNULIB_OVERRIDES_STRUCT_STAT.
7329         * modules/windows-stat-override: New file.
7331 2017-05-13  Bruno Haible  <bruno@clisp.org>
7333         fstat: Fix module dependency conditions.
7334         * modules/fstat (Depends-on): Fix typo.
7336 2017-05-13  Bruno Haible  <bruno@clisp.org>
7338         stat, fstat: Complete removal of old native Windows code.
7339         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7340         * lib/fstat.c: Likewise.
7341         * lib/stat-w32.c: Likewise.
7343 2017-05-13  Bruno Haible  <bruno@clisp.org>
7345         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7346         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7348 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7350         getopt-posix: port to mingw
7351         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7352         Problem reported by Daniel P. Berrage in:
7353         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7355 2017-05-11  Bruno Haible  <bruno@clisp.org>
7357         gettimeofday: Increase precision on mingw.
7358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7359         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7360         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7361         GetSystemTimePreciseAsFileTime based implementation always.
7362         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7363         mingw.
7365 2017-05-11  Bruno Haible  <bruno@clisp.org>
7367         poll: Fix confusion between SOCKETs and FDs on native Windows.
7368         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7369         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7371 2017-05-11  Bruno Haible  <bruno@clisp.org>
7373         doc: Clarify doc about socket functions on native Windows.
7374         This reworks doc that was added on 2008-09-29.
7375         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7376         clearer wording.
7377         * doc/posix-functions/accept.texi: Use clearer wording.
7378         * doc/posix-functions/bind.texi: Likewise.
7379         * doc/posix-functions/connect.texi: Likewise.
7380         * doc/posix-functions/getpeername.texi: Likewise.
7381         * doc/posix-functions/getsockname.texi: Likewise.
7382         * doc/posix-functions/getsockopt.texi: Likewise.
7383         * doc/posix-functions/ioctl.texi: Likewise.
7384         * doc/posix-functions/listen.texi: Likewise.
7385         * doc/posix-functions/recv.texi: Likewise.
7386         * doc/posix-functions/recvfrom.texi: Likewise.
7387         * doc/posix-functions/send.texi: Likewise.
7388         * doc/posix-functions/sendto.texi: Likewise.
7389         * doc/posix-functions/setsockopt.texi: Likewise.
7390         * doc/posix-functions/shutdown.texi: Likewise.
7391         * doc/posix-functions/socket.texi: Likewise.
7393 2017-05-10  Bruno Haible  <bruno@clisp.org>
7395         poll: Fix link error on native Windows.
7396         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7398 2017-05-10  Bruno Haible  <bruno@clisp.org>
7400         time: Fix missing initialization of HAVE_TIMEZONE_T.
7401         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7402         here...
7403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7404         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7405         gl_HEADER_SYS_TIME_H_DEFAULTS.
7406         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7407         (configure.ac): Remove useless quoting.
7409 2017-05-10  Bruno Haible  <bruno@clisp.org>
7411         Implement a way to opt out from MSVC support, part 2.
7412         * modules/msvc-inval (Include): Document recommended idiom.
7413         * modules/msvc-nothrow (Include): Likewise.
7415         Implement a way to opt out from MSVC support.
7416         This is useful for Emacs.
7417         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7418         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7419         * lib/error.c: Likewise.
7420         * lib/fcntl.c: Likewise.
7421         * lib/flock.c: Likewise.
7422         * lib/fstat.c: Likewise.
7423         * lib/fsync.c: Likewise.
7424         * lib/ioctl.c: Likewise.
7425         * lib/isapipe.c: Likewise.
7426         * lib/lseek.c: Likewise.
7427         * lib/nonblocking.c: Likewise.
7428         * lib/poll.c: Likewise.
7429         * lib/select.c: Likewise.
7430         * lib/sockets.h: Likewise.
7431         * lib/sockets.c: Likewise.
7432         * lib/stdio-read.c: Likewise.
7433         * lib/stdio-write.c: Likewise.
7434         * lib/utimens.c: Likewise.
7435         * lib/w32sock.h: Likewise.
7436         * lib/w32spawn.h: Likewise.
7437         * tests/test-cloexec.c: Likewise.
7438         * tests/test-dup-safer.c: Likewise.
7439         * tests/test-dup2.c: Likewise.
7440         * tests/test-dup3.c: Likewise.
7441         * tests/test-fcntl.c: Likewise.
7442         * tests/test-pipe.c: Likewise.
7443         * tests/test-pipe2.c: Likewise.
7444         * lib/ftruncate.c: Likewise.
7445         (chsize_nothrow): Renamed from chsize.
7446         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7447         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7448         * lib/close.c: Likewise.
7449         * lib/dup.c: Likewise.
7450         * lib/fclose.c: Likewise.
7451         * lib/raise.c: Likewise.
7452         * tests/test-fgetc.c: Likewise.
7453         * tests/test-fputc.c: Likewise.
7454         * tests/test-fread.c: Likewise.
7455         * tests/test-fwrite.c: Likewise.
7456         * lib/getdtablesize.c: Likewise.
7457         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7458         * lib/isatty.c: Don't include msvc-inval.h if
7459         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7460         Include <io.h> as an alternative to msvc-nothrow.h.
7461         * lib/read.c: Likewise.
7462         * lib/write.c: Likewise.
7463         * lib/dup2.c: Likewise.
7464         (dup2_nothrow): New function.
7465         (ms_windows_dup2): Use it.
7466         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7467         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7468         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7469         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7470         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7471         * m4/read.m4 (gl_FUNC_READ): Likewise.
7472         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7473         * doc/windows-without-msvc.texi: New file.
7474         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7475         section.
7477 2017-05-10  Bruno Haible  <bruno@clisp.org>
7479         wait-process: Adjust native Windows support.
7480         * lib/wait-process.c: Use the usual condition for recognizing a native
7481         Windows platform.
7483 2017-05-10  Bruno Haible  <bruno@clisp.org>
7485         doc: New chapter "Native Windows Support".
7486         * doc/gnulib.texi (Native Windows Support): New chapter.
7487         * doc/windows-libtool.texi: Small wording changes.
7488         * doc/windows-sockets.texi: Small wording and formatting changes.
7490 2017-05-10  Bruno Haible  <bruno@clisp.org>
7492         doc: Move section "Library version handling".
7493         * doc/gnulib.texi: Move section "Library version handling"
7494         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7496 2017-05-10  Bruno Haible  <bruno@clisp.org>
7498         doc: Move section "Running self-tests under valgrind".
7499         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7500         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7502 2017-05-10  Bruno Haible  <bruno@clisp.org>
7504         doc: New chapter "Build Infrastructure Modules".
7505         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7507 2017-05-10  Bruno Haible  <bruno@clisp.org>
7509         Prepare for reordering sections in the manual.
7510         * doc/gnulib.texi: Move several sections to separate files. Include
7511         these files.
7512         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7513         * doc/obsolete.texi: Likewise.
7514         * doc/extra-tests.texi: Likewise.
7515         * doc/transversal.texi: Likewise.
7516         * doc/namespace.texi: Likewise.
7517         * doc/check-version.texi: Likewise.
7518         * doc/windows-sockets.texi: Likewise.
7519         * doc/windows-libtool.texi: Likewise.
7520         * doc/licenses-texi.texi: Likewise.
7521         * doc/build-automation.texi: Likewise.
7522         * doc/c-locale.texi: Likewise.
7524 2017-05-10  Bruno Haible  <bruno@clisp.org>
7526         Fix instructions how to update manual on www.gnu.org.
7527         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7529 2017-05-09  Bruno Haible  <bruno@clisp.org>
7531         tzset: Expand comment about TZ problem on native Windows.
7532         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7533         Paul Eggert.
7534         * lib/ctime.c (rpl_ctime): Likewise.
7535         * lib/localtime.c (rpl_localtime): Likewise.
7536         * lib/mktime.c (mktime): Likewise.
7537         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7538         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7540 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7542         intprops: don’t depend on ‘verify’
7543         Problem reported by Ævar Arnfjörð Bjarmason in:
7544         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7545         * lib/intprops.h: Do not include verify.h, and move compile-time
7546         checks from here ...
7547         * tests/test-intprops.c (main): ... to here, if they’re not here
7548         already.  Check widths of other standard integer types.
7549         * modules/intprops (Depends-on): Remove ‘verify’.
7551 2017-05-07  Bruno Haible  <bruno@clisp.org>
7553         utimens: On native Windows, support 100ns resolution also if fd < 0.
7554         * lib/utime.in.h: Include <time.h>.
7555         (_gl_utimens_windows): New declaration.
7556         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7557         (utime): Invoke it.
7558         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7559         instead of utime.
7560         * modules/utime (Depends-on): Add 'time'.
7562 2017-05-07  Bruno Haible  <bruno@clisp.org>
7564         utimens: Improve error code on native Windows.
7565         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7566         error code EACCES, not EINVAL.
7568 2017-05-07  Bruno Haible  <bruno@clisp.org>
7570         utime: Handle more Windows error codes.
7571         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7572         Based on explanations by Billy O'Neal.
7574 2017-05-05  Bruno Haible  <bruno@clisp.org>
7576         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7577         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7578         union.
7579         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7580         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7581         value of cipher->IV.
7583 2017-05-05  Bruno Haible  <bruno@clisp.org>
7585         wctype-h-c++-tests: Update.
7586         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7588 2017-05-05  Bruno Haible  <bruno@clisp.org>
7590         wchar-c++-tests: Update.
7591         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7593 2017-05-05  Bruno Haible  <bruno@clisp.org>
7595         utime-h-c++-tests: New module.
7596         * tests/test-utime-h-c++.cc: New file.
7597         (utime): Declare, missing since 2017-04-30.
7598         * modules/utime-h-c++-tests: New file.
7600 2017-05-05  Bruno Haible  <bruno@clisp.org>
7602         unistd-c++-tests: Update.
7603         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7604         (read): Declare, missing since 2011-04-15.
7605         (sethostname): Declare, missing since 2011-12-03.
7607 2017-05-05  Bruno Haible  <bruno@clisp.org>
7609         time-c++-tests: Update.
7610         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7611         (localtime, gmtime): Declare, missing since 2017-04-30.
7612         (ctime): Declare, missing since 2017-04-30.
7613         (strftime): Declare, missing since 2017-04-30.
7614         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7615         2015-07-24.
7617 2017-05-05  Bruno Haible  <bruno@clisp.org>
7619         sys_resource-c++-tests: New module.
7620         * tests/test-sys_resource-c++.cc: New file.
7621         (getrusage): Declare, missing since 2012-04-13.
7622         * modules/sys_resource-c++-tests: New file.
7624 2017-05-05  Bruno Haible  <bruno@clisp.org>
7626         strings-c++-tests: New module.
7627         * tests/test-strings-c++.cc: New file.
7628         (ffs): Declare, missing since 2011-07-12.
7629         * modules/strings-c++-tests: New file.
7631 2017-05-05  Bruno Haible  <bruno@clisp.org>
7633         string-c++-tests: Update.
7634         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7635         (ffsll): Declare, missing since 2011-07-15.
7637 2017-05-05  Bruno Haible  <bruno@clisp.org>
7639         stdlib-c++-tests: Update.
7640         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7641         2011-10-18.
7642         (ptsname_r): Declare, missing since 2011-11-07.
7643         (qsort_r): Declare, missing since 2014-08-29.
7644         (random, srandom, initstate, setstate): Declare, missing since
7645         2012-01-14.
7646         (secure_getenv): Declare, missing since 2013-02-05.
7648 2017-05-05  Bruno Haible  <bruno@clisp.org>
7650         stdio-c++-tests: Update.
7651         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7653 2017-05-05  Bruno Haible  <bruno@clisp.org>
7655         signal-h-c++-tests: Update.
7656         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7658 2017-05-05  Bruno Haible  <bruno@clisp.org>
7660         math-c++-tests: Update.
7661         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7662         (fma): Declare, missing since 2011-10-17.
7663         (fmal): Declare, missing since 2011-10-17.
7665 2017-05-05  Bruno Haible  <bruno@clisp.org>
7667         locale-c++-tests: Update.
7668         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7669         2012-03-25.
7671 2017-05-05  Bruno Haible  <bruno@clisp.org>
7673         inttypes-c++-tests: New module.
7674         * tests/test-inttypes-c++.cc: New file.
7675         (strtoimax): Declare, missing since 2012-01-05.
7676         (strtoumax): Declare, missing since 2012-01-05.
7677         * modules/inttypes-c++-tests: New file.
7679 2017-05-05  Bruno Haible  <bruno@clisp.org>
7681         dirent-c++-tests: Update.
7682         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7683         (rewinddir): Declare, missing since 2011-09-13.
7684         (dirfd): Declare, missing since 2010-03-08.
7686 2017-05-04  Bruno Haible  <bruno@clisp.org>
7688         argp: Fix mistake in 2017-04-23 commit.
7689         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7690         assume that strerror_r returns 'int', not 'char *'.
7692 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7694         argp: Fix typo.
7695         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7697 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7699         utimens: port to Emacs + MS-Windows
7700         Skip the new MS-Windows-specific code if Emacs.
7701         * lib/utimens.c [EMACS_CONFIGUATION]:
7702         Avoid new MS-Windows-specific code.
7703         (USE_SETFILETIME): New macro.
7704         (fdutimens): Use it.
7706 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7708         tzset: update doc for TZ problems on MS-Windows
7709         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7710         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7711         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7712         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7713         * doc/posix-functions/wcsftime.texi:
7714         Mention some issues with TZ under MS-Windows.
7716 2017-05-01  Bruno Haible  <bruno@clisp.org>
7718         copy-file: Fix build error on mingw.
7719         * modules/copy-file (Depends-on): Add 'close'.
7721 2017-05-01  Bruno Haible  <bruno@clisp.org>
7723         tzset: Work around TZ problem on native Windows.
7724         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7725         Windows, set REPLACE_TZSET to 1.
7726         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7727         invoke '_tzset' instead of 'tzset'.
7728         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7730         * modules/time_rz (Depends-on): Add tzset.
7731         * lib/time_rz.c (tzset): Remove fallback definition.
7732         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7734 2017-05-01  Bruno Haible  <bruno@clisp.org>
7736         mktime: Fix dependencies.
7737         * modules/mktime (Depends-on): Add 'time'.
7739 2017-05-01  Bruno Haible  <bruno@clisp.org>
7741         New module 'localtime-buffer', split off from module 'gettimeofday'.
7742         * lib/localtime-buffer.h: New file.
7743         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7744         * lib/time.in.h (tzset): New declaration.
7745         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7746         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7747         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7748         moved to lib/localtime-buffer.c or lib/tzset.c.
7749         * m4/localtime-buffer.m4: New file.
7750         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7751         HAVE_TZSET, REPLACE_TZSET.
7752         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7753         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7754         gl_LOCALTIME_BUFFER_NEEDED.
7755         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7756         since 2007-01-18.
7757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7758         tzset.
7759         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7760         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7761         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7762         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7763         * modules/localtime-buffer: New file.
7764         * modules/time (Depends-on): Remove 'gettimeofday'.
7765         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7766         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7767         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7768         (Files): Add lib/tzset.c.
7769         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7770         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7771         gl_TIME_MODULE_INDICATOR.
7772         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7774 2017-05-01  Bruno Haible  <bruno@clisp.org>
7776         copy-file: Preserve sub-second time stamps.
7777         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7778         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7779         transport the time stamps from the original file to the destination
7780         file.
7781         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7782         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7783         utime-h.
7785 2017-05-01  Bruno Haible  <bruno@clisp.org>
7787         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7788         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7789         also on MSVC.
7790         Reported by Eli Zaretskii <eliz@gnu.org>.
7792 2017-05-01  Bruno Haible  <bruno@clisp.org>
7794         wchar: Fix compilation error with the original mingw.org mingw.
7795         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7796         <stddef.h> instead.
7797         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7798         gl_WCTYPE_H.
7799         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7800         gl_TYPE_WINT_T_PREREQ instead.
7801         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7802         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7803         Reported by Eli Zaretskii <eliz@gnu.org>.
7805 2017-04-30  Bruno Haible  <bruno@clisp.org>
7807         utimecmp: Add support for native Windows.
7808         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7810 2017-04-30  Bruno Haible  <bruno@clisp.org>
7812         utimens: Add support for native Windows.
7813         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7814         (fdutimens): Provide a native Windows implementation, like utime.c with
7815         added tv_nsec support.
7816         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7817         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7819 2017-04-30  Bruno Haible  <bruno@clisp.org>
7821         wcsftime: New module.
7822         * lib/wchar.in.h (wcsftime): New declaration.
7823         * lib/wcsftime.c: New file.
7824         * m4/wcsftime.m4: New file.
7825         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7826         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7827         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7829         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7830         * modules/wcsftime: New file.
7831         * doc/posix-functions/wcsftime.texi: Mention the new module.
7833 2017-04-30  Bruno Haible  <bruno@clisp.org>
7835         strftime-fixes: New module.
7836         * lib/time.in.h (strftime): New declaration.
7837         * lib/strftime-fixes.c: New file.
7838         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7839         (gl_FUNC_STRFTIME): Remove macro.
7840         * m4/strftime-fixes.m4: New file.
7841         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7842         REPLACE_STRFTIME.
7843         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7844         REPLACE_STRFTIME.
7845         * modules/strftime-fixes: New file.
7846         * doc/posix-functions/strftime.texi: Mention the new module.
7848 2017-04-30  Bruno Haible  <bruno@clisp.org>
7850         mktime: Work around TZ problem on native Windows.
7851         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7852         from the native Windows workaround.
7853         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7854         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7855         'guessing no'.
7856         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7857         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7858         NEED_MKTIME_WINDOWS.
7859         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7860         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7861         NEED_MKTIME_INTERNAL.
7862         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7863         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7864         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7865         not REPLACE_MKTIME.
7866         * doc/posix-functions/mktime.texi: Mention the native Windows
7867         workaround.
7869 2017-04-30  Bruno Haible  <bruno@clisp.org>
7871         localtime: New module.
7872         * lib/time.in.h (localtime): Declare also if requested by module
7873         'localtime'.
7874         * lib/localtime.c: New file.
7875         * m4/localtime.m4: New file.
7876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7877         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7878         * modules/localtime: New file.
7879         * doc/posix-functions/localtime.texi: Mention the new module.
7881 2017-04-30  Bruno Haible  <bruno@clisp.org>
7883         ctime: New module.
7884         * lib/time.in.h (ctime): New declaration.
7885         * lib/ctime.c: New file.
7886         * m4/ctime.m4: New file.
7887         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7888         REPLACE_CTIME.
7889         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7890         * modules/ctime: New file.
7891         * doc/posix-functions/ctime.texi: Mention the new module.
7893 2017-04-30  Bruno Haible  <bruno@clisp.org>
7895         gettimeofday: Provide higher resolution on native Windows.
7896         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
7897         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
7898         (initialize): Initialize it.
7899         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
7900         'struct timeval'. Don't use _ftime().
7901         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
7902         <sys/timeb.h> and _ftime.
7904 2017-04-30  Bruno Haible  <bruno@clisp.org>
7906         Document the problem with the Cygwin environment variable TZ.
7907         * doc/posix-functions/tzset.texi: Add note about TZ.
7908         * doc/posix-functions/ctime.texi: Likewise.
7909         * doc/posix-functions/localtime.texi: Likewise.
7910         * doc/posix-functions/mktime.texi: Likewise.
7911         * doc/posix-functions/strftime.texi: Likewise.
7912         * doc/posix-functions/wcsftime.texi: Likewise.
7913         * doc/pastposix-functions/ftime.texi: Likewise.
7915 2017-04-30  Bruno Haible  <bruno@clisp.org>
7917         utime-tests: New module.
7918         * tests/test-utime.c: New file, based on tests/test-utimens.h.
7919         * tests/test-utimens-common.h: Include <sys/stat.h>.
7920         * modules/utime-tests: New file.
7922 2017-04-29  Bruno Haible  <bruno@clisp.org>
7924         utime: New module.
7925         * lib/utime.in.h: Add comment for snippets.
7926         (utime): New declaration.
7927         * lib/utime.c: New file.
7928         * m4/utime.m4: New file.
7929         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
7930         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
7931         REPLACE_UTIME.
7932         * modules/utime-h (Depends-on): Add snippets.
7933         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
7934         Insert snippets.
7935         * modules/utime: New file.
7936         * doc/posix-functions/utime.texi: Mention the new module.
7938 2017-04-29  Bruno Haible  <bruno@clisp.org>
7940         utime-h: Modernize handling of 'struct utimbuf'.
7941         * lib/utime.in.h: Include next <utime.h> if it exists.
7942         (utimbuf): Define to _utimbuf on native Windows.
7943         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
7944         Set UTIME_H on native Windows.
7945         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
7946         * modules/utime-h (Depends-on): Add include_next.
7947         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
7948         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
7950         * lib/utimens.c (utimbuf): Remove fallback definition.
7951         * m4/utimens.m4 (gl_UTIMENS): Don't require
7952         gl_CHECK_TYPE_STRUCT_UTIMBUF.
7953         * m4/utimbuf.m4: Remove file.
7954         * modules/utimens (Files): Remove m4/utimbuf.m4.
7956 2017-04-29  Bruno Haible  <bruno@clisp.org>
7958         Make use of module 'utime-h'.
7959         * modules/copy-file (Depends-on): Add utime-h.
7960         * lib/copy-file.c: Assume that <utime.h> exists.
7961         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
7963         * modules/utimens (Depends-on): Add utime-h.
7964         * lib/utimens.c: Assume that <utime.h> exists.
7966 2017-04-29  Bruno Haible  <bruno@clisp.org>
7968         utime-h: New module.
7969         * m4/utime_h.m4: New file.
7970         * lib/utime.in.h: New file.
7971         * modules/utime-h: New file.
7972         * doc/posix-headers/utime.texi: Mention the new module.
7974         * tests/test-utime-h.c: New file.
7975         * modules/utime-h-tests: New file.
7977 2017-04-30  Bruno Haible  <bruno@clisp.org>
7979         Fix a few typos.
7980         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
7981         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
7982         * doc/posix-functions/fstat.texi: Fix a plural typo.
7983         * doc/posix-functions/stat.texi: Likewise.
7984         * m4/include_next.m4: Update comments.
7986 2017-04-29  Bruno Haible  <bruno@clisp.org>
7988         error: Fix mistake in 2017-04-23 commit.
7989         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
7990         assume that strerror_r returns 'int', not 'char *'.
7992 2017-04-29  Bruno Haible  <bruno@clisp.org>
7994         stat: Fix time_t values and other problems on native Windows platforms.
7995         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
7996         implementations of stat().
7997         * lib/stat.c: Include filename.h instead of dosname.h. Include
7998         malloca.h, stat-w32.h.
7999         (is_unc_root): New function.
8000         (rpl_stat): New implementation for native Windows. Remove
8001         REPLACE_FUNC_STAT_DIR code.
8002         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8003         Don't define REPLACE_FUNC_STAT_DIR.
8004         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8005         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8006         (Depends-on): Remove dosname. Add filename, malloca.
8007         (configure.ac): Also compile lib/stat-w32.c.
8009 2017-04-29  Bruno Haible  <bruno@clisp.org>
8011         fstat: Fix time_t values on native Windows platforms.
8012         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8013         * lib/stat-w32.h: New file.
8014         * lib/stat-w32.c: New file.
8015         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8016         stat-w32.h instead.
8017         (fstat_nothrow): Remove function.
8018         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8019         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8020         always.
8021         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8022         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8023         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8024         (configure.ac): Also compile lib/stat-w32.c.
8026 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8028         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8029         Problem reported by Assaf Gordon and Gavin Smith in:
8030         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8031         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8032         #define this, too.
8034 2017-04-29  Bruno Haible  <bruno@clisp.org>
8036         strerror_r-posix: Fixes for MSVC 14.
8037         * lib/strerror_r.c: Include <stdarg.h>.
8038         (strerror_r): Provide error messages for errno values 100...140.
8039         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8041 2017-04-28  Bruno Haible  <bruno@clisp.org>
8043         noreturn: New module.
8044         * lib/noreturn.h: New file.
8045         * modules/noreturn: New file.
8046         * tests/test-noreturn.c: New file.
8047         * modules/noreturn-tests: New file.
8048         * tests/test-noreturn-c++.cc: New file.
8049         * modules/noreturn-c++-tests: New file.
8051 2017-04-27  Bruno Haible  <bruno@clisp.org>
8053         wctype-h: Fix compilation error with the original mingw.org mingw.
8054         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8055         HAVE_CRTDEFS_H.
8056         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8057         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8058         <stddef.h> instead.
8059         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8061 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8063         nap.h: Fix compilation on non windows platforms
8064         * tests/nap.h: Move misplaced endif.
8066 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8067         and Paul Eggert  <eggert@cs.ucla.edu>
8069         time_rz: fix heap buffer overflow vulnerability
8070         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8071         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8072         whether there is enough buffer space available, thus avoiding
8073         the problematic promotion of signed to unsigned causing an invalid
8074         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8075         the start of the buffer.
8076         * tests/test-parse-datetime.c (main): Add a test case written by
8077         Paul Eggert, which overwrites enough of the heap so that
8078         standard glibc will fail with "free(): invalid pointer"
8079         without the patch applied.
8081 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8083         xalloc: add missing integer overflow check
8084         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8085         overflow when P is null.
8087 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8089         parse-datetime: make it standalone
8090         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8091         (_GL_ATTRIBUTE_FORMAT): New macro.
8092         These are needed to get './gnulib-tool --test parse-datetime' to work.
8094 2017-04-23  Bruno Haible  <bruno@clisp.org>
8096         nap.h: Port to native Windows.
8097         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8098         use nap_fd instead. On native Windows, close and reopen nap_fd.
8099         (nap_works): Don't compare the ctimes, because on native Windows, these
8100         are the creation times.
8101         (nap): Update.
8103 2017-04-23  Bruno Haible  <bruno@clisp.org>
8105         nap.h: Fix logic.
8106         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8108 2017-04-23  Bruno Haible  <bruno@clisp.org>
8110         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8111         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8112         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8113         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8114         * lib/argp-help.c (__argp_failure): Likewise.
8116 2017-04-23  Bruno Haible  <bruno@clisp.org>
8118         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8119         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8120         * lib/strerror_r.c: Likewise.
8122 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8124         Target a C99 subset, not a C89 subset
8125         For many years Gnulib has targeted C89 and has resisted using C99
8126         features, as some Gnulib-using programs still wanted to target
8127         C89.  As this no longer seems to be the case, relax the porting
8128         requirements to allow some C99 features.  This is merely a change
8129         to the documentation, to give other Gnulib developers a chance to
8130         weigh in on the topic.
8131         * doc/extern-inline.texi (extern inline):
8132         * doc/gnulib-readme.texi (Portability guidelines):
8133         * doc/gnulib-tool.texi (Initial import):
8134         * doc/gnulib.texi (Header files):
8135         Modernize to talk about C99 and C11 instead of C89 and C99.
8136         * doc/gnulib-readme.texi (Portability guidelines):
8137         Now a section, not merely a subsection, so that it
8138         can be split up.  Modernize a bit.
8139         (C language versions, C99 features assumed)
8140         (C99 features avoided):
8141         New sections.
8143 2017-04-23  Bruno Haible  <bruno@clisp.org>
8145         doc: New section "Modules that modify the way other modules work".
8146         * doc/gnulib.texi (Modules that modify the way other modules work): New
8147         section.
8149 2017-04-23  Bruno Haible  <bruno@clisp.org>
8151         stat-time: Update comments.
8152         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8153         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8154         Windows.
8156 2017-04-01  Bruno Haible  <bruno@clisp.org>
8158         glob: Fix more memory leaks.
8159         * lib/glob.c (glob): Free allocated memory before returning.
8160         Reported by Coverity via Tim Rühsen.
8162 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8164         poll: improve fast check for out-of-range NFD
8165         * lib/poll.c: Do not include intprops.h.
8166         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8167         * modules/poll (Depends-on): Remove intprops.
8169         ftoastr: cite a newer paper
8170         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8171         instead of Loitsch 2010.
8173 2017-04-22  Bruno Haible  <bruno@clisp.org>
8175         poll: Enable argument check also in the Windows implementation.
8176         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8177         Reported by Paul Eggert.
8179 2017-04-22  Bruno Haible  <bruno@clisp.org>
8181         getlogin_r: Work around bug in Mac OS X 10.12.
8182         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8183         bug.
8184         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8185         given size minus 1, call getlogin_r a second time, on a larger buffer.
8186         * modules/getlogin_r (Depends-on): Add malloca.
8187         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8189 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8191         parse-datetime: fix %z and prefer signed int
8192         %z problem reported by Pádraig Brady in:
8193         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8194         While fixing it, I decided to prefer signed ints to size_t, as
8195         they are less error-prone (e.g., ubsan catches overflow).
8196         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8197         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8198         counts, since signed integers make for better debugging.
8199         (date): Don’t assume %z works in printf formats.
8200         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8201         sizes of buffers known to be small, e.g., because we’re using snprintf.
8202         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8204 2017-04-22  Bruno Haible  <bruno@clisp.org>
8206         *printf: Work around rounding bug on Mac OS X.
8207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8208         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8209         Mac OS X and FreeBSD.
8210         * doc/glibc-functions/*printf.texi: Likewise.
8212 2017-04-22  Bruno Haible  <bruno@clisp.org>
8214         vasnprintf tests: Avoid warnings.
8215         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8216         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8217         test.
8219 2017-04-22  Bruno Haible  <bruno@clisp.org>
8221         sys_file tests: Avoid warning.
8222         * tests/test-sys_file.c (main): Add a default clause to the switch
8223         statement.
8225 2017-04-22  Bruno Haible  <bruno@clisp.org>
8227         sethostname: Update doc.
8228         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8229         Mac OS X.
8231 2017-04-22  Bruno Haible  <bruno@clisp.org>
8233         quotearg tests: Avoid warnings.
8234         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8235         false.
8237 2017-04-22  Bruno Haible  <bruno@clisp.org>
8239         poll: Enable argument check.
8240         * lib/poll.c: Include intprops.h.
8241         (poll): Check value of nfd correctly.
8242         * modules/poll (Depends-on): Add intprops.
8244 2017-04-22  Bruno Haible  <bruno@clisp.org>
8246         get-rusage-data: Avoid warnings on Mac OS X.
8247         * lib/get-rusage-data.c: On Mac OS X, don't define
8248         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8249         (get_rusage_data) [Mac OS X]: Just return 0.
8251 2017-04-22  Bruno Haible  <bruno@clisp.org>
8253         xbinary-io: Fix build error.
8254         * modules/xbinary-io (Depends-on): Add gettext-h.
8255         * lib/xbinary-io.c: Include gettext.h and define _().
8256         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8257         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8259 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8261         parse-datetime: overflow and debug cleanups
8262         This long patch was triggered by this bug report from Ruediger Meier:
8263         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8264         I fixed the bug he noted, then found some others nearby, and then
8265         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8266         up some of the code to follow GNU standards while I was at it.
8267         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8268         use c_isdigit.
8269         (EPOCH_YEAR): Remove; unused.
8270         (TM_YEAR_BASE): Now an enum rather than a macro.
8271         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8272         time zone offset, since timezones now are in terms of seconds and
8273         not minutes.
8274         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8275         appropriate.  Verify that intmax_t is wide enough.
8276         (time_overflow, time_zone_str): New functions, used to deal
8277         more reliably with overflow.
8278         (dbg_printf): Add printf attribute, to help catch integer width errors.
8279         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8280         (%union, to_hour, yylex, parse_datetime2):
8281         Use intmax_t instead of long int and/or long_time_t.
8282         All uses changed.
8283         (DBGBUFSIZE): Move earlier.
8284         (relative_time, set_hhmmss, parser_control):
8285         Just use int for nanoseconds and for time zones; that’s wide enough.
8286         (parser_control): Use bool for members like year_seen that can
8287         be booleans instead of counters.  All uses changed.
8288         Remove debug_default_input_timezone; no longer needed.
8289         All uses removed.
8290         (apply_relative_time): Return a bool overflow flag.
8291         All uses changed to check for overflow.
8292         (apply_relative_time, zone, date, relunit, relunit_snumber)
8293         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8294         Check for integer overflow portably.
8295         (str_days): Use just int for N, as it’s wide enough.
8296         Prefer 2D char arrays to arrays of char * when it looks like
8297         2D is a win on typical platforms.
8298         Prefer snprintf to strncpy/strncat, for simplicity;
8299         all buffers are smaller than INT_MAX so this is safe.
8300         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8301         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8302         as this is not true on x32.  Output "." before any nanoseconds.
8303         (debug_print_current_time, parse_datetime2):
8304         Output local zones using a more-consistent format.
8305         (debug_print_current_time, date, parse_datetime2):
8306         (main) [TEST]:
8307         Don’t assume time_t is the same width as long.
8308         (print_rel_part): New function, replacing ...
8309         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8310         (debug_print_relative_time): Use bool for boolean.
8311         (local_zone): dsts_seen now counts only tDST instances.
8312         (date): Fix printf of size_t to use %z.  Do not assume numeric
8313         tokens have negative values merely because the context suggests
8314         a syntax with "-" separating tokens.
8315         (time_zone_hhmm): Return bool success indicator, which checks for
8316         overflow.  Store result into PC->time_zone instead.  All callers
8317         changed.
8318         (tm_year_str): New function.  Return a bool success indicator and
8319         store the result into a buffer.  All callers changed.  Output the
8320         numerically correct string even if adding 1900 to the year would
8321         overflow.
8322         (to_tm_year): New function, replacing the old to_year.  All
8323         callers changed.
8324         (tm_diff): Sync with glibc.
8325         (lookup_word): Use to_uchar instead of doing it by hand.
8326         (TZBUFSIZE): Now local to the only function that needs it.
8327         (debug_strfdatetime): Simplify now that time zones are int seconds.
8328         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8329         (get_effective_timezone): Remove.  All uses removed.
8330         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8331         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8332         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8333         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8334         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8335         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8336         * modules/parse-datetime (Depends-on): Add inttypes.
8338 2017-04-21  Bruno Haible  <bruno@clisp.org>
8340         gettext-h: Avoid -Wundef warning.
8341         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8342         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8343         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8345 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8347         error: Avoid "function declaration isn't a prototype" warning.
8348         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8350 2017-04-21  Bruno Haible  <bruno@clisp.org>
8352         vasnprintf: Fix for MSVC 14.
8353         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8354         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8355         of !HAVE_SNPRINTF_RETVAL_C99.
8357 2017-04-21  Bruno Haible  <bruno@clisp.org>
8359         mbrtowc tests: Fix test failures on MSVC 14.
8360         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8361         behaviour for invalid input.
8363 2017-04-21  Bruno Haible  <bruno@clisp.org>
8365         mbsinit: Fix for MSVC 14.
8366         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8367         implementation that is in sync with mbrtowc.c. On other platforms, use
8368         an adequate ad-hoc implementation.
8370 2017-04-21  Bruno Haible  <bruno@clisp.org>
8372         Fix test-mbrtowc5.sh failure on native Windows.
8373         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8374         "C".
8376 2017-04-21  Bruno Haible  <bruno@clisp.org>
8378         Avoid accidental use of native Windows APIs on Cygwin.
8379         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8380         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8381         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8383 2017-04-20  Bruno Haible  <bruno@clisp.org>
8385         Remove red warnings from the generated MODULES.html.
8386         * modules/fcntl (Description): Disambiguate function references.
8387         * modules/getcwd-lgpl (Description): Likewise.
8388         * modules/hostent (Description): Likewise.
8389         * modules/servent (Description): Likewise.
8390         * modules/tempname (Description): Likewise.
8392 2017-04-20  Bruno Haible  <bruno@clisp.org>
8394         verify tests: Fix spurious failure with parallel make.
8395         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8396         EXTRA_PROGRAMS.
8397         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8398         * tests/test-verify-try.c: New file.
8399         * modules/verify-tests (Files): Add it.
8400         (EXTRA_PROGRAMS): Add test-verify-try.
8401         (MOSTLYCLEANFILES): Update accordingly.
8402         Reported by Adam James Stewart <ajstewart@anl.gov>.
8404 2017-04-18  Bruno Haible  <bruno@clisp.org>
8406         vma-iter: Fix compilation error on Solaris 7.
8407         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8408         like on IRIX, OSF/1.
8409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8411 2017-04-18  Bruno Haible  <bruno@clisp.org>
8413         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8414         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8415         included.
8416         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8417         <sys/procfs.h>.
8418         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8419         <sys/procfs.h> cannot be included.
8420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8422 2017-04-18  Bruno Haible  <bruno@clisp.org>
8424         getopt-gnu: Add comments.
8425         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8426         * modules/getopt-gnu (configure.ac): Likewise.
8428 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8430         regex: port better to Solaris 10
8431         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8432         gettext, and this causes a double #define.
8433         Problem reported by Gavin Smith in:
8434         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8435         * lib/regex_internal.h (gettext): #undef before #defining.
8437 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8439         intprops: improve comments
8440         * lib/intprops.h: Improve and shorten commentary.
8441         For the record, if we ever run into a pedantic compiler that
8442         behaves differently from GCC when converting an out-of-range value
8443         to a signed integer, we can work around the problem with something
8444         like the following code, where UCT is the signed counterpart of T
8445         (UCT is sometimes narrower than UT) and all callers are changed
8446         accordingly:
8447         #if __SUNPRO_C <= 0x5120
8448         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8449            ((t) ((ut) (a) op (ut) (b)))
8450         #else
8451         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8452            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8453             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8454                + TYPE_MINIMUM (t)) \
8455             : (t) (uct) ((ut) (a) op (ut) (b)))
8456         #endif
8458 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8460         intprops: try to avoid tickling similar bugs
8461         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8462         needs to be the same width as T; it can be wider.
8463         Change callers so that UT is at least as wide as unsigned int,
8464         as I suspect that this is less likely to run into compiler bugs.
8466         intprops: port to Oracle Studio 12.3 x86
8467         Problem reported by Gavin Smith in:
8468         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8469         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8470         Convert unsigned to signed via the usual rather than the standard way,
8471         to avoid a compiler bug in Oracle Studio 12.3 x86.
8473 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8475         getopt: prefer - to _ in new file names
8476         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8477         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8478         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8479         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8480         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8481         All uses changed.
8483         getopt: port recent getopt changes to macOS
8484         Problem reported by Harald Maier (Bug#26398).
8485         The macOS C compiler uses __nonnull for its own purposes and that
8486         clashes with glibc's __nonnull.
8487         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8488         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8489         * lib/getopt_core.h (getopt):
8490         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8491         Use _GL_ARG_NONNULL, not __nonnull.
8492         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8493         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8494         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8495         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8497 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8499         getopt-gnu: omit some duplicate code
8500         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8501         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8502         gnulib-tool already does this.
8503         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8504         getopt-posix, which we depend on.
8506         getopt-posix: use angle-bracket include
8507         * lib/getopt1.c: Include <config.h>, not "config.h".
8509 2017-04-06  Zack Weinberg  <zackw@panix.com>
8511         getopt: annotate files with relationship to glibc
8513         As the final act in this patchset, adjust the message at the top of
8514         each file to indicate which files are synced with glibc.  (This has
8515         already been done for most of the headers.)
8517         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8518         Mention in top-of-file boilerplate that these files are shared
8519         between glibc and gnulib.
8522         getopt: split up getopt.in.h and eliminate __need_getopt
8524         Over in glibc, all of the __need macros are being phased out in favor
8525         of small headers that declare only the necessary components, as this
8526         is much simpler and less prone to bugs.  As getopt is shared with
8527         glibc, gnulib needs to do the same for __need_getopt.
8529         __need_getopt is misnamed; what it really means is "we want only the
8530         getopt features specified in POSIX, not the GNU extensions".  glibc
8531         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8532         these files can be shared verbatim with gnulib.  The portability
8533         wrapper, on the other hand, they have renounced altogether; glibc's
8534         getopt.h will no longer be shared with gnulib at all.  In exchange,
8535         certain glibc-specific quirks (having to do with __posix_getopt) no
8536         longer need appear in gnulib's headers at all.
8538         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8539         splits up the current gnulib-side portability wrapper into three
8540         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8541         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8542         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8543         unistd.in.h just use them.  All new files are clearly marked with
8544         whether they are shared with glibc.
8546         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8547         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8548         with glibc, and ...
8549         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8550         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8551         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8552         instead of defining __need_getopt and including the full getopt.h.
8554         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8555         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8556         * modules/getopt-posix (Files): Add new headers and sort list.
8557         (Depends-on): No longer need snippet/arg-nonnull.
8558         (Makefile.am): Generate getopt_cdefs.h.
8561         getopt: better handling of ambiguous options
8563         glibc's getopt uses alloca to construct a linked list of possibilities
8564         for an "ambiguous" long option.  In gnulib, malloc should be used
8565         instead.  Providing for both cases complicates things a fair bit.
8567         This patch rewrites ambiguous-option handling to use a boolean vector
8568         instead of a linked list.  There is then only one allocation that
8569         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8570         and in gnulib we define __libc_use_alloca to always be false, so we
8571         don't need ifdefs in the middle of the function.  This should also be
8572         slightly more efficient in the normal case of long options being fully
8573         spelled out -- I think most people aren't even aware they _can_
8574         sometimes abbreviate long options.
8576         One interesting consequence is that the list of possibilities is now
8577         printed in exactly the order they appear in the list of long options,
8578         instead of the first possibility being shuffled to the end.
8580         (The patch looks bigger than it really is because there's a fair bit
8581         of reindentation and code rearrangement.)
8583         * lib/getopt.c: When used standalone, define __libc_use_alloca
8584         as always false and alloca to abort if called.
8585         (process_long_option): Rewrite handling of ambiguous long options
8586         to use a single boolean vector, not a linked list; use
8587         __libc_use_alloca to decide whether to allocate this using alloca.
8590         getopt: refactor long-option handling
8592         There were two copies of the bulk of the code to handle long options.
8593         Now there is only one.
8595         This change temporarily removes the logic to avoid using alloca when
8596         standalone; the next patch in the series will restore it.
8598         * lib/getopt.c (process_long_option): New function split out
8599         from _getopt_internal_r.
8600         (_getopt_internal_r): Replace both copies of the long-option
8601         processing code with calls to process_long_option.
8604         getopt: tidy up _getopt_initialize a bit
8606         _getopt_data.__posixly_correct is completely redundant to
8607         _getopt_data.__ordering, and some work that logically belongs in
8608         _getopt_initialize was being done by _getopt_internal_r, making the
8609         code harder to understand.
8611         As a side effect, getenv will no longer be called if the first
8612         character of the options string is '+' or '-', which is probably a
8613         Good Thing.  (Perhaps we should have a flag character that
8614         specifically asks for the permutation behavior?)
8616         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8617         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8618         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8621         getopt: merge from glibc: repetition reduction
8623         The definitions of the entry point functions 'getopt' and
8624         '__posix_getopt' can be made substantially less repetitive with a
8625         helper macro.
8627         While I was merging the const-correctness changes from gnulib into
8628         glibc I noticed there are still some unnecessary casts in
8629         _getopt_internal_r.
8631         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8632         a macro.  Consistently cast 'argv' to 'char **' when calling
8633         _getopt_internal.
8634         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8637         getopt: clean up error reporting
8639         getopt can print a whole bunch of error messages, and when used
8640         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8641         cancellation point and getopt isn't, and also applying fprintf to a
8642         stream in wide-character mode is not allowed.  So every single error
8643         reporting case has an #ifdef _LIBC block in which it calls internal
8644         libc functions instead.  The counterpart patch series in glibc makes
8645         it possible to simplify all of that down to a set of #defines at the
8646         top of the file; core code is written as if it is safe to just call
8647         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8648         call any *other* stdio functions.)
8650         * lib/getopt.c: When _LIBC is defined, define fprintf to
8651         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8652         to _IO_funlockfile.  When neither _LIBC nor
8653         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8654         funlockfile as no-ops.
8655         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8656         standalone error-printing code can now be used for libc as well.
8657         Add an flockfile/funlockfile pair around one case where the error
8658         message is printed in several chunks.  Don't use fputc.
8661         getopt: fix fencepost error in ambiguous-W-option handling
8663         getopt_long contains an undocumented (AFAICT) feature in which, if you
8664         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8665         treated as equivalent to '--foo'.  This is implemented with a partial
8666         second copy of the code for handling long options, and that code
8667         increments optind one too many times when recovering from an ambiguous
8668         abbreviated option, which can cause the main loop to walk past the end
8669         of argv and crash.
8671         I discovered this while writing a test case that tries to exercise all
8672         of getopt's error reporting paths; I wouldn't be surprised to learn
8673         that this feature is never used by real applications.
8675         * lib/getopt.c (_getopt_internal_r): Don't increment
8676         d->optind a second time when reporting ambiguous -W options.
8679         getopt: clean up getopt.c and getopt1.c file headers
8681         In getopt.c, there is no need to include wchar.h at all, and it is
8682         safe nowadays to assume that stdlib.h does declare getenv (several
8683         other gnulib modules make this assumption).
8685         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8686         by using "" inclusions consistently, and there is no actual need to
8687         include stdlib.h (except in the #ifdef TEST block, where it should be
8688         unconditional), nor to provide a backup definition of NULL at all.
8690         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8691         Move inclusion of stdlib.h to #ifdef TEST block and make
8692         unconditional.  Do not define NULL.
8693         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8694         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8695         * modules/getopt-gnu, modules/getopt-posix: Don't call
8696         gl_PREREQ_GETENV.
8699         getopt: harmonize comments with glibc
8701         The comments explaining how the behavior of 'getopt' varies depending
8702         on whether it's the standalone version and whether there are special
8703         characters at the beginning of the options string were inconsistent
8704         between gnulib and glibc, and also out of sync with the code.
8706         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8709         getopt: remove USE_NONOPTION_FLAGS
8711         getopt includes code to parse an environment variable named
8712         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8713         in decimal); but all of it has been #ifdefed out since 2001, with no
8714         official way to turn it back on.
8716         According to commentary in glibc's config.h.in, bash version 2.0
8717         set this environment variable to indicate argv elements that were
8718         the result of glob expansion and therefore should not be treated
8719         as options, but the feature was "disabled later" because "it
8720         caused problems".  According to bash's CHANGES file, "later" was
8721         release 2.01; it gives no more detail about what the problems
8722         were.
8724         Version 2.0 of bash was released on the last day of 1996, and version
8725         2.01 in June of 1997.  Twenty years later, I think it is safe to
8726         assume that this environment variable isn't coming back.
8728         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8729         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8730         __libc_argc and __libc_argv externs, which were only used by
8731         #ifdef USE_NONOPTION_FLAGS blocks.
8734         getopt: tabify, in preparation for merge with glibc
8736         glibc sticks to the GNU default of indenting with a mix of
8737         8-column tabs and spaces; make the gnulib copy match.
8739         getopt.h is not included because it is *not* going to be merged in its
8740         present form.
8742         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8744 2017-04-02  Bruno Haible  <bruno@clisp.org>
8746         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8747         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8748         like it was done in modules/relocatable-lib on 2011-05-21 and in
8749         modules/relocatable-prog on 2011-08-15.
8750         Reported by Reuben Thomas <rrt@sc3d.org>.
8752 2017-03-31  Bruno Haible  <bruno@clisp.org>
8754         glob: Fix invalid free() call.
8755         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8756         static storage to home_dir.
8757         Reported by Coverity via Tim Rühsen.
8759 2017-03-31  Bruno Haible  <bruno@clisp.org>
8761         glob: Fix memory leaks.
8762         * lib/glob.c (glob): Free allocated memory before returning.
8763         Reported by Coverity via Tim Rühsen.
8765 2017-03-31  Bruno Haible  <bruno@clisp.org>
8767         md5, sha1, sha256, sha512: Add comments regarding correctness.
8768         * lib/md5.h (buflen): Add comments regarding range.
8769         * lib/sha1.h (buflen): Likewise.
8770         * lib/sha256.h (buflen): Likewise.
8771         * lib/sha512.h (buflen): Likewise.
8772         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8773         * lib/sha1.c (sha1_process_bytes): Likewise.
8774         * lib/sha256.c (sha256_process_bytes): Likewise.
8775         * lib/sha512.c (sha512_process_bytes): Likewise.
8776         Reported by Coverity via Tim Rühsen.
8778 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8780         getopt: merge from glibc
8781         This does not change anything substantial; it merely simplifies
8782         hypothetical merges back to glibc.
8783         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8784         Change copyright notice to match what is in glibc.
8785         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8786         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8787         __open_memstream rather than open_memstream and __glibc_likely
8788         instead of __builtin_expect.
8789         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8791 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8793         dfa: make [0-9] faster in non-C locales
8794         Problem reported by John P. Linderman (Bug#26193).
8795         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8796         If both ends of the range are ASCII digits, do not worry about
8797         multi-character collating sequences and the like.  Be consistent
8798         about using isalpha as a precondition for setbit_case_fold_c.
8800 2017-03-19  Bruno Haible  <bruno@clisp.org>
8802         lock: Fix compilation error with HP-UX IA64 cc.
8803         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8804         weak on non-glibc platforms.
8806 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8808         stdalign: tweak version# and test for HP-UX IA64
8809         Problems reported by Bruno Haible in:
8810         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8811         * lib/stdalign.in.h (_Alignas):
8812         * m4/stdalign.m4 (gl_STDALIGN_H):
8813         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8814         used octal (as that is how they document it), but it is decimal in
8815         practice now and the ancient implementations no longer matter.
8816         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8818 2017-03-19  Bruno Haible  <bruno@clisp.org>
8820         vma-iter: Add support for Solaris.
8821         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8822         approach.
8823         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8824         * lib/get-rusage-as.c: Update comment about Solaris.
8825         * lib/get-rusage-data.c: Likewise.
8827 2017-03-19  Bruno Haible  <bruno@clisp.org>
8829         vma-iter: Prefer HP-UX specific API on HP-UX.
8830         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8831         * lib/vma-iter.h: Update.
8832         Just in case HP-UX ever implements mquery().
8834 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8836         stdalign: restore previous behavior for HP-UX IA64
8837         See Bruno Haible's email in:
8838         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8839         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8840         * lib/stdalign.in.h (_Alignas):
8841         Assume the '061200' applies to Itanium, not to PA-RISC.
8842         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8844 2017-03-17  Bruno Haible  <bruno@clisp.org>
8846         stat-time, timespec: Support use of the header files in C++ mode.
8847         * lib/stat-time.h: Add "C" linkage declaration.
8848         * lib/timespec.h: Likewise.
8850 2017-03-17  Bruno Haible  <bruno@clisp.org>
8852         stdalign: Make it work with HP-UX cc.
8853         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8854         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8855         for HP-UX cc.
8857 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8859         flexmember: try to detect HP-UX 11.31 cc bug
8860         Problem reported by Bruno Haible in:
8861         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8862         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8863         Attempt to detect bug in HP-UX 11.31 cc.
8865 2017-03-16  Bruno Haible  <bruno@clisp.org>
8867         stdint: Fix test compilation failure with HP-UX 11 cc.
8868         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8869         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8870         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8871         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8873 2017-03-14  Bruno Haible  <bruno@clisp.org>
8875         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8876         * gnulib-tool (func_modules_transitive_closure_separately): If
8877         testsrelated_modules ends up with no "real" modules, aside from
8878         modules with applicability 'all', set it to empty.
8880 2017-03-14  Bruno Haible  <bruno@clisp.org>
8882         vma-iter: Add support for HP-UX.
8883         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8884         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8885         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8886         * lib/get-rusage-as.c: Update comment about HP-UX.
8887         * lib/get-rusage-data.c: Likewise.
8888         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8890 2017-03-14  Bruno Haible  <bruno@clisp.org>
8892         limits-h: Make it work with HP-UX cc.
8893         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
8894         defined.
8896 2017-03-14  Bruno Haible  <bruno@clisp.org>
8898         Fix test failures on DragonFlyBSD.
8899         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
8900         * tests/test-select.h (test_bad_fd): Likewise.
8901         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
8903 2017-03-14  Bruno Haible  <bruno@clisp.org>
8905         freadahead: Silence warning on DragonFlyBSD.
8906         * lib/freadahead.c (__sreadahead): Declare ourselves.
8908 2017-03-14  Bruno Haible  <bruno@clisp.org>
8910         vma-iter: Add comment about AIX.
8911         * lib/vma-iter.c: Add comment about why this module is not implemented
8912         on AIX.
8914 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8916         snippets: move unadjusted snippet sources to lib
8917         Problem reported by Michal Privoznik in:
8918         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
8919         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
8920         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
8921         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
8922         * lib/unused-parameter.h: Rename from
8923         build-aux/snippet/unused-parameter.h.
8924         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
8925         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
8926         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
8927         * modules/snippet/c++defs (Files:, CXXDEFS_H):
8928         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
8929         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
8930         Adjust to file renamings.
8932 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
8934         gnulib-tool: don't automatically distribute files from top/
8935         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
8936         not distribute top/README-release by default, don't distribute files
8937         from top/ unconditionally.
8938         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
8939         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
8941 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8943         gnulib-tool: fix typo in comment output
8944         * gnulib-tool (func_import): Fix typo with previous change.
8946         snippets: work around GNU Make 3.82 VPATH
8947         When using 'gnulib-tool --gnu-make' on Emacs, and building
8948         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
8949         an out-of-source (VPATH) build failed because the sans-copyright
8950         snippet file was not built before the file that used it.
8951         Presumably this is some sort of VPATH thing.  Work around the
8952         problem by using the original snippet, i.e., don’t bother to
8953         remove its copyright notice.
8954         * modules/snippet/_Noreturn, modules/snippet/link-warning:
8955         Don’t assume Automake in comments.  Omit long-incorrect comment.
8956         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
8957         (MOSTLYCLEANFILES):
8958         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
8959         (MOSTLYCLEANFILES):
8960         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
8961         (MOSTLYCLEANFILES):
8962         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
8963         (MOSTLYCLEANFILES):
8964         Remove.
8965         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
8966         * modules/snippet/c++defs (CXXDEFS_H):
8967         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
8968         * modules/snippet/warn-on-use (WARN_ON_USE_H):
8969         Don’t bother to remove the copyright notice; just use the
8970         original snippet as-is.
8972 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8974         gnulib-tool: minor --gnu-make fixups
8975         * gnulib-tool (func_emit_lib_Makefile_am):
8976         Remove useless code that was a blind alley during implementation.
8977         Problem reported by Thien-Thi Nguyen in:
8978         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
8979         (func_import): Note the "--gnu-make" option in the output comment.
8981 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
8983         gnulib-tool: new option --gnu-make
8984         This is for applications like GNU Emacs that use GNU Make
8985         features instead of Automake.
8986         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
8987         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
8988         Do not assume Automake.
8989         * gnulib-tool (func_determine_path_separator)
8990         (func_modules_transitive_closure, func_update_file)
8991         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8992         (func_import): Add support for --gnu-make.
8994 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8996         gnulib-common.m4: avoid aclocal.m4 bloat
8997         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
8998         Hide AM_PROG_AR from aclocal, so that aclocal does not
8999         install irrelevant macro definitions into aclocal.m4.
9001 2017-03-10  Bruno Haible  <bruno@clisp.org>
9003         vma-iter: Let callers know about error.
9004         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9005         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9007 2017-03-05  Bruno Haible  <bruno@clisp.org>
9009         Fix value of LD for 64-bit compilers on AIX.
9010         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9011         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9013 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9015         dtotimespec: simplify
9016         * lib/dtotimespec.c (dtotimespec): Simplify.
9018 2017-03-04  Bruno Haible  <bruno@clisp.org>
9020         test-calloc-gnu: Reenable test also for GCC 7.
9021         * tests/test-calloc-gnu.c (eight): New function.
9022         (main): Don't skip test; use eight() instead.
9024 2017-03-04  Jim Meyering  <meyering@fb.com>
9026         test-calloc-gnu: port to GCC7
9027         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9028         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9029         and newer would detect that at compilation time.
9031 2017-03-04  Bruno Haible  <bruno@clisp.org>
9033         tests: Avoid compiler warning about uses of null_ptr.
9034         * tests/null-ptr.h: New file.
9035         * tests/test-canonicalize.c: Include null-ptr.h.
9036         (null_ptr): Remove function.
9037         * tests/test-canonicalize-lgpl.c: Likewise.
9038         * tests/test-memmem.c: Likewise.
9039         * tests/test-ptsname_r.c: Likewise.
9040         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9041         * modules/canonicalize-lgpl-tests: Likewise.
9042         * modules/memmem-tests: Likewise.
9043         * modules/ptsname_r-tests: Likewise.
9044         Reported by Jim Meyering.
9046 2017-03-03  Bruno Haible  <bruno@clisp.org>
9048         doc: Mention Mac OS X deficiencies regarding semaphores.
9049         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9050         * doc/posix-functions/sem_destroy.texi: Likewise.
9051         * doc/posix-functions/sem_getvalue.texi: Likewise.
9053 2017-03-03  Bruno Haible  <bruno@clisp.org>
9055         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9056         Reported by Assaf Gordon <assafgordon@gmail.com> via
9057         Pádraig Brady <P@draigBrady.com>.
9058         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9059         semaphores.
9060         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9061         (atomic_int_semaphore): New macro.
9063 2017-02-28  Bruno Haible  <bruno@clisp.org>
9065         perror tests: Tweak for z/OS.
9066         Reported by Daniel Richard G. <skunk@iskunk.org>.
9067         * tests/test-perror.sh: Don't fail z/OS style perror output.
9069 2017-02-26  Bruno Haible  <bruno@clisp.org>
9071         nproc: Refactor large function.
9072         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9073         from num_processors.
9074         (num_processors): In this function, only deal with OMP.
9076 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9078         nproc: adjust handling of OpenMP environment variables
9079         to match the return value from omp_get_num_threads(), i.e.:
9080          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9081          - Treat 0 as an invalid value and ignore
9082         Also remove the call to omp_get_num_threads() because
9083         it's ineffective without the omp pragmas in place.
9084         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9085         so that it can be ignored.
9086         (num_processors): Honor OMP_THREAD_LIMIT even without
9087         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9088         variable being checked, from the previous recent commit.
9090 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9092         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9093         * lib/nproc.c (parse_omp_threads): A new function refactored
9094         from num_processors() to support parsing both of the
9095         above environment variables.
9096         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9097         to accurately reflect the current OpenMP nesting level.
9098         Also support the OMP_THREAD_LIMIT environment variable
9099         to limit the max value determined from OMP_NUM_THREADS.
9100         * modules/nproc: Depend on minmax header.
9101         Suggested by Oliver Heimlich.
9103 2017-02-25  Bruno Haible  <bruno@clisp.org>
9105         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9106         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9108 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9110         ftoastr: port to -Wdouble-promotion
9111         Work around -Wdouble-promotion false alarm in recent GCCs.
9112         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9113         (ftoastr_snprintf, FTOASTR): Use it.
9115 2017-02-21  Bruno Haible  <bruno@clisp.org>
9117         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9118         Reported by Rene Saavedra <rennes@openmailbox.org> in
9119         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9120         * lib/glthread/lock.h: On glibc systems without
9121         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9122         implementation of rwlocks.
9123         * lib/glthread/lock.c: Likewise.
9125 2017-02-20  Bruno Haible  <bruno@clisp.org>
9127         lock tests: Fix build failure on z/OS.
9128         Reported by Daniel Richard G. <skunk@iskunk.org>.
9129         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9130         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9131         exist.
9133 2017-02-19  Bruno Haible  <bruno@clisp.org>
9135         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9136         This helps when CC=clang.
9137         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9138         of /usr/bin/gcc.
9140         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9141         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9143 2017-02-19  Bruno Haible  <bruno@clisp.org>
9145         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9146         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9147         --with-tests --single-configure is specified.
9149 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9151         users.txt: Update links, use HTTPS where possible
9152         * users.txt: Updated to HTTPS where possible,
9153         fixed some links to new locations.
9155 2017-02-16  Bruno Haible  <bruno@clisp.org>
9157         xbinary-io: Fix inlining.
9158         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9160 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9162         xbinary-io: rename from xsetmode
9163         This patch is taken from suggestions by Bruno Haible in:
9164         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9165         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9166         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9167         not ENOTTY, when it is an inappropriate device.
9168         * lib/binary-io.h (SET_BINARY): Resurrect.
9169         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9170         (xset_binary_mode_error): Rename from xsetmode_error.
9171         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9172         (xset_binary_mode): Rename from xsetmode.
9173         All uses changed.
9174         * modules/xbinary-io: Rename from modules/xsetmode.
9175         Update file names.
9176         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9177         * NEWS: Update to match revised behavior.
9179 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9181         tests: Adjust to recent SET_BINARY change
9182         * tests/test-binary-io.c (main):
9183         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9184         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9185         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9186         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9188         xsetmode: new module
9189         This is to fix a problem noted by Eric Blake.
9190         Code was using xfreopen to change files to binary mode, but this
9191         fails for stdout when in append mode.  Such code should use
9192         xsetmode instead.
9193         * NEWS: Document incompatible changes to binary-io module.
9194         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9195         New function.
9196         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9197         (set_binary_mode): New function, which also checks for tty.
9198         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9200 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9202         headers: fix begin-end typos
9203         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9204         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9206         selinux-h: port to PGI 16.10
9207         * lib/se-selinux.in.h: Don't assume that include_next skips over
9208         duplicate -I DIR options.
9210         argp: port to PGI 16.10
9211         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9213 2017-02-13  Darshit Shah  <darnir@gnu.org>
9215         unicase: Update function protoype to match definition.
9216         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9217         uses 'size_t' as the datatype for the 'len' parameter in the functions
9218         it generates. Update the prototype specified here to match the newly
9219         generated function.
9221 2017-02-12  Bruno Haible  <bruno@clisp.org>
9223         times test: Avoid gcc warnings on Linux/x32.
9224         * tests/test-times.c (main): Really cast printf arguments from clock_t
9225         to 'long int'.
9227 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9229         glob: port better to emscripten
9230         Problem reported by Bruno Haible in:
9231         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9232         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9234 2017-02-11  Bruno Haible  <bruno@clisp.org>
9236         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9237         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9238         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9239         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9240         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9241         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9242         Distinguish hppa64 from hppa.
9244 2017-02-10  Bruno Haible  <bruno@clisp.org>
9246         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9247         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9248         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9249         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9251 2017-02-09  Bruno Haible  <bruno@clisp.org>
9253         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9254         * doc/gnulib.texi (Libtool and Windows): Recommend
9255         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9256         Reported by Reuben Thomas <rrt@sc3d.org>.
9258 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9260         stddef-tests: port to SIZE_MAX <= INT_MAX
9261         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9262         Do not assume that INT_MAX < SIZE_MAX.
9264 2017-02-01  Bruno Haible  <bruno@clisp.org>
9266         lock tests: Fix link error.
9267         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9270 2017-01-31  Bruno Haible  <bruno@clisp.org>
9272         lock: Fix link error (regression from 2017-01-05).
9273         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9274         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9275         pthread_rwlockattr_destroy weak.
9276         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9278 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9280         Port to PGI 16.10 x86-64
9281         This patch fixes one real bug in gl_anylinked_list2.h, along with
9282         some minor glitches that are not bugs.  It does not silence PGI’s
9283         thousands of bogus warnings when compiling test-intprops.c.
9284         Fortunately, the warnings do not cause a failure.
9285         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9286         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9287         My goodness, PGI goes back a long ways - this predates C89!
9288         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9289         For example, ASYNCSAFE (const void *) should expand to
9290         ‘const void *volatile’, not to ‘volatile const void *’.
9291         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9292         * lib/verify.h (verify) [!__GNUC__]:
9293         Use shorter albeit meaningless string to bypass silly compiler limits.
9294         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9295         * tests/nan.h (NaNf, NaNd, NaNl):
9296         Use static functions to avoid misguided compiler diagnostics.
9297         Is there some reason we don’t use static functions on all platforms?
9299 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9301         parse-datetime: handle timezones reentrantly
9302         This API change was prompted by a report by Pádraig Brady in:
9303         https://bug.debian.org/851934#10
9304         To help fix the bug, make parse_datetime2 more reentrant.
9305         * NEWS: Document this incompatible change.
9306         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9307         Add two arguments, the timezone and the timezone name.
9308         All callers changed.  If TZ="..." is specified, use it for
9309         calculating defaults.
9310         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9311         this code should be usable in a library.
9312         (mktime_ok, get_effective_timezone):
9313         Accept timezone arg too.  All callers changed.
9314         (get_tz): Remove.
9315         (get_effective_timezone): Check for failures.
9317 2017-01-20  Eric Blake  <eblake@redhat.com>
9319         localename: port to cygwin 2.6
9320         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9321         Cygwin.
9322         * modules/localename (Depends-on): Add extensions, since
9323         NL_LOCALE_NAME() is not visible without it.
9325 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9327         parse-datetime: fix dependence on AC_PROG_SED
9328         * modules/parse-datetime: Use `sed` directly like all other modules.
9329         Reported by J William Piggott
9331 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9333         intprops: update doc URLs
9334         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9336 2017-01-16  Bruno Haible  <bruno@clisp.org>
9338         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9339         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9340         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9341         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9342         distinguish s390 and s390x.
9343         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9344         * NEWS: Mention the change regarding 'armel'.
9346 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9348         localeinfo: case_folded_counterparts and WEOF
9349         * NEWS: Document this.
9350         * lib/localeinfo.c (case_folded_counterparts):
9351         First arg is now wint_t, not wchar_t.  This generalizes the
9352         function to also work on WEOF, where it returns 0.
9354         dfa: port to gcc -fsanitize=undefined
9355         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9356         as this runs afoul of gcc -fsanitize=undefined.
9358 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9360         strftime: %z is -00 if unknown
9361         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9362         the caller's responsibility to set 'negative_number'.  All uses changed.
9363         (__strftime_internal): Put '-' before a zero UTC offset if the time
9364         zone abbreviation starts with "-", which is the recently-introduced
9365         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9366         * tests/test-strftime.c: Test for this.
9368 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9370         dfa: port to older GCC
9371         Problem reported by Assaf Gordon in:
9372         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9373         * modules/c99: New module.  This merely attempts to use the latest
9374         C version, which should be enough to solve this particular problem.
9375         The idea is to document which Gnulib modules assume C99 or later.
9376         * modules/dfa (Depends-on): Add it.
9378 2017-01-10  Bruno Haible  <bruno@clisp.org>
9380         Update DEPENDENCIES.
9381         * DEPENDENCIES: List only https URLs. Update recommended version for
9382         autoconf, automake, gperf.
9384 2017-01-10  Jim Meyering  <meyering@fb.com>
9386         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9387         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9388         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9390 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9392         dfa: minor simplification with emptyset
9393         * lib/dfa.c (build_state): Simplify by using emptyset.
9395 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9397         dfa: shrink constraints from 4 bits to 3
9398         * lib/dfa.c (newline_constraint, letter_constraint)
9399         (other_constraint, prev_newline_dependent)
9400         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9401         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9402         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9403         Constraints need only 3 bits, not 4.  Using smaller integers
9404         shrinks the code a bit and makes grep a tad faster on x86-64.
9406         dfa: omit unnecessary ptrdiff_t check
9407         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9408         overflow, since xnmalloc does that now.
9410         dfa: omit unnecessary allocation
9411         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9412         an all-zero follow set works just fine.
9414         dfa: omit unused local
9415         * lib/dfa.c (build_state): Fix up recent change.
9417         maint: remove stray .texi files
9418         Although these were superseded by other files like
9419         doc/posix-functions/ctime.texi, the old files were not removed.
9420         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9422 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9424         getprogname: fix port to IRIX
9425         * lib/getprogname.c (getprogname) [__sgi]:
9426         Don't dump core if malloc returns NULL.
9428         dfa: fix reallocation bug when matching newlines
9429         Problem reported for sed by S. Gilles (Bug#25390).
9430         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9431         (dfastate): Reallocate before moving any newline transition ...
9432         (build_state): ... instead of reallocating here, where it is too late.
9434 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9436         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9437         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9439 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9441         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9442         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9444 2017-01-07  Bruno Haible  <bruno@clisp.org>
9446         stdioext: Port to Minix 3.2 and newer.
9447         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9448         * lib/fseeko.c (fseeko): Likewise.
9449         Reported by Nelson Beebe via Paul Eggert.
9451 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9453         getprogname: port to IRIX
9454         * lib/getprogname.c (getprogname): Port to IRIX.
9455         Based on an idea by Bastien Roucariès at:
9456         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9457         via code from Bruno Haible at:
9458         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9460         localename-tests: port to NetBSD 7
9461         Problem reported by Nelson H. F. Beebe.
9462         * tests/test-localename.c:
9463         Test newlocale and uselocale only if both exist.
9465         glob, intprops, xalloc: work around Clang bug
9466         Work around LLVM bug 16404, which is still not fixed.
9467         https://llvm.org/bugs/show_bug.cgi?id=16404
9468         Problem reported by Nelson H. F. Beebe.
9469         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9470         Remove.
9471         * lib/glob.c (size_add_wrapv):
9472         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9473         * lib/xalloc-oversized.h (xalloc_oversized):
9474         Do not use overflow builtins if Clang.
9476         dfa: fix 'return' typo
9477         Problem reported by Nelson H. F. Beebe.
9478         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9480 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9482         parse-datetime: fix generated paths for coverage files
9483         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9484         within parse-datetime.c, so that gcc generates appropriate .gcno
9485         files, allowing lcov to proceed without error.  Previously it
9486         would error trying to find "lib/lib/parse-datetime.y".
9488 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9490         maint.mk: support parallel execution of coverage
9491         * top/maint.mk (coverage): Run dependencies serially,
9492         thus supporting parallel processing of each one,
9493         particularly build-coverage, which builds and runs tests.
9495 2017-01-05  Bruno Haible  <bruno@clisp.org>
9497         lock tests: Prefer semaphore over mutex.
9498         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9499         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9500         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9501         Suggested by Torvald Riegel <triegel@redhat.com>.
9503 2017-01-05  Bruno Haible  <bruno@clisp.org>
9505         lock: Provide guarantee to avoid writer starvation for rwlocks.
9506         The rationale is: 1) Read-preferring read-write locks are prone to
9507         writer starvation if the number of reader threads multiplied by the
9508         percentage of time they have the lock held is too high. 2) Write-
9509         preferring read-write locks are the only reliable way to avoid this.
9510         3) There have been reports of 'test-lock' hanging on glibc systems
9511         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9512         and glibc indeed implements read-preferring rwlocks by default, see
9513         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9514         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9515         * m4/pthread_rwlock_rdlock.m4: New file.
9516         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9517         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9518         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9519         of rwlock initialization on glibc systems without
9520         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9521         of rwlocks altogether on non-glibc systems without
9522         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9523         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9524         * lib/glthread/lock.c [USE_POSIX_THREADS]
9525         (glthread_rwlock_init_for_glibc): New function.
9526         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9527         comment.
9528         [USE_PTH_THREADS]: New implementation of rwlocks.
9529         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9530         readers.
9531         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9532         (Depends-on): Add 'extensions'.
9533         * tests/test-rwlock1.c: New file.
9534         * lock-tests (Files): Add it.
9535         (Depends-on): Add usleep.
9536         (Makefile.am): Add test-rwlock1 to the tests.
9538 2017-01-05  Bruno Haible  <bruno@clisp.org>
9540         thread: Fix pth port.
9541         * lib/glthread/thread.h (pth_init): Declare weak.
9542         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9543         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9544         function.
9546 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9548         parse-datetime: fix debug message on lone year number
9549         Input dates such as
9550           date -d "Apr 11 22:59:00 2011"
9551         are parsed as date (Apr 11, with default year 2016), then time, then a
9552         number (2011). Based on the combination of previously seen tokens,
9553         'digits_to_date_time' determines 2011 to be a year value.
9554         This fixes the debug messages to correctly show the updated year.
9555         Before:
9556             $ date --debug -d 'Apr 11 22:59:00 2011'
9557             date: parsed date part: (Y-M-D) 2016-04-11
9558             date: parsed time part: 22:59:00
9559             date: parsed number part: today/this/now
9560         After:
9561             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9562             date: parsed date part: (Y-M-D) 2016-04-11
9563             date: parsed time part: 22:59:00
9564             date: parsed number part: year: 2011
9565         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9566         'debug_year_seen' member fields.
9567         (digits_to_date_time): Update 'year_seen' as needed.
9568         (debug_print_current_time): Inform about year updates.
9569         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9571         parse-datetime: fix local timezone debug messages
9572         "Local timezones" are strings that affect only DST relative to the
9573         default timezone. The debug messages in parse-datetime.y printed
9574         wrong information when encountering local timezones.
9575         Examples:
9576         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9577              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9578              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9579         When the default timezone relates to the zone strings, EET/EEST are
9580         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9581         value (0/1, respectively):
9582              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9583              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9584         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9585         was seen, inform about DST change, don't print actual timezone.
9586         (debug_strfdatetime): If local timezone was seen, use default timezone
9587         (and adjust as needed) instead of using incorrect timezone.
9588         (parse_datetime2): Use correct time-zone source string, and adjust
9589         default timezone as needed.
9591         parse-datetime: add debug warning about DST changes
9592         Incorrect date arithmetic due to daylight saving time (DST) are a
9593         common (false) bug report in coreutils.
9594         Detect two such cases and print a warning:
9595         1. year/month/day adjustments (performed on 'struct tm'),
9596            where 'mktime' returns a different isdst value.
9597         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9598            where the result of 'localtime(3)' on the value will return a
9599            different isdst value.
9600         Note: DST changes could be harmless or unnoticeable.
9601         Examples (with 'TZ=America/New_York'):
9602         Unnoticeable: result is 2016-Dec-14
9603            $ date -d '2016-06-15 EDT + 6 months' +%b
9604            Dec
9605         Unnoticeable: result is 2016-Dec-15 11:00:00
9606            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9607            2016-12-15
9608         This is unexpected:
9609            $ date -d '2016-06-01 EDT + 6 months' +%F
9610            2016-11-30
9611         The new debug warnings will show:
9612            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9613            ...
9614            date: warning: daylight saving time changed after date adjustment
9615            ...
9616         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9617         print an appropriate warning message.
9619         parse-datetime: add debug warning about date arithmetic
9620         Date arithmetic are done directly on the fields of 'struct tm',
9621         which can result in invalid dates. Normalization with 'mktime(3)'
9622         will then produce a different date - which might cause unexpected
9623         results.
9624         Examples:
9625           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9626           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9627         Note that date normalization is not inherently wrong and not rejected,
9628         as it has legitimate uses:
9629           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9630         If the user asked to adjust months but 'mday' changed,
9631         or user asked to adjust years but 'month' changed - warn about it.
9632             $ ./src/date --debug -d '2016-10-31 - 1 month'
9633             ...
9634             date: warning: when adding relative months/years, \
9635                            it is recommended to specify the 15th of the month
9636             ...
9637             date: warning: month/year adjustment resulted in shifted dates:
9638             date:      adjusted Y M D: 2016 09 31
9639             date:    normalized Y M D: 2010 10 01
9640             ...
9641         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9642         a warning message. Improve recommendation of when to use 15 of the
9643         month or noon for date arithmetic.
9645         parse-datetime: fix debug message of relative part after timezone
9646         Relative part (e.g '+8 days') after a timezone string was not
9647         reported (was only reported after a timezone number). Due to the
9648         parser's structure, timezone strings with numbers were handled
9649         separately.
9650         before:
9651              # Timezone number + relative part: OK
9652              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9653              ...
9654              date: parsed relative part: -8 day(s)
9655              # Timezone string + relative part: missing
9656              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9657              [ missing message ]
9658         After: messages are printed in both cases.
9659         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9661         parse-datetime: fix incorrect debug message on lone number
9662         A lone number is an absolute value, not a relative time part.
9663         before:
9664            $ date --debug -d '20130101'
9665            date: parsed number part: today/this/now
9666         After:
9667            $ ./src/date --debug -d '20130101'
9668            date: parsed number part: (Y-M-D) 2013-01-01
9669         * lib/parse-datetime.y ('item'/'number' tokens): Call
9670         'debug_print_current_time' instead of 'debug_print_relative_time'.
9672 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9674         doc: modernize for C11 etc.
9675         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9676         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9677         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9679         dfa: prefer functions to FETCH_WC macro
9680         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9681         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9682         wint_t result into DFA->lex.wctok instead of to a separate arg.
9683         All callers changed.  Move more local decls closer to where
9684         they're used.
9686         dfa: narrow more local var scopes
9687         * lib/dfa.c: Move more local decls to be more local.
9689         dfa: remove duplicate assignment
9690         Problem reported by Bruno Haible in:
9691         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9692         * lib/dfa.c (parse_bracket_exp): Simplify.
9694 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9696         dfa: simplify constraint-dependency checking
9697         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9698         (prev_other_constraint): Remove.
9699         (prev_newline_dependent, prev_letter_dependent):
9700         Simplify, to avoid an unnecessary bitwise AND operation.
9702         dfa: prefer functions and constants to macros
9703         * lib/dfa.c: Prefer constants to macros where either will do.
9704         (streq, isasciidigit, newline_constraint)
9705         (letter_constraint, other_constraint, succeeds_in_context)
9706         (prev_newline_constraint, prev_letter_constraint)
9707         (prev_other_constraint, prev_newline_dependent)
9708         (prev_letter_dependent, accepting, accepts_in_context):
9709         Now static functions instead of function-like macros.
9710         Use lower-case names accordingly.  All uses changed.
9712         dfa: narrow more local var scopes
9713         * lib/dfa.c: Move some more local decls down to nearer where
9714         they're needed.
9716 2016-12-31  Jim Meyering  <meyering@fb.com>
9718         dfa: narrow the scope of many local variables
9719         * lib/dfa.c: Now that we are no longer constrained to c89, move
9720         declarations of many variables (often indices) "down" into the
9721         scope(s) where used or to the point of definition.  This is a
9722         no-semantic-change diff.
9724 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9726         version-etc: new year
9727         * build-aux/gendocs.sh (version):
9728         * doc/gendocs_template:
9729         * doc/gendocs_template_min:
9730         * doc/gnulib.texi:
9731         * lib/version-etc.c (COPYRIGHT_YEAR):
9732         Update copyright dates by hand in templates and the like.
9733         * all files: Run 'make update-copyright'.
9735 2016-12-31  Eric Blake  <eblake@redhat.com>
9737         do-release-commit-and-tag: avoid shell syntax error
9738         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9739         contain spaces when rebasing.
9741         maint.mk: hoist gnulib_dir definition earlier
9742         * top/maint.mk (gnulib_dir): Move near top of file.
9744 2016-12-31  Jim Meyering  <meyering@fb.com>
9746         maint.mk: do not always evaluate intprops-related shell
9747         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9748         using gnulib_dir undefined (gnulib_dir is defined later in the
9749         file, which will be fixed separately), and besides, there is no
9750         need to incur the cost of this shell invocation for every single
9751         use of this .mk file.  Reported by Eric Blake in
9752         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9754 2016-12-30  Jim Meyering  <meyering@fb.com>
9756         maint.mk: improve sc_prohibit_intprops_without_use
9757         * top/maint.mk (_intprops_names): Don't hard-code the list of
9758         symbol names.  Instead, derive it on the fly.
9760 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9762         dfa: shorten sbit, success
9763         * lib/dfa.c (struct regex_syntax.sbit):
9764         (struct dfa.success): Use char, not int, for array elements, since
9765         they are all in the range 0..7.
9767         dfa: simplify multibyte_prop etc.
9768         This follows up on a change made when dfa.c was in grep, namely grep
9769         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9770         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9771         That earlier simplification allows for some more simplification
9772         and trimming down here.
9773         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9774         (struct lexer_state): New mamber brack.
9775         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9776         since they must be in the range 0..3 now.
9777         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9778         the brack member now supersedes them.
9779         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9780         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9781         (dfaparse): Remove unnecessary initializations of already-0 storage.
9782         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9783         (dfassbuild): No need to clear sup->mbcsets.
9785         dfa: minor performance tweak
9786         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9788         dfa: wrap charclass inside a struct
9789         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9790         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9791         about 5% faster, where list.txt is generated by 'aspell dump
9792         master | head -n 100000 >list.txt'.  See Bug#22239.
9793         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9794         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9795         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9796         Adjust to this, e.g., by using charclass * rather than charclass.
9797         All callers changed as needed.
9798         (copyset): Remove.  All uses changed to simple assignment.
9799         (parse_bracket_exp): Use zeroset instead of memset.
9801 2016-12-30  Jim Meyering  <meyering@fb.com>
9803         maint.mk: update list of intprops.h symbol names
9804         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9805         This avoids a false failure of the sc_prohibit_intprops_without_use
9806         rule in grep.
9808 2016-12-29  Eric Blake  <eblake@redhat.com>
9810         getopt: fix parallel test failure
9811         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9812         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9813         * tests/test-getopt-main.h (main): Use different file names
9814         in case test-getopt-gnu and test-getopt-posix run in parallel.
9816 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9818         xalloc: x2nrealloc check for ptrdiff_t overflow
9819         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9820         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9822 2016-12-24  Bruno Haible  <bruno@clisp.org>
9824         lock test: Fix performance problem on multi-core machines.
9825         * tests/test-lock.c (USE_VOLATILE): New macro.
9826         (struct atomic_int): New type.
9827         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9828         functions.
9829         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9830         as 'struct atomic_int'.
9831         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9832         reclock_checker_thread, test_recursive_lock): Use the new functions.
9833         Reported by Eric Blake in
9834         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9835         and by Pádraig Brady in
9836         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9838 2016-12-19  Bruno Haible  <bruno@clisp.org>
9840         vma-iter: Fix endless loop on 64-bit Windows.
9841         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9842         'unsigned long'.
9844 2016-12-19  Bruno Haible  <bruno@clisp.org>
9846         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9847         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9848         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9849         Invoke gt_TYPE_WINT_T instead.
9850         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9851         * modules/stdint (Files): Add m4/wint_t.m4.
9852         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9853         * modules/wctype-h (Makefile.am): Likewise.
9854         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9855         not only on MSVC.
9856         * lib/wctype.in.h (wint_t): Likewise.
9858 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9860         getopt-posix-tests: fix Makefile typo
9861         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9862         Fix typo: the last ‘_’ was missing in the name.
9863         I suspect that the typo explains this build failure:
9864         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9865         although I can’t reproduce the problem on Solaris 10 sparc.
9867 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9869         dfa: improve worst-case 'replace' performance
9870         See my note in Bug#22357#71.
9871         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9872         (merge_constrained): New function, which is like
9873         the old 'merge' function, except with a new argument C2.
9874         Simplify the body by avoiding the need for different sections
9875         of code depending on whether one input is exhausted.
9876         (merge): Use the new function.
9877         (delete): Return the constraint of the deleted position,
9878         not the entire position.  Caller changed.
9879         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9881 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9883         dfa: performance improvement for removal of epsilon closure
9884         See Bug#22357#32.
9885         * lib/dfa.c (delete): Use binary search to find deleted index.
9886         (replace): New function.  It replaces a position with the followed set.
9887         (epsclosure): Replace it with a new algorithm.  Update caller.
9889 2016-12-18  Bruno Haible  <bruno@clisp.org>
9891         Split tests for getopt-posix and getopt-gnu.
9892         * tests/test-getopt-posix.c: New file.
9893         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
9894         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
9895         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
9896         GNULIB_TEST_GETOPT_GNU.
9897         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
9898         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
9899         (Makefile.am): Test test-getopt-posix instead of test-getopt.
9900         * modules/getopt-gnu-tests: New file.
9901         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
9903 2016-12-18  Bruno Haible  <bruno@clisp.org>
9905         posix-modules: Add options for specific platforms.
9906         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
9907         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
9908         Invoke func_tmpdir. Filter out the excludes.
9910 2016-12-18  Bruno Haible  <bruno@clisp.org>
9912         getopt: Fix link error for users of getopt() in <unistd.h>.
9913         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
9914         __need_getopt is defined. Undefine all macros before defining them.
9915         * modules/getopt (Include): Clarify that including <unistd.h> is also
9916         OK.
9917         * tests/test-getopt.c: Add comment.
9919 2016-12-17  Bruno Haible  <bruno@clisp.org>
9921         getaddrinfo tests: Avoid compilation error on MSVC.
9922         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
9923         getaddrinfo on native Windows.
9925 2016-12-17  Bruno Haible  <bruno@clisp.org>
9927         getlogin, getlogin_r: Fix link errors on MSVC.
9928         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
9929         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
9930         (Link): New section.
9931         * modules/getlogin_r (Files): Add m4/getlogin.m4.
9932         (configure.ac): Require gl_LIB_GETLOGIN.
9933         (Link): New section.
9934         * NEWS: Mention the new link requirements.
9935         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
9936         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
9938 2016-12-17  Bruno Haible  <bruno@clisp.org>
9940         Un-deprecate the 'progname' module.
9941         * NEWS: Describe the appropriate use-cases of 'progname' versus
9942         'getprogname'. Based on discussion summary at
9943         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
9945 2016-12-17  Bruno Haible  <bruno@clisp.org>
9947         Reorganize NEWS a bit.
9948         * NEWS: Move some not so important changes away from section
9949         "Important Notes".
9951 2016-12-17  Bruno Haible  <bruno@clisp.org>
9953         tanhf: Avoid redefinition error on MSVC.
9954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
9955         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
9956         may be defined as an inline function.
9957         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
9958         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
9960 2016-12-17  Bruno Haible  <bruno@clisp.org>
9962         tanf: Avoid redefinition error on MSVC.
9963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
9964         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
9965         may be defined as an inline function.
9966         * modules/math (Makefile.am): Substitute REPLACE_TANF.
9967         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
9969 2016-12-17  Bruno Haible  <bruno@clisp.org>
9971         sqrtf: Avoid redefinition error on MSVC.
9972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
9973         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
9974         may be defined as an inline function.
9975         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
9976         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
9978 2016-12-17  Bruno Haible  <bruno@clisp.org>
9980         sinhf: Avoid redefinition error on MSVC.
9981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
9982         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
9983         may be defined as an inline function.
9984         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
9985         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
9987 2016-12-17  Bruno Haible  <bruno@clisp.org>
9989         sinf: Avoid redefinition error on MSVC.
9990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
9991         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
9992         may be defined as an inline function.
9993         * modules/math (Makefile.am): Substitute REPLACE_SINF.
9994         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
9996 2016-12-17  Bruno Haible  <bruno@clisp.org>
9998         logf: Avoid redefinition error on MSVC.
9999         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10000         may be defined as an inline function.
10002 2016-12-17  Bruno Haible  <bruno@clisp.org>
10004         log10l: Avoid redefinition error on MSVC.
10005         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10006         may be defined as an inline function.
10008 2016-12-17  Bruno Haible  <bruno@clisp.org>
10010         log10f: Avoid redefinition error on MSVC.
10011         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10012         may be defined as an inline function.
10014 2016-12-17  Bruno Haible  <bruno@clisp.org>
10016         hypotl: Avoid redefinition error on MSVC.
10017         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10018         may be defined as an inline function.
10020 2016-12-17  Bruno Haible  <bruno@clisp.org>
10022         hypotf: Avoid redefinition error on MSVC.
10023         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10024         may be defined as an inline function.
10026 2016-12-17  Bruno Haible  <bruno@clisp.org>
10028         fmodl: Avoid redefinition error on MSVC.
10029         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10030         may be defined as an inline function.
10032 2016-12-17  Bruno Haible  <bruno@clisp.org>
10034         fmodf: Avoid redefinition error on MSVC.
10035         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10036         may be defined as an inline function.
10038 2016-12-17  Bruno Haible  <bruno@clisp.org>
10040         expf: Avoid redefinition error on MSVC.
10041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10042         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10043         may be defined as an inline function.
10044         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10045         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10047 2016-12-17  Bruno Haible  <bruno@clisp.org>
10049         coshf: Avoid redefinition error on MSVC.
10050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10051         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10052         may be defined as an inline function.
10053         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10054         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10056 2016-12-17  Bruno Haible  <bruno@clisp.org>
10058         cosf: Avoid redefinition error on MSVC.
10059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10060         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10061         may be defined as an inline function.
10062         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10063         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10065 2016-12-17  Bruno Haible  <bruno@clisp.org>
10067         atan2f: Avoid redefinition error on MSVC.
10068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10069         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10070         may be defined as an inline function.
10071         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10072         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10074 2016-12-17  Bruno Haible  <bruno@clisp.org>
10076         atanf: Avoid redefinition error on MSVC.
10077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10078         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10079         may be defined as an inline function.
10080         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10081         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10083 2016-12-17  Bruno Haible  <bruno@clisp.org>
10085         asinf: Avoid redefinition error on MSVC.
10086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10087         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10088         may be defined as an inline function.
10089         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10090         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10092 2016-12-17  Bruno Haible  <bruno@clisp.org>
10094         acosf: Avoid redefinition error on MSVC.
10095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10096         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10097         may be defined as an inline function.
10098         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10099         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10101 2016-12-17  Bruno Haible  <bruno@clisp.org>
10103         Avoid redefinition errors on MSVC.
10104         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10105         the function may be defined as an inline function.
10106         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10107         the function may be defined as an inline function.
10109 2016-12-17  Bruno Haible  <bruno@clisp.org>
10111         Avoid redefinition errors on MSVC.
10112         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10113         * lib/unistd.in.h: Include <stdio.h> when necessary.
10115 2016-12-17  Bruno Haible  <bruno@clisp.org>
10117         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10118         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10119         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10120         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10121         WINT_MAX.
10123 2016-12-17  Bruno Haible  <bruno@clisp.org>
10125         Avoid autoconf warning.
10126         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10127         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10129 2016-12-17  Bruno Haible  <bruno@clisp.org>
10131         fpending: Revert workaround against Emacs bug.
10132         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10133         The Emacs bug is fixed by Eli Zaretskii in
10134         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10136 2016-12-17  Bruno Haible  <bruno@clisp.org>
10138         getlogin_r tests: Port to mingw.
10139         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10140         regression introduced on 2014-05-19.
10142 2016-12-17  Bruno Haible  <bruno@clisp.org>
10144         getlogin: Port to newer mingw.
10145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10146         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10147         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10148         HAVE_GETLOGIN.
10149         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10150         HAVE_GETLOGIN.
10151         * doc/posix-functions/getlogin.texi: Mention the issue.
10152         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10153         regression introduced on 2014-05-14.
10155 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10157         builtin-expect: improve port to IBM XL C
10158         Problem reported for z/OS by Daniel Richard G. in:
10159         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10160         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10161         Test for <builtins.h> directly.
10163         builtin-expect: port to IBM XL C
10164         Problem reported for z/OS by Daniel Richard G. in:
10165         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10166         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10167         Also allow __builtin_expect defined via a standard include file.
10169         regex: fix dependency
10170         Problem reported by Bruno Haible in:
10171         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10172         * modules/regex: Depend on builtin-expect.
10174         builtin-expect: new module
10175         Fix fnmatch to use it.
10176         Problem reported for z/OS by Daniel Richard G.
10177         * lib/fnmatch.c (__builtin_expect):
10178         * lib/glob.c (__builtin_expect):
10179         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10180         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10181         * lib/scandir.c (__builtin_expect):
10182         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10183         Remove macro; config.h now does this.
10184         * lib/gl_anytreehash_list1.h (add_to_bucket):
10185         * lib/regex_internal.h (BE):
10186         Assume __builtin_expect.
10187         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10188         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10189         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10190         * modules/scandir, modules/strstr-simple:
10191         Depend on builtin-expect.
10193 2016-12-15  Bruno Haible  <bruno@clisp.org>
10195         init.sh: Add possibility to not delete temporary files.
10196         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10197         to yes, don't erase the temporary directory.
10199 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10201         regex: fix integer-overflow bug in never-used code
10202         Problem reported by Clément Pit–Claudel in:
10203         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10204         * lib/regex_internal.h: Include intprops.h.
10205         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10206         behavior on integer overflow.
10207         * modules/regex (Depends-on): Add intprops.
10209         fpending: fix port to MinGW on Emacs
10210         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10211         Problem reported by Eli Zaretskii in:
10212         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10213         Is Plan 9 still a valid porting target, anyway?
10215 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10217         safe-alloc: use xalloc-oversized
10218         * lib/safe-alloc.c: Include xalloc-oversized.h.
10219         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10220         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10222         xalloc: do not exceed PTRDIFF_MAX
10223         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10224         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10225         bytes have pointer-subtraction problems.
10227         malloca: do not exceed PTRDIFF_MAX
10228         * lib/malloca.h: Include xalloc-oversized.
10229         (nmalloca): Use xalloc_oversized instead of rolling our own.
10230         * modules/malloca (Depends-on):
10231         * modules/relocatable-prog-wrapper (Depends-on):
10232         Add xalloc-oversized.
10234         quotearg: pacify GCC better
10235         * modules/quotearg (Depends-on): Add minmax, stdint.
10236         * lib/quotearg.c: Include minmax.h, stdint.h.
10237         (nslots): Now int, as there seems little point to going to extra
10238         work merely to support the INT_MAX slot, which nobody ever uses.
10239         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10240         and to catch (mostly-theoretical) ptrdiff_t problems too.
10241         This can be done via one comparison.
10243 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10245         xalloc-oversized: check for PTRDIFF_MAX too
10246         This avoids undefined behavior when subtracting pointers to
10247         objects containing more than PTRDIFF_MAX bytes.
10248         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10249         Also return 1 if the result would exceed PTRDIFF_MAX>
10250         * modules/xalloc-oversized (Depends-on):
10251         Add stdint.
10253         dfa: fix glitches in previous commit
10254         Sorry, I don't know how I managed to commit the wrong version.
10255         * lib/dfa.c (MIN): Move up.
10256         (xpalloc): Now static.
10258         dfa: fix some unlikely integer overflows
10259         I found these while reviewing the recent Coverity-related fix.
10260         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10261         size_t for object counts.  Using ptrdiff_t is the style typically
10262         used in Emacs; although it wastes a sign bit as sizes can never be
10263         negative, it makes -fsanitize=undefined more likely to catch
10264         integer overflows in index calculation, and nowadays the upside is
10265         typically more important than the downside.  Although perhaps the
10266         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10267         of dfa.c already does, since it uses state_num which is signed),
10268         that is a bigger change and is not needed to fix the bugs I found.
10269         * lib/dfa.c: Include stdint.h and intprops.h.
10270         (TOKEN_MAX): New macro.
10271         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10272         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10273         (realloc_trans_if_necessary, free_mbdata):
10274         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10275         This is safe because xpalloc checks that the sizes do not exceed
10276         either SIZE_MAX or PTRDIFF_MAX.
10277         (xpalloc): New function, mostly taken from Emacs.
10278         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10279         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10280         (charclass_index): Check for integer overflow in computing
10281         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10282         added to it later.
10283         (alloc_position_set): Check for integer overflow.  On typical
10284         platforms this check has zero overhead, since the constant
10285         expression is false.
10286         (realloc_trans_if_necessary):
10287         Remove assertion, which I hope Coverity no longer needs.
10289         * modules/dfa (Depends-on): Add intprops, stdint.
10291 2016-12-12  Jim Meyering  <meyering@fb.com>
10293         dfa: add an assertion to avoid coverity false positive
10294         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10295         warned that "newalloc1 - 2" could overflow.
10297 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10299         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10300         * dfa.h (DFA_CASE_FOLD): Remove.
10301         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10303 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10305         link: fix test to declare use of rename()
10306         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10307         -Werror=implicit-function-declaration
10309 2016-12-12  Bruno Haible  <bruno@clisp.org>
10311         fpending: Port to native Windows with MSVC.
10312         * lib/fpending.c: Include stdio-impl.h.
10313         (__fpending): Include all known implementations. Err out if it's not
10314         ported.
10315         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10316         * modules/fpending (Files): Add lib/stdio-impl.h.
10317         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10319 2016-12-12  Bruno Haible  <bruno@clisp.org>
10321         stdioext: Port to native Windows with MSVC.
10322         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10323         (struct _gl_real_FILE): New type.
10324         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10325         Windows.
10326         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10327         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10328         other SystemV derived implementations.
10329         * lib/fpurge.c (fpurge): Likewise.
10330         * lib/freadable.c (freadable): Likewise.
10331         * lib/freadahead.c (freadahead): Likewise.
10332         * lib/freading.c (freading): Likewise.
10333         * lib/freadptr.c (freadptr): Likewise.
10334         * lib/freadseek.c (freadptrinc): Likewise.
10335         * lib/fseeko.c (fseeko): Likewise.
10336         * lib/fseterr.c (fseterr): Likewise.
10337         * lib/fwritable.c (fwritable): Likewise.
10338         * lib/fwriting.c (fwriting): Likewise.
10339         Reported by Gisle Vanem <gvanem@yahoo.no>.
10341 2016-12-11  Jim Meyering  <meyering@fb.com>
10343         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10344         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10345         to work with most shells, but not with the one provided by many
10346         Solaris 10 systems, so running configure with such a /bin/sh evokes
10347         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10348         Reported by Assaf Gordon in
10349         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10351 2016-12-10  Bruno Haible  <bruno@clisp.org>
10353         threadlib: Optimize out runtime test on Solaris >= 10.
10354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10355         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10356         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10358 2016-12-10  Bruno Haible  <bruno@clisp.org>
10360         stdint: Update doc about Solaris 9.
10361         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10363 2016-12-09  Bruno Haible  <bruno@clisp.org>
10365         c-ctype tests: Fix link error on Solaris 9.
10366         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10367         Reported at <https://savannah.gnu.org/bugs/?46827>.
10369 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10371         dfa: fix performance bug that recomputes trans
10372         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10373         25 on-demand changes.  The bug caused build_state to reset all
10374         d->trans elements to -2 even when d->trans was already non-null.
10375         Use C99 style decls after statements in this function.
10377         same-inode: port to MinGW
10378         Here st_ino is always 0, so change the definition of SAME_INODE so
10379         that 1 means the two files are the same, 0 with st_ino != 0 means
10380         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10381         reported by Bruno Haible (Bug#25146).
10382         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10383         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10385 2016-12-04  Bruno Haible  <bruno@clisp.org>
10387         javacomp-script: Support Java 7 and 8.
10388         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10389         target-version 1.7, 1.8.
10391 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10393         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10394         GPLv2" rewriting.
10396 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10398         * gnulib-tool (func_import): Adhere to the license guideline when
10399         rewriting the license text to "LGPLv3+ or GPLv2":
10400         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10402 2016-12-02  Bruno Haible  <bruno@clisp.org>
10404         localcharset: Avoid theoretical buffer overrun.
10405         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10406         return value from setlocale if it would lead to a buffer overrun.
10408 2016-12-01  Bruno Haible  <bruno@clisp.org>
10410         Relicense some modules under LGPLv2+.
10411         Kevin Cernekee's approval is in
10412         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10413         * modules/fseterr (License): Change to LGPLv2+.
10414         * modules/mbchar (License): Likewise.
10415         * modules/mbiter (License): Likewise.
10416         * modules/mbsnlen (License): Likewise.
10417         * modules/wcwidth (License): Likewise.
10419 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10421         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10422         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10423         OS/2 kLIBC.
10425 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10427         alphasort, scandir: Port to OS/2 kLIBC
10428         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10429         declaration.
10430         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10432 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10434         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10435         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10436         with '/@unixroot'.
10438 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10440         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10441         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10442         OS/2 kLIBC unless TCPV40HDRS is defined.
10444 2016-11-29  Jim Meyering  <meyering@fb.com>
10446         dfa: avoid new infinite loop
10447         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10448         * lib/dfa.c (dfastate): When constructing a new state table, we could
10449         initially declare that we had found a match, and later find that
10450         constraints eliminate that possibility, yet continue to use the
10451         now stale "matched" indicator.  That would lead to an infinite loop.
10452         The solution is to update "matched" when necessary.
10453         Introduced by commit v0.1-983-g403adf1.
10455 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10457         dfa: avoid match middle in multibyte character
10458         * lib/dfa.c (transit_state): If fails in matching single byte characters
10459         on a state including period expression in non-UTF8 multibyte locales,
10460         skip trailing bytes.
10461         (dfa_supported): Revert previous change.
10463 2016-11-27  Jim Meyering  <meyering@fb.com>
10465         dfa: avoid false match in non-UTF8 multibyte locales
10466         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10467         as "not supported" so that callers will resort to using regex-based
10468         matcher.  This will surely hurt performance, but correctness trumps
10469         performance here, and the affected locales are less and less relevant,
10470         these days.  See grep's bug report https://bugs.gnu.org/24975.
10472 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10474         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10475         * lib/ptsname_r.c: Include the appropriate headers.
10476         [__sun]: Delete sys/sysmacros.h include.
10477         [_AIX || __osf__]: Likewise.
10478         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10480 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10482         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10483         * lib/md4.c (md4_process_bytes): The existing define is made internal
10484         in recent versions of glibc, so also use this new public define.
10485         * lib/md5.c (md5_process_bytes): Likewise.
10486         * lib/sha1.c (sha1_process_bytes): Likewise.
10487         * lib/sha256.c (sha256_process_bytes): Likewise.
10488         * lib/sha512.c (sha512_process_bytes): Likewise.
10490 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10492         maint: use a more standard return from mbrtowc test
10493         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10494         from the test program as this often indicates an
10495         unhandled case in the test program.
10496         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10497         (gl_MBRTOWC_SANITYCHECK): Likewise.
10498         (gl_MBRTOWC_NULL_ARG2): Likewise.
10499         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10501 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10503         freopen: work around glibc bug with closed fd
10504         Work around glibc bug#15589, where freopen mishandles the case
10505         where stdin etc. are already closed.
10506         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10507         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10508         instead of __need_FILE, as the latter does not work with glibc.
10509         Include <fcntl.h>, for open flags.
10510         (rpl_freopen): Work around glibc bug.
10511         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10512         * modules/freopen (Depends-on): Add fcntl-h.
10513         * tests/test-freopen.c (main): Test for bug.
10515 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10517         fnmatch: fix typo introduced on 2016-08-17
10518         This fixes the port to non-GCC compilers that lack __builtin_expect.
10519         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10521         dfa: simplify with new function fillset
10522         * lib/dfa.c (fillset): New function.
10523         Use it for clarity when applicable.
10525         dfa: fix glitches with on-demand states
10526         Also, adjust commentary to better match new code.
10527         Some of these glitches predate the recent change.
10528         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10529         only non-initial states.
10530         (dfastate): Rename locals to better match new roles.
10531         Move them into nested scopes if this is easy.
10532         Omit unnecessary calls to zeroset.
10533         Simplify test for whether to throw in the positions of state 0.
10534         Omit C99-ism (decl after statement) since Gawk still wants C89.
10535         (build_state): Omit unnecessary test and assignment.
10536         Fix some confusion that counted transition tables inaccurately
10537         and could cause a memory leak.
10538         (dfaexec_main): Redo to make it clearer to the compiler that
10539         -1 and -2 are the only negative state numbers here.
10541 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10543         dfa: addition of new state on demand
10544         * src/dfa.c (dfastate): Add argument UC, the current input character.
10545         Fill only a group including the character in transition table.
10546         (realloc_trans_if_necessary): Add the dummy state which means that a
10547         transition table is assigned but the next state is not assigned.
10548         (build_state): Return the next state.  All callers updated.
10549         (transit_state_singlebyte): If we get the dummy state,
10550         fill the transition table.
10551         (dfaexec_main): Handle the dummy state.
10552         (free_mbdata, dfafree): Consider the dummy state.
10554 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10556         srclist: sync with released gettext
10557         * config/srclist.txt: Set "release" option to the files under
10558         $GETTEXT.
10560 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10562         srclist: add "release" option
10563         * config/srclist.txt: Change the format so that the first column
10564         of each line points to the top-level directory of the source
10565         archive.
10566         * config/srclist-update: Accept "release" option that checks files
10567         from the most recently tagged revision in the source archive.
10569 2016-11-21  Bruno Haible  <bruno@clisp.org>
10571         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10572         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10573         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10574         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10575         Inline and remove member function 'rpl ()' of the wrapper struct.
10577 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10579         dfa: fix logic typo
10580         Problem reported by Stephane Chazelas (Bug#24973).
10581         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10582         non-simple locales like fr_FR to be treated as simple.
10584 2016-11-20  Jim Meyering  <meyering@fb.com>
10586         fix test driver leaks: exclude, malloc, realloc
10587         * tests/test-exclude.c (main): Fix trivial leak.
10588         * tests/test-malloc-gnu.c (main): Likewise.
10589         * tests/test-realloc-gnu.c (main): Likewise.
10590         With these changes, grep's tests are now leak free.
10591         I.e., running them with ASAN elicits no failure:
10592           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10593             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10595 2016-11-11  Bruno Haible  <bruno@clisp.org>
10597         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10598         * modules/libunistring: (License): Change from LGPL to
10599         "LGPLv3+ or GPLv2".
10600         * modules/libunistring-optional: Likewise.
10601         * modules/unicase/*: Likewise.
10602         * modules/uniconv/*: Likewise.
10603         * modules/unictype/*: Likewise.
10604         * modules/unigbrk/*: Likewise.
10605         * modules/unilbrk/*: Likewise.
10606         * modules/uniname/*: Likewise.
10607         * modules/uninorm/*: Likewise.
10608         * modules/unistdio/*: Likewise.
10609         * modules/unistr/*: Likewise.
10610         * modules/uniwbrk/*: Likewise.
10611         * modules/uniwidth/*: Likewise.
10613 2016-11-12  Bruno Haible  <bruno@clisp.org>
10615         Relicense some modules under LGPLv2+.
10616         Paul Eggert's approval is in
10617         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10618         Eric Blake's approval is in
10619         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10620         Ludovic Courtès's approval is in
10621         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10622         * modules/isnand-nolibm (License): Change to LGPLv2+.
10623         * modules/isnanf-nolibm (License): Likewise.
10624         * modules/isnanl-nolibm (License): Likewise.
10626 2016-11-19  Bruno Haible  <bruno@clisp.org>
10628         Relicense some modules under LGPLv2+.
10629         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10630         modules/vasnprintf.
10631         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10632         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10633         All other significant changes to the files in lib/ of these modules
10634         are from me.
10635         * modules/memcmp2 (License): Change to LGPLv2+.
10636         * modules/amemxfrm (License): Likewise.
10637         * modules/fpieee (License): Likewise.
10638         * modules/fpucw (License): Likewise.
10639         * modules/frexp-nolibm (License): Likewise.
10640         * modules/frexpl-nolibm (License): Likewise.
10641         * modules/printf-frexp (License): Likewise.
10642         * modules/printf-frexpl (License): Likewise.
10643         * modules/printf-safe (License): Likewise.
10644         * modules/signbit (License): Likewise.
10646 2016-11-17  Bruno Haible  <bruno@clisp.org>
10648         Enable Unicode decoder safety unconditionally.
10649         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10650         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10651         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10652         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10653         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10654         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10655         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10656         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10657         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10658         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10659         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10660         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10661         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10662         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10663         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10664         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10665         * lib/unistr/u32-next.c (u32_next): Likewise.
10666         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10667         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10668         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10669         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10670         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10671         CONFIG_UNICODE_SAFETY tests unconditionally.
10672         * tests/unistr/test-u32-mblen.c (main): Likewise.
10673         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10674         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10675         * tests/unistr/test-u32-next.c (main): Likewise.
10676         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10677         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10678         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10679         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10680         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10681         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10682         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10683         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10684         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10685         * lib/unistr/u16-check.c (u16_check): Update comment.
10686         * NEWS: Mention the changes that callers should be aware of.
10688 2016-11-19  Bruno Haible  <bruno@clisp.org>
10690         relocatable-prog-wrapper: Fix breakage on Cygwin.
10691         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10692         (Depends-on): Remove intprops.
10693         * lib/relocwrapper.c: Update dependency tree.
10694         (strerror): Undefine.
10695         * build-aux/install-reloc (func_create_wrapper): Do not compile
10696         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10698 2016-11-19  Bruno Haible  <bruno@clisp.org>
10700         strerror: Make it compile in C++ mode.
10701         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10703 2016-11-15  Pedro Alves  <palves@redhat.com>
10705         sys_time: add gnulib::timeval for C++
10706         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10707         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10708         timeval macro.
10710 2016-11-14  Pedro Alves  <palves@redhat.com>
10712         snippet/c++defs: fix real-floating arg functions in C++ mode
10713         Also, define isfinite, isinf, isnan, signbit in the gnulib
10714         namespace instead of in the global namespace.
10715         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10716         (_GL_END_NAMESPACE): New.
10717         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10718         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10719         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10720         instead of in the global namespace.
10721         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10722         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10723         of in the global namespace.
10725 2016-11-13  Jim Meyering  <meyering@fb.com>
10727         strftime: don't use __THROW
10728         Each use of __THROW would provoke this from gcc-7-to-be:
10730           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10731             on unit local functions [-Wattributes]
10732           static int iso_week_days (int, int) __THROW;
10733           ^~~~~~
10734         * lib/strftime.c (__THROW): Don't define.
10735         Remove each use of __THROW.
10736         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10737         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10739 2016-11-14  Paul Eggert  <eggert@union>
10741         obstack: port to gcc -fcheck-pointer-bounds
10742         Problem found by 'make check' failure on bleeding-edge coreutils
10743         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10744         6.2.0-5ubuntu12), configured via "./configure
10745         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10746         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10747         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10748         New macro, copied from fts_.h.
10749         (struct _obstack_chunk.contents): Use it.
10751 2016-11-14  Eric Blake  <eblake@redhat.com>
10753         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10754         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10755         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10757 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10759         strptime: fix compile error in recent change
10760         * lib/strptime.c (__strptime_internal): Fix ported code.
10762 2016-11-11  Bruno Haible  <bruno@clisp.org>
10764         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10765         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10766         (func_import): Extend determination of license_incompatibilities.
10767         (func_create_testdir): Extend table of license compatibility. Handle
10768         also the licenses GPLv3+, GPL, LGPLv3+.
10770 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10772         strftime: tune %q
10773         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10775         Merge strftime.c changes from glibc
10776         This incorporates:
10777         2007-10-16 [BZ #5184] Add tzset_called argument
10778         2008-06-13 [BZ #6612] pass reference to tzset_called around
10779         2009-10-30 Implement Burmese language locale for Myanmar
10780         2010-01-09 Add support for XPG7 testing
10781         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10782         2015-10-20 Convert miscellaneous function definitions to prototype style
10783         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10784         it anyway and this lessens the difference between gnulib and glibc.
10785         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10786         (__THROW): Define if standard headers do not.
10787         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10788         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10789         Declare with __THROW.
10790         (__strftime_internal): Rename from strftime_case_. Add arg for
10791         whether tzset is called.  All uses changed.  Call tzset at most
10792         once.  Allow %OC, for Burmese.
10793         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10794         Don't assume values are in range.
10796 2016-11-12  Eric Blake  <eblake@redhat.com>
10798         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10799         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10800         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10801         different value.
10803 2006-11-12  Pedro Alves  <palves@redhat.com>
10805         Fix gnulib C++ namespace support and std::frexp
10806         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10807         _GL_CXXALIASWARN.
10809 2006-11-12  Pedro Alves  <palves@redhat.com>
10811         GNULIB_NAMESPACE::func need not pull in rpl_func
10812         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10813         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10814         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10815         struct instead of a function pointer.
10817 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10819         manywarnings: fix -Wno-missing-field-initializers detection
10820         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10821         to be independent of -Wunused-variable.  I.E. ensure the latter
10822         warning doesn't occur so that detection of the former is accurate.
10824 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10826         strftime,strptime: support %q to represent the quarter
10827         * lib/strftime.c (strftime_case_): Add %q case.
10828         * lib/strptime.c (__strptime_internal): Likewise.
10829         * tests/test-strftime.c (quarter_test): A new test case.
10831 2016-11-03  Eric Blake  <eblake@redhat.com>
10833         bootstrap: Fix get_version() for AIX 5.3
10834         * build-aux/bootstrap (get_version): Factor out sed script, since
10835         indented comments choke AIX 5.3 sed.
10836         Reported-by: Michael Felt <aixtools@gmail.com>
10838 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10840         intprops: port to older XL C
10841         Problem reported by Alexander Samoilov in:
10842         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10843         http://savannah.nongnu.org/bugs/?49448
10844         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10845         Define to 1 only for XL C 12.1 or later, since this bug
10846         occurs in XL C for AIX 6.0 but not in 12.1.
10848 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10850         backupfile: initialize default suffix within the implementation
10851         * lib/backupfile.c (find_backup_file_name): Initialize the
10852         global variable here, to simplify usage, and to only call
10853         getenv() when needed.
10855 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10857         futimens: remove FIXME for old Linux kernels
10858         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10859         this in 2012" FIXME, like that for utimensat.
10861         utimensat: remove FIXME for old Linux kernels
10862         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10863         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10864         this in 2012" FIXME, by assuming the file system bug is absent
10865         unless demonstrated to be present.  We no longer need to worry
10866         about Linux kernel 2.6.32 when building with newer kernels.
10868 2016-10-16  Bruno Haible  <bruno@clisp.org>
10870         qsort_r: Fix macrology for platforms that lack the function.
10871         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10872         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10873         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10874         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10875         not exist.
10876         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10877         the function exists.
10878         * modules/qsort_r: Add comments.
10880 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10882         sys_types: fix Texinfo typos
10883         * doc/glibc-functions/gnu_dev_major.texi:
10884         * doc/glibc-functions/gnu_dev_makedev.texi:
10885         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10887 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10889         getprogname: port to HP-UX
10890         See Bug#24805.
10891         * lib/getprogname.c (getprogname) [__hpux]: Port.
10892         * tests/test-getprogname.c (STREQ) [__hpux]:
10893         Special-case for HP-UX limitations on program name length.
10895 2016-10-20  Bruno Haible  <bruno@clisp.org>
10897         Update doc about target platforms.
10898         * doc/gnulib-intro.texi (Target Platforms): Update list.
10900 2016-10-15  Bruno Haible  <bruno@clisp.org>
10902         opendir, readdir, closedir: Relicense under LGPLv2+.
10903         * modules/opendir (License): Change to LGPLv2+.
10904         * modules/readdir (License): Likewise.
10905         * modules/closedir (License): Likewise.
10907 2016-10-16  Bruno Haible  <bruno@clisp.org>
10909         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
10910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
10911         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
10912         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
10913         HAVE_DECL_STRERROR_R.
10915 2016-10-16  Bruno Haible  <bruno@clisp.org>
10917         Make the 'argp' module work without the 'error' module.
10918         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
10920 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10922         diffseq: restore TOO_EXPENSIVE heuristic
10923         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
10924         (Bug#24715).  The simplest solution is to restore the
10925         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
10926         using a higher threshold to avoid Bug#16848 on smaller files.
10927         * lib/diffseq.h (struct context): Restore member too_expensive.
10928         (struct partition): Restore members lo_minimal, hi_minimal.
10929         (diag, compareseq): Restore arg find_minimal.  All uses changed.
10930         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
10931         1993 to make 'diff' run faster (but not as well) on large inputs,
10932         but use a threshold of 4096 instead of the old 256.
10933         * lib/fstrcmp.c (strcmp_bounded):
10934         * lib/git-merge-changelog.c (compute_differences):
10935         Adjust to diffseq.h changes.
10937 2016-10-22  Bruno Haible  <bruno@clisp.org>
10939         iconv: Avoid compilation error when bootstrapping GNU libiconv.
10940         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
10941         declaration yet, define ICONV_CONST to empty.
10943 2016-10-15  Bruno Haible  <bruno@clisp.org>
10945         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
10946         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
10947         module.
10949 2016-10-16  Bruno Haible  <bruno@clisp.org>
10951         system-quote tests: Avoid compiler warning on AIX.
10952         * tests/test-system-quote-child.c (fopen): Redefine like the system's
10953         <stdio.h> does.
10955 2016-10-16  Bruno Haible  <bruno@clisp.org>
10957         Fix some "gcc -Wall" warnings.
10958         * tests/test-ffsl.c (main): Use variable x, not i.
10959         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
10960         freopen.
10961         * tests/test-sethostname1.c (main): Explicitly ignore the return value
10962         of sethostname.
10964 2016-10-16  Bruno Haible  <bruno@clisp.org>
10966         gnulib-tool: Make --create-testdir on all modules work again.
10967         * gnulib-tool (func_create_testdir): Don't include the
10968         non-recursive-gnulib-prefix-hack module.
10970 2016-10-21  Daiki Ueno  <ueno@gnu.org>
10972         libunistring: change the maintainer to 'all'
10973         * modules/gen-uni-tables, modules/libunistring:
10974         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
10975         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
10976         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
10977         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
10978         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
10979         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
10980         * modules/uniwidth/*: Change the maintainer to 'all'.
10982 2016-10-16  Bruno Haible  <bruno@clisp.org>
10984         Simplify "configure: checking ..." messages.
10985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
10986         AC_MSG_NOTICE.
10987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10989 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10991         quotearg-tests: pacify gcc -Wall
10992         Problem reported by Bruno Haible in:
10993         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
10994         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
10995         * tests/test-quotearg.h: ... from here.
10997 2016-10-20  Pádraig Brady  <P@draigBrady.com>
10999         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11000         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11001         Needed on Centos <= 4.
11003 2016-10-20  Jim Meyering  <meyering@fb.com>
11005         printf.m4: fix a bug in detecting printf %j support
11006         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11007         uintmax_t is defined in neither stdint.h nor inttypes.h.
11008         Before, this macro might have mistakenly set
11009         gl_cv_func_printf_sizes_c99=yes on such a system.
11010         Spotted by Zev Weiss.
11012 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11014         sched: substitute HAVE_SYS_CDEFS_H too
11015         Problem reported by Tom G. Christensen in:
11016         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11017         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11018         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11020 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11022         quotearg: never write beyond the returned length
11023         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11024         scan of the string when we initially encounter a single quote when
11025         shell quoting, so that if we then switch to a more concise quoting method
11026         we will not have written beyond that returned length.
11027         This is significant for sh-quote, which has separate routines
11028         to determine the length and do the actual quoting.
11029         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11030         now that we never write more than the returned length.
11032 2016-10-18  Bruno Haible  <bruno@clisp.org>
11034         getprogname tests: Avoid failure in packages that use libtool.
11035         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11036         Based on a patch by Jim Meyering.
11038 2016-10-16  Bruno Haible  <bruno@clisp.org>
11040         getprogname: Fix test failure on Cygwin. Comments.
11041         * lib/getprogname.h: Add comments.
11042         * lib/getprogname.c: Add comments. Fix #elif indentation.
11043         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11044         ".exe" suffix.
11046 2016-10-16  Bruno Haible  <bruno@clisp.org>
11048         Make sure the libunistring detection rejects older versions with a
11049         known bug.
11050         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11051         * modules/unistr/u16-strtok (configure.ac): Likewise.
11052         * modules/unistr/u32-strtok (configure.ac): Likewise.
11054 2016-10-18  Bruno Haible  <bruno@clisp.org>
11056         sh-quote, system-quote: revert regression of unit test.
11057         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11058         * tests/test-system-quote-main.c (check_one): Likewise.
11060 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11062         quotearg: fix stale tests
11063         * tests/test-quotearg.c [locale_results]: Add the missing str7
11064         entries to the expected results.
11065         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11066         don't write beyond the returned length, since that's no longer the
11067         case if we switch to a more concise quoting style.
11068         * tests/test-sh-quote.c (check_one): Likewise.
11069         (main): Adjust for the new more concise quoting style.
11070         Reported by Bruno Haible.
11072 2016-10-16  Jim Meyering  <meyering@fb.com>
11074         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11075         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11076         to "$1".  This macro is always invoked with $1 == lib.
11077         Spotted by Bruno Haible
11079 2016-10-16  Bruno Haible  <bruno@clisp.org>
11081         Fix a test crash.
11082         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11083         fails.
11085 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11087         test-limits-h: suppress -Woverlength-strings
11088         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11090 2016-10-15  Bruno Haible  <bruno@clisp.org>
11092         gettime, timespec, utimens: Relicense under LGPL.
11093         * modules/gettime (License): Change to LGPL.
11094         * modules/timespec (License): Likewise.
11095         * modules/utimens (License): Likewise.
11097 2016-10-14  Bruno Haible  <bruno@clisp.org>
11098             Pádraig Brady  <P@draigBrady.com>
11100         canonicalize-lgpl: Support the case path_max > INT_MAX.
11101         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11102         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11104 2016-10-13  Jim Meyering  <meyering@fb.com>
11106         getprogname: IBM z/OS: avoid NULL-dereference
11107         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11108         upon strdup failure.
11110 2016-10-12  Jim Meyering  <meyering@fb.com>
11112         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11113         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11114         and an abbreviated diagnostic rather than verify with the full one,
11115         because the full-length strings would evoke warnings from gcc with
11116         -Woverlength-strings.
11118 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11120         stdint: port SIZE_MAX to glibc s390
11121         Problem reported by Eric Blake in:
11122         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11123         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11124         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11125         correct type, if possible.
11127 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11129         getprogname: port to IBM z/OS
11130         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11132 2016-10-11  Jim Meyering  <meyering@fb.com>
11134         maint: remove stray space after "." in AC_DEFINE comment.
11135         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11136         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11138 2016-10-05  Jim Meyering  <meyering@fb.com>
11140         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11141         * lib/long-options.c (parse_long_options): Add a break statement
11142         to avoid this new warning/failure:
11143         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11144           --create-testdir --dir=/t/x --with-tests --test long-options
11145         ../../gllib/long-options.c: In function 'parse_long_options':
11146         ../../gllib/long-options.c:66:12: error: this statement may \
11147           fall through [-Werror=implicit-fallthrough]
11148                    (*usage_func) (EXIT_SUCCESS);
11149                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11151 2016-10-05  Jim Meyering  <meyering@fb.com>
11153         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11154         Testing this module would fail when using GCC 7 like this:
11155         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11156           --dir=/tmp/x --with-tests --test utimecmp
11157         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11158         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11159           [-Werror=bool-operation]
11160                          time_t s = src_s & ~ (res == 2 * BILLION);
11161                                             ^
11162         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11163           [-Werror=bool-operation]
11164                src_s &= ~ (res == 2 * BILLION);
11165                         ^
11166         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11167         Instead, make it explicit that we intend to apply it to 0 or 1.
11169 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11171         dfa: save memory for states
11172         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11173         states if dfa has a lot of caches.
11175 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11177         wchar, wctype-h: fix for MinGW 3.22.2
11178         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11179         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11180         when included from <string.h>.
11181         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11182         convention for MinGW 3.22.2, to solve issues with their
11183         wctype.h when included from <ctype.h>.
11185 2016-10-05  Jim Meyering  <meyering@fb.com>
11187         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11188         * lib/long-options.c (parse_long_options): Add a break statement
11189         to avoid this new warning/failure:
11190         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11191           --create-testdir --dir=/t/x --with-tests --test long-options
11192         ../../gllib/long-options.c: In function ‘parse_long_options’:
11193         ../../gllib/long-options.c:66:12: error: this statement may \
11194           fall through [-Werror=implicit-fallthrough]
11195                    (*usage_func) (EXIT_SUCCESS);
11196                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11198         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11199         Testing this module would fail when using GCC 7 like this:
11200         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11201           --dir=/tmp/x --with-tests --test utimecmp
11202         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11203         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11204           [-Werror=bool-operation]
11205                          time_t s = src_s & ~ (res == 2 * BILLION);
11206                                             ^
11207         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11208           [-Werror=bool-operation]
11209                src_s &= ~ (res == 2 * BILLION);
11210                         ^
11211         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11212         Instead, make it explicit that we intend to apply it to 0 or 1.
11214 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11216         quotearg: minimize shell quoting using double quotes
11217         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11218         quote in encountered then use double quotes (c style quoting)
11219         when possible, as it simplifies the quoting.
11220         * tests/test-quotearg-simple.c: Add test cases.
11221         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11222         for the fact we now may write beyond the returned length.
11224 2016-10-02  Jim Meyering  <meyering@fb.com>
11226         vasnprintf.c: avoid spurious warning from GCC 7
11227         The presence of cpp directives renders this "FALLTHROUGH" comment
11228         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11229         from GCC 7 built from git on 2016-10-02.
11230         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11231         directives, so that it takes effect once again.  This is clearly
11232         not a proper change, and I will revert it once this bug is fixed:
11233         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11235 2016-10-01  Jim Meyering  <meyering@fb.com>
11237         getprogname: correct the test for a __progname variable
11238         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11239         and AC_LINK_IFELSE to check for a global __progname.  If found,
11240         define HAVE_VAR___PROGNAME.
11241         * lib/getprogname.c (getprogname): Reflect the new name of the
11242         feature- checked preprocessor symbol:
11243         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11245 2016-09-28  Jim Meyering  <meyering@fb.com>
11247         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11248         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11249         fall-through case with a /* fallthrough */ comment.
11251         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11252         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11253         /* fallthrough */ comment.
11255         getprogname: avoid __progname vs program_invocation_short_name pitfall
11256         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11257         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11258         not with Fedora 24's glibc-2.23.1-10.
11259         * lib/getprogname.c (__progname): Move this declaration down...
11260         (getprogname): ... into the #elif block where used, and make it
11261         explicitly "extern".
11263         getprogname: port to OpenBSD 5.1
11264         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11265         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11266         * modules/getprogname (configure.ac): Move most of this code...
11267         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11268         increment serial number, and add a test for __progname.
11269         https://bugs.gnu.org/24562
11270         Reported by Nelson H. F. Beebe.
11272 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11274         sched: port to GCC 6.2.1 on macOS Sierra
11275         Problem reported by Denis Davydov in:
11276         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11277         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11278         Include <sys/cdefs.h> before <sched.h>.
11279         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11280         so that we needn’t worry about the sched.h include bug here.
11281         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11282         and include it before <sched.h> if it exists, when
11283         checking for <sched.h>.
11285         tests/init.sh: port Alpine fix to AIX 7.1
11286         * tests/init.sh (compare_): When attempting to use diff -U3,
11287         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11288         diff -u not outputting a space after leading '+', as the users
11289         of 'compare' should not be that picky about its output format.
11290         In the AIX 7.1 case, return with diff exit status (or with 2 if
11291         trouble), instead of some random nonzero exit status.
11292         * tests/test-init.sh (test_compare): Remove space after leading
11293         '+', so that AIX 7.1 'diff' passes the test.
11295 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11297         nl_langinfo: pacify GCC
11298         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11299         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11301         stdint: also set GL_GENERATE_LIMITS_H
11302         Problem reported by Jim Meyering in:
11303         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11304         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11306         limits-h, stdint: Don't assume extensions, fix typo
11307         * m4/limits-h.m4 (gl_LIMITS_H):
11308         * m4/stdint.m4 (gl_STDINT_H):
11309         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11310         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11311         reported by Jim Meyering in:
11312         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11314 2016-09-21  Jim Meyering  <meyering@fb.com>
11316         getprogname: port to AIX
11317         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11318         and strdup to obtain a short program name string.  Using code from
11319         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11320         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11321         Assaf Gordon reported that this new file would fail to compile on
11322         AIX-7.1 32bit.
11324 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11326         extensions: fix typo in comment
11327         * m4/extensions.m4: Sync from Autoconf master.
11329         stdint: support new _WIDTH macros
11330         * doc/posix-headers/stdint.texi: Document this.
11331         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11332         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11333         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11334         * modules/stdint (Depends-on): Add limits-h.
11335         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11336         * modules/stdint-tests (Depends-on): Add extensions, so that
11337         INTMAX_MAX etc. are defined.
11338         * tests/test-stdint.c: Verify the new macros.
11340         limits-h: new module
11341         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11342         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11343         * doc/posix-headers/limits.texi: Document new module.
11344         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11345         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11347         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11348         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11349         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11350         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11352 2016-09-15  Eric Blake  <eblake@redhat.com>
11354         sys_types: avoid glibc 2.25 warnings about major()
11355         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11356         older autoconf.
11357         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11358         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11359         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11360         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11362         mountlist: include sysmacros.h for glibc
11363         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11364         AC_HEADER_MAJOR.
11365         * lib/mountlist.c (includes): Use correct headers.
11367 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11369         extensions: port to more ISO C TSes
11370         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11371         master, to add support for more recent ISO C TRs and TSes.
11373 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11375         intprops: new macro TYPE_WIDTH
11376         * lib/intprops.h (TYPE_WIDTH): New macro.
11377         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11378         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11379         * lib/parse-datetime.y (parse_datetime2):
11380         Use it.
11382         extensions: port to recent ISO C TRs
11383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11384         Sync from Autoconf master, to add support for recent ISO C TRs.
11385         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11386         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11387         the MinGW option is not an extension.
11389 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11391         dfa: port to Solaris 9
11392         Problems reported by Tom G. Christensen in:
11393         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11394         * modules/dfa (Depends-on): Add isblank.
11395         * modules/dfa-tests (dfa_match_aux_LDADD):
11396         Rename from test_stat_LDADD, to fix typo.
11397         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11399 2016-09-10  Jim Meyering  <meyering@fb.com>
11401         strverscmp: avoid link failure on OS X
11402         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11403         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11405 2016-08-16  Jim Meyering  <meyering@fb.com>
11407         dfa: new module, importing grep's DFA matcher
11408         Since grep's DFA matcher is now being used by two gnulib-enabled
11409         projects, grep and sed, it makes sense to version-control its
11410         sources and unit tests in one place: here.
11411         * modules/dfa: New module.
11412         * modules/dfa-tests: New file.
11413         * lib/dfa.c: New file, from grep.
11414         * lib/dfa.h: Likewise.
11415         * lib/localeinfo.c: Likewise.
11416         * lib/localeinfo.h: Likewise.
11417         * tests/dfa-match-aux.c: Likewise.
11418         * tests/dfa-invalid-char-class.sh: Likewise.
11419         * tests/dfa-match.sh: Likewise, with minor changes.
11420         * MODULES.html.sh (Misc): Add "dfa" to this list.
11422 2016-09-09  Jim Meyering  <meyering@fb.com>
11424         getprogname-tests: don't depend on assert-h
11425         * modules/getprogname-tests (Depends-on): Remove assert-h.
11426         It was not needed, and in fact would cause build failure for
11427         coreutils on some systems.  Reported by Assaf Gordon in https:
11428         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11430 2016-09-07  Jim Meyering  <meyering@fb.com>
11432         getprogname-tests: work also when EXEEXT is nonempty
11433         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11434         * tests/test-getprogname.c (main): Use it.
11435         Suggested by Gisle Vanem.
11437 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11439         getprogname: fix errors in previous change
11440         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11441         s/program_invocation_name/base/
11442         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11444 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11446         parse-datetime: restrict debug output to input string
11447         * lib/parse-datetime.y (parse_datetime2): If we parse
11448         all of the input but determine it's invalid, ensure
11449         we don't output the now invalid input pointer.
11450         This issue was seen with `date -d 'now +1'`.
11452 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11454         flexmember: new macro FLEXALIGNOF
11455         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11456         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11457         this macro.  Update comments.
11459 2016-09-07  Jim Meyering  <meyering@fb.com>
11461         getprogname: port to systems with __argv (mingw, msvc)
11462         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11463         last_component: more general than open coding it with hard-coded "/".
11464         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11465         * modules/getprogname (Depends-on): Add dirname-lgpl.
11466         (configure.ac): Check for __argv in <stdlib.h>.
11467         * modules/getprogname-tests: New file.
11468         * tests/test-getprogname.c: New file.
11469         Suggested by Gisle Vanem in
11470         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11472 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11474         flexmember: port better to GCC + valgrind
11475         With a char[] flexible array member in a struct with nontrivial
11476         alignment, GCC-generated code can access past the end of the
11477         array, because GCC assumes there are padding bytes to get the
11478         struct aligned.  So the common idiom of malloc (offsetof (struct
11479         s, m), n) does not properly allocate an n-byte trailing member, as
11480         malloc’s argument should be the next multiple of alignof (struct s).
11481         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11482         Although C11 apparently permits this GCC optimization (i.e., there
11483         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11484         See the thread containing:
11485         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11486         * lib/flexmember.h: New file.
11487         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11488         * lib/localename.c, lib/time_rz.c:
11489         Include flexmember.h.
11490         * lib/fnmatch_loop.c (struct patternlist):
11491         * lib/localename.c (struct hash_node):
11492         Use FLEXIBLE_ARRAY_MEMBER.
11493         * lib/fnmatch_loop.c (EXT):
11494         * lib/fts.c (fts_alloc):
11495         * lib/glob.c (glob_in_dir):
11496         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11497         * lib/localename.c (gl_lock_define_initialized):
11498         * lib/time_rz.c (tzalloc):
11499         Use FLEXSIZEOF instead of offsetof.
11500         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11501         Check that the size of the struct can be taken.
11502         * modules/flexmember (Files): Add lib/flexmember.h.
11503         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11504         Add flexmember.
11506 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11508         getprogname: port to Solaris 10
11509         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11510         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11511         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11513         stdalign: correct mistake in alignof doc
11514         Problem reported by Joseph Myers in:
11515         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11516         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11517         alignof(S) where S is a structure containing a flexible array
11518         member.  The Gnulib substitute does not support this, but C11 does.
11520 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11522         main.mk: remove sc_program_name, since there is no more need to
11523         use set_program_name in tools (getprogname is enough for most
11524         of the cases).
11525         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11526         * top/maint.mk (sc_program_name): Remove.
11528 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11530         Port tests away from progname, since modules that need the
11531         program name already depend on getprogname.
11532         * modules/acl-tests (Depends-on): Remove progname.
11533         * modules/argmatch (Depends-on): Likewise.
11534         * modules/argmatch-tests (Depends-on): Likewise.
11535         * modules/argp-tests (Depends-on): Likewise.
11536         * modules/argp-version-etc-tests (Depends-on): Likewise.
11537         * modules/array-list-tests (Depends-on): Likewise.
11538         * modules/array-oset-tests (Depends-on): Likewise.
11539         * modules/avltree-list-tests (Depends-on): Likewise.
11540         * modules/avltree-oset-tests (Depends-on): Likewise.
11541         * modules/avltreehash-list-tests (Depends-on): Likewise.
11542         * modules/carray-list-tests (Depends-on): Likewise.
11543         * modules/copy-file-tests (Depends-on): Likewise.
11544         * modules/exclude-tests (Depends-on): Likewise.
11545         * modules/fchownat-tests (Depends-on): Likewise.
11546         * modules/fdopendir-tests (Depends-on): Likewise.
11547         * modules/filenamecat-tests (Depends-on): Likewise.
11548         * modules/fstatat-tests (Depends-on): Likewise.
11549         * modules/fstrcmp-tests (Depends-on): Likewise.
11550         * modules/linked-list-tests (Depends-on): Likewise.
11551         * modules/linkedhash-list-tests (Depends-on): Likewise.
11552         * modules/mkdirat-tests (Depends-on): Likewise.
11553         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11554         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11555         * modules/obstack-printf-tests (Depends-on): Likewise.
11556         * modules/openat-tests (Depends-on): Likewise.
11557         * modules/parse-datetime-tests (Depends-on): Likewise.
11558         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11559         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11560         * modules/quotearg-simple-tests (Depends-on): Likewise.
11561         * modules/quotearg-tests (Depends-on): Likewise.
11562         * modules/rbtree-list-tests (Depends-on): Likewise.
11563         * modules/rbtree-oset-tests (Depends-on): Likewise.
11564         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11565         * modules/spawn-pipe-tests (Depends-on): Likewise.
11566         * modules/system-quote-tests (Depends-on): Likewise.
11567         * modules/uniname/uniname-tests (Depends-on): Likewise.
11568         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11569         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11570         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11571         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11572         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11573         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11574         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11575         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11576         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11577         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11578         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11579         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11580         * modules/unlinkat-tests (Depends-on): Likewise.
11581         * modules/version-etc-tests (Depends-on): Likewise.
11582         * modules/xalloc-die-tests (Depends-on): Likewise.
11583         * modules/xmemdup0-tests (Depends-on): Likewise.
11584         * modules/xprintf-posix-tests (Depends-on): Likewise.
11585         * modules/xvasprintf-tests (Depends-on): Likewise.
11586         * tests/test-argmatch.c: Do not include progname.h.
11587         (main) Stop calling set_program_name.
11588         * tests/test-argp-version-etc.c: Likewise.
11589         * tests/test-argp.c: Likewise.
11590         * tests/test-argv-iter.c: Likewise.
11591         * tests/test-array_list.c: Likewise.
11592         * tests/test-array_oset.c: Likewise.
11593         * tests/test-avltree_list.c: Likewise.
11594         * tests/test-avltree_oset.c: Likewise.
11595         * tests/test-avltreehash_list.c: Likewise.
11596         * tests/test-carray_list.c: Likewise.
11597         * tests/test-copy-acl.c: Likewise.
11598         * tests/test-copy-file.c: Likewise.
11599         * tests/test-exclude.c: Likewise.
11600         * tests/test-fchownat.c: Likewise.
11601         * tests/test-fdopendir.c: Likewise.
11602         * tests/test-filenamecat.c: Likewise.
11603         * tests/test-fstatat.c: Likewise.
11604         * tests/test-fstrcmp.c: Likewise.
11605         * tests/test-linked_list.c: Likewise.
11606         * tests/test-linkedhash_list.c: Likewise.
11607         * tests/test-mkdirat.c: Likewise.
11608         * tests/test-nonblocking-pipe-main.c: Likewise.
11609         * tests/test-nonblocking-socket-main.c: Likewise.
11610         * tests/test-obstack-printf.c: Likewise.
11611         * tests/test-openat.c: Likewise.
11612         * tests/test-parse-datetime.c: Likewise.
11613         * tests/test-pipe-filter-gi1.c: Likewise.
11614         * tests/test-pipe-filter-gi2-main.c: Likewise.
11615         * tests/test-pipe-filter-ii1.c: Likewise.
11616         * tests/test-pipe-filter-ii2-main.c: Likewise.
11617         * tests/test-quotearg-simple.c: Likewise.
11618         * tests/test-quotearg.c: Likewise.
11619         * tests/test-rbtree_list.c: Likewise.
11620         * tests/test-rbtree_oset.c: Likewise.
11621         * tests/test-rbtreehash_list.c: Likewise.
11622         * tests/test-sameacls.c: Likewise.
11623         * tests/test-set-mode-acl.c: Likewise.
11624         * tests/test-spawn-pipe-main.c: Likewise.
11625         * tests/test-system-quote-main.c: Likewise.
11626         * tests/test-unlinkat.c: Likewise.
11627         * tests/test-version-etc.c: Likewise.
11628         * tests/test-xalloc-die.c: Likewise.
11629         * tests/test-xfprintf-posix.c: Likewise.
11630         * tests/test-xmemdup0.c: Likewise.
11631         * tests/test-xprintf-posix.c: Likewise.
11632         * tests/test-xvasprintf.c: Likewise.
11633         * tests/uniname/test-uninames.c: Likewise.
11634         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11635         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11636         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11637         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11638         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11639         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11640         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11641         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11642         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11643         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11644         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11645         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11646         * tests/test-c-stack.c: (program_name): Do not define.
11647         (main): Do not set program_name.
11648         * tests/test-closein.c: Likewise.
11649         * tests/test-xstrtol.c: Likewise.
11650         * tests/test-yesno.c: Likewise.
11652 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11654         Port modules to use getprogname explicitly, instead of requiring
11655         progname to be used (or program_name to be provided).
11656         * lib/argmatch.c: Do not include progname.h.
11657         [TEST] (program_name): Do not define.
11658         [TEST] (main): Call getprogname instead of using program_name.
11659         * lib/c-stack.c: Do not include progname.h.
11660         (program_name): Do not define.
11661         (die): Call getprogname instead of using program_name.
11662         * lib/chdir-long.c: Do not include progname.h.
11663         [TEST_CHDIR] (main): Do not set program_name.
11664         * lib/error.c [!_LIBC]: Include progname.h.
11665         [!_LIBC] (program_name): Define using getprogname.
11666         * lib/euidaccess.c: Do not include progname.h.
11667         [TEST] (main): Do not set program_name.
11668         * lib/git-merge-changelog.c: Include getprogname.h instead of
11669         progname.h.
11670         (usage): Call getprogname instead of using program_name.
11671         (main): Likewise.  Stop calling set_program_name.
11672         * lib/group-member.c: Do not include progname.h.
11673         [TEST] (main): Do not set program_name.
11674         * modules/argmatch (Depends-on): Add getprogname.
11675         * modules/c-stack (Depends-on): Likewise.
11676         * modules/error (Depends-on): Likewise.
11677         * modules/git-merge-changelog (Depends-on): Likewise.
11678         Also remove progname.
11680 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11682         * NEWS: Document the deprecation of the 'progname' module.
11684 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11686         getprogname: new module
11687         This provides a LGPL module for getting the name of the current
11688         program, using the same API found on *BSD systems.
11689         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11690         * modules/getprogname: New files.
11691         * MODULES.html.sh (Misc): Add getprogname.
11693 2016-09-02  Jim Meyering  <meyering@fb.com>
11695         manywarnings: add -fno-common
11696         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11697         to the list.  Quoting the manual, "Compiling with -fno-common is
11698         useful on targets for which it provides better performance, or if
11699         you wish to verify that the program will work on other systems that
11700         always treat uninitialized variable declarations this way [putting
11701         it in the data section]."  If diffutils had been using this sooner,
11702         it would have prevented this duplicate declaration issue:
11703         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11705 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11707         parse-datetime: Fix typo.
11708         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11710 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11712         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11713         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11714         GCC 5 and 6 that have __builtin_sub_overflow but not
11715         __builtin_sub_overflow_p.  With the recent changes, these
11716         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11717         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11718         since the former needs just one runtime comparison whereas the
11719         latter needs two.
11721         strverscmp: sync with glibc
11722         Although this doesn't exactly synchronize with glibc
11723         byte-for-byte, it makes the code behave the same as glibc.
11724         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11725         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11726         difference shouldn't matter in practical use.  All uses changed
11727         back to isdigit.
11728         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11729         (next_state): Now unsigned char array; redo elements.
11730         (result_type): Now signed char array; redo elements.
11731         (__strverscmp): Fix glibc bug 9913 by using new states.
11732         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11734 2016-08-29  Jim Meyering  <meyering@fb.com>
11736         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11737         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11738         similarly to how it was done to intprops.h.
11740 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11742         intprops.h: port recent changes to GCC 6.2.0
11743         * lib/intprops.h (__has_builtin): Move earlier.
11744         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11745         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11746         the last argument can be null.  All uses changed.
11747         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11748         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11749         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11750         and it's not clear which GCC versions it works for.
11751         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11752         its definiens.
11754         intprops.h: use __typeof__ with GCC 7
11755         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11756         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11757         This avoids computing the expression's value (which might overflow!).
11759 2016-08-29  Jim Meyering  <meyering@fb.com>
11761         intprops.h, xalloc-oversized.h: work with gcc 7
11762         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11763         __builtin_mul_overflow each accept a NULL pointer as the third
11764         argument.  However in gcc 7, that is no longer accepted.
11765         Instead, one must use the "_p"-suffixed names, with which, the
11766         third parameter is no longer a pointer.
11767         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11768         the definition: not true for gcc 7 and subsequent.
11769         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11770         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11771         Provide new definitions for gcc 7 and subsequent.
11772         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11773         that works with gcc-7.
11775         intprops.h: fix missing-backslash problems
11776         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11777         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11779 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11781         intprops: fix paren typo on old platforms
11782         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11783         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11784         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11785         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11786         && !defined LLONG_MAX]:
11787         Remove stray paren.
11789         intprops: port to OpenVMS
11790         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11791         * doc/posix-headers/limits.texi: Document the problem.
11792         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11793         Define if not already defined.
11795 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11797         parse-datetime: improve debug implementation
11798         Follow-up to commit 12ad79069 ("add optional debug printing").
11799         Improve parse-datetime's debug implementation: remove macros,
11800         replace global debug flag variable with a function parameter,
11801         use nstrftime for formatting.
11802         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11803         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11804         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11805         debug flag. Existing interface 'parse_datetime' left unmodified.
11806         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11807         (struct parser_control): add 'parse_datetime_debug' member variable.
11808         (parse_datetime): Call new function 'parse_datetime2' without debug.
11809         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11810         pc.parse_datetime_debug variable as needed.
11811         (to_year): Accept new flags parameter, instead of using global variable.
11812         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11813         use struct 'debug' variable instead of global variable.
11814         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11815         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11816         correspnding functions directly instead of using macros.
11817         * modules/parse-datetime: Add gnulib's strftime module.
11819 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11821         c-strcase-tests: port to EBCDIC
11822         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11823         which assume ASCII encoding semantics to run only in ASCII
11824         mode, as they fail in EBCDIC.
11826         sigpipe-tests: fix typo
11827         * tests/test-sigpipe.sh: C, not B.
11829 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11831         canonicalize-lgpl: fix errno after malloca fails
11832         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11833         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11834         * lib/canonicalize-lgpl.c (__realpath):
11835         Don't assume malloca sets errno on failure.
11837 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11839         strtod: port errno handling to z/OS
11840         * lib/strtod.c (strtod): Save and restore errno more reliably.
11842 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11844         strtod: port to z/OS
11845         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11846         implementation.
11848 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11850         strtod: port to z/OS
11851         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11852         implementation.
11854         regex, string: rename to avoid '__string'
11855         * lib/regex.h, lib/string.in.h: Do not use the identifier
11856         '__string', as it is effectively reserved by string.h on z/OS.
11858         c-strcase-tests, wcwidth-tests: depend on c-ctype
11859         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11860         Add c-ctype.
11862 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11864         thread: port to z/OS
11865         * lib/glthread/thread.c, lib/glthread/thread.h:
11866         Rudimentary gl_thread support for z/OS.
11868         maint: port tests to z/OS errno behavior
11869         * tests/test-nonblocking-reader.h:
11870         * tests/test-nonblocking-writer.h:
11871         Accommodate z/OS errno code preferences. (I believe this should
11872         still be within spec; IBM is good at following the letter if not
11873         the spirit of such things.)
11875         maint: preprocessor changes to support z/OS
11876         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11877         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11878         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11879         * tests/test-nonblocking-pipe.h:
11881         fclose, strstr-simple, wchar: port to z/OS
11882         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11883         Changes to the Autoconf M4 code to support z/OS.  Note that
11884         fclose() is broken in a different way on z/OS than it is on other
11885         systems, thus the special-case in fclose.m4.
11887         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11888         * tests/test-iconv-utf.c, tests/test-iconv.c:
11889         Added appropriately conditional #pragmas so that the test strings
11890         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11891         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11892         addressed in a more portable way by simply rewriting all the ASCII
11893         literal characters as octal escapes, but then you would lose the
11894         partial readability that the strings have now. Also, iconv_open()
11895         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
11897         c-strcase-tests, wcwidth-tests: port to EBCDIC
11898         * tests/test-c-strcasecmp.c: Include c-ctype.h.
11899         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
11900         * tests/test-wcwidth.c: Likewise.
11902 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11904         stdbool: don't require _Bool for C++
11905         Problem reported by David Seifert in:
11906         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
11907         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
11908         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
11909         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
11910         stricter about checking that bool and _Bool are compatible in C.
11912 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11914         getdelim: remove dependency on realloc-posix
11915         * lib/canonicalize-lgpl.c (alloc_failed)
11916         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
11917         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
11918         Use __set_errno where needed, for consistency.
11919         * lib/getdelim.c (alloc_failed): New function.
11920         (getdelim): Use it.
11922 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
11924         parse-datetime: add optional debug printing
11925         Print parsing information, warnings, and errors to stderr.
11926         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
11927         * lib/parse-datetime.y:
11928         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
11929         (PROGRESS*): Same as DEBUG, for progress reporting.
11930         (dbg_printf): Print message to stderr, with 'date' prefix.
11931         (struct parser_control): Add 'debug_*_seen' variables.
11932         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
11933         (debug_print_current_time, debug_print_relateive_time): Prints the
11934         current/relative date/time value of parser_control.
11935         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
11936         (to_year): Warn about 2-digit year parsing.
11937         (yylex):   Warn about unrecognized words.
11938         (get_effective_timezone): Returns current timezone in minutes.
11939         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
11940         clearly and unambigiously as possible.
11941         (debug_mktime_not_ok): Print detailed information about failed
11942         date/time values.
11943         (parse_datetime): Add DEBUG messages for failures, warnings. Add
11944         PROGRESS messages for status messages.
11945         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
11947 2016-08-06  Jim Meyering  <meyering@fb.com>
11949         tests/init.sh: exclude dash with bad "local" semantics
11950         * tests/init.sh (gl_shell_test_script_): Add a function to
11951         eliminate a shell like "dash" (unlike bash, zsh) that has
11952         surprising/risky "local var='...'" semantics.  Inspired by
11953         the problem and discussion in https://bugs.gnu.org/24116#11.
11955 2016-08-02  Ján Tomko  <jtomko@redhat.com>
11957         maint.mk: expand the prohibit_doubled_word regex
11958         This check has a static list of words that are checked for
11959         repetitions.  Expand it before running the perl script to
11960         avoid using expensive captures.  This decreases the cost
11961         for libvirt from 1.66s to 0.66s.
11962         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
11963         (sc_prohibit_doubled_word): Use it.
11965 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11967         useless-if-before-free: skip non-matching lines early
11968         * build-aux/useless-if-before-free: First match each line with the
11969         simple/quick /\bif\b/ and reject if there is no match. This often
11970         saves the cost of the much more involved regular expression.
11971         For libvirt, this decreases the cost from 1.44s to 1.02s.
11973 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11975         maint.mk: speed up sc_po_check
11976         sc_po_check would skip files based on their names, or on the
11977         existence of files with derived names. Rewrite it to use perl
11978         instead of shell to make the check faster.
11979         * top/maint.mk (perl_translatable_files_list_): Define.
11980         (sc_po_check): Use it.
11982 2016-07-30  Ján Tomko  <jtomko@redhat.com>
11984         maint.mk: speed up require_config_h_first
11985         Instead of spawning three processes per file,
11986         rewrite the check in perl and run it once for all the files.
11987         * top/maint.mk (perl_config_h_first_): Define.
11988         (sc_require_config_h_first): Use it in place of shell code.
11990 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11992         maint.mk: speed up sc_po_check
11993         sc_po_check would skip files based on their names, or on the
11994         existence of files with derived names. Rewrite it to use perl
11995         instead of shell to make the check faster.
11996         * top/maint.mk (perl_translatable_files_list_): Define.
11997         (sc_po_check): Use it.
11999 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12001         obstack: pacify GCC 6 with -Wnull-dereference
12002         Problem reported by Assaf Gordon in:
12003         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12004         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12005         Declare with __attribute_noreturn__.
12006         * lib/obstack.h (__attribute_noreturn__): New macro.
12008 2016-07-13  Eric Blake  <eblake@redhat.com>
12010         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12011         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12012         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12014 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12016         doc: mention glibc SSIZE_MAX buglet
12017         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12019 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12021         printf-posix: Fix mingw build
12022         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12023         expression for detecting C symbol prefixes but forgot to qoute square
12024         brackets in the command line arguments for grep.  That way when
12025         building with mingw the condition was false although it ought to be
12026         true instead.  In particular scenarios this led to the following
12027         compile error:
12029             Cannot export rpl_printf: symbol not found
12030             Cannot export rpl_scanf: symbol not found
12031             collect2: error: ld returned 1 exit status
12033         Fix this by properly quoting square brackets.
12035 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12037         mktime: call tzset as per POSIX
12038         Problem reported by Ludovic Courtès in:
12039         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12040         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12041         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12043 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12045         fts: handle readdir() errors
12046         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12047         but also upon error when it will also set errno.  Therefore
12048         flag the error case from readdir().  We treat the case where
12049         no items are read the same as if the dir can't be accessed,
12050         i.e. by setting fts_errno to FTS_DNR.
12052 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12054         intprops: port better to GCC 7
12055         GCC 7 __builtin_add_overflow supports a new usage form, where the
12056         last argument is a null pointer, and which merely returns 1 if an
12057         overflow would occur.  This is a constant expression if all
12058         arguments are constants, and should generate faster code when code
12059         needs to be generated.
12060         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12061         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12062         Use builtin operations if available.
12063         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12064         operations are available, as it's almost surely faster.
12066 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12068         intprops-test: port to GCC 6
12069         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12070         since the bug is not fixed in GCC 6.1.
12072 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12074         xalloc-oversized: port to GCC 7; fewer warnings
12075         GCC 7 will have a better way to deal with integer overflow.
12076         Plus, fix a warnings problem reported by Tim Ruehsen in:
12077         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12078         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12079         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12080         For GCC 5, use __xalloc_oversized if both args are constants,
12081         or if pedantic.
12083 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12085         regex: port to Sun C
12086         Reported by Daiki Ueno.
12087         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12088         __restrict, in prototype.  This fixes a problem I introduced in
12089         the 2016-02-19 merge from glibc.
12091 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12093         stdbool: Restore __bool_true_false_are_defined check
12094         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12095         __bool_true_false_are_defined is still defined, even with C++11.
12097 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12099         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12100         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12102 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12104         Use GCC_LINT, not lint
12105         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12106         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12107         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12108         Document problem with lint and _Noreturn.
12109         * lib/diffseq.h (IF_LINT, IF_LINT2):
12110         * lib/fts.c (sccsid):
12111         * lib/getndelim2.c (IF_LINT):
12112         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12113         (gl_linked_iterator_from_to):
12114         * lib/gl_anytree_list2.h (gl_tree_iterator)
12115         (gl_tree_iterator_from_to):
12116         * lib/gl_anytree_oset.h (gl_tree_iterator):
12117         * lib/gl_array_list.c (gl_array_iterator)
12118         (gl_array_iterator_from_to):
12119         * lib/gl_array_oset.c (gl_array_iterator):
12120         * lib/gl_carray_list.c (gl_carray_iterator)
12121         (gl_carray_iterator_from_to):
12122         * lib/idcache.c:
12123         * lib/inet_ntop.c (IF_LINT):
12124         * lib/regcomp.c (build_charclass_op, create_tree):
12125         * lib/regex_internal.c (re_acquire_state)
12126         (re_acquire_state_context):
12127         * lib/trigl.c (rcsid):
12128         * lib/trim.c (IF_LINT):
12129         * lib/vasnprintf.c (IF_LINT):
12130         * lib/verify.h (assume):
12131         Treat GCC_LINT like lint.
12133 2016-05-29  Bruno Haible  <bruno@clisp.org>
12135         secure_getenv: Port to many more platforms.
12136         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12137         functions.
12138         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12139         for non-BSD Unix platforms and for native Windows.
12140         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12141         Prompted by a request from Nikos Mavrogiannopoulos.
12143 2016-05-27  Eric Blake  <eblake@redhat.com>
12145         canonicalize: Fix broken probe for realpath.
12146         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12147         in logic introduced in 54615b95.
12149 2016-05-26  Eric Blake  <eblake@redhat.com>
12151         unsetenv: relax to LGPLv2+
12152         * modules/unsetenv (License): Match setenv license.
12154 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12156         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12157         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12158         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12159         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12160         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12161         (generate_html, generate_info, generate_tex, outdir)
12162         (source_extra, split, srcfile, texarg): Move above 'version'.
12163         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12165 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12167         manywarnings: update for GCC 6.1
12168         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12169         Add GCC 6.1 options that apply to C.
12170         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12171         do not apply to C, are obsolescent, etc.
12173 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12175         glob: size_t overflow checks
12176         * lib/glob.c (__has_builtin): New macro.
12177         (size_add_wrapv, glob_use_alloca): New static functions.
12178         (glob, glob_in_dir): Check for size_t overflow in several places,
12179         and fix some size_t checks that were not quite right.
12181         glob: don't assume INT_MAX < SIZE_MAX
12182         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12183         latter is not portable to (probably theoretical) hosts where
12184         SIZE_MAX <= INT_MAX.
12186 2016-05-09  Bruno Haible  <bruno@clisp.org>
12188         Fix undefined behaviour in gettext.h.
12189         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12190         pointer's value after the storage it points to has been freed.
12191         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12192         Spotted by Coverity.
12194 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12196         git-version-gen: avoid undefined shift
12197         Problem reported by Mosè Giordano in:
12198         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12199         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12200         with --prefix or --fallback but without a later argument.  While
12201         we're at it, omit unnecessary quotes.
12203 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12205         glob: merge glibc changes into lib/glob.c
12206         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12207         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12208         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12209           struct dirent [BZ #19779]
12210         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12211           callback gl_readdir
12212         2015-10-20 Convert miscellaneous function definitions to prototype style
12213         2015-10-20 Convert 113 more function definitions to prototype style
12214           (files with assertions)
12215         2015-06-12 Fix getlogin_r namespace (bug 18527).
12216         2014-02-10 Use glibc_likely instead __builtin_expect.
12217         2013-10-20 When glob pattern contains a trailing slash match only
12218           directories. Fixes bug 10278.
12219         2013-09-04 glob: silence -Wattribute warnings
12220         2013-06-07 Avoid use of "register" as optimization hint.
12221         2012-09-25 Use size_t instead of int for internal variables in glob
12222           (bug 14621)
12223         2011-07-20 Check for overflows in expressions
12224         2011-05-28 Remove unused variable
12225         2011-05-22 Add a few more alloca size checks
12226         2010-03-27 Whitespace fixes
12227         2010-03-27 Fix one more issue with the glob patch
12228         2010-03-24 Fix glob with empty pattern
12229         2008-05-27 Remove useless more "if" tests before "free"
12230         * modules/glob (Depends-on): Add stdint.
12232 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12234         mktime: port to stricter signed overflow checking
12235         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12236         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12237         instead of merely for INT_MAX * 2.  In practice platforms that
12238         do the latter also do the former.
12239         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12240         (shr): New static function, replacing SHR.  All uses changed.
12241         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12242         and TIME_T_MAX.  All uses changed.
12243         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12244         Use long_int, not time_t.
12245         (long_int_avg): New static function, replacing time_t_avg.
12246         All uses changed.  Round toward positive infinity, as that
12247         generates slightly better code.
12248         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12249         by INT_ADD_WRAPV.
12250         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12251         (convert_time): New static function.
12252         (ranged_convert): Use it
12253         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12254         Use simpler test for loop exit.
12255         (__mktime_internal): Store negative of guessed offset, to simplify
12256         overflow checking.  Remove no-longer-needed test for small time_t
12257         overflows.
12259         mktime: speed up DEBUG_MKTIME benchmarks
12260         Call tzset just once, at the start, rather than for every test
12261         case.  This lets us measure the CPU cost of mktime as opposed to
12262         that of tzset.  This is relevant when TZ is not set and glibc is
12263         being used.  This speeds up tests by a factor of 40 on my Fedora
12264         23 x86-64 platform.
12265         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12266         to call tzset and as a sanity check.  Later on, use localtime_r
12267         instead of localtime.
12269         mktime: resurrect DEBUG_MKTIME testing
12270         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12271         Include <string.h>, for strcmp.
12273         mktime: simplify DEBUG_MKTIME
12274         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12275         Simplify later usage accordingly.
12277         Port mktime_internal offset to unsigned time_t
12278         This avoids some assumptions about wraparound arithmetic on
12279         signed integer overflow.
12280         * lib/mktime-internal.h (mktime_offset_t): New type.
12281         (mktime_internal): Use it in decl.
12282         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12284         * lib/mktime.c (__mktime_internal, localtime_offset):
12285         * lib/timegm.c (timegm): Use it.
12286         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12287         (gl_FUNC_MKTIME): Require it.
12289 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12291         xstrtol: prohibit monstrosities like "1bB"
12292         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12293         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12294         "B" only if the first suffix needs a base.
12295         * tests/test-xstrtol.sh: Test this.
12297 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12299         xstrtod: reinstate setting of *result upon ERANGE
12300         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12301         the returned limits upon ERANGE, so allow and document that.
12303 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12305         xstrtod: modify *result only if no errors
12306         * lib/xstrtod.c (XSTRTOD).
12308 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12310         btowc: document problems in C locale
12311         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12312         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12314 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12316         mktime: improve integer overflow checking
12317         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12318         (WRAPV): Remove; no longer needed.
12319         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12320         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12321         Remove.  Use intprops.h defns instead.
12322         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12323         Use bool for Boolean, for clarity.
12324         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12325         detect integer overflow.
12326         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12328         intprops: check two's complement assumption
12329         Suggested by Eric Blake in:
12330         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12331         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12332         short, int, long, and (if available) long long are two's complement.
12333         * modules/intprops (Depends-on): Add 'verify'.
12335         intprops, mktime, strtol: assume two's complement
12336         These macros were not portable to every conforming C11 ones'
12337         complement platform.  It's not worth the hassle of porting to some
12338         platforms that use ones' complement or signed magnitude, as such
12339         platforms are almost purely theoretical nowadays and porting even
12340         to some of them makes the code harder to review for little
12341         practical benefit.  Problem reported by Florian Weimer in:
12342         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12343         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12344         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12345         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12346         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12347         (TYPE_SIGNED_MAGNITUDE):
12348         Remove.  All uses rewritten to assume two's complement, which is
12349         all we can reasonably test nowadays anyway.
12350         * top/maint.mk (_intprops_names): Remove the removed macros.
12352 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12354         stdint: port to strict C11 left shift
12355         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12356         Pacify clang -Wshift-negative-value, which should be an issue only
12357         on clang setups where stdint.h does not conform to C11 or to C++11.
12358         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12360 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12362         mbrtowc: work around glibc bug#19932
12363         Fix mbrtowc so that it never returns -1 in the C locale,
12364         as this conflicts with a future version of POSIX
12365         http://austingroupbugs.net/view.php?id=663#c2738
12366         and causes problems with GNU grep: http://bugs.gnu.org/23234
12367         See glibc bug 19932:
12368         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12369         * doc/posix-functions/mbrlen.texi (mbrlen):
12370         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12371         Document the glibc bug.
12372         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12373         Include hard-locale.h, locale.h.
12374         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12375         if the bug is possible.
12376         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12377         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12378         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12379         * modules/mbrtowc (Depends-on): Add hard-locale.
12380         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12381         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12382         * tests/test-mbrtowc5.sh: New file.
12384 2016-04-03  Pedro Alves  <palves@redhat.com>
12386         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12387         When gnulib is configured in C++ mode for a system with a working C99
12388         implementation of stdint.h that predates C++11, gnulib ends up
12389         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12390         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12391         MinGW is LLP64.  Instead of trying to detect the right types, detect
12392         good-enough-pre-C++11 stdint.h and in such case define
12393         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12394         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12395         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12396         conforms to C99.  If it does, check whether it hides symbols
12397         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12398         does, define those macros in config.h.
12400 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12402         argp: merge changes from glibc
12403         Among other things, this should fix problems found by a Coverity
12404         scan and reported by Andrei Borzenkov:
12405         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12406         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12407         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12408         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12409         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12410         * lib/argp.h:
12411         Merge changes from glibc.
12412         * tests/test-argp-2.sh: Adjust to match new behavior.
12414 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12416         stddef: support configuring with g++
12417         Problem reported by Ángel González in:
12418         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12419         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12420         Do not define if _GCC_MAX_ALIGN_T is defined.
12422 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12424         test-framework-sh: minor cleanups
12425         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12426         since strictly speaking POSIX requires this.
12427         (setup_): Do not use the variable 'fail', as that makes the
12428         trace output harder to read ('fail' is typically used by
12429         tests to mean the test failed).  Treat // portably.
12430         Check that new directory is not merely a sibling of the tmp dir.
12431         Avoid unnecessary invocation of tr.
12433         test-framework-sh: revert port to NetBSD 7.0
12434         It was a false alarm; I misinterpreted Assaf Gordon's report.
12435         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12436         Restore.
12437         (test_dir_): Adjust to mktempd_ change.
12438         (mktempd_): Restore 2nd arg.  Use -t again.
12439         (base_template_, template_, nx_): Resurrect old code.
12441         Port better to Alpine Linux
12442         Its diff implementation does not support -c, but does support -U3.
12443         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12444         * tests/init.sh (diff_opt_): New var.
12445         (compare_): Prefer diff -U3 to diff -c to plain diff.
12447 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12449         test-framework-sh: port to NetBSD 7.0
12450         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12451         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12452         Remove.  All uses removed.
12453         (test_dir_): Adjust to mktempd_ change.
12454         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12455         (base_template_, template_, nx_): Simplify by hardcoding.
12457 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12459         gitlog-to-changelog: suppress ignored chatter
12460         * build-aux/gitlog-to-changelog: Do not warn about skipping
12461         an SHA if it would have been ignored anyway.
12463 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12465         setlocale: add "sv" to Windows language table
12466         * lib/setlocale.c (language_table) [W32]: Add "sv".
12467         Reported in <https://savannah.gnu.org/bugs/?44588>.
12469 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12471         sys_select: port to new Cygwin
12472         Problem reported by Ken Brown in:
12473         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12474         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12475         diagnostics.
12477 2016-03-17  Jim Meyering  <meyering@fb.com>
12479         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12480         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12481         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12482           test-userspec.c:176:9: error: statement is indented as if it were \
12483             guarded by... [-Werror=misleading-indentation]
12484                    {
12485                    ^
12486           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12487                  if (!diag && !T[i].result)
12488                  ^~
12490 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12492         time_rz: port to clang -Wunused-const-variable
12493         * lib/time_rz.c (TZ): Remove.  All uses removed.
12495         std-gnu11: improve clang support
12496         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12497         2016-03-15 Also try clang
12498         2016-03-15 Port C11 and C++11 testing to clang
12500         select: port more to Intel 2016.1.150 compiler
12501         Problem reported by Balázs Hajgató in:
12502         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12503         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12505 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12507         select: try to port to 2016.1.150 compiler
12508         Problem reported by Balázs Hajgató in:
12509         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12510         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12511         POSIX specifies 'restrict'.
12513 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12515         localename-tests: memory allocation fixes
12516         * tests/test-localename.c (test_locale_name)
12517         (test_locale_name_thread): Don't call freelocale on a locale
12518         that was the base of a successful newlocale, as that
12519         results in a double free.  Problem reported by Assaf Gordon.
12520         (test_locale_name_thread): Free saved names after use, to pacify
12521         gcc -fsanitize=address.
12523 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12525         intprops: make .h file license match module
12526         * lib/intprops.h: Change the license wording to match glibc format.
12527         This is what is in modules/intprops anyway.  See:
12528         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12530 2016-03-08  Eric Blake  <eblake@redhat.com>
12532         acl: fix missing return on Cygwin
12533         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12534         fall off end of function. Fixes http://bugs.gnu.org/22949
12536 2016-03-05  Bruno Haible  <bruno@clisp.org>
12538         extern-inline: port to PGI CC
12539         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12540         keyword 'inline'.
12541         Reported by Adam James Stewart in:
12542         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12544 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12546         signbit: port back to pre-C++11 GCC
12547         * lib/math.in.h (signbit): Do previous change only if
12548         __cplusplus < 201103.  See Jonathan Wakely in:
12549         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12551 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12553         mountlist: recognize autofs-mounted remote file systems, too
12554         Originally reported at: https://bugzilla.redhat.com/1309247
12555         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12556         "-hosts" because it is used by autofs to mount remote file systems.
12558 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12560         signbit: port to C++ with GCC 6
12561         * lib/math.in.h (signbit) [__cplusplus]:
12562         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12563         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12565         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12567         regex: make it closer to libc
12568         Make Idx a signed type, rather than possibly unsigned.
12569         The unsignedness was not really buying us anything, since the code
12570         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12571         it signed allows us to use -1 and -2 with abandon, like libc does,
12572         thus lessening the number of differences between gnulib and libc.
12573         Also, it should help avoid gratuitous warnings like the one
12574         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12575         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12578         regex: merge patches from libc
12580         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12581         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12582         Convert miscellaneous function definitions to prototype style.
12583         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12584         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12585         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12586         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12587         (re_search_internal):
12588         Convert to prototype-style function definition.
12589         Use internal_function for internal functions.
12591 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12593         stdalign: port to older HP and IBM cc
12594         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12595         C compilers, by checking their version numbers.  These version
12596         numbers appear in MariaDB and in Qt code that dates way back and
12597         that conditiionally uses the 'aligned' attribute.
12599 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12601         stdalign: port to clang 3.7.0
12602         Problem reported by Herbert J. Skuhra in:
12603         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12604         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12605         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12606         https://llvm.org/bugs/show_bug.cgi?id=26547
12608 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12610         readdir_r: now obsolescent
12611         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12612         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12614 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12616         misc: port better to gcc -fsanitize=address
12617         Without these patches, ./configure CFLAGS='-fsanitize=address'
12618         would compute incorrect values.  This patch fixes some (but not all)
12619         test failures with recent glibc, with this configuration.
12620         * m4/acl.m4 (gl_ACL_GET_FILE):
12621         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12622         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12623         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12624         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12626         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12627         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12628         * m4/getline.m4 (gl_FUNC_GETLINE):
12629         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12630         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12631         * m4/regex.m4 (gl_REGEX):
12632         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12633         * tests/test-calloc-gnu.c (main):
12634         * tests/test-duplocale.c (main):
12635         * tests/test-getgroups.c (main):
12636         * tests/test-getline.c (main):
12637         * tests/test-inttostr.c (main):
12638         * tests/test-localename.c (test_locale_name)
12639         (test_locale_name_thread, test_locale_name_environ)
12640         (test_locale_name_default):
12641         * tests/test-regex.c (main):
12642         * tests/test-setlocale1.c (main):
12643         * tests/test-stat.h (test_stat_func):
12644         Free heap-allocated storage before exiting.
12645         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12646         Don't match *_foo symbols inserted by AddressSanitizer.
12647         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12649 2016-02-02  Jim Meyering  <meyering@fb.com>
12651         verify-tests: also remove stray test-verify.Tpo
12652         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12653         to remove the test-verify.Tpo file that is left behind by
12654         the automake-generated rule upon compilation failure.
12655         Otherwise, that .Tpo file would cause a failed "make distcheck"
12656         at least for grep.
12658 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12660         std-gnu11: new module
12661         This makes it easier for applications to prefer C11 and C++11
12662         to older variants, when compiling C and C++ code.
12663         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12664         a nontrivial chunk of GPLed Autoconf source code.
12665         * COPYING: Mention the m4/*.m4 copyright situation.
12666         * MODULES.html.sh (std-gnu11): New module.
12667         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12669 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12671         get-permissions, strftime: fix grammar in comments
12672         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12673         some grammar fixes Alan Mackenzie made to GNU Emacs.
12675 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12677         gettext: mark as obsolete
12678         Suggested by Paul Eggert in:
12679         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12680         * modules/gettext (Status): Mark as obsolete.
12681         (Notice): Suggest to use 'gettext-h' instead.
12682         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12683         the 'gettext' module.
12685 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12687         gnulib-tool: don't give up on ln -s so easily
12688         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12689         because an earlier one failed.  The targets could be on different
12690         file systems.  Problem reported by KO Myung-Hun in:
12691         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12693         closedir: fix OS/2-related typos
12694         Problem reported by KO Myung-Hun in:
12695         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12696         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12697         in the last couple of changes.
12699 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12701         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12702         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12703         copying a directory.
12705 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12707         regex: treat [x] as x if x is a unibyte encoding error
12708         Problem reported by Aharon Robbins in:
12709         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12710         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12711         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12713         closedir, dirfd, opendir: port to OpenSolaris 5.10
12714         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12715         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12716         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12717         Don't use ${word##pat} substitution, as it doesn't work in
12718         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12719         http://bugs.gnu.org/22443#11
12721 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12723         bootstrap: use American spelling
12724         * build-aux/bootstrap: Honor American spelling.
12726 2016-01-22  Karl Berry  <karl@freefriends.org>
12728         * doc/posix-functions/localtime.texi,
12729         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12731 2016-01-21  Bruno Haible  <bruno@clisp.org>
12733         hash-pjw-bare: fix comment
12734         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12736         wcwidth: Replace also on OpenBSD 5.8
12737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12738         * doc/posix-functions/wcwidth.texi: Update.
12740 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12742         gnu-web-doc-update: fix addition of new files
12743         If there were already added (emnpty) dirs,
12744         then cvs aborts the add with the message:
12745           cvs [add aborted]: there is a version in <./dirname> already
12746         * build-aux/gnu-web-doc-update: Add directories separately
12747         to the addition of files, to avoid the above issue
12748         impacting the addition of files.
12750 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12752         utimens-tests: avoid pulling gettext .m4 files
12753         Although this is not the right fix to the original problem:
12754         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12755         it makes it possible again for consumer projects to use arbitrary
12756         version of gettext, through the steps described at:
12757         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12758         See here for details:
12759         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12760         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12761         'gettext'.
12762         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12763         'gettext'.
12765 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12767         regex: pacify static checkers
12768         Problem and draft fix reported by Aharon Robbins in:
12769         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12770         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12771         Clear memory to pacify static checkers.
12773         regex: fix [ diagnostic
12774         Problem and fix reported by Aharon Robbins in:
12775         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12776         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12778         regex: fix memory leaks
12779         Problem and draft fix reported by Aharon Robbins in:
12780         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12781         * lib/regcomp.c (build_range_exp, build_charclass_op)
12782         * lib/regex_internal.c (re_dfa_add_node):
12783         Fix memory leak on failure.
12785 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12787         fts: don't unconditionally use leaf optimization for NFS
12788         NFS st_nlink are not accurate on all implementations,
12789         leading to aborts() if that assumption is made.
12790         See <https://bugzilla.redhat.com/1299169>
12791         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12792         the white list, and document the issue.
12794 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12795             KO Myung-Hun  <komh@chollian.net>
12797         gnulib-tool: don't assume ln -s works
12798         * gnulib-tool (func_ln_s): New function.
12799         (func_ln): Use it.
12801 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12803         utimes: detect utimes() correctly on OS/2 kLIBC
12804         utimes() of OS/2 kLIBC has some limitations.
12805         1. OS/2 itself supports a file date since 1980 year in local time.
12806         2. OS/2 itself supports only even seconds for a file time.
12807         3. utimes() of OS/2 kLIBC does not work on an opened file.
12808         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12809         * doc/posix-functions/utimes.texi: Document the above limitations of
12810         utimes() on OS/2 kLIBC.
12812 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12813             KO Myung-Hun  <komh@chollian.net>
12815         openat_proc_name: port to OS/2 kLIBC
12816         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12817         instead of /proc/self/fd.
12818         * lib/openat-proc.c (openat_proc_name):
12819         Don't assume file name length is less than INT_MAX.
12820         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12822 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12824         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12825         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12826         definitions of intptr_t and uintptr_t (which use int and unsigned)
12827         to avoid clashes with declarations of system functions like sbrk.
12828         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12829         _INTPTR_T_DECLARED before defining them.
12831         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12832         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12833         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12834         Declare on kLIBC.
12835         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12836         fd associated with dirp.
12837         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12838         dirp_fd_list.
12839         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12840         (dirfd): Implemented for kLIBC.
12841         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12842         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12843         succeeds.
12844         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12845         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12846         (REPLACE_DIRFD): Define to 1 if replaced.
12847         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12848         * modules/closedir (Depends-on): Add dirfd.
12849         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12850         condition.
12851         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12852         * modules/opendir (Depends-on): Add dirfd.
12854         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12855         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12856         * lib/dup.c (dup_nothrow): New.
12857         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12858         (klibc_dup2): New.
12859         * lib/fcntl.c (klibc_fcntl): New.
12860         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12861         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12862         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12863         fd.
12865         pipe_filter_ii_execute: port to OS/2 kLIBC
12866         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12867         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12868         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12869         Reuse Win32 code on OS/2 kLIBC.
12870         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12871         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12873         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12874         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12875         static inline function.  The implementation of wcwidth in wcwidth.c
12876         causes a "conflicting types" error.
12877         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12879         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12880         spawn() on OS/2 kLIBC is not silly like one on Windows
12881         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12882         empty string on OS/2 kLIBC.
12884         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12885         On OS/2 kLIBC, select() works only on sockets.
12886         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12888         binary-io: don't put fd in binary mode if it is a console on EMX
12889         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12890         a console on EMX.
12892 2016-01-15  Pádraig Brady  <P@draigBrady.com>
12894         doc: mention unfixed issues with unsupported localtime() values
12895         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
12896         returns nonsense for localtime(2^56).
12897         * doc/posix-functions/localtime_r.texi: Likewise.
12899 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12901         doc: mention setlocale() issues on OpenBSD
12902         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
12903         never fails, and the need to check categories individually.
12905 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12907         sig2str: list all signals on FreeBSD >= 7
12908         FreeBSD >= 7 is contravening POSIX by not defining NSIG
12909         to the maximal statically defined signal value.
12910         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
12911         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
12912         where available, even when NSIG is defined.
12914 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12916         acl-permissions: port to USE_ACL==0 platforms
12917         I ran into this problem when building bleeding-edge GNU Emacs
12918         with gcc -fsanitize=address on Fedora 23.  On this platform
12919         the ACL library does not pass the 'configure' test and Emacs
12920         then does not build due in part to what appear to be typos in the
12921         ACL part of Gnulib.
12922         * lib/acl-internal.c (free_permission_context):
12923         * lib/acl-internal.h (struct permission_context):
12924         Test whether USE_ACL is nonzero, not whether it is defined.
12926 2016-01-12  Martin Sebor  <msebor@redhat.com>
12928         mktime: rename macro to avoid glibc clash
12929         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
12930         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
12932 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12934         Port "$@" to OpenIndiana ksh93
12935         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
12936         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
12937         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
12938         bug long-dead shells, so remove the workaround.
12939         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
12940         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12941         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
12942         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
12943         Use "$@" instead of ${1+"$@"}.
12945         Port Universal Time settings to strict POSIX
12946         * build-aux/announce-gen, build-aux/bootstrap:
12947         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
12948         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12949         * build-aux/gnupload, build-aux/mkinstalldirs:
12950         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12951         * build-aux/update-copyright, build-aux/useless-if-before-free:
12952         * build-aux/vc-list-files, tests/test-strftime.c:
12953         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
12954         but POSIX says the behavior of TZ="UTC" is undefined.
12956 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12958         msvc-inval: fix problem with unset shell var
12959         Problem reported by Karl Berry in:
12960         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
12961         * modules/msvc-inval (Depends-on):
12962         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
12963         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
12965 2016-01-01  Pádraig Brady  <P@draigBrady.com>
12967         tests: for compare_(), use cmp -s where available
12968         * tests/init.sh (compare_): Only fall back to cmp without
12969         the POSIX defined -s option, where this is not available.
12971 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12973         version-etc: new year
12974         * build-aux/gendocs.sh (version):
12975         * doc/gendocs_template:
12976         * doc/gendocs_template_min:
12977         * doc/gnulib.texi:
12978         * lib/version-etc.c (COPYRIGHT_YEAR):
12979         Update copyright dates by hand in templates and the like.
12980         * all files: Run 'make update-copyright'.
12982 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
12984         human: fix output buffer overrun by 1
12985         * lib/human.c (human_readable): Fix off-by-one typo in buffer
12986         calculation that could lead to a one-byte buffer overrun.
12988 2015-12-28  Daiki Ueno  <ueno@gnu.org>
12990         maint: fix operator precedence in mbrtowc test
12991         This is a fix for test breakage introduced by commit 45228d96; the
12992         equality expression must be parenthesized when negated with '!',
12993         otherwise we always get:
12995           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
12997         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
12998         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13000 2015-12-23  James Youngman  <jay@gnu.org>
13002         regexprops-generic: update from regex.h
13003         * doc/regexprops-generic.texi: update by running the regexprops binary
13004         from findutils (the command line is 'regexprops "Regular Expressions"
13005         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13006         gnulib with GNU grep had made this document out-of-date.
13008 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13010         strftime-tests: avoid false failure on OS X
13011         * tests/test-strftime.c (struct localtime_rz_test): Add an
13012         ahistorical member which is used to warn rather than fail
13013         when tm_isdst isn't set for such entries.  This is the case for
13014         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13016 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13018         fts: ensure leaf optimization is used for NFS
13019         NFS provides usable dirent.d_type but not necessarily for all entries
13020         of large directories.  See <https://bugzilla.redhat.com/1252549>
13021         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13023 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13025         fts: enable leaf optimization for XFS
13026         XFS provides usable dirent.d_type only for DT_DIR,
13027         but the noleaf optimization still applies.
13028         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13030 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13032         intprops: comment fix
13033         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13034         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13036         intprops-test: work around GCC bug 68971
13037         Problem reported by Pádraig Brady in:
13038         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13039         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13040         (main): Add a case that better tests 64-bit long in this area.
13042 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13044         gnulib-tool: allow multiple --local-dir usage
13045         * gnulib-tool: Use --local-dir to construct compound
13046         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13047         PATH_SEPARATOR early.
13048         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13049         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13050         func_determine_path_separator because that needs to be detected
13051         earlier now.
13052         (func_determine_path_separator): New function.
13053         (func_path_foreach, func_path_foreach_inner): New functions.
13054         (func_path_prepend, func_path_append): Likewise.
13055         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13056         (func_lookup_file, func_all_modules): Use new functions to work
13057         with local_gnulib_path.
13058         (func_modules_in_dir, func_exists_module): New callbacks for
13059         func_path_foreach.
13060         (func_exists_module, func_get_tests_module): Likewise.
13061         (func_is_local_file, func_should_symlink): New helper methods.
13062         (func_add_file, func_update_file): Use new func_should_symlink
13063         instead, DRY.
13064         (func_reconstruct_cached_local_gnulib_path): New helper.
13065         (func_reconstruct_cached_dir): New callback.
13066         (func_import): The cached_local_gnulib_dir renamed to
13067         cached_local_gnulib_path similarly to local_gnulib_dir.
13068         Use new func_reconstruct_cached_local_gnulib_path.
13069         (func_count_relative_local_gnulib_path): New sub-method.
13070         (func_create_testdir): Use func_should_symlink, DRY.
13071         (func_create_megatestdir): Use new functions to work with
13072         local_gnulib_path correctly.
13073         (func_append_local_dir): New helper.
13075 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13077         fix freadptr to work with ungetc on all uClibc configs
13078         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13079         where GNU coreutils cut(1) generates invalid output on uClibc
13080         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13081         * lib/freadptr.c (freadptr): Return NULL if there are
13082         ungotten chars.  In this case freadseek() will iterate
13083         again to process the ungotten character.
13085 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13087         xalloc-oversized: improve performance with GCC 5
13088         * lib/xalloc-oversized.h (xalloc_oversized):
13089         Improve performance with GCC 5 by using __builtin_mul_overflow.
13091 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13093         intprops: new public macro EXPR_SIGNED
13094         Emacs can use this macro, so make it public.
13095         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13096         'Integer Type Determination', since some of these macros apply
13097         to non-integer types.  Clarify what kinds of constant expressions
13098         these macros return.  Say when the arguments can be non-integers.
13099         Mention newly published macro EXPR_SIGNED.
13100         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13101         make it public.  All uses changed.
13103         intprops: fix typo in clang port
13104         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13105         '__builtin_add_overflow' that is not caught by compiler.
13107 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13109         test-timespec: fix typo in previous change
13110         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13112         timespec-sub: fix overflow bug; add tests
13113         * lib/timespec-add.c (timespec_add):
13114         * lib/timespec-sub.c (timespec_sub):
13115         Work even if time_t is narrower than int (a theoretical
13116         possibility).  Redo code for a bit more clarity.
13117         * lib/timespec-sub.c (timespec_sub):
13118         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13119         * modules/timespec-tests, tests/test-timespec.c: New files.
13121         intprops-test: suppress -Woverlength-strings
13122         Problem reported by Pádraig Brady in:
13123         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13124         It is not worth the hassle to port this test to compilers that
13125         cannot handle long strings in diagnostics.
13126         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13128 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13130         quotearg: add quotearg_n_style_colon()
13131         This quotes with default options of the specified style,
13132         but with quoting enabled for instances of ':'.
13133         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13134         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13136 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13138         intprops: revise _WRAPV macros, revert _OVERFLOW
13139         The incompatible changes to the _OVERFLOW macros were too much of
13140         a hassle in practice, so revert them.  Instead, change the new
13141         _WRAPV macros to make them closer in behavior to GCC 5's new
13142         builtin_add_overflow etc. functions.  No other software was using
13143         these newly-added macros yet, so this should be OK.
13144         * NEWS: Revert previous change, since the incompatible change
13145         has been reverted, and nobody used the incompatible version.
13146         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13147         Document revised behavior.
13148         (Integer Range Overflow): Adjust example to match above revisions.
13149         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13150         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13151         these can be used in integer constant expressions again.
13152         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13153         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13154         needed.
13155         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13156         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13157         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13158         Remove, as they did not seem that useful.
13159         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13160         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13161         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13162         Support new semantics.
13163         (__has_builtin): New macro, if not alreay defined.
13164         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13165         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13166         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13167         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13168         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13169         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13170         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13171         New macros.
13172         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13174 2015-11-03  Jim Meyering  <meyering@fb.com>
13176         intprops: add parentheses for when OP has precedence lower than "-"
13177         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13178         "a OP b" must be parenthesized for when OP is like "<<", which has
13179         lower precedence than the following "-". Reported by Pádraig Brady.
13181 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13183         quotearg: constify get_quoting_style parameters
13184         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13185         * lib/quotearg.c (get_quoting_style): Likewise.
13187 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13189         quotearg: add support for $'' shell escaping
13190         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13191         items and descriptions.
13192         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13193         above types by quoting like "shell", but using $'...' syntax
13194         for non printable characters, which should provide unambiguous
13195         printable output for any input.
13196         * tests/test-quotearg-simple.c: Update accordingly.
13198 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13200         maint: use a more standard return from mbrtowc test
13201         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13202         from the test program as this is non standard and often
13203         indicates an unhandled case in the test program.
13204         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13206 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13208         intprops: add WRAPV and const flavors for GCC 5
13209         If available, use GCC 5's builtin functions for efficient integer
13210         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13211         and safely compute the low-order bits of the correct answer.
13212         A downside of these efficient functions is that they cannot be
13213         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13214         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13215         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13216         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13217         Document the changes.
13218         (Wraparound Arithmetic): New section.
13219         (Integer Range Overflow):
13220         Put this subsection last, since it's least useful.
13221         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13222         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13223         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13224         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13225         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13226         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13227         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13228         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13229         New macros.
13230         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13231         Generate calls to GCC builtins if available, for speed.
13232         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13233         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13234         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13235         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13236         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13237         (CHECK_QUOTIENT, CHECK_REMAINDER):
13238         Test WRAPV and CONST flavors (when available) too.
13240 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13242         doc: use extended timezone format in iso-8601 example
13243         * doc/parse-datetime.texi: The standard states that extended format
13244         is to be used consistently throughout.
13245         Note that lib/parse-datetime.y can handle either tz format.
13247 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13249         stdalign: port to Sun C 5.9
13250         * doc/posix-headers/stdalign.texi: Document this.
13251         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13252         __attribute__ ((__aligned__ (...))).
13254 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13256         time_rz: fix comment about tzalloc
13257         * lib/time_rz.c (tzalloc): Fix comment.
13259 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13261         stdalign: work around pre-4.9 GCC x86 bug
13262         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13263         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13264         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13266 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13268         maint.mk: sc_tight_scope: remove extraneous expressions
13269         * top/maint.mk (tight_scope): This is not really required since
13270         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13271         that matches all nm entries.  But it does remove extraneous entries
13272         that may be confusing or cause issue in future maintenance.
13274 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13276         time_rz: return NULL if localtime_r fails
13277         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13278         while still attempting to pacify bleeding-edge GCC.
13280         fts: port to C11 alignof
13281         * doc/posix-headers/stdalign.texi (stdalign.h):
13282         Document the C11 restriction.
13283         * lib/fts.c: Include stddef.h, for max_align_t.
13284         (fts_alloc): Align using max_align_t, not FTSENT.
13285         * modules/fts (Depends-on): Add stddef.
13287 2015-10-18  Jim Meyering  <meyering@fb.com>
13289         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13290         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13291         would see this:
13293         lib/time_rz.c: In function 'localtime_rz':
13294         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13295           [-Werror=nonnull]
13296                    if (tm && !save_abbr (tz, tm))
13297                        ^
13299         That was complaining about "tm" because it is a parameter that was
13300         declared with the __nonnull__ attribute.
13301         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13302         result of localtime_r.
13304 2015-10-17  Jim Meyering  <meyering@fb.com>
13306         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13307         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13308         name-extraction regexp mistakenly used \S+, and would mistakenly
13309         extract "*F" from "extern int *F()" rather than the desired "F".
13310         Use \w+ instead.
13312 2015-10-17  Jim Meyering  <meyering@fb.com>
13314         maint.mk: sc_tight_scope: factor and support OS X
13315         * top/maint.mk (_gl_tight_scope): Address three issues:
13316         - factor out four instances of code that wraps a string in "^...$"
13317         - allow nm-reported symbol names to have an optional leading "_"
13318         - add "main" to the list of ignored variable names, because on os x,
13319         "main" has nm-reported type "S" in the variable-checking section.
13321 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13323         safe-alloc-tests: fix typo in license header
13324         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13326 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13328         copy-file: fix mem leak in error case
13329         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13330         upon error opening or performing I/O to the src and dest files.
13332 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13334         localename: control langinfo.h inclusion
13335         This header is only used to work around buggy behavior in old
13336         versions of glibc, so do not include it all the time.  Otherwise
13337         we get build failures on systems that do not provide langinfo.h.
13338         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13339         in the source later on.
13340         The patch was originally submitted to gettext as:
13341         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13343 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13345         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13346         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13347         * lib/u64.c, lib/unistd.c:
13348         Append 'typedef int dummy;', to pacify compilers that are picky
13349         about empty translation units.
13351 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13353         accept4-tests: fix to avoid non portable flags
13354         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13355         as they are the only documented ones, and passing others may trigger
13356         EINVAL (seen on FreeBSD 10.1-RELEASE).
13357         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13358         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13360 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13362         gnulib-tool: fix tests of 'extensions' module
13363         This complements f8fe25fab60e3c687a124 commit.
13364         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13365         emitting of initial gl_EARLY macros.
13366         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13367         replaced with func_emit_pre_early_macros call.
13369 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13371         unicase/locale-language: fix typo in utf-8 cookie
13372         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13373         Problem reported by Zbigniew Jędrzejewski-Szmek.
13375 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13377         xalloc: do not worry about GCC 5 warning on 32 bit
13378         * lib/xalloc.h: Revert previous change.
13379         I found a better way to fix this in coreutils.
13381 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13383         xalloc: avoid GCC 5.1 warning on 32 bit
13384         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13385         xalloc_oversized(), which was seen to give this warning
13386         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13387         when simplifying conditional".
13389 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13391         uniname/uniname-tests: avoid compiler warnings
13392         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13393         unused local variables.
13394         (test_alias_lookup): Fix alias name display in failure cases.
13396 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13398         c-ctype: do not worry about EBCDIC + char signed
13399         Drop support for EBCDIC with char being signed, as this breaks too
13400         many programs.  Problem reported by Ben Pfaff in:
13401         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13402         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13403         char being signed.
13404         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13405         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13406         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13407         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13408         * tests/test-c-ctype.c (test_all):
13409         Simplify by assuming standard char values cannot be negative.
13410         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13412 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13414         c-ctype: port better to z/OS EBCDIC
13415         Problems reported by Daniel Richard G. in:
13416         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13417         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13418         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13419         (_C_CTYPE_OTHER_CNTRL): New macro.
13420         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13421         from SCHAR_MIN, as the functions are defined only from values
13422         promoted from char or from unsigned char, not necessarily from
13423         signed char.
13425 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13427         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13429         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13430         and ARFLAGS variables.  Doing this unconditionally could break
13431         later Automake's AM_PROG_AR invocation (at least it's
13432         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13434         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13435         Amsterdam Compiler Kit, so make the previous code to have effects
13436         only on ACK, and rather automatically call the Automake's
13437         AM_PROG_AR as soon as possible to decide other cases.
13439         References:
13440         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13442         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13443         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13444         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13445         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13446         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13447         'extensions' module is used.
13448         * modules/extensions (configure.ac-early): Remove as this snippet
13449         is added to gnulib-comp.m4 earlier anyway.
13451 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13453         sockets: MS Windows initalization fixes
13454         Problem reported by Test User in:
13455         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13456         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13457         Correct the endianness.
13458         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13459         number mismatch, not just on <.  Cleanup before any such failure.
13461 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13463         gc: fix detection of installed libgcrypt version
13464         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13465         at least as recent as 1.4.4.  The previously used macro is not
13466         available now, since modules were removed in version 1.6.0.
13468 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13470         c-ctype: rewrite to use inline functions
13471         This simplifies maintenance, since it makes for just one
13472         implementation of each function, letting the compiler have the fun
13473         of optimization.  In practice this works well nowadays with GCC.
13474         E.g., c_isascii might need only three instructions even though the
13475         source code lists every ASCII character individually in a large
13476         switch statement.
13477         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13478         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13479         * NEWS: Document the API change.
13480         * lib/c-ctype.c: Drastically simplify, since this now just expands
13481         inline functions.
13482         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13483         (C_CTYPE_INLINE): New macro.
13484         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13485         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13486         Verify that either ASCII or EBCDIC is being used.
13487         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13488         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13489         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13490         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13491         New private macros.
13492         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13493         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13494         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13495         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13496         (c_tolower, c_toupper): When converting, return the unsigned char,
13497         as that is what z/OS does.
13498         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13499         of some c-ctype.h macros.
13500         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13501         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13502         c_tolower promotion to be compatible with z/OS.
13504 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13506         gitlog-to-changelog: trim only trailing whitespaces
13507         This is fix for --format regression introduced by commit
13508         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13509         doubled %n string) had no effect anymore.  This format
13510         specification has been used e.g. by GNU paxuitils (commit
13511         edfd8bcc3).
13513         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13514         newlines in commmit messages.
13516 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13518         Test that c_iscntrl agrees with iscntrl, etc.
13519         Suggested by Daniel Richard G. in:
13520         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13521         * modules/c-ctype-tests (Depends-on): Add ctype.
13522         * tests/test-c-ctype.c: Include <ctype.h>.
13523         (NCHARS): New constant.
13524         (test_agree_with_C_locale): New function.
13525         (main): Use it.
13526         (test_all): Use named constants.
13528         c-ctype: improve c_isascii testing
13529         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13530         Add a test to count the number of ASCII characters.
13532 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13534         savewd: remove SAVEWD_CHDIR_READABLE
13535         It was problematic in the light of file systems that ignore umask.
13536         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13537         * NEWS: Document this.
13538         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13539         successful, -1 (setting errno) on failure, rather than something
13540         more complicated than that.
13541         * lib/mkdir-p.c (make_dir_parents):
13542         Do not use SAVEWD_CHDIR_READABLE.
13543         * lib/savewd.c (savewd_chdir):
13544         Remove support for SAVEWD_CHDIR_READABLE.
13545         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13547         c-ctype: port better to EBCDIC
13548         Problems reported by Daniel Richard G. in
13549         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13550         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13551         Include "verify.h".
13552         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13553         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13554         Define as enum constants with value false, if not defined, so that
13555         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13556         code more portable, as both branches of the 'if' are compiled on
13557         all platforms.
13558         (C_CTYPE_EBCDIC): New constant.
13559         Verify that the character set is either ASCII or EBCDIC.
13560         (to_char): New static function.
13561         (c_isascii, c_iscntrl):
13562         Assume standard control-character assignments for EBCDIC.
13563         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13564         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13565         Rewrite to use 'if' instead of 'ifdef'.
13566         Use to_char if non-ASCII.  Prefer <= to >=.
13567         Prefer true and false to 1 and 0, for booleans.
13568         (c_iscntrl): Use 'if', not 'ifdef'.
13569         * modules/c-ctype (Depends-on): Add verify.
13570         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13571         (to_char): New function.
13572         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13574 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13576         nanosleep: fix return code for interrupted replacement
13577         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13578         that we return -1 in the case the call is interrupted by a signal,
13579         rather than the current value of 1.
13580         Diagnosed and tested by Daniel Richard G.
13582 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13584         Diagnose ERE '()|\1'
13585         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13586         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13587         track of the set of previously-completed subexpressions available
13588         before the first alternative, and restore this set just before
13589         parsing each subsequent alternative.  This lets us diagnose the
13590         invalid back-reference in the ERE '()|\1'.
13592         regex: merge patches from libc
13594         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13595         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13596         * lib/regex_internal.h:
13597         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13599         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13600         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13601         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13602         wcscoll.
13603         * lib/regexec.c (check_node_accept_bytes): Likewise.
13605         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13606         Fix regex wcrtomb namespace (bug 18496).
13607         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13608         instead of wcrtomb.
13610         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13611         Fix regex wctype namespace (bug 18495).
13612         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13613         instead of towlower.
13614         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13615         instead of iswlower.  Call __towupper instead of towupper.
13616         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13617         instead of iswalnum.
13619         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13620         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13621         COLL_SYM in a couple of places to avoid uninitialized variable
13622         wanings on tilegx gcc 4.8.2.
13624         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13625         * lib/regex_internal.h: Remove NOT_IN_libc.
13627         2014-11-17  Andreas Schwab  <schwab@suse.de>
13628         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13630         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13631         Move findidx nested functions to top-level.
13632         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13633         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13634         Pass new arguments to findidx.
13635         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13636         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13637         Don't #include it inside the function.  Pass new arguments to findidx.
13638         * lib/regex_internal.h:
13639         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13640         (re_string_elem_size_at): Don't #include it inside the function.
13641         Pass new arguments to findidx.
13643         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13644         Check if DEBUG is defined in regex_internal.c
13645         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13647 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13649         ceill: detect buggy OpenBSD implementation
13650         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13651         which returns zero for small values.  Discussed here:
13652         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13654 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13656         mountlist: add me_mntroot field on Linux machines
13657         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13658         mount_entry so Linux machines based on /proc/self/mountinfo can
13659         distinguish between bind mounts and original mounts.  In reality bind
13660         mounts aren't treated differently than mountroot=/ mounts by the
13661         kernel, but the user often wants these bind mounts distinguished.
13662         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13663         More details at https://pad.lv/1432871
13665 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13667         doc: Describe to use multiple instances of gnulib
13668         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13669         instances of gnulib with different modules can be used, for example one
13670         for a lib and another one for associated tools.
13672 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13674         base32: mark function as __attribute__ const
13675         * lib/base32.h (isbase32): Mark __attribute__ const as
13676         suggested by GCC, and consistent with the base64 module.
13678 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13680         gnulib-tool: don't transform binary files with sed
13681         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13682         .mo and .class files.
13683         Reported by Denis Denisov.
13685 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13687         gperf: respect silent rules
13688         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13689         V_GPERF_0 for silent rules.
13690         * modules/iconv_open (Makefile.am): Use V_GPERF.
13691         * modules/unicase/locale-language (Makefile.am): Likewise.
13692         * modules/unicase/special-casing (Makefile.am): Likewise.
13693         * modules/unictype/category-byname (Makefile.am): Likewise.
13694         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13695         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13696         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13697         * modules/unictype/property-byname (Makefile.am): Likewise.
13698         * modules/unictype/scripts (Makefile.am): Likewise.
13699         * modules/uninorm/composition (Makefile.am): Likewise.
13701 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13703         Improve port of stdalign to C++11
13704         Problem reported by Sundaram in:
13705         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13706         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13707         (__alignas_is_defined): Define if C++11 or newer.
13709 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13711         pmccabe2html: fix gawk regex escaping
13712         * build-aux/pmccabe2html: Add one more backslash to properly
13713         escape the gsub replacement value.  Fixes this error:
13714         gawk: ./build-aux/pmccabe2html:425: \
13715         warning: escape sequence `\&' treated as plain `&'
13717 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13719         time_rz: port to pedantic memcpy
13720         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13721         that reject memcpy (..., NULL, 0).
13723 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13725         time_rz: port better to MinGW
13726         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13727         Instead, store the tzname copy in the struct tm_zone object.
13728         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13729         * lib/strftime.c [!_LIBC]:
13730         * lib/time_rz.c: Include time-internal.h.
13731         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13732         name from *TZ rather than from TZNAME, doable because *TZ now has
13733         a tzname_copy member.
13734         * lib/time-internal.h: New file, with contents taken from
13735         lib/time_rz.c.  It's separate because strftime.c now accesses
13736         struct tm_zone members.
13737         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13738         New member tzname_copy.
13739         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13740         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13741         Initialize tzname_copy member.
13742         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13743         in tzname_copy member.
13744         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13745         (restore_tzname): Remove; no longer needed.  All calls removed.
13746         * modules/time_rz (Files): Add lib/time-internal.h.
13748         time: port __need_time_t to MinGW
13749         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13750         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13752 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13754         strftime: fix newly-introduced bug on Solaris
13755         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13756         consistently at the start, rather than doing some of the setup at
13757         the start and some in the %Z format spec.  This is cleaner, and
13758         works better with time_rz on platforms like Solaris where struct
13759         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13760         mktime_z and localtime_rz can mess up the tzname cache.
13762         test-strftime: test for Solaris bug
13763         * modules/strftime-tests (Depends-on): Add strerror.
13764         * tests/test-strftime.c: Include <errno.h>.
13765         (posixtm_test): New function, containing the old 'main'.
13766         (struct tzalloc_test, struct localtime_rz_test): New types.
13767         (TZ, LT): New static vars.
13768         (tzalloc_test): New function.
13769         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13771         time_rz: port to Solaris etc.
13772         Works around a tzname problem on platforms like Solaris that have
13773         tzname but not tm_zone, by setting tzname at the appropriate time
13774         and restoring it later.
13775         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13776         New static vars.
13777         (save_abbr) [HAVE_TZNAME]: Set them.
13778         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13779         (restore_tzname): New function.
13780         (localtime_rz, mktime_z): Use it.
13782         time_rz: now LGPL
13783         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13785         time_rz: make a constant 'const'
13786         * lib/time_rz.c (local_tz): Now const.
13788         time_rz: fix off-by-one typo
13789         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13791 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13793         fprintftime, strftime: use timezone_t args
13794         * NEWS: Document the change.
13795         * lib/fprintftime.h (fprintftime):
13796         * lib/strftime.c (extra_args) [my_strftime]:
13797         * lib/strftime.h (nstrftime):
13798         Time zone arg is now of type timezone_t, not int.
13799         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13800         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13801         (my_strftime) [emacs && !my_strftime]:
13802         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13803         Remove; Emacs doesn't need this any more.
13804         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13805         fprintftime and nstrftime to call tzset.
13806         (ut) [!my_strftime]: Remove, replacing with ...
13807         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13808         (strftime_case_): Use localtime_rz and mktime_z instead
13809         of localtime_r and mktime.
13810         * modules/fprintftime (Depends-on): Add time_rz.
13811         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13812         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13814         time_rz: new module
13815         * MODULES.html.sh: Add time_rz.
13816         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13817         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13818         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13819         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13820         New var HAVE_TIMEZONE_T (default 0).
13821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13822         New var GNULIB_TIME_RZ (default 0).
13823         * modules/time (time.h): Substitute the new vars.
13825         flexmember: license is now unlimited
13826         * modules/flexmember (License): Change to unlimited,
13827         since its only source file gives an unlimited license.
13829 2015-07-15  Eric Blake  <eblake@redhat.com>
13831         maint: update copyright paper procedures
13832         * config/srclist.txt: Drop outdated files.
13833         * doc/Copyright/conditions.txt: Update to latest.
13834         * doc/Copyright/assign.changes.manual: Delete.
13835         * doc/Copyright/assign.future.manual: Likewise.
13836         * doc/Copyright/assign.manual: Likewise.
13837         * doc/Copyright/assign.translation.manual: Likewise.
13838         * doc/Copyright/disclaim.changes.manual: Likewise.
13839         * doc/Copyright/disclaim.manual: Likewise.
13840         * doc/Copyright/disclaim.program: Likewise.
13842 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13844         localename: fix link error on Illumos
13845         Illumos defines __sun, but does not have getlocalename_l nor the
13846         equivalent.  This partially reverts commit 387c214.
13847         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13848         available, as well as uselocale.
13849         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13850         use getlocalename_l if it is not available.
13852 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13854         unistr/uN-strtok-tests: avoid a trivial leak
13855         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13856         input and delim after the multibyte delimiter tests.
13858 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13860         file-has-acl, acl-permissions: fix HP-UX typos
13861         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13862         * lib/file-has-acl.c (file_has_acl):
13863         * lib/set-permissions.c (context_acl_from_mode)
13864         (context_aclv_from_mode, set_acls):
13865         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13866         They were introduced by the recent ACL changes.
13868         regex: match current GNU grep behavior
13869         These symbols have not matched GNU grep behavior for quite some time.
13870         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13871         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13872         Change to match current GNU behavior.
13873         Simplify by expressing it as differences from POSIX BREs and EREs.
13874         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13876 2015-07-03  Jim Meyering  <meyering@fb.com>
13878         set-permissions.c: adjust acl_from_mode's cpp guard
13879         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13880         directives identical to those guarding the sole use.
13881         Otherwise, on some systems, we'd get a warning about
13882         the function being defined but not used.
13883         Also, filter through cppi to correct misleading indentation
13884         of cpp directives.
13886 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13888         tests: restrict shells to those that support 'local'
13889         The local keyword is very widely supported and used
13890         in tests in coreutils and grep at least.  Therefore
13891         restrict to testing with shells that support it.
13892         This mainly excludes /bin/sh on Solaris.
13893         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
13895 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
13896         and Daiki Ueno  <ueno@gnu.org>
13898         unistr/uN-strtok: handle multibyte delimiters
13899         Previously, uN_strtok moved PTR to the next unit to the token end.
13900         When DELIM contained a multibyte character, the new position could
13901         be a middle of a multibyte character.
13902         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
13903         after the token.
13904         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
13905         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
13906         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
13907         * modules/unistr/u8-strtok (Depends-on): Depend on
13908         unistr/u8-strmblen.
13909         * modules/unistr/u16-strtok (Depends-on): Depend on
13910         unistr/u16-strmblen.
13911         * modules/unistr/u32-strtok (Depends-on): Depend on
13912         unistr/u32-strmblen.
13913         * tests/unistr/test-u-strtok.h: New file.
13914         * tests/unistr/test-u8-strtok.c: New file.
13915         * tests/unistr/test-u16-strtok.c: New file.
13916         * tests/unistr/test-u32-strtok.c: New file.
13917         * modules/unistr/u8-strtok-tests: New file.
13918         * modules/unistr/u32-strtok-tests: New file.
13919         * modules/unistr/u16-strtok-tests: New file.
13921 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
13923         update-copyright: fix test failure with perl >= 5.22 (trivial)
13924         * build-aux/update-copyright: Escape a literal left curly bracket,
13925         required with perl >= 5.22
13927 2015-07-02  Daiki Ueno  <ueno@gnu.org>
13929         u{16,32}-strstr-tests: relax timeout condition
13930         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
13931         tests can take longer than 5 seconds to complete.
13932         Reported by Dagobert Michelsen in:
13933         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
13934         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
13935         seconds to 10 seconds.
13936         * tests/unistr/test-u32-strstr.c (main): Likewise.
13938 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13940         gnulib-common.m4: change the ARFLAGS default to 'cr'
13941         In some GNU/Linux distributions people started to compile 'ar'
13942         binary with --enable-deterministic-archives (binutils project).
13943         That, however, in combination with previous autotools long time
13944         working default AR{_,}FLAGS=cru causes warnings on such
13945         installations:
13946         ar: `u' modifier ignored since `D' is the default (see `U')
13947         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
13948         set already.
13950 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13952         selinux-h: avoid double free after *getfilecon()
13953         Originally reported by Ben Shelton on bug-tar:
13954         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
13955         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
13956         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
13957         param should be freed by freecon(3) (regardless the return value).
13959 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
13961         fix pty related tests issues on Windows (trivial)
13962         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
13963         however it's still present in tests/ subdirectory of the final project.
13964         Therefore avoid it to pass `make check`.
13965         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
13966         will just return -ENOSYS, so avoid this non applicable test allowing
13967         the build to proceed.
13969 2015-07-01  Pádraig Brady  <P@draigBrady.com>
13971         acl: fix definition of acl_from_mode on FreeBSD
13972         This was causing basic coreutils copy operations to fail
13973         with ENOTSUP or ENOENT error messages.
13974         * lib/acl-internal.h (acl_from_mode): Only define when
13975         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
13976         of acl_from_mode() defined in lib/set-permissions.c to
13977         be used on FreeBSD at least.
13978         * lib/set-permissions.c: Fix up comment spelling,
13979         and a redundant variable assignment; noticed in passing.
13981 2015-06-30  Pádraig Brady  <P@draigBrady.com>
13983         readutmp: port to FreeBSD >= 9
13984         * lib/readutmp.h: Map utmpxname() to setutxdb().
13985         With that coreutils who(1) and pinky(1) tests pass.
13987 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13989         mgetgroups: port to strict OS X
13990         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
13991         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
13992         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
13993         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
13995 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
13997         mgetgroups: port to strict OS X
13998         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
13999         Document the getgrouplist problem.
14000         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14001         New macro.
14002         (mgetgroups): Use it.
14003         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14004         Check for OS X signature for getgrouplist.
14006 2015-06-29  Jim Meyering  <meyering@fb.com>
14008         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14009         It started like this when building coreutils' latest on OS X,
14010         invoking ./configure with a nonempty --cache=.cache:
14012           lib/linkat.c:46:42: error: operator '||' has no right operand
14013           lib/linkat.c: In function 'rpl_linkat':
14014           lib/linkat.c:330:27: error: #if with no expression
14016         Here's linkat.c's line 46:
14018           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14020         Here's some context:
14022           $ grep linkat_nofoll .cache
14023           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14024           $ grep LINKAT_SYM lib/config.h
14025           #define LINKAT_SYMLINK_NOTSUP
14027         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14028         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14029         but that violates a tenet of AC_CACHE_CHECK: it must
14030         have no side effect other than setting its cache variable.
14032         What happens is that when the cache is set, we'd skip the
14033         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14034         defined to whatever value it happened to have in configure's
14035         environment.  In my case, it was not defined, so this later code:
14037           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14038             [Define to 1 if linkat can create hardlinks to symlinks])
14040         would emit code with an empty RHS.
14042         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14043         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14045 2015-06-28  Jim Meyering  <meyering@fb.com>
14047         mountlist: avoid an unused-label warning on OS X
14048         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14049         Building on OS X, I saw a warning about the "free_then_fail" label
14050         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14052         error.c: correct printf-style format: %d -> %u
14053         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14054         rather than %d, to match the type of "line_number", unsigned int.
14056 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14058         fts: avoid reading beyond the heap allocation
14059         GCC 5.1.1 with -O2 and -fsanitize=address reports
14060         a read of size 4 from a heap object of size 3 is indeed invalid,
14061         though this may be due to incorrect padding assumptions by GCC, see:
14062         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14063         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14064         * modules/fts: Depend on stdalign.
14066 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14068         savedir: avoid undefined behavior in qsort call
14069         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14070         "runtime error: null pointer passed as argument 1,
14071          which is declared to never be null"
14072         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14074 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14076         userspec: avoid undefined behavior in gettext call
14077         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14078         "runtime error: null pointer passed as argument 2,
14079          which is declared to never be null"
14080         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14082 2015-06-20  Glenn Morris  <rgm@gnu.org>
14084         gitlog-to-changelog: improve gitmerge.el commits
14085         Let the Emacs ChangeLog generation process exclude "skipped"
14086         messages from merge commits (Bug#20717).
14087         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14089 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14091         wchar: fix MinGW compilation warnings
14092         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14093         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14094         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14096 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14098         uniname/uniname-tests: use pristine data files
14099         For copyright and maintenance reasons, use the data files from UCD
14100         without modification.
14101         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14102         (getfield): Remove.
14103         (aliases_count): New global variable.
14104         (fill_names): Skip comments and empty lines in the input.  Don't
14105         use getfield.
14106         (fill_aliases): Likewise.
14107         (main): Change the expected command line arguments to:
14108         NAMES... ["--" ALIASES...].
14109         * tests/uniname/test-uninames.sh: Adjust to the change in
14110         test-uninames.c.
14111         * tests/uniname/UnicodeDataNames.txt: Remove.
14112         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14113         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14114         file from Unicode 8.0.0.
14116 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14118         linked-list, linkedhash-list: avoid compiler warnings
14119         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14120         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14122 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14124         libunistring: bump minimum version to 0.9.6
14125         * all modules depending on updated Unicode data: Regenerate.
14126         The modules are listed by a script that does:
14127         - for each file listed by: git show --oneline --name-only 705f4efc
14128           - deduce the containing modules, based on "Files:"
14129         - deduce the modules which depend on the containing modules, based
14130           on "Depends-on:"
14132 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14134         uniname/uniname: update to Unicode 8.0.0
14135         * lib/uniname/uninames.h: Regenerate.
14136         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14137         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14139 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14141         libunistring: update to Unicode 8.0.0
14142         * lib/gen-uni-tables.c (SIZEOF): New macro.
14143         (output_numeric): Increase the maximum number of fractions from
14144         128 to 160.  Increase the level3 value width from 7 bits to 8
14145         bits.  Use SIZEOF instead of a hard-coded integer.
14146         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14147         0x28000.
14148         (fill_blocks): Increase the maximum number of blocks from 256 to
14149         384.  Use SIZEOF instead of a hard-coded integer.
14150         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14151         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14152         value width.
14153         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14154         a new case added to LBP22.
14155         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14156         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14157         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14158         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14159         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14160         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14161         lib/uniwidth/width.c.
14162         * all generated files under lib/uni* and tests/uni*: Regenerate.
14164 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14166         gnu-web-doc-update: add --mirror to remove stale files
14167         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14168         out of date files from the CVS server.  Since this is usually
14169         appropriate, a prompt is given when the option is not specified,
14170         along with the `cvs remove` command that would be run.
14172 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14174         acl-permissions: pacify -Wsuggest-attribute=const
14175         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14176         * lib/acl-internal.h (free_permission_context):
14177         Declare with attribute const if ! (defined USE_ACL &&
14178         (HAVE_ACL_GET_FILE || defined GETACL)).
14180         fsync: document AIX misbehavior
14181         * doc/posix-functions/fsync.texi (fsync):
14182         Document failure on AIX with read-only file descriptor.
14184 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14186         stdio: Don't redefine gets when using C++
14187         * lib/stdio.in.h (gets): Disable warning on C++.
14189 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14191         acl-permissions: port to AIX, C89 HP-UX
14192         Problems reported by Michael Felt.
14193         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14194         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14195         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14196         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14197         Add cast for AIX, whose system calls are declared to accept
14198         char * even though the arguments are really char const *.
14199         * lib/get-permissions.c (get_permissions):
14200         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14201         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14202         that broke a build.
14203         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14204         Rework types to pacify xlc.
14206 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14208         vasprintf-posix: avoid compiling vasnprintf where possible
14209         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14210         module where not required.  For example on a GNU/Linux system
14211         when gnulib-tool is run with the --conditional-dependencies option.
14213 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14215         file-has-acl: fix build on Mac OS X 10
14216         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14217         which has an incompatible 6 parameter getxattr() call.
14218         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14219         call on Mac OS X >= 10.4.
14220         * doc/glibc-functions/fgetxattr.texi: Likewise.
14221         * lib/file-has-acl.c: Revert to more complete combined check.
14222         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14223         Reported by Jack Howarth.
14225 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14227         prefix-gnulib-mk: remove no longer needed special case
14228         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14229         continued lib_SOURCES lines are no longer present,
14230         so special case handling of such entries is not required.
14232 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14234         acl: don't depend on the deprecated qacl module
14235         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14237 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14239         gnulib-tool: concatenate lib_SOURCES to a single line
14240         * gnulib-tool: Refactor the line merging sed logic,
14241         and use that to output a single lib_SOURCES line for each module.
14242         gnulib using projects often postprocess this output to prepend
14243         subdir paths to each item, and having a single line simplifies this
14244         processing allowing better decoupling from the gnulib-tool output.
14246 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14248         pthread_sigmask: discount system version if a simple macro (trivial)
14249         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14250         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14251         function to ensure it's available.
14253 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14255         readlinkat: avoid OS X 10.10 trailing slash bug
14256         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14257         has this bug.
14258         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14259         that OS X 10.10 has this function.
14260         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14261         as done for readlink().
14262         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14263         trailing slash bug, and assume readlinkat() has the same issue.
14264         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14265         rather than the correct $gl_cv_decl_readlinkat_works.
14267 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14269         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14270         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14271         module rewrite.
14273         acl-permissions: Fix build on Solaris and Cygwin
14274         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14275         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14276         ace_entries variables have moved into struct permission_context but
14277         they were still accessed as local variables here.
14279 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14281         linkat: avoid OS X 10.10 trailing slash with symlink bug
14282         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14283         causes the symlink to be dereferenced, and if it points
14284         to a non existent file, that file will be created as
14285         a hard link to "path1".
14286         This fixes a test failure in test-linkat.c.
14287         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14288         this case.  The existing workaround in linkat.c for
14289         trailing slash issues, suffices for this case.
14290         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14291         the list of platforms with trailing slash issues.
14293 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14295         unlinkat: handle ignoring of ".." on Darwin 14
14296         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14297         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14298         so handle in the same manner.
14299         * m4/unlinkat.m4: Comment on this Darwin issue.
14300         * doc/posix-functions/unlink.texi: Update the latest version
14301         where the issue was seen.
14302         * doc/posix-functions/unlinkat.texi: Mention this issue.
14303         Fixes a test failure in test-unlinkat.c.
14305 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14307         qacl: split into qcopy-acl and qset-acl
14308         Emacs needs the former, but not the latter.
14309         * modules/acl-permissions: New file, containing most of the old qacl.
14310         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14311         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14312         * modules/qcopy-acl, modules/qset-acl: New files.
14313         * MODULES.html.sh (File system functions):
14314         Mention the new modules, and mention qacl while we're at it.
14316 2015-05-27  Glenn Morris  <rgm@gnu.org>
14318         gitlog-to-changelog: new option --ignore-line
14319         (This patch is imported from the GNU Emacs master.)
14320         This option ignores individual commit lines matching a pattern.
14321         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14323 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14325         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14326         Implement get_permissions and set_permissions primitives for getting all
14327         the permissions of a file, storing them, and later setting them. (In the
14328         minimal case, the permissions consist only of a file mode.) Reimplement
14329         qset_acl and qcopy_acl based on these new primitives: this avoids code
14330         duplication and makes error handling more consistent.
14331         The Solaris and Cygwin code still uses duplicate code paths for setting
14332         a file mode while making sure that no acls exist and setting an explicit
14333         acl; this is no worse than before, but could be cleaned up.  The AIX
14334         code still doesn't read ACLs, it only makes sure that acls don't get in
14335         the way when setting a file mode.
14336         * lib/acl-internal.h (struct permission_context): New data structure.
14337         (get_permissions, set_permissions, free_permission_context): Declare.
14338         * lib/acl-internal.c (free_permission_context): New helper function.
14339         * lib/get-permissions.c (get_permissions): New helper function split off
14340         from qcopy_acl.
14341         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14342         AIX, set a file's permissions based only on a file mode.
14343         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14344         other platforms construct a temporary acl from the file mode and set
14345         that acl in the same way as setting an acl read from the source file.
14346         This should help avoid code duplication and inconsistent / buggy
14347         behavior.
14348         (set_acls): New helper function Split off from qcopy_acl.
14349         (chmod_or_fchmod): Moved here from qset-acl.c.
14350         (set_permissions): New helper function.
14351         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14352         set_permissions.
14353         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14354         * modules/qacl: Add get-permissions.c and set-permissions.c.
14356         file-has-acl: Split feature tests again (Bug#20667)
14357         * lib/file-has-acl.c: Instead of testing for
14358         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14359         define them when needed.
14360         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14361         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14363 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14365         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14366         This avoids a conflict with "FORTIFY_SOURCE" variants
14367         of the string functions when they're replaced on NetBSD-6.0.1
14368         and Darwin-14.3.0 at least.
14369         * lib/string.in.h: Avoid including our "lib/string.h" while
14370         including the system <string.h>.
14372 2015-05-26  Eric Blake  <eblake@redhat.com>
14374         stdio: limit __gnu_printf__ witness to gcc 4.4+
14375         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14376         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14378         error: use correct printf attributes on mingw
14379         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14381         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14382         * modules/inttypes (Depends-on): Require extensions, so that mingw
14383         always uses GNU style inttypes.
14384         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14386         stdio: fix probe on mingw under gcc 5.1
14387         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14388         around new gcc preprocessor rules.
14390 2015-05-07  Glenn Morris  <rgm@gnu.org>
14392         gitlog-to-changelog: parse "Tiny-change"
14393         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14394         "Copyright-paperwork-exempt".  (Bug#20324)
14396 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14398         doc: document glibc posix_fallocate() issues
14399         * doc/posix-functions/posix_fallocate.texi: Mention the
14400         glibc efficiency problems and issues with NFS.
14402 2015-05-05  Karl Berry  <karl@freefriends.org>
14404         * build-aux/gendocs.sh (usage): document new css default
14405         for HTML (--htmlarg).
14407 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14409         extern-inline: no need for workaround in GCC 5.1
14410         * doc/extern-inline.texi (extern inline):
14411         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14412         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14413         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14414         two we can remove these workarounds.
14416 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14418         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14419         Avoid [-Wunknown-attributes] warnings like:
14420         warning: unknown attribute '__alloc_size__' ignored
14421         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14422         with clang, as support has been fully removed as of clang 3.5:
14423         https://github.com/llvm-mirror/clang/commit/c047507a
14424         * lib/eealloc.h: Likewise.
14425         * lib/pagealign_alloc.h: Likewise.
14427 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14429         tests: pacify GCC 5.1's stricter printf checking
14430         * tests/test-dirname.c (main):
14431         * tests/test-getaddrinfo.c (simple):
14432         * tests/test-getlogin.c (main):
14433         * tests/test-getndelim2.c (main):
14434         * tests/test-inttostr.c (CK):
14435         * tests/test-md5.c (main):
14436         * tests/test-read-file.c (main):
14437         * tests/test-sha1.c (main):
14438         Fix mismatches between printf format and value signedness.
14439         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14440         Remove, as CAST_VAL always returned a value of type uintmax_t.
14442         fts: port to GCC 5.1 with --enable-gcc-warnings
14443         Without this fix, GCC 5.1 (correctly) warns about a subscript
14444         error on the fts_name component of FTSENT.  It's actually a
14445         flexible member, so define it that way on C99 or later hosts.
14446         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14447         structure that now has a flexible array member.
14448         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14449         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14450         * modules/fts (Depends-on): Add flexmember.
14452 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14454         file-has-acl: port to CentOS 6
14455         Problem reported by Tom G. Christensen in:
14456         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14457         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14458         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14459         HAVE_GETXATTR.
14460         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14461         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14462         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14463         file-has-acl.c actually needs.
14465 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14467         file-has-acl: always return false when ACLs aren't supported
14468         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14469         change the GNU/Linux getxattr path, to transform "not supported"
14470         errors to a false return rather than an error.  This is handled
14471         within file_has_acl() due to the platform specific tests to
14472         determine if ACLs are not supported.
14474 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14476         gettext: propagate po/Makefile.in.in too
14477         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14478         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14479         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14480         between Makefile.in.in and the gettext-runtime m4 files.
14482 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14484         file-has-acl: new module, split from acl
14485         And add a new module file-has-acl-tests to match.
14486         I ran into a problem with the recent changes to the acl module,
14487         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14488         When using the fixed version with Emacs, I discovered that
14489         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14490         had multiple libraries, but needed only one), so I fixed that too.
14491         * NEWS: Document this incompatible change.
14492         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14493         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14494         Initialize gl_need_lib_has_acl.
14495         (gl_FUNC_ACL): Require it.
14496         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14497         Move the file-has-acl.c-relevant stuff to ...
14498         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14499         use_xattrs = 0' typo, and omit some needless work.  Set
14500         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14501         when gl_FUNC_ACL is called.
14502         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14503         (Link): Remove $(LIB_HAS_ACL).
14504         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14505         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14506         modules/file-has-acl-tests.
14507         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14509         manywarnings: add GCC 5.1 warnings
14510         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14511         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14512         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14513         -Wsuggest-override, -Wuse-without-only.  Change
14514         -Wnormalized=... operands to match 5.1.
14515         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14516         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14517         -Wdiscarded-qualifiers, -Wformat-signedness,
14518         -Wincompatible-pointer-types, -Wint-conversion,
14519         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14520         -Wshift-count-negative, -Wshift-count-overflow,
14521         -Wsizeof-array-argument, -Wsuggest-final-methods,
14522         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14523         and add -Warray-bounds=2 as a special case.
14525 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14527         doc: update FDL template to match FDL examples.
14528         * doc/alloca-opt.texi:
14529         * doc/alloca.texi:
14530         * doc/c-ctype.texi:
14531         * doc/c-strcase.texi:
14532         * doc/c-strcaseeq.texi:
14533         * doc/c-strcasestr.texi:
14534         * doc/c-strstr.texi:
14535         * doc/c-strtod.texi:
14536         * doc/c-strtold.texi:
14537         * doc/ctime.texi:
14538         * doc/error.texi:
14539         * doc/gcd.texi:
14540         * doc/gnulib-tool.texi:
14541         * doc/inet_ntoa.texi:
14542         * doc/intprops.texi:
14543         * doc/lib-symbol-visibility.texi:
14544         * doc/maintain.texi:
14545         * doc/parse-datetime.texi:
14546         * doc/quote.texi:
14547         * doc/regexprops-generic.texi:
14548         * doc/standards.texi: Remove spurious 'with' in FDL license
14549         template.
14551 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14553         lstat: fix cross-compilation 'ln -s' problem
14554         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14555         Have the test program call 'symlink' rather than a separate
14556         script run 'ln -s'; this is more likely to work in
14557         cross-compilation environments.  Reported by Pavel Fedin in:
14558         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14560 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14562         gendocs.sh: default to a common CSS style sheet for HTML output
14563         * build-aux/gendocs.sh (htmlarg): Change default value.
14565 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14567         gnulib-tool: output bold attribute more portably
14568         * gnulib-tool (func_show_module_list): Change hexadecimal
14569         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14570         encoded numbers as arguments to `printf' is not portable,
14571         and is not claimed by POSIX.  This is the case with FreeBSD.
14573 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14575         qacl: Simplify HP-UX acl_nontrivial check
14576         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14577         acl_nontrivial. Check if the acl has at most three entries instead (it must
14578         have exactly three entries according to the HP-UX documentation). Ignore
14579         uids and gids as long as an entry is either for a user (i.e., the owner),
14580         a group (i.e., the owning group), or others.
14581         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14582         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14584 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14586         acl: On Linux, check for acls without libacl
14587         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14588         library function to check for the presence of acls, avoiding a library.
14589         * lib/file-has-acl.c: Include xattr headers if we have them.
14590         (file_has_acl): On Linux, use getxattr().
14591         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14592         file_has_acl(). Check for xattr headers and getxattr().
14594 2015-04-14  Ángel González  <keisial@gmail.com>
14596         tempname: avoid unused parameter warnings (trivial)
14597         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14598         (try_nocreate): Likewise.
14600 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14602         fseeko: fix build failure on NetBSD >= 6 (trivial)
14603         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14604         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14606 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14608         gitlog-to-changelog: port to MS-Windows
14609         * build-aux/gitlog-to-changelog (git_dir_option):
14610         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14611         MS-Windows Perl.  Reported by Eli Zaretskii in:
14612         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14614 2015-04-07  Karl Berry  <karl@gnu.org>
14616         gendocs: new option --tex for passing args to texi2dvi.
14617         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14618         (TEXI2DVI): cut to just command name.
14619         (usage): mention new option, and update copyright.
14620         <generate_tex>: use it.
14622 2015-04-07  Karl Berry  <karl@gnu.org>
14624         * config/srclistvars.sh (GETTEXT): new definition.
14625         * config/srclist.txt: use it for gettext .m4 files.
14626         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14627         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14628         and continuing into April.
14630 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14632         uniname/uniname-tests: fix failure due to alias
14633         Reported by Jack Howarth in:
14634         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14635         * tests/uniname/test-uninames.c (name_has_alias): New function.
14636         (test_inverse_lookup): Exclude character name with valid alias,
14637         from randomly generated character names.
14638         (main): Fill unicode_aliases before calling test functions.
14640 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14642         hash: remove deprecated hash_insert0 function
14643         * lib/hash.h (hash_insert0): Remove deprecated function.
14644         * lib/hash.c (hash_insert0): Likewise.
14646 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14648         mountlist: remove dependency on libmount
14649         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14650         directly, rather than depending on libmount, which has many
14651         dependencies due to its dependence on libselinux, as detailed at:
14652         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14653         Note we restrict this to __linux__ as that's probably where this
14654         interface will remain.  If ever porting, it would be best
14655         to first pull the makedev() wrapper from coreutils to a gnulib module.
14656         Note also we don't add a getline dependency to the mountlist module,
14657         as all Linux versions are sufficient.
14659 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14661         stddef: port to pre-C11 GCC on x86
14662         On this platform, max_align_t should have an alignment of 8 even
14663         though the storage alignments of double, long, etc. max out at 4.
14664         Inspired by a comment of Andreas Schwab's here:
14665         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14666         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14667         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14668         * tests/test-stddef.c: Test __alignof__ too, if available.
14670 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14672         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14673         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14675 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14677         yesno: make EOL optional in ENABLE_NLS case also (trival)
14678         * lib/yesno.c (yesno): Check for EOL before replacing.
14679         * tests/test-yesno.sh: Add a test case (test along with gettext).
14681 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14683         fdopendir-tests: test it does not close its arg
14684         * tests/test-fdopendir.c (main): Test that fdopendir does not
14685         close its argument.  From a suggestion by David Grayson in:
14686         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14688 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14690         gitlog-to-changelog: trim trailing white space
14691         * build-aux/gitlog-to-changelog (main):
14692         Trim trailing white space from commit message lines.
14693         This is helpful for processing the GNU Emacs repository,
14694         which dates back to 1985 and contains a lot of such lines.
14696         gitlog-to-changelog: new option --ignore-matching
14697         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14698         Support new option --ignore-matching=PAT, which ignores all
14699         commit messages whose first line matches PAT.
14701 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14703         fdopendir: port better to MinGW
14704         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14705         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14706         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14707         * modules/fdopendir (Depends-on): Add dirfd.
14709 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14711         fdopendir: fix typo in comment
14712         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14714 2015-03-09  Eric Blake  <eblake@redhat.com>
14716         error: document all entry points provided
14717         * doc/glibc-functions/error_print_progname.texi
14718         (error_print_progname): Mention the error module.
14719         * doc/glibc-functions/error_at_line.texi (error_at_line):
14720         Likewise.
14721         * doc/glibc-functions/error_message_count.texi
14722         (error_message_count): Likewise.
14723         * doc/glibc-functions/error_one_per_line.texi
14724         (error_one_per_line): Likewise.
14726 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14728         vasnprintf: pacify clang 3.5.0
14729         Problem reported by Werner Lemberg in:
14730         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14731         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14732         The casts aren't needed, since the characters in question are ASCII.
14734 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14736         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14737         * lib/dirent--.h (GNULIB_defined_opendir):
14738         * lib/dirent.in.h (GNULIB_defined_opendir)
14739         (GNULIB_defined_closedir):
14740         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14741         #undef only if Gnulib defined it.
14743         poll: port to MSVC v18 on MS-Windows 8.1
14744         Problem reported by Gisle Vanem in:
14745         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14746         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14747         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14748         Add sys_socket.
14750 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14752         tests: support stderr verification with returns_()
14753         * tests/init.sh (returns_): Disable tracing for this wrapper
14754         function, so that stderr of the wrapped command is unchanged,
14755         allowing for verification of the contents.
14757 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14759         passfd: avoid valgrind uninitalised data warning
14760         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14761         to include just the fd we've initialized, rather than including
14762         the extra space used for alignment.
14764 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14766         uniwbrk/u32-wordbreaks-tests: fix copyright
14767         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14769         dup2: doc and test for Android bug
14770         Reported by Kevin Cernekee in:
14771         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14772         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14773         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14775 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14777         Replace dup2() on Android
14778         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14779         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14780         fails.  Using rpl_dup2() fixes this because it has an explicit test
14781         for this condition.
14783 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14785         Android doesn't define RLIM_SAVED_*
14786         Portability problem reported by Kevin Cernekee in:
14787         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14788         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14789         Mention the portability problem.
14790         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14791         Define if not defined.
14792         * m4/dup2.m4 (gl_FUNC_DUP2):
14793         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14794         Likewise.
14796 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14798         vasnprintf-posix-tests: use consistent test
14799         * tests/test-vasnprintf-posix.c (test_function):
14800         Use "<" in assert instead of "<=", for consistency with other tests.
14802 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14804         printf, isinf, etc.: noncanonical != NaN
14805         Do not require that isinf, printf, etc. treat noncanonical
14806         values as NaNs.  Instead, require only that they do not crash.
14807         Problem reported by Joseph Myers in:
14808         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14809         * doc/posix-functions/dprintf.texi (dprintf):
14810         * doc/posix-functions/fprintf.texi (fprintf):
14811         * doc/posix-functions/isfinite.texi (isfinite):
14812         * doc/posix-functions/isinf.texi (isinf):
14813         * doc/posix-functions/isnan.texi (isnan):
14814         * doc/posix-functions/printf.texi (printf):
14815         * doc/posix-functions/snprintf.texi (snprintf):
14816         * doc/posix-functions/sprintf.texi (sprintf):
14817         * doc/posix-functions/vdprintf.texi (vdprintf):
14818         * doc/posix-functions/vfprintf.texi (vfprintf):
14819         * doc/posix-functions/vprintf.texi (vprintf):
14820         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14821         * doc/posix-functions/vsprintf.texi (vsprintf):
14822         Document this.
14823         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14824         * m4/isinf.m4 (gl_ISINFL_WORKS):
14825         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14827         * tests/test-isfinite.c (test_isfinitel):
14828         * tests/test-isinf.c (test_isinfl):
14829         * tests/test-isnan.c (test_long_double):
14830         * tests/test-isnanl.h (main):
14831         * tests/test-snprintf-posix.h (test_function):
14832         * tests/test-sprintf-posix.h (test_function):
14833         * tests/test-vasnprintf-posix.c (test_function):
14834         * tests/test-vasprintf-posix.c (test_function):
14835 o       Test only that noncanonical values do not cause crashes, not that
14836         they are treated as NaNs.  In some cases this means a larger
14837         output buffer is needed.
14839 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14841         fts: remove redundant close() (trivial)
14842         * lib/fts.c (fts_read): Remove redundant call to close().
14843         Spotted by coverity.
14845 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14847         getdtablesize: port better for Android
14848         Problem reported by Kevin Cernekee in:
14849         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14850         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14851         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14852         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14854         poll: fixes for large fds
14855         * lib/poll.c (poll): Don't check directly for NFD too large.
14856         Don't rely on undefined behavior in FD_SET when an arg exceeds
14857         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14858         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14859         as that makes the test a bit stricter.
14861 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14863         fcntl: Fix cross compiling
14864         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14865         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14867 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14869         dup2, fcntl: cross-compile better for Android
14870         Problem reported by Kevin Cernekee in:
14871         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14872         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14873         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14874         there's little need to cross-compile for older kernels nowadays.
14875         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14876         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14878 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14880         getopt: don't crash on memory exhaustion
14881         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14882         memory exhaustion.  In the _LIBC case we use alloca() as is
14883         already done in glibc, so we don't need to consider the separate
14884         error path in that awkward case.  Also fix a memory leak when
14885         ambiguous options are present.
14886         Reported by Tobias Stoeckmann
14888 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14890         tempname: allow compilation with C++ (trivial)
14891         * lib/tempname.h [C++]: Specify extern "C" linkage.
14892         * lib/tempname.h (try_tempname):
14893         * lib/tempname.c (__try_tempname, __gen_tempname):
14894         Rename 'try' to 'tryfunc'.
14896 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14898         dup2, fcntl: port to AIX
14899         * m4/dup2.m4 (gl_FUNC_DUP2):
14900         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14901         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
14902         The former works on AIX 7.1 but the latter does not.
14903         Also, this may work better with Android; see:
14904         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
14906 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14908         getdtablesize, dup2, fcntl: port to Android
14909         Problem reported by Kevin Cernekee in:
14910         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
14911         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
14912         Mention that getdtablesize doesn't work on Android.
14913         * lib/getdtablesize.c: Use getrlimit substitute only if
14914         getdtablesize is declared.  This should suffice for Cygwin
14915         while not breaking Android.
14916         * m4/dup2.m4 (gl_FUNC_DUP2):
14917         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14918         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
14919         standardized but the latter is not, and sysconf works on Android.
14920         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
14921         Also check that getdtablesize is declared.
14922         This removes the need for a special case for Android.
14924 2015-02-16  Kevin Cernekee  <cernekee@google.com>
14926         localename: Implement gl_locale_name_thread_unsafe for Android
14927         * lib/localename.c: Android API level >= 21 supports two hardcoded
14928         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
14929         the internal __locale_t struct.
14931 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
14933         fts: avoid crash when a cycle is added while traversing
14934         This could be triggered by auto-mounting a recursive bind mount.
14935         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
14936         * lib/fts.c (fts_read): Avoid removing the original hash table item
14937         when leaving a directory that caused a cycle, and preserve the FTS_DC
14938         flag.
14940 2015-02-16  Daiki Ueno  <ueno@gnu.org>
14942         uniname/uniname: support character alias
14943         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
14944         Generate one-way mapping from aliases to codepoints in the
14945         generated tables.  Special case variation selectors to reduce
14946         table size.
14947         * lib/uniname/uniname.c (unicode_character_name): Special case
14948         variation selectors.
14949         (unicode_name_character): Special case variation selectors and
14950         their aliases.
14951         * lib/uniname/uninames.h: Regenerate.
14952         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
14953         * modules/uniname/uniname-tests (Files): Add
14954         tests/uniname/NameAliases.txt.
14955         * tests/uniname/test-uninames.c: Mark as static.
14956         (ALIASLEN): Define.
14957         (struct unicode_alias): New struct.
14958         (unicode_aliases): New variable.
14959         (fill_aliases): New function.
14960         (test_alias_lookup): New test function.
14961         (main): Run the 'test_alias_lookup' test if the second argument is
14962         given.
14963         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
14964         second argument.
14966 2015-02-11  Kevin Cernekee  <cernekee@google.com>
14968         Fix FILE struct compatibility with Android API level >= 21
14969         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
14970         __sferror.  Recent versions of Bionic's stdio.h no longer define
14971         __sferror.
14972         * lib/fbufmode.c: Likewise.
14973         * lib/fflush.c: Likewise.
14974         * lib/fpurge.c: Likewise.
14975         * lib/freadable.c: Likewise.
14976         * lib/freadahead.c: Likewise.
14977         * lib/freading.c: Likewise.
14978         * lib/freadptr.c: Likewise.
14979         * lib/freadseek.c: Likewise.
14980         * lib/fseeko.c: Likewise.
14981         * lib/fseterr.c: Likewise.
14982         * lib/fwritable.c: Likewise.
14984         Assume unbroken ungetc() on Android
14985         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
14986         test case passed when running on an Android host, and the code
14987         hasn't really changed since 2009.
14989         getdtablesize: Fix Android build
14990         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
14991         versions have this symbol in the .so library (at least 32-bit
14992         platforms) but are missing the declaration in the header file,
14993         causing the m4 logic to guess incorrectly.
14995         localename: Fix Android build
14996         * modules/localename (Depends-on): Add langinfo.
14998         getugroups: Fix Android build
14999         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15000         functions.
15002         euidaccess: Fix Android build
15003         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15004         AT_EACCESS gets declared.
15006         linkat_nofollow: Add fallback case for cross compiling
15007         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15009         net_if: Handle content-free <net/if.h> system headers
15010         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15011         struct if_nameindex.  If not, enable the replacement header.
15013         signal_h: Fix Android build
15014         * lib/signal.in.h: Add Android to the list of platforms that declare
15015         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15017         duplocale: Fix Android build of duplocale-tests
15018         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15019         is included by test-duplocale.c (but not by duplocale.c).
15020         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15021         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15022         * doc/posix-headers/monetary.texi: Add Android to the list of
15023         platforms missing monetary.h.
15025 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15027         tests: avoid recent -Werror=unused-variable regression in test-locale
15028         * tests/test-locale.c (main): Reference the variable to avoid the
15029         "unused variable" warning.
15031 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15033         maint: various whitespace cleanups in tempname
15034         * lib/tempname.c: Normalize spacing and line length.
15035         * lib/tempname.h: Likewise.
15036         * modules/tempname: Likewise.
15038 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15040         tests: provide returns_() to simplify exit status checking
15041         * tests/init.sh (returns_): A new function for use in tests,
15042         to allow for easier checking of return values, where you expect
15043         a command to exit with failure status.  By checking for a particular
15044         exit code, you don't hide any crashes for example.
15046 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15048         mountlist: only use libmount when specified
15049         There are currently many shared libs dependencies introduced by
15050         libmount with associated runtime and virt mem overhead.
15051         Therefore don't enable by default.
15052         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15054 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15056         uniname/unimame-tests: don't link with -lunistring
15057         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15058         $(LIBUNISTRING).  Document the rationale why we need to
15059         conditionalize the test.
15061 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15063         fstrcmp: don't assume strlen < INT_MAX
15064         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15065         (uintptr_t): Remove, as we're now assuming stdint.
15066         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15067         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15068         if the input string is long.
15069         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15070         uintptr_t to size_t when the underlying value is a pointer casted
15071         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15072         * modules/fstrcmp (Depends-on): Add stdint.
15074         diffseq: prefer ptrdiff_t to ssize_t
15075         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15076         ptrdiff_t is the natural type for signed indexes.
15077         On a few older platforms, ssize_t is narrower than size_t.
15079         xalloc: fix typo that suppressed warnings
15080         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15081         This typo, introduced a couple of years ago, mistakenly suppressed
15082         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15083         -Wmissing-declarations warnings.
15085         full-read: fix license notice typo
15086         * lib/full-read.h: Remove a stray line in the license notice.
15087         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15089         crypto/gc: fix a -Wswitch warning
15090         Reported by Bruce Korb in:
15091         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15092         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15094 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15096         gnulib-tool: fix handling of patch(1) diagnostics
15097         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15098         as otherwise gnulib-tool will reparse that output and attempt
15099         to lookup modules.
15101 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15103         bootstrap: exit immediately upon gnulib-tool failure
15104         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15105         This was noticed when gnulib-tool exited early due to failure
15106         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15107         but various confusing errors were then given as the build proceeded.
15109 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15111         symlinkat: include all required header files
15112         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15113         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15114         Reported at https://savannah.gnu.org/bugs/index.php?44151
15115         and by Jack Howarth.
15117 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15119         localename: support Solaris 12 and illumos
15120         * lib/localename.c (gl_locale_name_thread_unsafe): call
15121         getlocalename_l() on newer __sun platforms.
15122         Reported by Alexander Pyhalov.
15123         Fix suggested by Rich Burridge.
15125 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15127         locale: fix tests on illumos (trivial)
15128         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15129         so move from global scope to main().
15131 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15133         unictype: avoid undefined left-shift behavior
15134         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15135         gcc's -fsanitize=shift and running its tests triggered:
15136           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15137             places cannot be represented in type 'int'
15138         Cast LHS to 'unsigned int' after integer promotion.
15139         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15140         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15142 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15144         libunistring: bump version of unitypes dependants
15145         Due to the header file search order, all the headers which depend
15146         on unitypes.h need to be generated, when the preinstalled
15147         libunistring is older.
15148         * modules/unicase/base (configure.ac): Bump minimum version to
15149         0.9.4.
15150         * modules/uniconv/base (configure.ac): Likewise.
15151         * modules/unilbrk/base (configure.ac): Likewise.
15152         * modules/uninorm/base (configure.ac): Likewise.
15153         * modules/unistdio/base (configure.ac): Likewise.
15154         * modules/unistr/base (configure.ac): Likewise.
15155         * modules/uniwbrk/base (configure.ac): Likewise.
15156         * modules/uniwidth/base (configure.ac): Likewise.
15158 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15160         unictype/category-none: fix link with libunistring
15161         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15162         prefixed with "libstring_" when compiled as part of libunistring.
15163         To avoid undefined symbol at link time, increase the minimum
15164         version when the dependant modules are updated.
15165         * modules/unictype/category-none (configure.ac): Bump minimum
15166         version to 0.9.5.
15168 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15170         unitypes: fix build with installed libunistring
15171         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15172         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15173         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15175 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15177         time: port to MinGW32 3.21
15178         Problem reported by Eli Zaretskii in:
15179         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15180         * lib/time.in.h:
15181         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15182         * modules/time (Depends-on):
15183         Fall back on unistd.h if the other include files don't define
15184         struct timespec.
15186         update-copyright: apply to self
15187         * build-aux/update-copyright: Fix copyright date.  How ironic!
15189 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15191         libunistring: update to Unicode 7.0.0
15192         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15193         Manichaean names.
15194         * lib/unictype/joininggroup_name.h: Likewise.
15195         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15196         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15197         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15198         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15199         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15200         enum values.
15201         (is_property_alphabetic): Accept newly added characters to
15202         cuneiform numeric signs.
15203         (is_property_default_ignorable_code_point): Reject U+0605.
15204         (FIELDLEN): Increase from 120 to 160.
15205         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15206         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15207         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15208         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15209         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15210         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15211         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15212         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15213         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15214         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15215         U+1E8D0..U+1E8D6.
15216         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15217         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15218         lib/uniwidth/width.c.
15219         * all generated files under lib/uni* and tests/uni*: Regenerate.
15221 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15223         libunistring: update to Unicode 6.3.0
15224         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15225         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15226         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15227         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15228         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15229         Update WB5, WB9, WB10, WB13a, and WB13b.
15230         * tests/uniwbrk/test-uc-wordbreaks.c
15231         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15232         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15233         (UC_BIDI_PDI): New enumeration values.
15234         (bidi_category_byname): Support those enum values.
15235         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15236         dedicated property assigned.
15237         (is_property_case_ignorable): Check 0x0027.
15238         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15239         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15240         (output_wbp): Support those enum values.
15241         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15242         (UC_BIDI_PDI): New enumeration values.
15243         * lib/unictype/bidi_byname.gperf: Add those property names.
15244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15245         U+180E, U+1A1B, and U+2066..U+2069.
15246         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15247         lib/uniwidth/width.c.
15248         * all generated files under lib/uni* and tests/uni*: Regenerate.
15250 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15252         libunistring: update to Unicode 6.2.0
15253         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15254         (unilbrk_table): Adjust table size.
15255         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15256         for LBP_RI.
15257         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15258         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15259         Normalize table index skipping ignored properties.
15260         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15261         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15262         the table.
15263         * lib/uniwbrk/wbrktable.h: Adjust table size.
15264         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15265         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15266         Support rule GB8a.
15267         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15268         * tests/unigbrk/test-uc-is-grapheme-break.c
15269         (graphemebreakproperty_to_string): Support GBP_RI.
15270         * tests/uniwbrk/test-uc-wordbreaks.c
15271         (wordbreakproperty_to_string): Support WBP_RI.
15272         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15273         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15274         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15275         LBP_AL to LBP_ID.
15276         (output_lbp): Support LBP_RI.
15277         (WBP_RI): New enumeration value.
15278         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15279         (output_wbp): Support WBP_RI.
15280         (GBP_RI): New enumeration value.
15281         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15282         * all generated files under lib/uni* and tests/uni*: Regenerate.
15284 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15286         libunistring: update to Unicode 6.1.0
15287         * lib/gen-uni-tables.c (output_joining_group): Switch to
15288         3-level table to accommodate joining groups defined with higher
15289         codepoint value.  Since there are only 88 groups defined in
15290         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15291         (get_lbp): Update for Unicode 6.1.0.
15292         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15293         3-level table.
15294         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15295         joining group name.
15296         * lib/unictype/joininggroup_name.h: Likewise.
15297         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15298         (unilbrk_table): Adjust table size.
15299         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15300         for LBP_HL.
15301         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15302         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15303         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15304         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15305         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15306         U+302E..U+302F.
15307         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15308         lib/uniwidth/width.c.
15309         * all generated files under lib/uni* and tests/uni*: Regenerate.
15310         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15312 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15314         uniwbrk/u32-wordbreaks-tests: add conformance test
15315         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15316         tests/uniwbrk/test-uc-wordbreaks.c,
15317         tests/uniwbrk/test-uc-wordbreaks.sh, and
15318         tests/uniwbrk/WordBreakTest.txt.
15319         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15320         test-uc-wordbreaks to $(check_PROGRAMS), and define
15321         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15322         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15323         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15325 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15327         uniwbrk: ignore Extended/Format characters at BOL not BOS
15328         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15329         characters if the previous character property is one of
15330         WBP_NEWLINE, WBP_CR, and WBP_LF.
15332 2015-01-11  Jim Meyering  <meyering@fb.com>
15334         test-strstr.c: avoid a trivial leak
15335         * tests/test-strstr.c (main): Free haystack.
15337         update-copyright: recognize groff's \(co marker
15338         * build-aux/update-copyright (circle_c_re): Also accept
15339         uses of \(co, as found in gzip.1.
15341 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15343         maint.mk: fix compatibility with OS X nm
15344         * top/maint.mk (_gl_tight_scope): Use the -g option to
15345         show exported items rather than the -e option which is
15346         ignored on all platforms except OS X where it gives an error.
15347         Reported by Assaf Gordon.
15349 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15351         localcharset: improve charset detection on OS/2
15352         Use system codepage when appropriate.  Map OS/2 codepages to
15353         GNU canonical charset names if possible.
15354         * lib/config.charset: Don't output aliases if "$os" is os2*.
15355         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15356         result for OS/2.
15357         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15358         from the locale name which is neither "C" nor "POSIX".
15360 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15362         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15363         This reverts the last patch but one, as it shouldn't be needed now
15364         that the typo is fixed.
15365         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15366         * lib/count-trailing-zeros.h:
15367         * lib/count-one-bits.h:
15368         Go back to using 64-bit intrinsics.
15370         count-leading-zeros: fix pragma typos
15371         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15372         Fix typos in declaration of intrinsics when _MSC_VER.
15374 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15376         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15377         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15378         intrinsics in this case.
15379         * lib/count-trailing-zeros.h: Likewise.
15380         * lib/count-one-bits.h: Likewise.
15382 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15384         uniname/uniname: update to Unicode 7.0.0
15385         To accommodate new characters added since Unicode 5.1.0, this
15386         changes the internal representation of codepoint ranges.
15387         Previously, we grouped codepoint ranges by manually assigned 4-bit
15388         tag, which only allowed 16 groups.  This removes the limitation by
15389         switching to binary search on a table.  For the detail rationale
15390         and the benchmark results, see:
15391         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15392         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15393         to INDEX, as it no longer represents a codepoint.
15394         (range): New struct.
15395         (main): Switch to intervals list from a bit-pattern based
15396         classification.
15397         * lib/uniname/uninames.h: Regenerate.
15398         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15399         * modules/uniname/base (configure.ac): Bump minimum version to
15400         0.9.5.
15401         * modules/uniname/uniname (configure.ac): Bump minimum version to
15402         0.9.5.
15404 2015-01-05  Eric Blake  <eblake@redhat.com>
15406         doc: update INSTALL from autoconf
15407         * doc/install.texi: Resync from autoconf.
15408         * doc/INSTALL: Reflect recent autoconf update.
15409         * doc/INSTALL.ISO: Likewise.
15410         * doc/INSTALL.UTF-8: Likewise.
15412         stdio: fix use of PRIdMAX on modern mingw
15413         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15414         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15415         to work with modern mingw.
15417 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15419         pthread: detect git mingw builds with only partial pollution
15420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15421         pollution, as seen temporarily in Fedora 21.
15423 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15425         lib-symbol-versions: cache script check
15426         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15427         Cache the check for linker version scripts.
15428         From a suggestion by Christophe Curis in:
15429         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15431 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15433         maint: fix grammar nits in propername (trivial change)
15434         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15435         and use an adequate verb and tense.
15437 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15439         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15440         * module/gendocs: Add 'doc/gendocs_template_min'.
15442         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15443         from to Gnulib's.
15444         (scripturl, templateurl): Adjust accordingly.
15446 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15448         gendocs: copyright date and version fix
15449         Reported by Karl Berry in:
15450         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15451         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15452         Fix copyright date.
15453         * build-aux/gendocs.sh (scriptversion): Update.
15455 2015-01-01  Karl Berry  <karl@gnu.org>
15457         * doc/install.texi,
15458         * build-aux/mdate-sh,
15459         * build-aux/depcomp,
15460         * build-aux/config.guess,
15461         * build-aux/config.sub,
15462         * build-aux/ar-lib,
15463         * build-aux/compile: revert copyright updates (some from last
15464         year) in slaved files.
15466 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15468         version-etc: new year
15469         * doc/gnulib.texi:
15470         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15471         * all files: Run 'make update-copyright'.
15473 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15475         xstrtol: ensure errno is reset
15476         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15477         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15479         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15481 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15483         utimens: fix dependency typo
15484         * modules/utimens (Depends-on): Remove 'assure'.
15485         This bug was introduced in the recent 'assure' patch.
15487 2014-12-22  Eric Blake  <eblake@redhat.com>
15489         docs: mention why libgen.h is bad
15490         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15492 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15494         assure: new module
15495         This works better than 'assert' when compiling with -DNDEBUG,
15496         as it avoids some compiler diagnostics in that case.
15497         Reported by Norihiro Tanaka in:
15498         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15499         * MODULES.html.sh (func_all_modules): Add 'assure'.
15500         * lib/assure.h, modules/assure: New files.
15501         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15502         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15503         Prefer 'assure' to 'assert'.
15504         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15505         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15506         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15507         Depend on 'assure'.
15509 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15511         stdalign: port better to HP compilers
15512         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15513         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15515         stdalign: work around Apple GCC 4.0 bug
15516         Reported by David Fang in:
15517         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15518         * lib/stdalign.in.h (_Alignas):
15519         * m4/stdalign.m4 (gl_STDALIGN_H):
15520         Do not use aligned attribute with GCC 4.0 on Apple.
15522 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15524         getcwd: fix test failure on OS X 10.9
15525         * m4/getcwd-path-max.m4: Avoid the replacement if it
15526         won't be effective due to the PATH_MAX limitation of lstat().
15527         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15529         for this case for use in tests, and also exclude this
15530         case when setting REPLACE_GETCWD.
15531         * tests/test-getcwd.c (test_long_name): Restrict the
15532         tested path length so that lstat() will not be passed
15533         a path greater than PATH_MAX.
15534         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15535         than AT_FDCWD, since the latter is set unconditionally
15536         since Sep 2009 in commit 52c658e9.
15538 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15540         parse-datetime: avoid a compiler warning with byacc (trivial)
15541         * lib/parse-datetime.y (yylex): Use the same prototype in the
15542         function definition as the declaration, to avoid a -Wstrict-prototypes
15543         warning seen when using byacc.
15545 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15547         unicase/locale-language-tests: fix LOCALE_FR test
15548         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15549         a French locale with traditional encoding.
15550         Reported by umerqayam in:
15551         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15553 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15555         stddef: support C11's max_align_t
15556         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15557         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15558         Do not undef, as that might cause max_align_t to be defined twice.
15559         Instead, change use to check for _GL_STDDEF_WINT_T too.
15560         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15561         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15562         Check for max_align_t.
15563         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15564         * modules/stddef-tests (Depends-on): Add stdalign.
15565         * tests/test-stddef.c: Test max_align_t.
15567 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15569         unistd: fix iOS check conditional
15570         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15571         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15572         yielded true on non-iOS environment.
15573         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15574         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15575         they are defined.
15577 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15579         posixtm: avoid compiler warning in a better way
15580         * lib/posixtm.c (IF_LINT): Remove.
15581         (year, posix_time_parse):
15582         Return true (not 0) if successful.  All callers changed.
15583         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15585 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15587         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15588         started with '/' on EMX.
15590 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15592         freopen: workaround freopen() on OS/2 kLIBC
15593         * lib/freopen.c (rpl_freopen): Workaround.
15594         * m4/freopen.m4: Add os2* case.
15596         get_shared_library_fullname: port to EMX
15597         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15598         on EMX, respectively.
15599         (_DLL_InitTerm): New on EMX.
15600         (get_shared_library_fullname): Implement on EMX.
15602         find_executable: port to EMX
15603         * lib/progreloc.c (find_executable): Implement on EMX.
15605         sched: check struct sched_param in spawn.h as well
15606         * lib/sched.in.h: Include spawn.h on kLIBC.
15607         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15609 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15611         bootstrap: Allow perl modules in $buildreq
15612         * build-aux/bootstrap: Add case for perl modules.
15614 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15616         apply _GL_ATTRIBUTE_PURE to some inline functions
15617         clang 3.4.2 flagged these inline functions as pure
15618         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15619         * lib/sig-handler.h (get_handler): Likewise.
15620         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15621         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15623 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15625         vasnprintf: fix potential use after free
15626         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15627         flagged by clang-analyzer 3.4.2.
15629 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15631         filevercmp, posixtm: avoid compiler warnings with -O3
15632         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15633         * lib/posixtm.c: (IF_LINT): Define.
15634         (posix_time_parse): Use it to void a "may be used uninitialized"
15635         warning, seen only with -O3.
15637 2014-12-05  Bruno Haible  <bruno@clisp.org>
15639         Fix LDBL80_WORDS macro on big endian platforms.
15640         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15641         LDBL80_WORDS macro.
15642         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15644         * tests/test-isfinite.c (test_isfinitel): Likewise.
15645         * tests/test-isinf.c (test_isinfl): Likewise.
15646         * tests/test-isnan.c (test_long_double): Likewise.
15647         * tests/test-isnanl.h (main): Likewise.
15648         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15649         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15650         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15651         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15652         Reported by Pádraig Brady.
15654 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15656         git-version-gen: do not print new line characters
15657         * build-aux/git-version-gen: Use printf instead of echo and tr.
15659         gnulib-tool: recognize x:* as an absolute path
15660         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15661         (func_relconcat): Likewise.
15663 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15665         argp: avoid extraneous translation and mem leak with empty pre doc
15666         * lib/argp-help.c (argp_doc): Never translate the empty string,
15667         when "\v" is the first or last character of the string, as that
15668         has a reserved meaning to return the header info from a po file.
15669         This also fixes a small memory leak in the !post case.
15670         The issue can be seen with this command for example:
15671         LC_MESSAGES=en_US grub2-mknetdir --help
15673 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15675         uniname/uniname-tests: skip if system's libunistring is used
15676         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15677         uniname/uniname module is not compiled.
15679 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15681         printf: fix configure check on big endian systems
15682         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15684 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15686         pipe-filter-gi, pipe-filter-ii: port to AIX
15687         On AIX 7.1, 'select' is defined as static and cannot be referred
15688         to from inline function.
15689         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15690         the definition...
15691         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15692         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15694 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15696         gitlog-to-changelog: add --until
15697         * build-aux/gitlog-to-changelog: Support new --until option.
15698         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15700 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15702         extern-inline: update commentary about GCC bugs
15703         * m4/extern-inline.m4: Add another GCC bug number to comments.
15705 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15707         gen-uni-tables: untabify
15708         * lib/gen-uni-tables.c: Untabify.
15710 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15712         gen-uni-tables: check out-of-range values added to 3-level tables
15713         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15714         (output_joining_type, output_ident_category): Check out-of-range
15715         values added to 3-level tables.
15717 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15719         gen-uni-tables: utilize 'assert'
15720         * lib/gen-uni-tables.c: Include <assert.h>.
15721         (output_category, output_combclass, output_decimal_digit_test)
15722         (output_decimal_digit, output_digit_test, output_digit)
15723         (output_numeric, get_mirror_value, fill_properties)
15724         (fill_property30, is_property_alphabetic)
15725         (is_property_default_ignorable_code_point)
15726         (is_property_uppercase, is_property_lowercase)
15727         (is_property_cased, is_property_case_ignorable)
15728         (is_property_changes_when_lowercased, is_property_iso_control)
15729         (is_property_math, fill_arabicshaping, output_joining_group)
15730         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15731         (output_wbp, fill_org_gbp, get_decomposition)
15732         (output_decomposition, fill_composition_exclusions)
15733         (debug_output_composition_tables, output_composition_tables)
15734         (redistribute_casefolding_rules, output_casing_rules): Use
15735         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15736         reporting.
15738 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15740         gen-uni-tables: cosmetic improvements
15741         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15742         variables specification.
15743         (is_outdigit): Remove unused function.
15745 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15747         fcntl-h-tests: port to PA-RISC GNU/Linux
15748         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15750 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15752         fts: port to C89
15753         Problem reported for MSVC 16 by Gisle Vanem in:
15754         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15755         * lib/fts.c (fts_build): Avoid declaration before statement.
15757 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15759         unistd: port to iOS
15760         Problem reported by André Klitzing in:
15761         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15762         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15764 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15766         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15767         Problem reported by Alan Modra in:
15768         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15769         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15770         Always cast the function arg, reverting this part of the previous
15771         change.
15773 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15775         obstack: avoid potentially-nonportable function casts
15776         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15777         Remove, replacing with ...
15778         (call_chunkfun, call_freefun): New static functions.
15779         All uses changed.  Avoid potentially-nonportable casts.
15780         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15781         (_obstack_begin_worker): Omit last two args, since they
15782         rely on potentially-nonportable casts.  All callers changed.
15783         * lib/obstack.h (_OBSTACK_CAST): New macro.
15784         Use it everywhere the old API used a potentially-nonportable cast.
15785         The new API doesn't cast.
15786         (struct obstack): Use unions rather than requiring
15787         potentially-nonportable casts.
15788         (obstack_chunkfun, obstack_freefun): Return void.
15790 2014-11-03  Alan Modra  <amodra@gmail.com>
15792         obstack: fix macro return values
15793         * lib/obstack.h (obstack_next_free): Return void *.
15794         (obstack_1grow_fast, obstack_blank_fast): Return void.
15795         For __GNUC__ macros:
15796         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15797         For !__GNUC__ macros:
15798         (obstack_make_room, obstack_grow, obstack_grow0)
15799         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15801 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15803         obstack: do not assume system-supplied obstack is size_t safe
15804         * m4/obstack.m4: New file.
15805         * modules/obstack (Files): Add it.
15807         obstack: port to platforms that #define __alignof__
15808         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15809         not if !_LIBC.  We don't know of any platforms that #define
15810         __alignof__, but it might be useful in tests.  Conversely,
15811         glibc assumes GCC.
15813 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15815         linkat: don't unconditionally replace on GNU/Linux
15816         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15817         was redundant for a few reasons.  It was present to support compiling
15818         on new systems but running on the old narrow window of Linux 2.6.1[67].
15819         It setup and cleaned up test files which weren't actually used.
15820         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15821         implicit in the following check.
15823 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15825         linkat: wrap to handle symlinks on OS X 10.10
15826         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15827         but not usable because it doesn't support creating hardlinks
15828         to symlinks.  Therefore add a generic test for this capability
15829         and fallback to our emulation if linkat() fails with ENOTSUP.
15831 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15833         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15834         * doc/posix-functions/open.texi (open):
15835         * doc/posix-functions/openat.texi (openat):
15836         Document that these functions do not set errno to ELOOP when
15837         a symlink is opened with O_NOFOLLOW.
15839 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15841         obstack: add NEWS entry for recent incompatible changes
15842         * NEWS: Describe recent changes.
15844 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15846         mountlist: don't use libmount to decide on dummy/remote
15847         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15848         routines to determine whether a file system is dummy or remote,
15849         as they're not currently compatible.  For example the remoteness
15850         is determined on file system type (for which the list seems incomplete),
15851         rather than simply checking for a ':' in the device name.
15852         Also libmount currently determines that 'tmpfs' is a dummy file system
15853         even though it has associated storage.
15855 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15857         obstack: prefer __alignof__ to alignof
15858         This is for portability to pre-4.7 GCC when compiling glibc.
15859         See Joseph S. Myers in:
15860         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15861         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15862         New macro, defined by including and using <alignof.h>.
15863         (MAX): New macro.
15864         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15865         Do not use enums as they are not portable to some broken compilers.
15866         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15868         obstack: prefer alignof to calculating alignments by hand
15869         * lib/obstack.c: Include <stdalign.h>.
15870         (struct fooalign): Remove.
15871         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15872         * modules/obstack (Depends-on): Add stdalign.
15874 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15876         obstack: use size_t alignments and check for overflow
15877         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15878         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15879         * lib/obstack.h (struct obstack.alignment_mask):
15880         Use _OBSTACK_SIZE_T, not int, for alignments.
15881         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15882         overflows, e.g., when adding the alignment.
15884 2014-10-29  Alan Modra  <amodra@gmail.com>
15886         obstack: 64-bit obstack support, part 3
15887         This finally enables full 64-bit obstack support.  The glibc
15888         shared library specific code is removed from obstack.c too, and
15889         the error handling code conditionally compiled under control of
15890         another macro, _OBSTACK_NO_ERROR_HANDLER.
15891         * lib/obstack.h: Include string.h earlier.
15892         (_OBSTACK_INTERFACE_VERSION): Define.
15893         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
15894         * lib/obstack.c: Don't include shlib-compat.h.
15895         (OBSTACK_INTERFACE_VERSION): Delete.
15896         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
15897         glibc code is compatible with version 2.  Don't include stdio.h for
15898         __GNU_LIBRARY.
15899         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
15900         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
15901         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
15902         glibc shared library specific source.
15904         obstack: 64-bit obstack support, part 2
15905         This gets us 4G obstack support, without changing ABI
15906         compatibility, apart from possibly introducing some
15907         signed/unsigned comparison warnings in code that uses obstack.h.
15908         a) Replace "int" size parameters, return values, and macro local vars
15909            with _OBSTACK_SIZE_T, an "unsigned int" for now.
15910         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
15911         c) Make all obstack macros checking available room use obstack_room.
15912            "next_free + desired > chunk_limit" may wrap the lhs for chunks
15913            allocated near the top of memory.
15914         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
15915         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
15916         in place of "int" size parameters, return values and local vars.
15917         (_CHUNK_SIZE_T): Define.
15918         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
15919         union use an _OBSTACK_SIZE_T integer type.
15920         For __GNUC__ versions of the following macros...
15921         (obstack_room): Rename local var.
15922         (obstack_make_room): Use obstack_room.
15923         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15924         obstack_int_grow, obstack_blank): Likewise.
15925         (obstack_finish): Use unsigned comparison when comparing aligned
15926         next_free against chunk_limit.
15927         (obstack_free): Cast OBJ to remove possible const qualifier.
15928         For !__GNUC__ versions of the following macros...
15929         (obstack_make_room): Use obstack_room.
15930         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15931         obstack_int_grow, obstack_blank): Likewise.
15932         (obstack_finish): Use unsigned comparision when comparing aligned
15933         next_free against chunk_limit.
15934         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
15935         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
15936         _OBSTACK_SIZE_T.
15937         (_obstack_begin, _obstack_begin_1): Likewise.
15938         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
15939         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
15941         obstack: 64-bit obstack support, part 1
15942         a) Correct calls to alloc function, to use a size_t arg.  "long" is
15943            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
15944            and "size_t" 64 bits.
15945         b) Consolidate _obstack_begin and _obstack_begin1 code.
15946         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
15947         use "size_t" rather than "long".
15948         (_obstack_begin, _obstack_begin1): Likewise.
15949         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
15950         obstack_chunkfun): Update alloc function casts.
15951         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
15952         (chunkfun_type, freefun_type): New typdefs.
15953         (_obstack_begin_worker): Split out from ..
15954         (_obstack_begin, _obstack_begin_1): ..here.
15956         obstack: tidy part 2
15957         a) Don't be concerned about "not polluting the namespace with stddef.h
15958            symbols" in obstack.h, since gnulib string.h includes stddef.h
15959            anyway, and it seems unlikely that anyone would care.
15960         b) Don't roll our own slow memcpy in _obstack_newchunk.
15961         c) Rename obstack_free to _obstack_free.  This makes the naming
15962            consistent with other obstack functions and obviates the need for
15963            __obstack_free.  Ancient obstack.c defined both obstack_free and
15964            _obstack_free.  We continue to do that for _LIBC via an alias.
15965         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
15966            is clever, but nowadays gcc warns on undefined macros.  You'll get
15967            an undefined macro warning if simulating an old gcc with -U__GNUC__
15968            -U__GNUC_MINOR__ -D__GNUC__=1.
15969         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
15970         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
15971         (__obstack_free): Delete, update refs.
15972         (_obstack_free): Rename from obstack_free.
15973         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
15974         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
15975         * lib/obstack.c: Don't include stddef.h.
15976         (COPYING_UNIT): Delete.
15977         (_obstack_begin): Formatting fix.
15978         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
15979         (_obstack_free): Rename from __obstack_free, update alias.  Move
15980         undef of obstack_free to where it is needed.
15982         obstack: tidy part 1
15983         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
15984            to me, and result in overlong lines after later patches.
15985         b) Move error handling code, to avoid a forward declaration and to
15986            simplify later patches in this series.
15987         * lib/obstack.h (struct obstack <temp>): Rename fields of union
15988         and update all uses.
15989         * lib/obstack.c: Include stdlib.h earlier.
15990         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
15991         in file.
15992         (print_and_abort): Remove now redundant forward declaration.
15994 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15996         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
15997         Without this change, in bleeding-edge fileutils Autoconf complains
15998         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
15999         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16000         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16001         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16003 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16005         iconv: avoid false detection of non-working iconv
16006         The INBUF arguments of iconv can be either 'const char **'
16007         or 'char **'.  If CC is g++, the difference causes a compile error
16008         and thus leads to a false detection of non-working iconv.
16009         Reported by Eli Zaretskii and Werner LEMBERG in:
16010         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16011         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16012         iconv.  Bump serial number.
16014 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16016         bootstrap: print more diagnostics for missing programs
16017         * build-aux/bootstrap: only suppress stderr when checking for
16018         alternative program names.  This supports programs issuing non
16019         standard error messages.
16021 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16023         bootstrap: only update the gnulib submodule
16024         * build-aux/bootstrap: Restrict the "submodule update" command
16025         to the gnulib path.
16027 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16029         symlinkat: port to AIX 7.1
16030         * doc/posix-functions/symlinkat.texi (symlinkat):
16031         Mention AIX porting problem.
16032         * lib/symlinkat.c: Always include errno.h.
16033         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16034         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16035         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16037         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16038         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16039         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16041         readlinkat: port to AIX 7.1
16042         * doc/posix-functions/readlink.texi (readlink):
16043         * doc/posix-functions/readlinkat.texi (readlinkat):
16044         Mention AIX porting problem.
16045         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16046         New function.
16047         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16048         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16050         * modules/readlinkat (configure.ac): Also compile replacement
16051         if REPLACE_READLINKAT.
16052         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16054 2014-10-12  Karl Berry  <karl@gnu.org>
16056         * doc/posix-functions/dirname.texi: remove spurious {.
16058 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16060         basename, dirname: Improve documentation.
16061         * doc/posix-functions/basename.texi: Mention dirname module and
16062         base_name() function.
16063         * doc/posix-functions/dirname.texi: Mention dir_name() and
16064         mdir_name() functions.
16065         Suggested by Werner LEMBERG <wl@gnu.org>.
16067 2014-09-24  Jim Meyering  <meyering@fb.com>
16069         exclude: declare exclude_patopts static
16070         * lib/exclude.c (exclude_patopts): Declare static,
16071         to avoid triggering a -Wmissing-prototypes warning.
16072         The alternative (declaring it in the .h file) would
16073         require publicizing the private "struct patopts".
16075 2014-09-21  Werner Lemberg  <wl@gnu.org>
16077         dirname: support compilation with C++
16078         * lib/dirname.h: Add necessary C linkage declarations.
16080 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16082         qsort_r: include <config.h>
16083         Problem reported by Tom G. Christensen in:
16084         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16085         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16087 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16089         avltree-list: avoid compiler warnings (trivial)
16090         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16091         -Werror=suggest-attribute=pure.
16092         * lib/gl_array_list.c: Likewise.
16093         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16094         declaration to avoid -Werror=missing-prototypes.  This is not added
16095         to a header as only exported for tests.  Add (void) to the
16096         check_invariants() call to indicate we're discarding the result
16097         in this context which avoids -Werror=unused-value.  Note we don't
16098         use ignore_value here to avoid a dependency as we know we'll not
16099         be adding __attribute__((warn_unused_result)) to check_invariants().
16100         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16102 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16104         qsort_r: new module, for GNU-style qsort_r
16105         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16107 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16109         strerror_r-posix: support compilation with C++
16110         * lib/strerror_r.c: Add necessary C linkage declarations.
16112 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16114         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16115         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16117 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16119         mountlist: use /proc/self/mountinfo when available
16120         Use libmount to propagate device IDs provided by Linux in
16121         /proc/self/mountinfo.  This will give more accurate output when
16122         using df in chroot'ed environments as the device IDs are not
16123         determined by stat() which may be inaccurate within the chroot.
16124         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16125         from util-linux to parse "/proc/self/mountinfo" or fall back to
16126         standard getmntent() processing.
16127         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16128         getmntent() is used, as is the case on GNU/Linux.
16130 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16132         users.txt: add cmogstored
16133         cmogstored has used gnulib since the beginning in 2012 to support
16134         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16136 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16138         Trivial change.
16139         * gnulib-tool: Use same options as build-aux/bootstrap to download
16140         PO files.
16142 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16144         Trivial change.
16145         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16147 2014-09-04  Eric Blake  <eblake@redhat.com>
16149         maintainer-makefile: add syntax check for useless ';;'
16150         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16152 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16154         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16155         Problem reported by Assaf Gordon in:
16156         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16157         Apparently Ubuntu is doing some fancy link-time optimization
16158         that doesn't work with -lpthread but does work with -pthread.
16159         Work around the bug by preferring -pthread to -lpthread.
16160         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16161         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16163         Treat -pthread like -lpthread.
16165 2014-09-04  Eric Blake  <eblake@redhat.com>
16167         error: drop spurious semicolon
16168         * lib/error.c (__error_at_line): Fix ';;'.
16170 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16172         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16173         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16174         Override AC_C_RESTRICT unconditionally.
16175         Update from autoconf, incorporating:
16176         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16177         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16179 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16181         manywarnings: add GCC 4.9 warnings
16182         Also, make it easier to maintain this in the future.
16183         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16184         -Wconditionally-supported, -Wdelete-incomplete,
16185         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16186         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16187         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16188         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16189         only for older GCC versions that need them.  Handle
16190         -Wnormalized=nfc specially, so that the 'comm' command used
16191         for maintenance doesn't get confused.
16193 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16195         vasnprintf: fix bugs in width computation
16196         * lib/vasnprintf.c (VASNPRINTF):
16197         Rework previous change, which introduced a bug,
16198         to avoid the warning in a different way.
16199         Avoid undefined behavior if the width arg is less than -INT_MAX.
16200         Avoid unnecessary use of HAS_WIDTH local.
16202 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16204         vasnprintf: Avoid signed/unsigned comparison warning.
16205         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16206         compare end addr of generated string w/ maximum end addr.
16208 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16210         parse-datetime: Avoid pointer difference.
16211         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16212         instead of calculating difference of pointers.  This removes an
16213         annoying warning, devoid of any use.
16215 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16217         qsort_r: new module, for GNU-style qsort_r
16218         This works even on FreeBSD, which has an incompatible qsort_r API.
16219         * MODULES.html.sh: Add it.
16220         * doc/glibc-functions/qsort_r.texi: It's now supported.
16221         * lib/qsort.c: New file, taken from glibc with minor changes
16222         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16223         removed.
16224         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16225         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16227         * modules/qsort_r, modules/qsort_r-tests: New files.
16228         * modules/stdlib (Makefile): Set up its defaults.
16229         * tests/test-qsort_r.c: New file.
16231 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16233         vla: new module
16234         GNU RCS can use this, mostly for documentation I expect.  See:
16235         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16236         * MODULES.html.sh: Add vla.
16237         * lib/vla.h, modules/vla: New files.
16239 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16241         localename: make gl_locale_name_thread really thread-safe on Windows
16242         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16243         "glthread/lock.h".
16244         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16245         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16247 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16249         getpass: don't assume struct termios
16250         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16251         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16252         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16254         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16255         Problem reported by Jonas 'Sortie' Termansen in:
16256         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16257         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16258         Implement via sysconf for platforms that lack getdtablesize.
16260         vararrays: modernize AC_C_VARARRAYS for C11
16261         This backports a change I recently made to Autoconf.
16262         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16263         VLAs are not supported, as this is what C11 does.  The old macro
16264         HAVE_C_VARARRAYS is still defined if they are supported, but is
16265         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16267 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16269         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16270         * build-aux/install-reloc (func_create_wrapper): Also wrap
16271         strerror-override, stat, stat.
16273 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16275         sys_select: fix FD_ZERO problem on Solaris 10
16276         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16277         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16278         to expand to an expression that invoked memset without necessarily
16279         including <string.h>.  The problem was that the first include
16280         defined _SYS_TIME_H, causing the second include to short-circuit.
16281         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16282         Also, fix what appears to be a cut-and-paste typo, by replacing
16283         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16284         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16286         accept: document Solaris 10 type glitch
16287         * doc/posix-functions/accept.texi (accept): Mention that
16288         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16290 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16292         extern-inline: port to FreeBSD, DragonFly
16293         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16294         is present if either __DragonFly__ or __FreeBSD__ is defined.
16295         FreeBSD problem reported by Andrey Borzenkov in:
16296         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16297         Also, worry about __APPLE__ only if __MACH__ is also defined,
16298         as this is more consistent with the rest of gnulib.
16299         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16300         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16302 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16304         regex: Make #if/#ifdef usage consistent for DEBUG
16305         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16306         of the inconsistent usage of #if and #ifdef as that works with
16307         both Glibc and Gnulib's style.
16309 2014-07-31  Eric Blake  <eblake@redhat.com>
16311         openat-die: use _Noreturn markup
16312         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16313         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16314         _Noreturn.
16316 2014-07-30  Eric Blake  <eblake@redhat.com>
16318         test-open: port to cygwin, which lacks Fortify
16319         * tests/test-open.h (ALWAYS_INLINE): New macro.
16320         (__always_inline): Don't abuse internal symbol on non-glibc.
16322 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16324         localename: Enforce declarations before statements.
16325         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16326         first statement.
16328 2014-07-18  Jim Meyering  <meyering@fb.com>
16330         test-userspec: don't look up numeric user names
16331         * tests/test-userspec.c: I found a system for which getpwnam("0")
16332         returned a pointer to a non-root user's entry, and that made the
16333         test fail.
16334         (T): Prefix each numeric input with "+", to inhibit lookup.
16336 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16338         localcharset, localename: MS-Windows support for non-default locales
16339         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16340         falling back on the default system codepage, try extracting
16341         the codepage from what 'setlocale' returns.  This allows to
16342         take into account changes of the codeset due to non-default
16343         locale set by a previous call to 'setlocale'.
16344         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16345         Define if not already defined.
16346         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16347         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16348         current locale by calling 'setlocale', then converting the
16349         locale name into LCID by calling 'get_lcid'.  This allows to
16350         take into account changes in the current locale from the
16351         default one, in contrast to GetThreadLocale.
16353 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16355         announce-gen: avoid failure when Digest::SHA is installed
16356         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16357         Digest::SHA1->new in print_checksums fails.
16358         * build-aux/announce-gen (digest_classes): New associative array
16359         for available message digest implementations.
16360         (print_locations): Use it.
16362 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16364         gettext: revert "update macros to version 0.19"
16365         This reverts commit 9b9370ca, as it currently requires that
16366         developers of any project that explicitly uses the gettext module
16367         or implicitly uses it through the utimens-tests or
16368         futimens-tests modules, use gettext >= 0.19.
16369         However there are some stability and availablity issues with
16370         that version at present.  We can reinstate this soon, when stability
16371         is addressed and packages are more readily available.
16373 2014-07-12  Jim Meyering  <meyering@fb.com>
16375         regex: don't deref NULL upon heap allocation failure
16376         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16377         failure in one more place.
16378         To trigger the segfault, configure grep -with-included-regex,
16379         build it, and run these commands:
16380         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16381         I discovered this while replying to a private report from
16382         Jens Schleusener about excessive memory consumption by grep
16383         when using a regular expression like the one above.
16385 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16387         regex: fix memory leak in compiler
16388         Fix by Andreas Schwab in:
16389         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16390         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16391         constructed tree before returning error.
16393 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16395         announce-gen: avoid perl warnings
16396         * build-aux/announce-gen: add two minor checks to avoid
16397         "use of uninitialized value" warnings when command-line parameters are
16398         missing.
16400 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16402         localename: avoid -Wsuggest-attribute={const,pure} warnings
16403         * lib/localename.c (string_has): Tag internal function as pure.
16404         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16405         as const when appropriate.
16407 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16409         nl_langinfo: Fix last change.
16410         * lib/nl_langinfo.c (includes): Drop redundant include.
16412 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16414         error: Fix -Wundef warnings in glibc
16415         * lib/error.c [_LIBC]: Define default macros for
16416         glibc.
16417         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16418         Check _LIBC before STRERROR_R_CHAR_P.
16420         error: Sync from glibc master
16421         * lib/error.c [_LIBC]: Remove INTUSE usage.
16422         (error_tail): Remove unused macro ALLOCA_LIMIT.
16423         Fix potential buffer overflow.  Fix potential NULL dereference
16424         in strcmp.
16426 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16428         nl_langinfo: fix build under mingw
16429         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16431 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16433         mountlist: do not classify a bind-mounted dir entry as "dummy"
16434         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16435         1-argument getmntent() (instead of assuming absence).
16437 2014-07-08  Eric Blake  <eblake@redhat.com>
16439         maint.mk: less syntax-check noise when SIGPIPE is ignored
16440         * top/maint.mk (_sc_header_without_use)
16441         (sc_require_config_h_first): Parse full list.
16443 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16444             Paul Eggert  <eggert@cs.ucla.edu>
16446         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16447         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16448         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16449         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16450         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16451         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16452         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16453         Include <stdio.h> if Microsoft Windows.
16454         Include <time.h> if !REPLACE_NL_LANGINFO.
16455         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16456         and with improvements for Microsoft Windows.
16457         (rpl_nl_langinfo): Use it.
16458         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16459         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16460         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16461         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16462         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16463         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16464         corresponding values returned by 'localeconv'.  Compute the values
16465         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16466         'strftime' with a suitable struct tm value.
16468 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16470         Bruno Haible has stepped down as maintainer.
16471         See Karl Berry in:
16472         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16473         Daiki Ueno has volunteered to maintain libunistring; see:
16474         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16475         * modules/gen-uni-tables, modules/libunistring:
16476         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16477         * modules/unicase/base, modules/unicase/cased:
16478         * modules/unicase/empty-prefix-context:
16479         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16480         * modules/unicase/locale-language, modules/unicase/special-casing:
16481         * modules/unicase/tocasefold, modules/unicase/tolower:
16482         * modules/unicase/totitle, modules/unicase/toupper:
16483         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16484         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16485         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16486         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16487         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16488         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16489         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16490         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16491         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16492         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16493         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16494         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16495         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16496         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16497         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16498         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16499         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16500         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16501         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16502         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16503         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16504         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16505         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16506         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16507         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16508         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16509         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16510         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16511         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16512         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16513         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16514         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16515         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16516         * modules/uniconv/u16-conv-to-enc:
16517         * modules/uniconv/u16-strconv-from-enc:
16518         * modules/uniconv/u16-strconv-from-locale:
16519         * modules/uniconv/u16-strconv-to-enc:
16520         * modules/uniconv/u16-strconv-to-locale:
16521         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16522         * modules/uniconv/u32-strconv-from-enc:
16523         * modules/uniconv/u32-strconv-from-locale:
16524         * modules/uniconv/u32-strconv-to-enc:
16525         * modules/uniconv/u32-strconv-to-locale:
16526         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16527         * modules/uniconv/u8-strconv-from-enc:
16528         * modules/uniconv/u8-strconv-from-locale:
16529         * modules/uniconv/u8-strconv-to-enc:
16530         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16531         * modules/unictype/bidicategory-all:
16532         * modules/unictype/bidicategory-byname:
16533         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16534         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16535         * modules/unictype/bidiclass-byname:
16536         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16537         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16538         * modules/unictype/block-all, modules/unictype/block-list:
16539         * modules/unictype/block-of, modules/unictype/block-test:
16540         * modules/unictype/category-C, modules/unictype/category-Cc:
16541         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16542         * modules/unictype/category-Co, modules/unictype/category-Cs:
16543         * modules/unictype/category-L, modules/unictype/category-LC:
16544         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16545         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16546         * modules/unictype/category-Lu, modules/unictype/category-M:
16547         * modules/unictype/category-Mc, modules/unictype/category-Me:
16548         * modules/unictype/category-Mn, modules/unictype/category-N:
16549         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16550         * modules/unictype/category-No, modules/unictype/category-P:
16551         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16552         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16553         * modules/unictype/category-Pi, modules/unictype/category-Po:
16554         * modules/unictype/category-Ps, modules/unictype/category-S:
16555         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16556         * modules/unictype/category-Sm, modules/unictype/category-So:
16557         * modules/unictype/category-Z, modules/unictype/category-Zl:
16558         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16559         * modules/unictype/category-all, modules/unictype/category-and:
16560         * modules/unictype/category-and-not, modules/unictype/category-byname:
16561         * modules/unictype/category-longname, modules/unictype/category-name:
16562         * modules/unictype/category-none, modules/unictype/category-of:
16563         * modules/unictype/category-or, modules/unictype/category-test:
16564         * modules/unictype/category-test-withtable:
16565         * modules/unictype/combining-class:
16566         * modules/unictype/combining-class-all:
16567         * modules/unictype/combining-class-byname:
16568         * modules/unictype/combining-class-longname:
16569         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16570         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16571         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16572         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16573         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16574         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16575         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16576         * modules/unictype/digit, modules/unictype/joininggroup-all:
16577         * modules/unictype/joininggroup-byname:
16578         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16579         * modules/unictype/joiningtype-all:
16580         * modules/unictype/joiningtype-byname:
16581         * modules/unictype/joiningtype-longname:
16582         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16583         * modules/unictype/mirror, modules/unictype/numeric:
16584         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16585         * modules/unictype/property-ascii-hex-digit:
16586         * modules/unictype/property-bidi-arabic-digit:
16587         * modules/unictype/property-bidi-arabic-right-to-left:
16588         * modules/unictype/property-bidi-block-separator:
16589         * modules/unictype/property-bidi-boundary-neutral:
16590         * modules/unictype/property-bidi-common-separator:
16591         * modules/unictype/property-bidi-control:
16592         * modules/unictype/property-bidi-embedding-or-override:
16593         * modules/unictype/property-bidi-eur-num-separator:
16594         * modules/unictype/property-bidi-eur-num-terminator:
16595         * modules/unictype/property-bidi-european-digit:
16596         * modules/unictype/property-bidi-hebrew-right-to-left:
16597         * modules/unictype/property-bidi-left-to-right:
16598         * modules/unictype/property-bidi-non-spacing-mark:
16599         * modules/unictype/property-bidi-other-neutral:
16600         * modules/unictype/property-bidi-pdf:
16601         * modules/unictype/property-bidi-segment-separator:
16602         * modules/unictype/property-bidi-whitespace:
16603         * modules/unictype/property-byname:
16604         * modules/unictype/property-case-ignorable:
16605         * modules/unictype/property-cased:
16606         * modules/unictype/property-changes-when-casefolded:
16607         * modules/unictype/property-changes-when-casemapped:
16608         * modules/unictype/property-changes-when-lowercased:
16609         * modules/unictype/property-changes-when-titlecased:
16610         * modules/unictype/property-changes-when-uppercased:
16611         * modules/unictype/property-combining:
16612         * modules/unictype/property-composite:
16613         * modules/unictype/property-currency-symbol:
16614         * modules/unictype/property-dash:
16615         * modules/unictype/property-decimal-digit:
16616         * modules/unictype/property-default-ignorable-code-point:
16617         * modules/unictype/property-deprecated:
16618         * modules/unictype/property-diacritic:
16619         * modules/unictype/property-extender:
16620         * modules/unictype/property-format-control:
16621         * modules/unictype/property-grapheme-base:
16622         * modules/unictype/property-grapheme-extend:
16623         * modules/unictype/property-grapheme-link:
16624         * modules/unictype/property-hex-digit:
16625         * modules/unictype/property-hyphen:
16626         * modules/unictype/property-id-continue:
16627         * modules/unictype/property-id-start:
16628         * modules/unictype/property-ideographic:
16629         * modules/unictype/property-ids-binary-operator:
16630         * modules/unictype/property-ids-trinary-operator:
16631         * modules/unictype/property-ignorable-control:
16632         * modules/unictype/property-iso-control:
16633         * modules/unictype/property-join-control:
16634         * modules/unictype/property-left-of-pair:
16635         * modules/unictype/property-line-separator:
16636         * modules/unictype/property-logical-order-exception:
16637         * modules/unictype/property-lowercase, modules/unictype/property-math:
16638         * modules/unictype/property-non-break:
16639         * modules/unictype/property-not-a-character:
16640         * modules/unictype/property-numeric:
16641         * modules/unictype/property-other-alphabetic:
16642         * modules/unictype/property-other-default-ignorable-code-point:
16643         * modules/unictype/property-other-grapheme-extend:
16644         * modules/unictype/property-other-id-continue:
16645         * modules/unictype/property-other-id-start:
16646         * modules/unictype/property-other-lowercase:
16647         * modules/unictype/property-other-math:
16648         * modules/unictype/property-other-uppercase:
16649         * modules/unictype/property-paired-punctuation:
16650         * modules/unictype/property-paragraph-separator:
16651         * modules/unictype/property-pattern-syntax:
16652         * modules/unictype/property-pattern-white-space:
16653         * modules/unictype/property-private-use:
16654         * modules/unictype/property-punctuation:
16655         * modules/unictype/property-quotation-mark:
16656         * modules/unictype/property-radical:
16657         * modules/unictype/property-sentence-terminal:
16658         * modules/unictype/property-soft-dotted:
16659         * modules/unictype/property-space:
16660         * modules/unictype/property-terminal-punctuation:
16661         * modules/unictype/property-test, modules/unictype/property-titlecase:
16662         * modules/unictype/property-unassigned-code-value:
16663         * modules/unictype/property-unified-ideograph:
16664         * modules/unictype/property-uppercase:
16665         * modules/unictype/property-variation-selector:
16666         * modules/unictype/property-white-space:
16667         * modules/unictype/property-xid-continue:
16668         * modules/unictype/property-xid-start:
16669         * modules/unictype/property-zero-width, modules/unictype/scripts:
16670         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16671         * modules/unictype/syntax-c-whitespace:
16672         * modules/unictype/syntax-java-ident:
16673         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16674         * modules/unigbrk/u16-grapheme-breaks:
16675         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16676         * modules/unigbrk/u32-grapheme-breaks:
16677         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16678         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16679         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16680         * modules/unigbrk/uc-is-grapheme-break:
16681         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16682         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16683         * modules/unilbrk/u16-width-linebreaks:
16684         * modules/unilbrk/u32-possible-linebreaks:
16685         * modules/unilbrk/u32-width-linebreaks:
16686         * modules/unilbrk/u8-possible-linebreaks:
16687         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16688         * modules/unilbrk/ulc-possible-linebreaks:
16689         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16690         * modules/uniname/uniname, modules/uninorm/base:
16691         * modules/uninorm/canonical-decomposition:
16692         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16693         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16694         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16695         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16696         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16697         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16698         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16699         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16700         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16701         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16702         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16703         * modules/unistdio/base, modules/unistdio/u-printf-args:
16704         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16705         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16706         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16707         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16708         * modules/unistdio/u16-u16-sprintf:
16709         * modules/unistdio/u16-u16-vasnprintf:
16710         * modules/unistdio/u16-u16-vasprintf:
16711         * modules/unistdio/u16-u16-vsnprintf:
16712         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16713         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16714         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16715         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16716         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16717         * modules/unistdio/u32-u32-asnprintf:
16718         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16719         * modules/unistdio/u32-u32-sprintf:
16720         * modules/unistdio/u32-u32-vasnprintf:
16721         * modules/unistdio/u32-u32-vasprintf:
16722         * modules/unistdio/u32-u32-vsnprintf:
16723         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16724         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16725         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16726         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16727         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16728         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16729         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16730         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16731         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16732         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16733         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16734         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16735         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16736         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16737         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16738         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16739         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16740         * modules/unistr/u16-check, modules/unistr/u16-chr:
16741         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16742         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16743         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16744         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16745         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16746         * modules/unistr/u16-move, modules/unistr/u16-next:
16747         * modules/unistr/u16-prev, modules/unistr/u16-set:
16748         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16749         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16750         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16751         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16752         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16753         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16754         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16755         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16756         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16757         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16758         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16759         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16760         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16761         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16762         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16763         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16764         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16765         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16766         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16767         * modules/unistr/u32-next, modules/unistr/u32-prev:
16768         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16769         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16770         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16771         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16772         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16773         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16774         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16775         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16776         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16777         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16778         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16779         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16780         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16781         * modules/unistr/u8-check, modules/unistr/u8-chr:
16782         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16783         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16784         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16785         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16786         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16787         * modules/unistr/u8-next, modules/unistr/u8-prev:
16788         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16789         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16790         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16791         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16792         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16793         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16794         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16795         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16796         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16797         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16798         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16799         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16800         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16801         * modules/uniwbrk/base, modules/uniwbrk/table:
16802         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16803         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16804         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16805         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16806         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16807         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16808         * modules/uniwidth/width, modules/utf16-ucs4:
16809         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16810         * modules/utf8-ucs4-unsafe:
16811         Change maintainer from Bruno Haible to Daiki Ueno.
16812         This is my guess at the libunistring modules; please feel free
16813         to fix if I guessed incorrectly.
16814         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16815         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16816         * modules/areadlink, modules/array-list, modules/array-mergesort:
16817         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16818         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16819         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16820         * modules/binary-io, modules/bison-i18n, modules/btowc:
16821         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16822         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16823         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16824         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16825         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16826         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16827         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16828         * modules/closedir, modules/concat-filename, modules/copy-file:
16829         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16830         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16831         * modules/csharpcomp-script, modules/csharpexec:
16832         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16833         * modules/dprintf, modules/dprintf-posix, modules/dup:
16834         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16835         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16836         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16837         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16838         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16839         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16840         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16841         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16842         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16843         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16844         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16845         * modules/findprog, modules/findprog-lgpl, modules/floor:
16846         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16847         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16848         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16849         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16850         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16851         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16852         * modules/freadable, modules/freadahead, modules/freadptr:
16853         * modules/freadseek, modules/freopen, modules/frexp:
16854         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16855         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16856         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16857         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16858         * modules/ftello, modules/full-read, modules/full-write:
16859         * modules/fwritable, modules/fwriteerror, modules/gcd:
16860         * modules/get-rusage-as, modules/get-rusage-data:
16861         * modules/getdtablesize, modules/getrusage, modules/gettext:
16862         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16863         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16864         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16865         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16866         * modules/iconv, modules/iconv-h, modules/iconv_open:
16867         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16868         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16869         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16870         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16871         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16872         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16873         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16874         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16875         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16876         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16877         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16878         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16879         * modules/lib-symbol-visibility, modules/libsigsegv:
16880         * modules/linked-list, modules/linkedhash-list, modules/list:
16881         * modules/localcharset, modules/locale, modules/localeconv:
16882         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16883         * modules/log10, modules/log10-ieee, modules/log10f:
16884         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16885         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16886         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16887         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16888         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16889         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16890         * modules/logf, modules/logf-ieee, modules/login_tty:
16891         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16892         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16893         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
16894         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
16895         * modules/mbscspn, modules/mbsinit, modules/mbslen:
16896         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
16897         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
16898         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
16899         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
16900         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
16901         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
16902         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
16903         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
16904         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
16905         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
16906         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
16907         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
16908         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
16909         * modules/posix_spawn, modules/posix_spawn-internal:
16910         * modules/posix_spawn_file_actions_addclose:
16911         * modules/posix_spawn_file_actions_adddup2:
16912         * modules/posix_spawn_file_actions_addopen:
16913         * modules/posix_spawn_file_actions_destroy:
16914         * modules/posix_spawn_file_actions_init:
16915         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
16916         * modules/posix_spawnattr_getpgroup:
16917         * modules/posix_spawnattr_getschedparam:
16918         * modules/posix_spawnattr_getschedpolicy:
16919         * modules/posix_spawnattr_getsigdefault:
16920         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
16921         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
16922         * modules/posix_spawnattr_setschedparam:
16923         * modules/posix_spawnattr_setschedpolicy:
16924         * modules/posix_spawnattr_setsigdefault:
16925         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
16926         * modules/pow, modules/powf, modules/printf-frexp:
16927         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
16928         * modules/progname, modules/propername, modules/pselect:
16929         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
16930         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
16931         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
16932         * modules/read, modules/readdir, modules/readlink:
16933         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
16934         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
16935         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
16936         * modules/relocatable-script, modules/remainder:
16937         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
16938         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
16939         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
16940         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
16941         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
16942         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
16943         * modules/setlocale, modules/sh-quote, modules/shutdown:
16944         * modules/signal, modules/signbit, modules/sigpipe:
16945         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
16946         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
16947         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
16948         * modules/snippet/link-warning, modules/snippet/unused-parameter:
16949         * modules/snprintf, modules/snprintf-posix, modules/spawn:
16950         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
16951         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
16952         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
16953         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
16954         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
16955         * modules/streq, modules/strerror_r-posix, modules/striconv:
16956         * modules/striconveh, modules/striconveha, modules/strncat:
16957         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
16958         * modules/sublist, modules/sys_resource, modules/sys_utsname:
16959         * modules/sys_wait, modules/system-posix, modules/system-quote:
16960         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
16961         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
16962         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
16963         * modules/truncf, modules/truncf-ieee, modules/truncl:
16964         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
16965         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
16966         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
16967         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
16968         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
16969         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
16970         * modules/wait-process, modules/waitpid, modules/wcpcpy:
16971         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
16972         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
16973         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
16974         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
16975         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
16976         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
16977         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
16978         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
16979         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
16980         * modules/write, modules/xconcat-filename, modules/xlist:
16981         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
16982         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
16983         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
16984         * modules/y0, modules/y1, modules/yn:
16985         Remove Bruno Haible as maintainer; if he's the sole maintainer,
16986         change the maintainer to 'all'.  Let's hope someone volunteers.
16988 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
16990         mktime: merge #if/#ifdef usage from glibc
16991         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
16992         as that works with both Glibc's and Gnulib's style.
16993         See thread starting at Siddhesh Poyarekar's bug report at:
16994         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
16996 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
16998         git-version-gen: improve option descriptions
16999         * build-aux/git-version-gen: Mention that --prefix and --fallback
17000         have a mandatory argument.
17002 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17004         regex: fix memory leak in compiler
17005         Fix by Andreas Schwab in:
17006         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17007         * lib/regcomp.c (parse_expression): Deallocate partially
17008         constructed tree before returning error.
17010         regex: merge patch from libc
17011         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17012         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17013         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17015 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17017         acl: port to gcc -Wredundant-decls
17018         From a request by Dmitry Antipov in:
17019         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17020         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17021         "#ifndef _GL_ACL_H".
17023 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17024         Jim Meyering  <meyering@fb.com>
17026         parse-duration: eliminate 68-year duration limit
17027         * lib/parse-duration.c: Include "intprops.h".
17028         (TIME_MAX): Rename to MAX_DURATION and define to
17029         TYPE_MAXIMUM(time_t).
17030         * modules/parse-duration (Depends-on): Add intprops.
17031         Reported by Jonas 'Sortie' Termansen.
17033 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17035         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17036         * modules/pthread (Depends-on): Add 'extensions', as it defines
17037         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17038         (configure.ac-early): New section.
17039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17040         it is no longer needed.
17042 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17044         pthread: define thread-safe macros on some platforms
17045         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17046         for thread-safe operation on some platforms.
17048 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17050         regex: don't be multithreaded if USE_UNLOCKED_IO.
17051         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17052         * lib/regex_internal.h: Do not use multithreaded version if
17053         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17054         around a porting bug with coreutils 8.22 on AIX 7.1.
17056 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17058         gettext: update macros to version 0.19
17059         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17060         depend on gl_EXTERN_INLINE and drop support for older Bison
17061         versions.
17063 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17065         select,poll: fix console handle check on windows 8
17066         lib/poll.c (IsConsoleHandle): Change from testing the lower
17067         2 bits of the handle to the more expensive but accurate syscall.
17068         lib/select.c: Likewise.
17070 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17072         select: fix waiting on anonymous pipes on MS-Windows
17073         * lib/select.c (rpl_select): Fall back to polling when select()
17074         indicates there is nothing to check, while due to the timeout not
17075         expiring, activity is indicated on one of the handles.
17076         Also clear the TIMEOUT argument if the timer does expire.
17078 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17080         times: fix to return non constant value on MS-Windows
17081         * lib/times.c (times): Don't use the process creation time,
17082         rather clock() which on windows returns the number of
17083         clock ticks since the process started.
17085 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17087         isatty: fix to work on windows 8
17088         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17089         2 bits of the handle to the more expensive but accurate syscall.
17091 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17093         maint: fix typo in fdl.texi
17094         * doc/fdl.texi: Fix typo (missing '@').
17095         Somehow this was in fdl.texi but not fdl-1.3.texi.
17097 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17099         mountlist: avoid hasmntopt const type warning on solaris
17100         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17101         with char * instead of const char *.  Passing the constant string
17102         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17103         to avoid the warning.
17105 2014-06-04  Eric Blake  <eblake@redhat.com>
17107         maintainer-makefile: delete obsolete code
17108         * top/maint.mk (build_aux): Drop old code, as threatened.
17110         maintainer-makefile: avoid spurious error messages
17111         * top/maint.mk (syntax-check): Guard definition and use of
17112         $(shell) by whether Makefile is present.
17114 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17116         rename: avoid unused-but-set-variable compiler warning
17117         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17118         it is possible that dst_exists may be set but not used.  Mark it with
17119         the unused attribute to avoid compiler warnings.
17121 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17123         rename: mark a label as potentially unused
17124         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17125         by marking the out label as potentially unused.
17126         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17128 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17130         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17131         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17133 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17135         acl: apply pure attribute to two functions
17136         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17137         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17139 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17141         gnulib-common.m4: add _GL_UNUSED_LABEL
17142         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17143         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17145 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17147         dup2, fcntl, fcntl-h: port to AIX 7.1
17148         This fixes some porting problems discovered when testing the latest
17149         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17150         in grep but it could be important for other applications.
17151         * doc/posix-functions/dup2.texi:
17152         * doc/posix-functions/fcntl.texi:
17153         * doc/posix-headers/fcntl.texi:
17154         Document AIX bugs.
17155         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17156         Define to 0 if outside 'int' range.
17157         * m4/dup2.m4 (gl_FUNC_DUP2):
17158         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17159         Check for getdtablesize.  If it's available, test a value just
17160         outside its range instead of testing 1000000.  When cross-compiling,
17161         guess that AIX will fail this improved test.
17163 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17165         printf, config.rpath: Port to FreeBSD 10.
17166         Problem reported by Tijl Coosemans in:
17167         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17168         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17169         (hardcode_direct): Simplify FreeBSD configuration.
17170         (library_names_spec): Don't mishandle FreeBSD 10+.
17171         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17172         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17173         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17174         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17175         Don't mishandle FreeBSD 10+ when cross-compiling.
17177         ftoastr: work around compiler bug in IBM xlc 12.1
17178         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17179         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17180         around a compiler bug in IBM xlc 12.1.0.0: it complains
17181         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17182         _GL_FLT_PREC_BOUND.'
17184 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17186         valgrind-tests: fixed misleading help message
17187         * m4/valgrind-tests.m4: The help message generated by configure
17188         implied that valgrind was disabled by default, which it wasn't.
17189         Adjusted the help message using s/enable/disable/ to clarify.
17191 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17193         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17194         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17195         first double of a PowerPC "double double" pair.
17196         * tests/test-isinf.c (test_isinfl): Likewise.
17197         * tests/test-isnan.c (test_long_double): Likewise.
17198         * tests/test-isnanl.h (main): Likewise.
17199         * tests/test-signbit.c (test_signbitl): Likewise.
17201 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17203         exclude-tests: port to AIX 7.1
17204         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17205         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17206         the regex code uses locks.
17208 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17210         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17211         Without this fix, Emacs would sometimes call sigprocmask instead
17212         of pthread_sigmask, which is a no-no in multithreaded applications.
17213         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17215         Suppress check for pthread_sigmask working without -lpthread if
17216         the application always links with -lpthread.  Do not link with
17217         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17218         * m4/timer_time.m4 (gl_TIMER_TIME):
17219         Require gl_THREADLIB only if it is defined.  Do not append
17220         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17222 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17224         gnulib-tool: wget translations using --no-verbose rather than --quiet
17225         This allows the user to see error messages if any (--quiet hides them)
17226         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17228 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17230         gnulib-tool: adjust translation wget to avoid a https redirection
17231         Context: http://translationproject.org/latest/gnulib redirects to
17232            https://translationproject.org/latest/gnulib/
17233         Rationale: if the user falls back to wget, she doesn't have rsync and
17234         is probably in a minimal build environment, where packages such as
17235         'ca-certificates' are missing as well, resulting in a failed (and
17236         difficult to detect since ignored) translation initial fetch.
17237         Consequently let's avoid https if possible, and add the missing
17238         trailing slash.  This also avoids an unnecessary 302 redirection.
17239         * gnulib-tool: Add trailing slash to gnulib URL.
17241 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17243         getlogin_r-tests: check return value rather than errno
17244         * tests/test-getlogin_r.c (main): As per POSIX we should be
17245         verifying the return value from getlogin_r() rather than errno.
17247 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17249         getlogin_r-tests: fix various issues in recent change
17250         * tests/test-getlogin_r.c: Include required headers that were
17251         missed in recent commit eec20b4e.
17252         Also consistently check the errno rather than the return value from
17253         getlogin_r as POSIX only specifies that non zero is returned on error.
17254         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17256 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17258         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17259         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17260         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17261         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17262         * lib/spawn-pipe.c:
17263         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17264         and then 'int open64(const char *, int, ...);', which means the
17265         declaration for 'open' gets lost if we later '#undef open'.
17266         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17267         where the compilation reported the non-fatal error "In function
17268         'openat_proc_name' ... warning: implicit declaration of function
17269         'open'".  In this case the error is relatively harmless, but in
17270         other cases it might not be so minor.
17272 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17274         xalloc: don't potentially generate invalid code for xmemdup calls
17275         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17276         this function can initialize the newly-allocated storage with new
17277         pointers, which means this function is not malloc-like.  See:
17278         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17280 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17282         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17283         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17284         changes from commit 97249cf29 to not depend on environment variables.
17286 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17288         getlogin-tests: avoid false failure under cron
17289         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17290         since that's not what's under test.  Centos 6 was seen to return
17291         EINVAL for ttyname() when run from cron.
17293 2014-05-16  Jim Meyering  <meyering@fb.com>
17295         mbrtowc.m4: fix a comment typo
17296         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17297         emitted documentation string.
17299 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17301         mbrlen, mbrtowc: fix bug with empty input
17302         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17303         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17304         so this is mainly for documentation.
17305         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17306         (gl_FUNC_MBRTOWC): Use it.
17307         * tests/test-mbrtowc.c (main): Test for the bug.
17309 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17311         doc: document mbrtowc and mbrlen problem with empty input
17312         * doc/posix-functions/mbrlen.texi (mbrlen):
17313         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17314         Document portability problem when the input string is empty.  See:
17315         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17317         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17318         Problem reported by Eli Zaretskii in:
17319         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17320         * doc/posix-functions/execl.texi (execl):
17321         * doc/posix-functions/execle.texi (execle):
17322         * doc/posix-functions/execlp.texi (execlp):
17323         * doc/posix-functions/execv.texi (execv):
17324         * doc/posix-functions/execve.texi (execve):
17325         * doc/posix-functions/execvp.texi (execvp):
17326         Mention spawn+exit problem on non-Cygwin Windows platforms.
17328 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17330         getlogin-tests: avoid false failure under sudo/ssh etc.
17331         * modules/getlogin-tests (configure.ac): Check for ttyname().
17332         * tests/test-getlogin.c (main): Don't depend on environment variables
17333         to correlate with getlogin(), since sudo and ssh etc. can tamper
17334         with the LOGNAME and USER env vars.  Instead lookup the name from
17335         the uid associated with the stdin tty.
17337 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17339         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17340         These were found when building the latest grep snapshot on IRIX 6.5.
17341         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17342         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17343         never used later.
17344         * lib/quotearg.c (quoting_options_from_style):
17345         * lib/xstrtol.c (__xstrtol):
17346         Use enum instead of 0, to pacify IRIX 6.5 cc.
17348 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17350         gitlog-to-changelog: revert inclusion of git-log-fix file
17351         * build-aux/git-log-fix: Delete dummy file.
17352         * modules/gitlog-to-changelog: Don't reference (overwrite)
17353         the project specific git-log-fix file.
17355 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17357         maint.mk: Relax the copyright check to cater for non FSF projects
17358         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17359         to not require the "Free" suffix after the copyright years.
17361 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17363         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17364         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17365         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17366         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17367         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17369 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17371         exclude: port to strict C99
17372         Strict C does not allow converting a function pointer to void *
17373         and vice versa.  Pass a pointer to a function pointer instead.
17374         * lib/exclude.c (add_exclude_file):
17375         Pass the address of the function pointer.
17376         (call_addfn): And deference the address here, to match.
17378 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17380         regex: do not depend on malloc-gnu
17381         * modules/regex (Depends-on): Remove malloc-gnu.
17382         It's no longer needed, because of the 2012-12-29 patch
17383         "regex: port to hosts where malloc (0) == NULL".
17384         Reported by Nathan Kennedy in:
17385         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17387 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17389         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17390         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17391         * doc/posix-functions/expl.texi: Mention the workaround.
17393 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17395         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17396         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17397         size to be zero even when the pointer is nonnull.  This
17398         accommodates the use case where P is malloc (0) and *PN is 0 on a
17399         host where malloc (0) yields nonnull.
17401 2014-04-09  Eric Blake  <eblake@redhat.com>
17403         fts: avoid unnecessary strlen calls
17404         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17406 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17408         fts: avoid unnecessary strlen calls
17409         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17410         when that can be faster than strlen.
17412 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17414         fts: avoid unnecessary strlen calls
17415         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17416         (fts_build): Store the length of the dp->d_name entry in a local variable
17417         instead of calling strlen() several times via the above, removed macro.
17418         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17419         run by ~4%, yet this reduces the execution time by about a third if run
17420         via "ltrace -c rm -rf some-dir".
17422 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17424         obstack: Remove ancient NeXTSTEP gcc support conditional
17425         This change will ease merging with glibc.  The "#if ... __NEXT__"
17426         causes a warning with -Wundef which glibc now enables by default.
17427         Problem reported by Will Newton in
17428         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17429         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17430         so go with that.
17431         * lib/obstack.h (__extension__):
17433 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17435         obstack: merge with glibc changes
17436         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17437         This is mostly indenting and commentary changes.
17438         Instances of 'register' have been removed.
17440 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17442         strftime: wrap macros in "do {...} while(0)"
17443         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17444         this macro in "do {...} while(0)" to prevent false use as a
17445         single statement, e.g., in an un-braced "{}" else-block.
17446         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17447         (strftime_case_): Remove 'else' after 'goto' - which was the
17448         only non-fatal, un-braced use of one of the above macros.
17449         Spotted by coverity (NESTING_INDENT_MISMATCH).
17451 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17453         modechange: avoid memory leaks for invalid octal modes
17454         * lib/modechange.c (mode_compile): During the parsing of
17455         notations like +40, free the 'mc' buffer for invalid mode
17456         strings like +17777 (greater than the maximum octal mode),
17457         =18 (bad octal mode characters) or u=1 ('affected' with
17458         octal modes).
17459         Reproducer, e.g.:
17460             $ valgrind --leak-check=full chmod +17777 file
17461         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17462         add notations +40, 00440, etc.".
17463         Spotted by coverity (RESOURCE_LEAK).
17465 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17467         gitlog-to-changelog: include a dummy git-log-fix file
17468         Problem reported by Nathan Stratton Treadway in:
17469         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17470         * build-aux/git-log-fix: New file.
17472 2014-03-13  Jim Meyering  <meyering@fb.com>
17474         gitlog-to-changelog: also include the file, git-log-fix
17475         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17476         Reported by Assaf Gordon.
17478 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17480         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17481         This fixes a bug when ignoring case and when comparing the
17482         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17483         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17484         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17485         titlecase letter is neither lowercase nor uppercase, but
17486         uppercasing the titlecase letter (via towupper) yields the
17487         uppercase letter, so the two letters should match when ignoring case.
17488         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17489         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17490         Don't test whether a character is lowercase before uppercasing it.
17492 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17494         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17495         This is basically one of the options Bruno Haible proposed in:
17496         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17497         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17498         * lib/stdint.in.h: Use it.
17499         * modules/stdint (Depends-on): Add sys_types.
17501 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17503         parse-datetime: fix crash or infloop in TZ="" parsing
17504         * lib/parse-datetime.y (parse_datetime): Break out of the
17505         TZ="" parsing loop once the second significant " is found.
17506         Also skip over any subsequent whitespace to be consistent
17507         with the non TZ= case.
17508         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17510 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17512         savedir: new symbol for fast-read version
17513         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17514         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17515         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17516         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17518 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17520         unistd: port readlink to Mac OS X 10.3.9
17521         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17522         around self-include problem in Mac OS X 10.3.9 when combined with
17523         readlink module.  Problem reported by Klaus Zietler in
17524         <http://bugs.gnu.org/16825>.
17526 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17528         diffseq: remove TOO_EXPENSIVE heuristic
17529         Problem with diffutils reported by Vincent Lefevre in
17530         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17531         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17532         Although appropriate for circa-1993 hardware, these days the heuristic
17533         seems to be more trouble than it's worth.
17534         * lib/diffseq.h: Modernize citations.
17535         (struct context): Remove member too_expensive.
17536         All uses changed.
17537         (struct partition): Remove members lo_minimal, hi_minimal.
17538         All uses changed.
17539         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17540         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17541         1993 to make 'diff' run faster (but not as well) on large inputs.
17542         These days, computers are fast enough that it's typically better
17543         to run slower but more accurately.
17544         * lib/fstrcmp.c: Remove duplicate comment.
17545         * lib/fstrcmp.c (strcmp_bounded):
17546         * lib/git-merge-changelog.c (compute_differences):
17547         Adjust to diffseq.h changes.
17548         * NEWS: Document the change.
17550         savedir: simplify by using stpcpy
17551         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17552         (streamsavedir): Use stpcpy instead.
17553         * modules/savedir (Depends-on): Add stpcpy.
17555 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17557         spawn: fix link error on uclibc
17558         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17559         to incorporate -lrt if needed (on uclibc for example).
17560         * modules/posix_spawn: Reference the substituted LIB.
17562 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17563         timer: fix uClibc detection of threading
17564         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17565         enabled in uClibc.
17567 2014-02-21  Eric Blake  <eblake@redhat.com>
17569         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17570         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17572 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17574         exclude: add support for posix regexps
17576         This commit adds support for POSIX extended regular expressions
17577         and fixes a long-standing memory leak (pattern buffer was never
17578         freed).  It also implements a new interface function to read
17579         exclude patterns from a FILE, which passes an additional parameter
17580         to its callback function, thereby allowing to preserve its state
17581         between invocations.
17583         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17584         (pattern_buffer): New struct.
17585         (exclude): New member patbuf.
17586         (exclude_add_pattern_buffer): New function.
17587         (free_exclude_segment): Free regexps.
17588         (free_exclude): Free allocated pattern buffers.
17589         (exclude_patopts): New function.
17590         (file_pattern_matches): Use exclude_patopts.
17591         (add_exclude): support regexps.
17592         (add_exclude_fp): New function.
17593         (add_exclude_file): Rewrite using add_exclude_fp.
17594         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17595         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17596         (add_exclude_fp)
17597         (add_exclude_file): Rewrite using add_exclude_fp.
17598         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17599         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17600         (add_exclude_fp)
17601         (exclude_add_pattern_buffer): New prototypes.
17602         * modules/exclude: Depends on regex and filename.
17604 2014-02-20  Eric Blake  <eblake@redhat.com>
17606         maintainer-makefiles: use $(SED) for syntax check
17607         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17608         * top/maint.mk: Change sed to $(SED).
17610 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17611             Paul Eggert  <eggert@cs.ucla.edu>
17613         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17614         Patch based on an idea by Dick Streefland in
17615         <https://savannah.gnu.org/patch/?7892>.
17616         * NEWS: Document this.
17617         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17618         (direntry_t, comparison_function): New types.
17619         (direntry_cmp_name): New function.
17620         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17621         (streamsavedir, savedir): New arg OPTION.
17622         (streamsavedir): Simplify memory allocation.
17623         (fdsavedir): Remove.
17624         * lib/savedir.h (enum savedir_option): New type.
17625         (streamsavedir, savedir): New arg OPTION.
17626         (fdsavedir): Remove.
17628 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17630         file-type: add support for doors and other less-common file types
17631         Problem with S_ISDOOR reported by Rich Burridge.
17632         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17633         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17634         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17636 2014-01-23  Eric Blake  <eblake@redhat.com>
17638         pthread: work around winpthread header pollution on mingw
17639         * lib/time.in.h: Move pthread workarounds...
17640         * lib/pthread.in.h: ...here.
17641         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17642         detect macro pollution on mingw.
17643         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17645 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17647         qacl: check for fchmod
17648         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17649         and qset-acl.c both use HAVE_FCHMOD.
17651 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17653         fdopen-tests: port to Tru64
17654         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17655         descriptor that is not open, as POSIX doesn't specify the
17656         resulting behavior and the test does not work on Tru64.
17657         Problem reported by Steven M. Schweda in:
17658         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17660         stdalign: port to HP-UX compilers
17661         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17662         if __HP_cc or __HP_aCC are nonzero.
17664 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17666         strtoimax: port to platforms lacking 'long long'
17667         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17668         check whether strtoll is declared, which causes the C file to
17669         wrongly report an error.  Problem reported by Steven M. Schweda in:
17670         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17671         * lib/strtoimax.c (strtoull):
17672         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17673         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17675 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17677         relocatable-perl: fix texi syntax
17678         * doc/relocatable-maint.texi: Escape braces.
17680 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17682         relocatable-perl: like relocatable-script, but for Perl scripts
17683         * build-aux/relocatable.pl.in: Add.
17684         * doc/relocatable-maint.texi: Add documentation.
17685         * modules/relocatable-perl: Add.
17687 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17689         tests: fix export bug in previous patch
17690         Problem reported by Jim Meyering.
17691         * tests/init.sh (re_shell): New var, which is exported instead of
17692         re_shell_.
17694         tests: simplify porting to Solaris 10 /bin/sh
17695         Some test cases in 'grep' need a shell that groks '$(';
17696         export re_shell_ for their benefit.  Problem reported for 'grep'
17697         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17698         * tests/init.sh (re_shell_): Export if it's used.
17700 2014-01-06  Eric Blake  <eblake@redhat.com>
17702         md5, sha1, sha256, sha512: support older autoconf
17703         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17704         for autoconf < 2.63b.
17706         include_next: port to autoconf 2.63
17707         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17709 2014-01-04  Jim Meyering  <meyering@fb.com>
17711         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17712         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17713         so that "make sc_maint" will ding anyone who puts non-ascii
17714         in any of gnulib's .texi files.
17716 2014-01-03  Jim Meyering  <meyering@fb.com>
17718         freadable, fwritable, fwriting: declare with the "pure" attribute
17719         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17720         * lib/fwritable.h (fwritable): Likewise.
17721         * lib/fwriting.h (fwriting): Likewise.
17722         Suggested by Bruno Haible.
17724         maint.mk: adapt openat.h-include-without-use test
17725         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17726         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17727         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17728         With this change, running "make sc_maint" in gnulib's top-level
17729         directory now passes for me.
17731 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17733         doc: use ASCII in .texi files where UTF-8 isn't needed
17734         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17735         * doc/posix-functions/setkey.texi, doc/regex.texi:
17736         Use ASCII input, not UTF-8.
17738 2014-01-02  Jim Meyering  <meyering@fb.com>
17740         freading: declare with the "pure" attribute
17741         * lib/freading.h (freading): Declare with the "pure" attribute.
17743         manywarnings: remove -Wmudflap
17744         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17745         it is no longer supported in gcc-4.9-to-be.
17747 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17749         relocatable-script: remove unused code
17750         Problem reported by Reuben Thomas in:
17751         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17752         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17754 2014-01-01  Jim Meyering  <meyering@fb.com>
17756         maint: fix public-submodule-commit to work with newer git
17757         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17758         We were over-quoting the test arguments, and somewhere prior to
17759         version 1.8.5.2.229, git stopped removing those excess quotes,
17760         which made the test fail, since the unexpanded strings would
17761         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17762         command wasn't even being run.
17764 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17766         doc: update main copyright year
17767         * doc/gnulib.texi: Update copyright date.
17769 2014-01-01  Eric Blake  <eblake@redhat.com>
17771         version-etc: new year
17772         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17773         * all files: run 'make update-copyright'
17775 2013-12-24  Eric Blake  <eblake@redhat.com>
17777         passfd: give nicer error for recvfd at eof
17778         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17779         * tests/test-passfd.c (main): Enhance test to cover this.
17781 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17783         gettimeofday: port recent C++ fix to Emacs
17784         Without this further patch, Emacs won't build due to
17785         the portcheck failing.  Also, this simplifies the patch a bit.
17786         * lib/time.in.h (localtime, gmtime): Don't replace unless
17787         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17788         * lib/time.in.h (localtime, gmtime):
17789         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17790         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17791         * modules/time (time.h):
17792         Don't worry about the possibility of localtime and gmtime
17793         being absent; they're present in all C libraries we know about.
17794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17795         Don't assume sys_time is present and has been initialized.
17796         Instead, use a hack that should work even if it hasn't been.
17797         Don't use a portcheck for gmtime or localtime; this supports
17798         the hack.
17799         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17801 2013-12-17  John W. Eaton  <jwe@gnu.org>
17803         gettimeofday: fix C++ crosscompilation
17805         Never replace gmtime and localtime by macros when compiling with
17806         C++, this prevents <ctime> from being included.
17808         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17809         define gmtime and localtime as preprocessor macros.  Instead
17810         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17811         REPLACE_LOCALTIME substitutions.
17812         * lib/time.in.h: Declare gmtime and localtime when needed.
17813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17814         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17815         * modules/time: Depend on gettimeofday, and substitute the above
17816         variables in time.h.
17818 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17820         qacl: port to Windows better
17821         See Eli Zaretskii in
17822         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17823         * lib/file-has-acl.c (acl_access_nontrivial):
17824         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17825         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17827 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17829         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17830         * lib/gl_openssl.h: Cast void pointers to a specific type.
17832 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17834         open-tests: fix build failure with -Werror=old-style-declaration
17835         * tests/test-open.h: Reorder the inline to avoid the issue.
17837 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17839         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17840         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17841         init time, so that if early checks find crypto routines,
17842         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17843         avoiding link failures.
17845 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17847         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17848         This provides a new way to specify the default for
17849         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17850         Emacs uses this, as well as the old way.
17851         This attempts to implement a suggestion by Pádraig Brady in
17852         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17853         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17854         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17856         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17857         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17858         Add support for a new option, --with-openssl=auto, which causes
17859         the library to be used if available and silently ignored if not.
17860         Add support to allow configure.ac to specify its own
17861         default, by setting with_openssl_default before invoking gl_INIT.
17863 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17865         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17866         Problem reported by Daiki Ueno in:
17867         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17868         * tests/test-open.h (__always_inline):
17869         New macro, if not already defined.
17870         (test_open): Use it.
17872 2013-12-04  Eric Blake  <eblake@redhat.com>
17874         include_next: minimize code duplication
17875         * modules/include_next (Depends-on): Add absolute-header.
17876         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17877         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17879 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17881         getcwd: fix compile error in configure check
17882         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17884 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17886         regex: suppress core dumps from detection code
17887         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17888         to suppress core dumps that may well occur on glibc systems.
17889         These core dumps might not be cleaned up automatically, or could
17890         trigger some system core dump handling logic.
17892 2013-12-03  Pádraig Brady  <P@draigBrady.com>
17894         md5, sha1, sha256, sha512: support mandating use of openssl
17895         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
17896         description, to list the now 3 separate options.  also don't
17897         mention the default=no, since this is implicit given the option
17898         is described as --with-openssl rather than --without-openssl.
17899         If projects change the default they're free to document that.
17900         with --with-openssl[=yes] we now error out when the specified
17901         hash algorithm is not available in libcrypto.
17903 2013-12-03  Ivailo  <xakepa10@gmail.com>
17905         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
17906         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
17907         -Wformat-nonliteral checks, as these edge cases are part of the test.
17909 2013-12-03  Eric Blake  <eblake@redhat.com>
17911         regex: avoid glibc deadlock during configure
17912         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
17913         glibc bug 15078 in turn triggers bug 16159.
17914         Reported by Michal Privoznik.
17916 2013-12-02  Pádraig Brady  <P@draigBrady.com>
17918         md5, sha1, sha256, sha512: use openssl routines if available.
17919         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
17920         routines will be used if available, requiring apps to link @LIB_CRYPTO@
17921         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
17922         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
17923         in the standard system location.
17924         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
17925         * m4/sha256.m4: Likewise with SHA256.
17926         * m4/sha512.m4: Likewise with SHA512.
17927         * m4/md5.m4: Likewise with MD5.
17928         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
17929         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
17930         * lib/sha256.h: Likewise with SHA256.
17931         * lib/sha512.h: Likewise with SHA512.
17932         * lib/md5.h: Likewise with MD5.
17933         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
17934         * lib/sha256.c: Likewise with SHA256.
17935         * lib/sha512.c: Likewise with SHA512.
17936         * lib/md5.c: Likewise with MD5.
17937         * modules/crypto/sha1 (Link:): Add the new optional lib.
17938         (Depends-on:): Add dependency on extern-inline.
17939         * modules/crypto/sha256: Likewise.
17940         * modules/crypto/sha512: Likewise.
17941         * modules/crypto/md5: Likewise.
17942         * modules/crypto/sha1-tests: Reference the lib here too.
17943         * modules/crypto/md5-tests: Likewise.
17944         * modules/crypto/gc-des-tests: Likewise.
17945         * modules/crypto/gc-hmac-md5-tests: Likewise.
17946         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17947         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17948         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17949         * modules/crypto/gc-md5-tests: Likewise.
17950         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17951         * modules/crypto/gc-sha1-tests: Likewise.
17952         * modules/crypto/gc-tests: Likewise.
17953         * modules/crypto/hmac-md5-tests: Likewise.
17954         * modules/crypto/hmac-sha1-tests: Likewise.
17955         * modules/crypto/hmac-sha256-tests: Likewise.
17956         * modules/crypto/hmac-sha512-tests: Likewise.
17958 2013-11-29  RV1971  <rv1971@web.de>
17960         base64: (trivial) fix compilation regression on some compilers
17961         * lib/base64.c: Don't return the void function,
17962         instead split to a separate return statement.
17964 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17966         ignore-value: revert previous code change
17967         * lib/ignore-value.h (ignore_value): Use __extension__ and
17968         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
17969         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
17970         Change the comment to try to explain this better.
17972 2013-11-27  Pádraig Brady  <P@draigBrady.com>
17974         selinux-h: improve stub types and add more stub functions
17976         * lib/se-selinux.in.h: Change security_context_t to a typedef
17977         rather than a define, as it's a pointer type and so is better
17978         as a typedef to avoid issues declaring multiple variables
17979         with the comma operator.  Also add stub for string_to_security_class().
17980         * lib/se-context.in.h: Add stub functions for
17981         context_{type,range,role,user}_get().
17983 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17985         ignore-value: prefer GCC version back through 2.0
17986         The code didn't match the comments, so I did a bit of software
17987         archaeology.  GCC 2.0 seems to support __extension__ and
17988         __typeof__, so fix both code and comments to use 2.0.
17989         * lib/ignore-value.h (ignore_value): Use __extension__ and
17990         __typeof__ for GCC 2.0 through 3.3, too.
17992 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
17994         pty: Activate the signature wrapper of forkpty.
17995         The intended preprocessor macro HAVE_FORKPTY is
17996         never defined, yet `lib/forkpty.c' depends on it.
17998         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17999         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18000         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18002 2013-11-18  Jim Meyering  <meyering@fb.com>
18003         and Paul Eggert  <eggert@cs.ucla.edu>
18005         quotearg: don't attempt to store 1 << 31 into an "int"
18006         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18007         gcc's new -fsanitize=undefined and running its tests triggered some
18008         new test failures due to undefined behavior, all with this diagnostic:
18009           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18010             cannot be represented in type int
18011         Rather than shifting "1" left to form a mask, shift the bits right and
18012         simply use "1" as the mask.
18014 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18016         error: depend on stdio
18017         Problem reported by Nikos Mavrogiannopoulos in
18018         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18019         * modules/error (Depends-on): Add stdio.
18021 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18023         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18024         wording.
18025         Reported by Reuben Thomas <rrt@sc3d.org>.
18027 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18029         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18030         New function and macro, to work around _DARWIN_C_SOURCE problem.
18031         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18033 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18035         base64: provide a fast path for encoding well sized buffers
18036         Avoid conditionals in the base64 encoding loop,
18037         which was seen to give 60% better throughput.
18038         * lib/base64.c (base64_encode_fast): A new function to be called
18039         when we don't want to NUL terminate, and we have enough space
18040         in the output to encode the given input.
18041         (base64_encode): Call the _fast() version when appropriate.
18042         Also remove a redundant mask with 0x3F on the first encoded byte.
18044 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18046         extern-inline: port better to OS X 10.9
18047         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18048         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18049         OS X 10.9, except for g++ where the bug is still present.
18050         See <http://trac.macports.org/ticket/41033>.
18052 2013-11-08  Eric Blake  <eblake@redhat.com>
18054         fpending: fix regression on DragonFly BSD
18055         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18056         * lib/fpending.h (__fpending): Don't declare twice.
18057         Reported by GW in
18058         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18060 2013-11-05  Jim Meyering  <meyering@fb.com>
18062         hash: relax license to LGPLv2+, for libguestfs
18063         * modules/hash (License): Change from GPL to LGPLv2+.
18065 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18067         intprops: port to Oracle Studio c99
18068         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18069         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18071 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18073         obstack: pacify HP C
18074         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18075         warning "conversion from pointer to smaller integer" from HP
18076         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18077         C89 or later nowadays, so cast to void instead of int.  Privately
18078         reported by H.Merijn Brand.  Also, change header to match glibc's,
18079         to make checking against glibc easier.
18081 2013-10-29  Jim Meyering  <meyering@fb.com>
18083         maint.mk: prefer gpgv2 over gpgv
18084         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18085         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18086         Reported by Gary Vaughan.
18088 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18090         isnan: port to VAX
18091         Reported by John Klos for NetBSD-5/VAX in
18092         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18093         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18094         (FUNC): Use it.
18096 2013-10-28  Jim Meyering  <meyering@fb.com>
18098         gnulib-tool: protect against CDPATH
18099         * gnulib-tool: Many "cd" built-in functions print a directory name
18100         to stdout when CDPATH is set, e.g.,
18101           $ bash -c 'CDPATH=/; cd tmp'
18102           /tmp
18103         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18105         maint.mk: restore functionality removed by recent change...
18106         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18107         the context of a shallow-cloned gnulib repository: "git describe"
18108         would fail in such a directory.  However, that change made it so
18109         the reported gnulib revision no longer includes the version number
18110         or a commit count, even when run from a full clone.
18111         * top/maint.mk (gnulib-version): Use the full "git describe"
18112         output when possible, e.g., the form above, rather than the
18113         abbreviated, no-tag, no-commit-count string, and fall back to
18114         using a 10-byte hash, rather than the default minimal-length
18115         hash prefix, since while the minimal-length one may be fine today,
18116         it is likely not to be unique for very long.
18118 2013-10-26  Jim Meyering  <meyering@fb.com>
18120         maint.mk: fix "release" target to build _version
18121         This fixes a bug in README-release whereby following the outlined
18122         steps, one would publish a tarball whose programs would report
18123         --version output not consistent with the package version number.
18124         This bug caused grep-2.15 to produce a grep program whose
18125         --version option made it print 2.14.56-1e3d rather than 2.15.
18126         * top/maint.mk (release): Making this target build "_version"
18127         ensures that the new version number is reflected in configure.
18129 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18131         install-reloc: Support multi-binary installation.
18132         * build-aux/install-reloc: Support installing multiple programs in
18133         one invocation, as done by Automake starting with commit
18134         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18135         Haible <bruno@clisp.org>, archived at
18136         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18137         Reported by Sylvain <beuc@gnu.org>.
18139 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18141         selinux-h: Really build without selinux when library is missing.
18142         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18143         continue without selinux, as already told in the warning message.
18145 2013-10-21  Jim Meyering  <meyering@fb.com>
18147         regex: also remove dependency on HAVE_WCSCOLL
18148         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18150 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18152         xfreopen: Fix typo. s/frepoen/freopen/
18153         * lib/xfreopen.c: Fix description.
18154         * modules/xfreopen: Likewise.
18156 2013-10-21  Jim Meyering  <meyering@fb.com>
18158         regex: don't depend on wcscoll
18159         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18160         It is no longer used.
18162 2013-10-20  Jim Meyering  <meyering@fb.com>
18164         error: add the printf attribute to a static function
18165         * lib/error.c (error_tail): Add the printf attribute, to placate
18166         gcc's -Werror=suggest-attribute=format option.
18168 2013-09-30  Jim Meyering  <meyering@fb.com>
18170         fpending, obstack, strerror-override: use pure+const function attrs
18171         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18172         * lib/obstack.c (_obstack_allocated_p): Likewise.
18173         * lib/obstack.h (_obstack_memory_used): Likewise.
18174         (_obstack_memory_used): Likewise.
18175         * lib/strerror-override.h (strerror_override): Declare with
18176         the "const" attribute.
18178 2013-10-18  Eric Blake  <eblake@redhat.com>
18180         extern-inline: make safe for -Wundef usage
18181         Reported by Vladimir 'phcoder' Serbinenko in
18182         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18183         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18185 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18187         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18188         Problem reported by Daniel Richard G. in
18189         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18190         * doc/posix-functions/mkfifo.texi (mkfifo):
18191         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18192         * doc/posix-functions/mknod.texi (mknod):
18193         * doc/posix-functions/mknodat.texi (mknodat):
18194         Document the HP-UX 11.11 bug.
18195         * tests/test-mkfifo.h (test_mkfifo):
18196         Allow the HP-UX 11.11 bug.
18198 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18200         acl: allow cross-compilation to Gentoo
18201         Problem reported by Gabriel Marcano in
18202         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18203         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18204         test only whether it links.
18206 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18208         mgetgroups: remove dependency on realloc-gnu
18209         The dependency violates the comment in realloc-gnu, which
18210         says that tests can't depend on realloc-gnu; some tests depend
18211         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18212         Problem reported by Daniel Richard G. in
18213         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18214         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18215         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18216         not realloc-gnu.
18218 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18220         regex-tests: port to HP-UX 11.11
18221         Problem reported by Daniel Richard G. in
18222         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18223         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18225 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18227         verify: document some 'assume' pitfalls
18228         * doc/verify.texi (Compile-time Assertions):
18229         Mention that 'assume (E)' can sometimes slow things down.
18230         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18232 2013-10-10  Eric Blake  <eblake@redhat.com>
18234         strtoumax: fix typo in previous commit.
18235         * modules/strtoumax (Depends-on): Fix typo.
18236         * modules/strtoimax (Depends-on): Likewise.
18238 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18240         strtoumax: port to Solaris 8
18241         This problem was introduced in the recent HP-UX patch.
18242         Reported by Tom G. Christensen in
18243         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18244         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18245         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18247 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18249         strtoimax, strtoumax: port to HP-UX 11.11
18250         Problem reported by Daniel Richard G. in
18251         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18252         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18253         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18254         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18255         REPLACE_STRTOUMAX.
18256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18257         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18258         Replace the function if defined as a macro but not as a function.
18259         * modules/inttypes-incomplete (inttypes.h): Substitute
18260         REPLACE_STRTOUMAX.
18261         * modules/strtoumax (configure.ac): Replace strtoumax if
18262         REPLACE_STRTOUMAX.
18264 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18266         strtoimax: port to HP-UX 11.11
18267         Problem reported by Daniel Richard G.
18268         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18269         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18270         they might clash with inttypes.h.
18272 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18274         New module 'count-trailing-zeros'.
18275         * MODULES.html.sh: Mention it.
18276         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18277         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18278         * modules/count-trailing-zeros-tests:
18279         * tests/test-count-trailing-zeros.c:
18280         New files.
18282         count-leading-zeros: port to MSC; support types wider than 64 bits
18283         The ideas behind the MSC port are stolen from Emacs.
18284         * lib/count-leading-zeros.h:
18285         Don't include verify.h: it's no longer needed, as types wider than
18286         64 bits are now supported.
18287         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18288         performance with MSC.  All uses changed.  Do not assume that TYPE
18289         has at most 64 bits.
18290         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18291         All uses changed.  Fold the subtraction from 31 into the table.
18293         count-one-bits: port to MSC; support types wider than 64 bits
18294         The ideas behind the MSC port are stolen from Emacs.
18295         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18296         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18297         Don't include verify.h: it's no longer needed, as types wider than
18298         64 bits are now supported.
18299         (COUNT_ONE_BITS_GENERIC): New macro.
18300         (popcount_supported) [_MSC_VER]: New inline function.
18301         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18302         performance with MSC.  All uses changed.  Do not assume that TYPE
18303         has at most 64 bits.
18304         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18306 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18308         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18309         * lib/mountlist.c (read_file_system_list): fix leak of directory
18310         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18312 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18314         tests: improve diagnostic when an assertion fails
18315         * tests/macros.h (ASSERT): Report the assertion that failed.
18317 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18319         verify: new macro 'assume'
18320         This is taken from Emacs, and should be generally useful.
18321         * doc/verify.texi (assume): Document it.
18322         * lib/verify.h (assume): New macro.
18323         (__has_builtin): Expand to 0 if not defined.
18325 2013-09-26  Eric Blake  <eblake@redhat.com>
18327         dup2, dup3: work around another cygwin crasher
18328         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18329         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18330         * tests/test-dup2.c (main): Likewise.
18331         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18332         * lib/dup3.c (dup3): Likewise.
18333         * doc/posix-functions/dup2.texi (dup2): Document it.
18334         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18336         getdtablesize: work around cygwin issue
18337         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18338         * modules/getdtablesize (configure.ac): Build replacement.
18339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18340         * modules/unistd (Makefile.am): Expose the witness.
18341         * lib/unistd.in.h (getdtablesize): Declare replacement.
18342         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18343         * tests/test-getdtablesize.c (main): Test it.
18344         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18346 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18348         pmccabe2html: escaping of special characters
18349         Escape all '<', '>', and '&' in HTML output.
18350         * build-aux/pmccabe2html (html_fnc): Call gsub()
18351         instead of sub() to capture all '<', '>', and '&'.
18352         Neither of '<' and '>' is special in a regexp,
18353         so first arguments to gsub() are corrected. Also,
18354         in replacement strings, ampersand must be escaped.
18355         Finally, '&' must be handled first, then '<' and '>'.
18357 2013-09-24  Eric Blake  <eblake@redhat.com>
18359         manywarnings: enable nicer gcc warning messages
18360         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18361         some -f options for optimal warnings.
18363 2013-09-21  Jim Meyering  <meyering@fb.com>
18365         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18366         * lib/timespec-add.c (timespec_add): Also replace 999999999
18367         with TIMESPEC_RESOLUTION - 1.
18368         * lib/timespec-sub.c (timespec_sub): Likewise.
18370 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18372         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18373         Problem reported by Dagobert Michelsen via Eric Blake in
18374         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18375         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18376         not AC_COMPILE_IFELSE.
18378 2013-09-23  Eric Blake  <eblake@redhat.com>
18380         configmake: support new --runstatedir option
18381         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18382         even if autoconf was too old to provide the command line option.
18383         * modules/configmake (Makefile.am): Propagate it to .h file.
18385 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18387         ctype, string: depend on extern-inline
18388         This is needed to complete the recent OS X fixes.
18389         Also, fix related documentation as suggested by Eric Blake.
18390         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18391         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18392         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18393         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18394         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18395         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18396         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18397         * doc/posix-functions/toupper.texi:
18398         List the 'ctype' gnulib module.
18399         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18400         * doc/posix-functions/strncpy.texi:
18401         List the 'string' gnulib module.
18402         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18403         Add string.
18404         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18406 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18408         userspec: support optional parameters to parse_user_spec()
18409         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18410         then avoid group processing and treat the full spec as a user.
18411         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18412         be optional params (NULL), in which case they're ignored.
18414 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18416         timespec: new function make_timespec, and new constants
18417         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18418         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18419         (make_timespec): New function.
18420         * lib/dtotimespec.c (dtotimespec):
18421         * lib/timespec-add.c (timespec_add):
18422         * lib/timespec-sub.c (timespec_sub):
18423         * lib/utimens.c (validate_timespec):
18424         * lib/utimensat.c (rpl_utimensat):
18425         Use these new constants and functions.
18427         stdio: OS X port of putc_unlocked + extern inline
18428         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18429         * doc/posix-functions/putc_unlocked.texi:
18430         * doc/posix-functions/putchar_unlocked.texi:
18431         Document this portability problem.
18433         signal: OS X port of sigaddset etc. + extern inline
18434         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18435         (sigismember): #undef on problematic Apple platforms.
18436         * doc/posix-functions/sigaddset.texi:
18437         * doc/posix-functions/sigdelset.texi:
18438         * doc/posix-functions/sigemptyset.texi:
18439         * doc/posix-functions/sigfillset.texi:
18440         * doc/posix-functions/sigismember.texi:
18441         Document this portability problem.
18443         extern-inline: do not always suppress extern inline on OS X
18444         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18445         extern inline on Apple only if the particular compile-time
18446         configuration is known to have the problem.
18447         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18448         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18449         other Gnulib modules.
18451         extern-inline: document fixes for ctype and wctype macros
18452         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18453         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18454         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18455         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18456         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18457         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18458         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18459         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18460         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18461         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18462         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18463         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18464         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18465         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18466         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18467         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18468         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18469         * doc/posix-functions/strncpy.texi:
18470         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18471         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18472         Document that Gnulib fixes portability problems with these
18473         functions on OS X 10.8 and earlier when called from plain inline
18474         or extern inline functions.
18476 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18478         fflush, freadahead, fseeko: Fix for Android
18479         Suggested by Bruno Haible in:
18480         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18481         * lib/stdio-impl.h: Use local __sfileext definition.
18483 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18485         pmccabe2html: Portability to other awk versions.
18486         The functions systime() and strftime() are available
18487         in Gawk only.  Properly close two HTML-tags 'style'
18488         and 'span'.
18489         * build-aux/pmccabe2html (BEGIN): Store timing
18490         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18491         systime() in HTML_COMMENT.
18492         (html_header): Correctly close tag 'style'.
18493         (END): Replace strftime() by CHRONOS_TIME.  Close
18494         tag 'span' correctly, not as 'div'.
18496 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18498         getgroups: statement without effect
18499         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18500         Change equality conditional to expected assignment.
18502 2013-09-09  Eric Blake  <eblake@redhat.com>
18504         glob: fix compilation
18505         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18507 2013-09-07  Eric Blake  <eblake@redhat.com>
18509         glob: fix build for platforms without __THROW
18510         * lib/glob.in.h (__THROW): Add definition again.
18512 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18514         regex-quote: fix buffer access out of bounds
18515         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18516         * lib/regex-quote.c (regex_quote_spec_pcre):
18517         Fix typo that resulted in an out-of-bounds read.
18519 2013-09-04  Eric Blake  <eblake@redhat.com>
18521         glob: avoid -Wattribute warnings on glibc
18522         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18523         __THROWNL, not __THROW, on static functions.
18524         * lib/glob.in.h (__THROW): Adjust...
18525         (__THROWNL): ...accordingly.
18527 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18529         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18530         Suggested by Bruce Korb in:
18531         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18532         * doc/extern-inline.texi (extern inline):
18533         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18534         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18535         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18536         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18537         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18538         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18539         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18540         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18541         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18542         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18543         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18544         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18545         * lib/xtime.h:
18546         Check that _GL_INLINE_HEADER_BEGIN is defined.
18548 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18550         bootstrap: remove the --version requirement from ancillary tools
18551         * build-aux/bootstrap (check_exists): A new refactored function to
18552         determine if a command exists.
18553         (find_tool): Use the new function which does not require the
18554         --version option to be supported.
18555         (check_versions): Use the new function.
18557 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18559         gc: support HMAC-SHA256 and HMAC-SHA512.
18560         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18561         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18562         functions.
18563         (gc_hmac_md5): Use symbolic constant.
18564         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18565         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18566         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18567         * m4/sha256.m4: Protect against empty expansion.
18568         * m4/sha512.m4: Likewise.
18569         * lib/hmac-sha256.c: New file.
18570         * lib/hmac-sha512.c: Likewise.
18571         * m4/gc-hmac-sha256.m4: Likewise.
18572         * m4/gc-hmac-sha512.m4: Likewise.
18573         * m4/gc-sha256.m4: Likewise.
18574         * m4/gc-sha512.m4: Likewise.
18575         * modules/crypto/gc-hmac-sha256: Likewise.
18576         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18577         * modules/crypto/gc-hmac-sha512: Likewise.
18578         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18579         * modules/crypto/hmac-sha256: Likewise.
18580         * modules/crypto/hmac-sha256-tests: Likewise.
18581         * modules/crypto/hmac-sha512: Likewise.
18582         * modules/crypto/hmac-sha512-tests: Likewise.
18583         * tests/test-gc-hmac-sha256.c: Likewise.
18584         * tests/test-gc-hmac-sha512.c: Likewise
18585         * tests/test-hmac-sha256.c: Likewise.
18586         * tests/test-hmac-sha512.c: Likewise
18588 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18590         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18591         of AC_CHECK_DECLS.
18593 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18595         selinux-at: omit unnecessary include
18596         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18597         this source file doesn't use its macros, and subsidiary files that
18598         use the macros already include it.
18600 2013-08-21  Eric Blake  <eblake@redhat.com>
18602         d-ino: avoid false negative on symlink
18603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18604         Reported by Stephane Chazelas.
18606 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18608         bootstrap: port to OpenBSD sed
18609         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18610         does not interpret `-' as a file argument to mean stdin.
18612 2013-08-15  Eric Blake  <eblake@redhat.com>
18614         warnings: minor optimization
18615         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18617         warnings: check -Wfoo rather than -Wno-foo
18618         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18619         -Wno-, test if the compiler recognizes the positive form instead.
18621 2013-08-15  Karl Berry  <karl@gnu.org>
18623         * config/srclist-update: add option "doclicense" to placate
18624         pulling *.texi files from Emacs.  Write terse usage
18625         documentation at the top.
18627 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18629         xvasprintf-tests: port to GCC with hardening flags
18630         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18631         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18632         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18634 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18636         fpending: port to recent Cygwin change to stdio_ext.h
18637         Reported by LRN in
18638         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18639         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18640         just declare __fpending unless it's a macro.
18641         A duplicate decl shouldn't hurt.
18642         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18643         call compiles and links, instead of separately checking for
18644         decl and lib function.
18645         * modules/fpending (configure-ac):
18646         Adjust to fpending.m4's renaming of shell variable.
18648 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18650         sys_time: port to OpenBSD
18651         * lib/sys_time.in.h: Simply delegate to the system's header
18652         in the BSDish cases as well.  Problem reported by Mike Miller in
18653         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18654         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18655         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18656         wider than time_t.
18658 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18660         bootstrap: support checksum utils having -c but not --status
18661         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18662         Add sha1 to the list of supported checksum utils since it's now
18663         supported through adjustments below.
18664         (update_po_files): Remove the use of --status
18665         in a way that will suppress all error messages, but since this is
18666         only used to minimize updates, it shouldn't cause an issue.
18667         Exit early if there is a problem updating the po file checksums.
18668         (find_tool): Remove the check for --version support as this
18669         is optional as per commit 86186b17.  Don't even check for the
18670         presence of the command as if that is needed, it's supported
18671         through configuring prerequisites in bootstrap.conf.
18672         Prompt that when a tool isn't found, one can define an environment
18673         variable to add to the hardcoded search list.
18675 2013-08-05  Jim Meyering  <meyering@fb.com>
18677         regex: port to non-glibc/lock-using systems
18678         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18679         system with GNULIB_LOCK would fail due to absence of the
18680         included "glthread/lock.h".  This would affect any package
18681         for which the "lock" module is used only by the regex module,
18682         and not explicitly used.
18683         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18684         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18685         Add a dependency on the "lock" module.
18687 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18689         localecharset: make locale_charset thread-safe on Mac OS X
18690         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18691         instead of MB_CUR_MAX.
18693 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18695         gettext: update to version 0.18.3
18696         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18697         require AC_PROG_SED to allow user to specify custom sed command when
18698         generating en@quot PO file.
18700 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18702         bootstrap: use correct source when copying build-aux files
18703         * build-aux/bootstrap (gnulib_extra_files): This variable is
18704         relative to upstream gnulib layout, not downstream.
18706 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18708         tmpdir: fix bug in VMS port
18709         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18710         See Steven M. Schweda in
18711         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18713 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18715         tmpdir: port to VMS, to // != /, and to long dirs
18716         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18717         __secure_getenv, so that we're more like the glibc version.
18718         All uses changed.
18719         (path_search): Don't put slash after directory if __VMS.
18720         Problem reported by Steven M. Schweda in
18721         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18722         Simplify code to add slash; no need for a loop.
18723         Do not remove trailing slash from "//".
18724         Do not assume dlen <= INT_MAX.
18726 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18728         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18729         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18730         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18731         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18733         accept4, dup3, pipe2: port to Cygwin
18734         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18735         * lib/accept4.c (accept4) [O_BINARY]:
18736         * lib/dup3.c (dup3) [O_BINARY]:
18737         * lib/pipe2.c (pipe2) [O_BINARY]:
18738         Use set_binary_mode, not setmode.
18739         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18740         * modules/binary-io (Depends-on): Remove module indicator.
18741         These last two bits undo the previous change to pipe2 and binary-io.
18743 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18745         mountlist: add support for deallocating returned list entries
18746         * lib/mountlist.c (free_mount_entry): A new exported function
18747         to deallocate a mount list entry.
18748         (read_file_system_list): Refactor to use the new deallocation function.
18749         Suggested by Anton Ovchinnikov.
18751 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18753         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18754         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18755         * lib/stdalign.in.h (_Alignas, _Alignof):
18756         Port to FreeBSD 9.1, and to C11 and C++11.
18757         (_Alignas): Also support ICC.
18758         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18759         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18761 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18763         fnmatch: don't goto over declaration
18764         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18765         undefined behavior for goto over a declaration.
18766         Problem reported by Charlie Brown in
18767         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18769         pipe2: decouple from binary-io a bit
18770         This is for Emacs, which needs pipe2 but not binary-io.
18771         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18772         * modules/binary-io (Depends-on): Add module indicator.
18774 2013-07-03  Eric Blake  <eblake@redhat.com>
18776         mgetgroups: relax license to LGPLv2+
18777         * modules/getugroups (License): Change from GPLv3+.
18778         * modules/mgetgroups (License): Likewise.
18779         * modules/getgroups (License): Change from LGPLv3+.
18781         xalloc-oversized: relax license to LGPLv2+
18782         * modules/xalloc-oversized (License): Change from GPLv3+.
18784         nproc: relax license to LGPLv2+
18785         * modules/nproc (License): Change from LGPLv3+.
18787         bootstrap: honor --no-git
18788         * build-aux/bootstrap: Don't even try to use git when user is
18789         pointing to a static checkout.
18791 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18793         ignore-value: port to gcc -pedantic
18794         * lib/ignore-value.h (ignore_value):
18795         Port to gcc -pedantic, by using __extension__.
18796         Reindent as per usual gnulib style nowadays.
18797         Simplify GCC version check.
18799 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18801         extern-inline: port to gcc -std=c89
18802         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18803         Do not use __gnu_inline__ if pedantic and pre-C99.
18805 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18807         doc: document extern-inline
18808         * doc/extern-inline.texi: New file.
18809         * doc/gnulib.texi (alloca-opt): Include it.
18810         * m4/extern-inline.m4: Move some comments to documentation,
18811         and others closer to what they describe.
18813         doc: chatter less
18814         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18815         (updated-stamp): Use it.  This causes 'make' to output just
18816         one file name rather than zillions.
18818         fflush, fseeko: port to musl cross-compiles
18819         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18820         on some implementation that (1) is not known to be buggy,
18821         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18822         cross-compiled to so we can't easily check for lack of
18823         conformance.  This is for cross-compiling to musl.
18824         Reported by Rich Felker in
18825         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18826         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18827         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18828         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18829         Adjust to above change.
18830         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18831         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18832         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18833         known not to work, or unknown.
18835 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18837         msvc-inval: port to mingw-w64
18838         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18839         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18840         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18842 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18844         getcwd-lgpl: port to Tru64
18845         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18846         Problem reported by Steven M. Schweda in
18847         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18849         tests: port large-fd POSIX spawn tests to OS X
18850         Problem reported by Daiki Ueno in
18851         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18852         * tests/test-posix_spawn_file_actions_addclose.c:
18853         * tests/test-posix_spawn_file_actions_adddup2.c:
18854         * tests/test-posix_spawn_file_actions_addopen.c:
18855         Include <limits.h>, for OPEN_MAX, if available.
18856         (big_fd): New static function.
18857         (main): Use it.
18859 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18861         tests/nap.h: use an adaptive delay to avoid ctime update issues
18862         The recent change in nap.h (5191133e) decreased the probability of lost
18863         races to about a third, however such problems could still be observed
18864         in virtual machines and openSUSE's OBS.
18865         Before, nap() detected the needed time once empirically and then used
18866         that delay (together with a small correction multiplier) in further
18867         calls.  This problem has been reported and discussed several times,
18868         including guesses about possible kernel issues:
18869         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18870         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18871         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18872         http://bugs.gnu.org/12820
18873         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18874         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18875         Now, nap() avoids the race alltogether by verifying on a reference
18876         file whether a timestamp difference has happened.
18877         * tests/nap.h (nap_fd): Define file descriptor variable for the
18878         witness file.
18879         (nap_works): Change return value to bool.  Change passing
18880         the old file's status by value instead of by reference as this function
18881         does no longer update that timestamp; rename the function argument from
18882         st to old_st.  Remove the local variables cdiff and mdiff because that
18883         function now returns true/false instead of the precise delay.
18884         (guess_delay): Remove function.
18885         (clear_tmp_file): Add new function to close and unlink the witness file.
18886         (nap): Instead of re-using the delay which has been calculated during
18887         the first call, avoid the race by actually verifying that a timestamp
18888         difference can be observed on the current file system.  Use an adaptive
18889         approach for the delay to minimize execution time.  Assert that the
18890         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18891         = 2^31 - 1 = 2.1s.
18892         Use atexit to call clear_tmp_file when the process terminates.
18894 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18896         sig2str: port to C++
18897         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
18898         Reported by Daniel J Sebald in
18899         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
18901 2013-05-30  Eric Blake  <eblake@redhat.com>
18903         docs: mention cygwin shortcoming in <sys/un.h>
18904         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
18906         vasnprintf: silence mingw compiler warning
18907         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
18909 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18911         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
18912         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
18913         This fixes a porting bug I recently reintroduced in regex, and
18914         some other instances that I discovered while testing the fix.
18915         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
18916         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
18917         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
18918         with an empty argument if this is a pedantic pre-C99 GCC.
18919         * lib/verify.h: Do not use _Static_assert if this is a pedantic
18920         pre-C11 GCC.
18922         regex: adapt to locking regime instead of depending on pthread
18923         Instead of depending on pthread, adapt to whatever thread
18924         modules are in use.  Problem reported by Ludovic Courtès in
18925         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
18926         and by Mats Erik Andersson in
18927         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
18928         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18929         Support either the 'lock' module, or the 'pthread' module, or
18930         no module.
18931         (lock_lock, lock_unlock): New macros.
18932         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
18933         * modules/lock, modules/pthread (configure.ac): Add module indicator.
18934         * modules/regex (Depends-on): Remove pthread.
18936 2013-05-22  Eric Blake  <eblake@redhat.com>
18938         getgroups: document portability issues
18939         * doc/glibc-functions/initgroups.texi (initgroups): Mention
18940         multithread safety.
18941         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
18942         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
18943         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
18944         getugroups.
18945         * doc/posix-functions/getgroups.texi (getgroups): Mention
18946         multithread safety and mgetgroups.
18948 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18950         test-lchown, test-chown: also skip test if chown fails with EPERM
18951         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
18952         skip this test, to handle FAT file systems.
18953         * tests/test-chown.h (test_chown): Likewise.
18955 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18957         regex: fix dfa race in multithreaded uses
18958         Problem reported by Ludovic Courtès in
18959         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
18960         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18961         New macros.  All uses of __libc_lock_define, __libc_lock_init
18962         changed to use the first two of these.
18963         (__libc_lock_lock, __libc_lock_unlock): New macros, for
18964         non-glibc platforms.
18965         (struct re_dfa_t): Define the lock unconditionally.
18966         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
18967         '#ifdef _LIBC"s.
18968         * modules/regex (Depends-on): Add pthread, if we use the
18969         included regex.
18971         * lib/regcomp.c: Do actions that are not needed for glibc,
18972         but may be needed elsewhere.
18973         (regfree, re_compile_internal): Destroy the lock.
18974         (re_compile_internal): Check for lock-initialization failure.
18976         malloca: port to compilers that reject size-zero arrays
18977         This fixes a bug introduced in my previous patch.
18978         * lib/malloca.c (struct preliminary_header): Use an int
18979         rather than a character array of size int; that's simpler.
18980         (struct header): Remove, replacing with ...
18981         (union header): New type.  This avoids the need for declaring a
18982         character array of size zero, which is not allowed on some platforms.
18983         All uses changed.
18985 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18987         parse-datetime, tests: don't use "string" + int
18988         Recent versions of 'clang' complain about C source code that
18989         uses expressions of the form '"string literal" + integer',
18990         I guess on the theory that it's confusing for readers who are
18991         used to C++.  On those grounds I suppose it's OK to make this
18992         minor style change.
18993         * lib/parse-datetime.y (parse_datetime):
18994         * tests/test-fchdir.c (main):
18995         * tests/test-snprintf-posix.h (test_function):
18996         * tests/test-snprintf.c (main):
18997         * tests/test-vasnprintf-posix.c (test_function):
18998         * tests/test-vasnprintf.c (test_function):
18999         * tests/test-vsnprintf.c (main):
19000         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19001         Rewrite '"str" + E' to '&"str"[E]'.
19003 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19005         argmatch: port to C++
19006         * lib/argmatch.h [__cplusplus]: Add extern "C".
19008         argp: typo fix
19009         * lib/argp-help.c: Typo in comment.
19011 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19013         manywarnings: update for GCC 4.8.0
19014         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19015         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19016         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19017         -Wmissing-noreturn, as they are duplicates of other warnings.
19018         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19019         was documented to be flaky in earlier versions of GCC.
19021         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19022         * tests/test-spawn.c (main):
19023         * tests/test-sys_socket.c (main):
19024         * tests/test-sys_wait.c (main):
19025         Don't have a switch value that isn't covered by a case.
19027         getaddrinfo-tests: port --enable-gcc-warnings to clang
19028         * tests/test-getaddrinfo.c (simple):
19029         Avoid casts from looser to stricter-aligned pointers.
19031         thread: port --enable-gcc-warnings to clang
19032         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19033         Include <signal.h>, to pacify a warning about pthread_sigmask.
19035         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19036         * lib/stdio.in.h (fwrite):
19037         When working around bug 11959, use __REDIRECT rather than '#define
19038         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19039         fix the -Wunused-value issue with clang, and it works with GCC too.
19040         Problem with targeting reported by Eric Blake in
19041         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19042         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19043         debugging the fwrite issue.
19045         stdio: port --enable-gcc-warnings to clang
19046         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19047         since the GCC workaround for fwrite does not pacify clang.
19049         sig2str: port --enable-gcc-warnings to clang
19050         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19052         obstack: port --enable-gcc-warnings to clang
19053         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19054         Avoid casts from looser to stricter-aligned pointers.
19056         memchr2: port --enable-gcc-warnings to clang
19057         * lib/memchr2.c (memchr2):
19058         Avoid casts from looser to stricter-aligned pointers.
19060         mbsstr: port --enable-gcc-warnings to clang
19061         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19062         Avoid casts from looser to stricter-aligned pointers.
19064         malloca: port --enable-gcc-warnings to clang
19065         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19066         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19068         inttostr: port --enable-gcc-warnings to clang
19069         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19071         warnings: port to clang
19072         Problem reported by Daniel P. Berrange via Eric Blake in
19073         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19074         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19075         (gl_WARN_ADD): Use it.
19077 2013-05-11  Jim Meyering  <meyering@fb.com>
19079         quotearg: do not read beyond end of buffer
19080         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19081         end of an ARG for which no length was specified.  With an N-byte
19082         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19083         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19084         via coreutils' misc/sort-debug-keys.sh test and detected by running
19085         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19086         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19087         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19088         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19089         characters correctly."
19091 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19093         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19094         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19095         compilation target is Mac OS X 10.6.
19096         Problem reported by parafin and Andoni Morales in
19097         <http://savannah.gnu.org/bugs/?37844> and
19098         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19100 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19102         mkdir-p: remove assumptions about umask and mode
19103         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19104         umask is 0, or that MODE is a subset of MODE_BITS.
19106 2013-05-10  Eric Blake  <eblake@redhat.com>
19108         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19109         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19111 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19113         deps: require Automake >= 1.9.6 in generated Makefile fragments
19115         That is the same minimal version required in the DEPENDENCIES file.
19116         Moreover, the old code generated a requirement of Automake >= 1.5,
19117         and that is an insanely outdated version.
19119         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19120         * tests/havelib/rpathlx/Makefile.am: Likewise.
19121         * tests/havelib/rpathly/Makefile.am: Likewise.
19122         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19123         * tests/havelib/rpathlz/Makefile.am: Likewise.
19124         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19125         * tests/havelib/rpathx/Makefile.am: Likewise.
19126         * tests/havelib/rpathy/Makefile.am: Likewise.
19127         * tests/havelib/rpathz/Makefile.am: Likewise.
19129 2013-05-08  Eric Blake  <eblake@redhat.com>
19131         bootstrap: AC_INIT may have more than four parameters
19132         * build-aux/bootstrap (extract_package_name): Correctly extract
19133         non-empty tarname field.  Avoid range in regex.
19134         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19136 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19138         qacl: port to MS-Windows port of GNU Emacs
19139         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19140         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19141         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19142         <http://bugs.gnu.org/14295#14>.
19144 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19146         acl: include quote.h
19147         * lib/copy-acl.c: Include quote.h.
19148         * lib/set-acl.c: Likewise.
19150 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19152         fchownat, renameat, unlinkat: update statat dependencies
19153         These modules use statat and lstatat, not fstatat; so depend on
19154         the statat module, which was split out recently from fstatat.
19155         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19156         * modules/renameat: Likewise.  Also delete fstat.
19157         URL: http://bugs.gentoo.org/468790
19159 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19161         Assume gnulib is checked out from Git, not CVS
19163         In fact, access to the gnulib repository through CVS has been
19164         disabled, or more precisely, got broken and was never restored; see:
19165         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19167         Note that support for CVS is not removed completely and unthinkingly
19168         by this change: only support for CVS checkouts of gnulib itself is
19169         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19170         files and CVS directories, for the benefit of those poor gnulib clients
19171         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19173         * gnulib-tool: Simplify accordingly.
19174         * posix-modules: Likewise.
19175         * MODULES.html.sh: Likewise.
19176         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19177         repository.
19178         * doc/gnulib-intro.texi: Likewise.
19179         * doc/gnulib-readme.texi: Likewise.
19180         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19181         sample '.gitignore' file rather than a sample '.cvsignore'.
19182         * NEWS: Update.
19183         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19184         to "CVS Autoconf" rather than "git Autoconf".
19186 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19188         utimensat-tests, etc.: try to fix some races
19189         Problem reported by Bernhard Voelker in
19190         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19191         I don't know whether this patch fixes that race condition, but it
19192         fixes *some* race conditions, so it should be a win.
19193         * modules/chown-tests (Depends-on):
19194         * modules/fchownat-tests (Depends-on):
19195         * modules/fdutimensat-tests (Depends-on):
19196         * modules/futimens-tests (Depends-on):
19197         * modules/lchown-tests (Depends-on):
19198         * modules/stat-time-tests (Depends-on):
19199         * modules/utimens-tests (Depends-on):
19200         * modules/utimensat-tests (Depends-on):
19201         Depend on nanosleep, not usleep.
19202         * modules/chown-tests (test_chown_LDADD):
19203         * modules/lchown-tests (test_lchown_LDADD):
19204         * modules/stat-time-tests (test_stat_time_LDADD):
19205         New macro.
19206         * modules/fchownat-tests (test_fchownat_LDADD):
19207         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19208         * modules/futimens-tests (test_futimens_LDADD):
19209         * modules/utimens-tests (test_utimens_LDADD):
19210         * modules/utimensat-tests (test_utimensat_LDADD):
19211         Add $(LIB_NANOSLEEP).
19212         * modules/stat-time-tests (Files): Add tests/nap.h.
19213         * tests/nap.h: Include <limits.h>, for INT_MAX.
19214         (lt_mtime): Remove.
19215         (diff_timespec): New function.
19216         (get_stat): Rename from get_mtime.  All callers changed.
19217         (nap_works): Determine the needed delay by inspecting the
19218         file system's timestamp jumps; this should be more reliable.
19219         Look at both mtime and ctime, and take the maximum of the two jumps.
19220         (nap_works, guess_delay):
19221         Return a nanosecond count, not a microsecond count.
19222         All callers changed.
19223         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19224         failure.
19225         (nap): Multiply the guess by 1.125, to accommodate the case where
19226         the file system's clock is a bit slower than nanosleep's clock.
19227         * tests/test-stat-time.c (BASE): New macro.
19228         Include nap.h.
19229         (nap): Remove; nap.h now defines this.  This removes a duplicate
19230         implementation of 'nap'.
19232         utimens, utimensat: work around Solaris UTIME_OMIT bug
19233         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19234         Linux kernel 2.6.32 does.  Work around it in the same way.
19235         * doc/posix-functions/futimens.texi (futimens):
19236         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19237         * lib/utimens.c (fdutimens, lutimens):
19238         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19240         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19241         Formerly, it was your responsibility to do this for all Makefile.ams
19242         other than Gnulib's.  Now it's your responsibility to do it for
19243         Gnulib's Makefile.am, too.
19244         * NEWS: Document this.
19245         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19247         acl: include errno.h to get errno
19248         Reported by Daiki Ueno in
19249         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19250         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19252 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19254         tests: don't assume getdtablesize () <= 10000000
19255         * modules/cloexec-tests:
19256         * modules/dup2-tests:
19257         * modules/dup3-tests:
19258         * modules/nonblocking-tests:
19259         * modules/posix_spawn_file_actions_addclose-tests:
19260         * modules/posix_spawn_file_actions_adddup2-tests:
19261         * modules/posix_spawn_file_actions_addopen-tests:
19262         * modules/unistd-safer-tests:
19263         Depend on the getdtablesize module.
19264         * tests/test-cloexec.c:
19265         * tests/test-dup-safer.c:
19266         * tests/test-dup2.c:
19267         * tests/test-dup3.c:
19268         * tests/test-fcntl.c:
19269         * tests/test-nonblocking.c:
19270         * tests/test-posix_spawn_file_actions_addclose.c:
19271         * tests/test-posix_spawn_file_actions_adddup2.c:
19272         * tests/test-posix_spawn_file_actions_addopen.c:
19273         Don't assume getdtablesize () <= 10000000.
19275 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19277         extern-inline: work around bug in Sun c99
19278         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19279         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19281 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19283         qacl: new module, broken out from the acl module
19284         This is for GNU Emacs, which wants the acl functions but does
19285         not want 'error' invoked when they fail.
19286         * lib/acl-internal.h: Do not include error.h, quote.h.
19287         (ENOSYS, ENOTSUP): Remove; no longer needed.
19288         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19289         * lib/acl.h: Include <stdbool.h>.
19290         (acl_errno_valid): New function.
19291         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19292         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19293         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19294         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19295         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19296         * lib/file-has-acl.c (file_has_acl):
19297         * lib/qcopy-acl.c (qcopy_acl):
19298         * lib/qset-acl.c (qset_acl):
19299         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19300         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19301         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19302         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19303         Add lib/set-acl.c.
19304         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19305         Add qacl.
19306         (configure.ac): Move gl_FUNC_ACL to qacl module.
19307         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19308         Rename set-mode-acl.c to set-acl.c.
19309         * lib/acl-errno-valid.c: New file.
19310         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19311         copy_acl function remains in copy-acl.c.
19312         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19313         (_): Remove; not needed.
19314         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19315         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19316         * modules/qacl: New file, moved from the old modules/acl.
19317         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19318         Remove set-mode-acl.c, copy-acl.c.
19319         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19321         alignof, intprops, malloca: port better to IBM's C compiler
19322         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19323         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19324         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19326 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19328         wctype-h: fix gettext link error on mingw
19329         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19330         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19331         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19332         rpl_towupper and rpl_towupper.
19334 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19336         regex-tests, regex: allow glibc re_search behavior
19337         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19338         re_search input data to make the multi-character collating element
19339         in it clearly visible, and treat re_search return code 0 as valid.
19340         * m4/regex.m4 (gl_REGEX): Likewise.
19342 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19344         stdalign: doc fix
19345         * doc/posix-headers/stdalign.texi (stdalign.h):
19346         Gnulib doesn't support '_Alignof expr'.
19348 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19350         stdalign: port to stricter ISO C11
19351         ISO C11 says that _Alignof's operand must be a parenthesized type.
19352         Problem reported by Eli Zaretskii in
19353         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19354         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19355         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19357 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19359         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19360         Problem reported by Marco Atzeri in
19361         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19362         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19363         Simply delegate to the system <sys/select.h> in this case too.
19364         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19365         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19366         be needed on Solaris either.
19367         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19368         Simply delegate to the system <sys/time.h> in this case.
19370 2013-03-19  Karl Berry  <karl@gnu.org>
19372         * build-aux/gnupload: check for erroneous (with gnupload) use of
19373         ftp-upload.gnu.org, tweak help.
19375 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19377         copy-file, rpmatch: fix problems found by cppcheck
19378         Reported by Arno Onken in
19379         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19380         * lib/rpmatch.c (try): Fix memory leak.
19381         * lib/copy-file.c: Include "ignore-value.h".
19382         (qcopy_file_preserving): Ignore chown value.
19383         * modules/copy-file (Depends-on): Add ignore-value.
19385 2013-01-27  Jim Meyering  <jim@meyering.net>
19387         prefix-gnulib-mk: give better diagnostics
19388         * build-aux/prefix-gnulib-mk: Don't just "die".
19389         Give better diagnostics upon failure.
19391 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19393         putenv: port to Solaris 10
19394         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19395         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19396         is not what is wanted here.
19397         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19398         declaration, not for its existence.
19400 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19402         mktime: fix configure typo
19403         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19405 2013-03-12  Eric Blake  <eblake@redhat.com>
19407         regex-tests: skip UTF-8 test on mingw
19408         * modules/regex-tests (Depends-on): Add localcharset.
19409         * tests/test-regex.c (main): Use it to skip test on mingw.
19411 2013-03-11  Eric Blake  <eblake@redhat.com>
19413         tests: make it easier to bypass alarm time in debugger
19414         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19415         * tests/test-memmem.c (main): Likewise.
19416         * tests/test-passfd.c (main): Likewise.
19417         * tests/test-ptsname.c (main): Likewise.
19418         * tests/test-ptsname_r.c (main): Likewise.
19419         * tests/test-strcasestr.c (main): Likewise.
19420         * tests/test-strstr.c (main): Likewise.
19422         regex: port to mingw's recent addition of undeclared alarm
19423         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19424         exists but still doesn't work in newer mingw.
19425         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19426         not existence.  Ensure SIGALRM is not trapped.
19427         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19428         * m4/regex.m4 (gl_REGEX): Likewise.
19429         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19430         * tests/test-regex.c (main): Use correct probe for alarm.
19432         putenv: avoid compilation warning on mingw
19433         * lib/putenv.c (_unsetenv): Protect variable declaration.
19434         (putenv): Fix indentation.
19436 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19438         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19439         * lib/unistd.in.h: be careful not to include un-needed system
19440         stdlib.h from here, because that prevents gnulib stdlib.h from
19441         defining rpl_strtod correctly.
19443 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19445         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19446         changesets, but for the 'precision 0' test.
19447         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19448         round-to-even, since POSIX says rounding is implementation-defined
19449         and OS X 10.8.2 rounds 1.51 to 1 here.
19451         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19452         changeset.
19453         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19454         round-to-even, since POSIX says rounding is implementation-defined
19455         and OS X 10.8.2 rounds 1.5 to 1 here.
19457 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19459         vasnprintf-posix-tests: allow rounding 1.5 to 1
19460         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19461         round-to-even, since POSIX says rounding is implementation-defined
19462         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19463         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19465         bootstrap: port to FreeBSD
19466         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19467         that treat '--' differently.  Reported by Mats Erik Andersson in
19468         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19470 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19472         regex: rename remaining __attribute calls to __attribute__.
19473         2012-02-25 changed definition of __attribute, but left some uses
19474         unchanged, preventing compilation of regex module on most non-gcc
19475         environments.
19476         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19477         (lookup_collation_sequence_value, build_range_exp)
19478         (build_collating_symbol): Set attributes with newly renamed
19479         __attribute__ decorator.
19480         * lib/regex_internal.c (re_string_peek_byte_case)
19481         (re_node_set_compare, re_node_set_contains): Likewise.
19482         * lib/regexec.c (acquire_init_state_context): Likewise.
19484 2013-03-06  Bruno Haible  <bruno@clisp.org>
19486         execute: Revert last change, but use a different condition.
19487         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19488         on Windows.
19490 2013-03-05  Eric Blake  <eblake@redhat.com>
19492         execute: drop dead code
19493         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19495 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19497         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19498         * m4/non-recursive-gnulib-prefix-hack.m4
19499         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19500         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19501         <http://bugs.gnu.org/10305#237>.
19503 2013-03-04  Eric Blake  <eblake@redhat.com>
19505         test-getsockopt: avoid compiler warning
19506         * tests/test-getsockopt.c (includes): Ensure close is declared.
19508 2013-03-02  Bruno Haible  <bruno@clisp.org>
19510         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19511         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19513 2013-03-02  Bruno Haible  <bruno@clisp.org>
19515         gettext: Update to version 0.18.2.
19516         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19517         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19518                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19520 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19522         regex: merge patches from libc
19524         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19525         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19526         All uses changed.
19527         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19528         (re_string_wchar_at, re_string_elem_size_at):
19529         Mark function as possibly unused.
19531         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19532         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19533         elements compare against the byte sequence of it, not its name.
19535 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19537         putenv: port better to native Windows
19538         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19539         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19540         (_unsetenv): Use _putenv if available.
19541         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19542         a bit less likely to cause damage.
19543         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19544         Fix the wrong value with SetEnvironmentVariable.
19545         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19546         code better.
19548 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19550         regex: ignore old-style-definition warnings
19551         * lib/regex.c: Add pragma to ignore these warnings.
19552         Problem reported for GNU tar by Pavel Raiskup.
19554 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19556         getcwd: support coreutils better
19557         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19558         but this might not be correct in coreutils, which disables
19559         the raw decl checks.  Problem reported by Nagendra in
19560         <http://bugs.gnu.org/10305#192>.
19561         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19563         Test the getcwd function, not any macro, since getcwd.c wants the
19564         function.
19565         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19566         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19567         compile, as might happen if there's a macro but no function.
19569         strtod: support coreutils better
19570         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19571         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19572         disables the raw decl checks.  This assumes there is an underlying
19573         strtod, but that's a safe assumption these days.
19574         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19576         mountlist: port to HP NonStop
19577         Reported by Joachim Schmitz in
19578         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19579         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19580         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19582 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19584         extern-inline: avoid compilation error with HP-UX cc
19585         Reported by Richard Lloyd in
19586         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19587         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19588         Suppress extern inline with HP-UX cc.  This should be safe,
19589         though it may hurt performance.  Perhaps someone with some HP-UX
19590         experience can come up with a higher-performance fix.
19592 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19594         putenv: fix heap corruption with mixed putenv/_putenv
19595         Problem reported by Michael Goffioul in
19596         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19597         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19598         Rely on _putenv to allocate the new environment.
19599         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19600         * modules/putenv (configure.ac): Use it.
19602 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19604         unsetenv etc.: port to Solaris 11 + GNU Emacs
19605         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19606         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19607         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19608         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19609         idea but is too painful to fix right now), and without this gnulib
19610         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19611         compiling unsetenv.c on Solaris 11.  Fix the problem for
19612         unsetenv.c, and fix other similar occurrences.
19614 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19616         secure_getenv: fix C++ declaration typo
19617         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19618         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19619         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19621 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19623         careadlinkat: stop exporting careadlinkatcwd
19624         Only Emacs used it directly, and Emacs no longer needs it.
19625         * NEWS: Document this simplification.
19626         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19627         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19628         for readlink.
19629         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19630         Don't include stdlib.h; no longer needed.
19631         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19632         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19633         * modules/areadlink (Depends-on): Add readlink.
19634         (Maintainer): Add self.
19635         * modules/careadlinkat (Depends-on): Remove readlink.
19637         extensions: port better to HP-UX
19638         This is merged from git Autoconf.
19639         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19640         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19641         so that it's compatible with the value used when compiling.
19643         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19644         Problem reported by Mats Erik Andersson in
19645         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19646         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19647         openpty function exists, not merely when we intend to replace it.
19648         This corrects the 2013-01-31 patch, which mistakenly defined
19649         HAVE_OPENPTY even on hosts that lacked it.
19651 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19653         secure_getenv: fix include typo
19654         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19656         secure_getenv: port better to FreeBSD and Solaris
19657         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19658         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19659         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19660         This works better on BSDish platforms.
19661         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19662         Test for issetugid if __secure_getenv is missing.
19664 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19666         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19667         Some of these changes are merged in from git Autoconf.
19668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19669         When deciding whether to define _XOPEN_SOURCE, inspect the
19670         preprocessor macro __hpux instead of the more-heavyweight
19671         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19672         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19673         as the key for __EXTENSIONS__.
19675         unistd: avoid namespace pollution on non-glibc systems
19676         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19677         This avoids namespace pollution on non-glibc systems, by causing
19678         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19679         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19680         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19682 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19684         tmpdir: use secure_getenv
19685         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19686         Define to secure_getenv, not getenv.
19687         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19688         as that's now secure_getenv's job.
19689         * modules/tmpdir (Depends-on): Add secure_getenv.
19691         tempname: use secure_getenv
19692         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19693         Define to secure_getenv, not getenv.
19694         * modules/tempname (Depends-on):
19695         Add secure_getenv.
19697         secure_getenv: new module
19698         * MODULES.html.sh (Extra functions based on ANSI C 89):
19699         Add secure_getenv.
19700         * doc/glibc-functions/secure_getenv.texi: New file.
19701         * doc/gnulib.texi: Include it.
19702         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19703         New files.
19704         * lib/stdlib.in.h (secure_getenv): New decl.
19705         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19706         * modules/stdlib (stdlib.h):
19707         Add secure_getenv checks.
19709 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19711         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19712         Reported for OS X 10.8.2 by Assaf Gordon in
19713         <http://bugs.gnu.org/13516>.
19714         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19715         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19716         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19717         so that they can be kept in sync more easily.  Avoid PATH_MAX
19718         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19719         mkdir or chdir failure.
19720         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19721         lib/getcwd.c.
19722         (test_abort_bug): Do not test for the deep directory bug unless we
19723         have openat support.  Avoid PATH_MAX test on the Hurd.
19725         regex-tests, regex: fix bug: memset undeclared
19726         * tests/test-regex.c: Don't include regex.h twice.  Include
19727         string.h, to declare memset.  Christensen's report also mentioned
19728         this issue.
19729         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19730         test-regex.c, to avoid future problems like this.  Remove
19731         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19732         twice.
19734         regex-tests: fix link errors on older Solaris
19735         These need to link with @LIBINTL@ to get libintl_gettext.
19736         Problem reported by Tom G. Christensen in
19737         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19738         * modules/regex-tests (test_regex_LDADD): New macro.
19740 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19742         regex-tests: new module
19743         * modules/regex-tests, tests/test-regex.c: New files.
19745         regex: fix off-by-one error in configure test
19746         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19748 2013-01-31  Eric Blake  <eblake@redhat.com>
19750         regex: avoid infinite configure test
19751         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19753 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19755         openpty: fix bug where HAVE_OPENPTY wasn't defined
19756         See the thread starting at:
19757         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19758         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19759         openpty function exists, not merely when we intend to replace it.
19761 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19763         sys_time: port to Solaris 2.6
19764         There is a circularity problem on Solaris 2.6, where <time.h> includes
19765         <sys/time.h> for struct timespec.  The include nesting is gnulib
19766         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19767         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19768         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19769         <sys/siginfo.h>; the last, innermost file needs struct
19770         timestruc_t, which is defined in <sys/time.h>, which has not been
19771         fully parsed.  Problem reported by Tom G. Christensen in
19772         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19773         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19774         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19775         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19776         uses split double-inclusion guards.
19778 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19780         regex: test for buffer overrun
19781         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19782         for the just-fixed regex bug.
19784 2013-01-29  Andreas Schwab  <schwab@suse.de>
19786         regex: fix buffer overrun in regexp matcher [BZ #15078]
19787         * lib/regexec.c (extend_buffers): Add parameter min_len.
19788         (check_matching): Pass minimum needed length.
19789         (clean_state_log_if_needed): Likewise.
19790         (get_subexp): Likewise.
19792 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19794         mountlist: don't consider "devtmpfs" as dummy
19795         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19796         as there is storage associcated with it.
19798 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19800         futimens-tests, utimens-tests: Depend on gettext.
19801         This works around a problem introduced in my 2013-01-12 patch,
19802         which added @LIBINTL@ to these modules.
19803         * modules/futimens-tests (Depends-on):
19804         * modules/utimens-tests (Depends-on): Add gettext.
19806 2013-01-26  Eric Blake  <eblake@redhat.com>
19808         test-getpeername: fix typo
19809         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19811 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19813         bootstrap: remove the need for a sorted .gitignore file
19814         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19815         rename to insert_if_absent(), so that we don't need or generate
19816         a sorted .gitignore file.  We do require a .gitignore with no
19817         existing duplicate entries and enforce that.
19818         (sort_patterns): Remove this function as we now use the simpler
19819         technigue of inserting blacklist entries at the top of the file,
19820         assuming gnulib won't be inserting !whitelist entries.
19822 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19824         readlinkat: don't depend on gl_FUNC_OPENAT
19825         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19826         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19827         renameat.m4, symlinkat.m4; but one thing at a time.
19829         statat: new module, split out from fstatat
19830         GNU Emacs needs the POSIX-specified fstatat, but not the
19831         gnulib-specified statat and lstat.  Split the latter two into a
19832         new module 'statat'.
19833         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19834         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19835         Rename from FSTATAT_INLINE. All uses changed.
19836         * modules/fstatat (Files): Remove lib/statat.c.
19837         (gl_MODULE_INDICATOR([fstatat])): Remove.
19838         (lib_SOURCES): Remove.
19839         (Maintainer): Add self.
19840         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19841         * tests/test-fstatat.c (BASE): Don't define if already defined.
19842         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19844 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19846         tests: don't assume fd 99 is closed
19847         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19848         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19849         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19850         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19851         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19852         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19853         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19854         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19855         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19856         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19857         * tests/test-fwrite.c, tests/test-getpeername.c:
19858         * tests/test-getsockname.c, tests/test-getsockopt.c:
19859         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19860         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19861         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19862         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19863         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19864         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19865         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19866         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19867         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19868         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19869         Close file descriptor 99, instead of assuming it's already closed.
19871 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19873         stpncpy: port to OS X 10.8
19874         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19875         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19877 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19879         unistd: port to recent mingw
19880         * lib/unistd.in.h: Remove special invocation convention for mingw,
19881         which breaks for the latest mingw version.  See John W. Eaton in
19882         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19884         largefile: port better to Mac OS X 10.5
19885         This patch is backported from Autoconf git.
19886         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19887         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19888         with ino_t size being different for configuration time versus
19889         build/run time.  Problem reported by PHO in
19890         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19892 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19894         doc: clarify -Werror
19895         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
19896         clarify that it's intended for developers, not for ordinary builds,
19897         and mention --enable-gcc-warnings as one possible use.
19899 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
19901         stdint: fix build with Android's Bionic fox x86
19902         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
19903         was already included as _SSIZE_T_DEFINED_ might also be defined
19904         in include/machine/_types.h, which is included by stdio.h
19906 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19908         net_if-tests: port to Solaris 7 + GCC 3.4.6
19909         Problem reported by Tom G. Christensen in
19910         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
19911         * tests/test-net_if.c (ni): Move to next the code that uses it,
19912         so that it's declared only if needed.
19914 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19916         net_if-tests: port to older Solaris
19917         Problem reported by Tom G. Christensen in
19918         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19919         * modules/net_if-tests (NET_IF_LIB): New substitution.
19920         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
19921         (HAVE_IF_NAMEINDEX): New C macro.
19922         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
19924         system-quote-tests: port to older Solaris
19925         Problem reported by Tom G. Christensen in
19926         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19927         * tests/test-system-quote-child.c (fopen, fread): Undef.
19929         c-xvasprintf etc.: fix link errors on older Solaris
19930         These need to link with @LIBINTL@ to get libintl_gettext.
19931         Problem reported by Tom G. Christensen in
19932         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19933         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
19934         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
19935         * modules/futimens-tests (test_futimens_LDADD):
19936         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
19938 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19940         locale: port to Solaris 2.6 and 7 + GNU gettext
19941         * lib/locale.in.h: Just include_next <locale.h> when
19942         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
19943         when combining the localename module with GNU gettext 0.18.2.
19944         Problem reported by Tom G. Christensen in
19945         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
19947 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19949         stdlib: port to Solaris 2.6
19950         Also, the code worked on Solaris 7 through 9 only by accident.
19951         Problem reported by Tom G. Christensen in
19952         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
19953         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
19954         simply include the system stdlib.h.
19955         * lib/getopt.in.h (__need_system_stdlib_h):
19956         * lib/pthread.in.h (__need_system_stdlib_h):
19957         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
19958         Define when including <stdlib.h>, to avoid problems at least for
19959         the pthread case on Solaris 2.6 and 7.  These .h files can get by
19960         with the system stdlib.h.
19962 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19964         doc: update main copyright year
19965         * doc/gnulib.texi: Update copyright date.
19967         doc: improve ISO 8601 discussion
19968         * doc/parse-datetime.texi (Combined date and time of day items):
19969         Specify more carefully what formats are supported and what is
19970         done with excess precision.
19972 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19974         doc: avoid small caps
19975         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
19976         they're more trouble than they're worth.  Suggested by Karl Berry
19977         in <http://bugs.gnu.org/13360>.
19979         regex: conform to strict C
19980         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
19981         From Aharon Robbins.
19983         gnulib-tool: fix incompatibility with autopoint 0.18.2
19984         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
19985         Problem reported by Tom G. Christensen in
19986         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
19988 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19990         fprintftime: bring back and reword fwrite comment
19991         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
19993         stdio: remove now-unnecessary stdio.c
19994         Since stdio.in.h no longer uses inline functions, we no longer
19995         need to compile the extern versions.
19996         * lib/stdio.c: Remove.
19997         * modules/stdio (Files): Remove lib/stdio.c.
19998         (lib_SOURCES): Remove.
20000         unicodeio: depend on stdio, not ignore-value
20001         * lib/unicodeio.c: Do not include ignore-value.h.
20002         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20003         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20005         fprintftime: depend on stdio, not ignore-value
20006         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20007         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20008         since the stdio module arranges to silence that warning now.
20009         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20011 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20013         stdint-tests: Fix expanded-before-required-warning.
20014         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20016 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20018         fwrite: silence __wur only for older glibc versions
20019         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20020         This will help us remove this workaround some time in the far future.
20022 2013-01-03  Eric Blake  <eblake@redhat.com>
20024         fwrite: silence __wur without using inline
20025         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20026         just gcc, and in a way that avoids inline issues.
20027         * modules/stdio (Depends-on): Drop extern-inline.
20029 2013-01-03  Jim Meyering  <jim@meyering.net>
20031         update-copyright: avoid copyright notice date corruption
20032         Given a sequence of copyright year numbers in which the final
20033         one was a two-digit number that happened to be a substring of
20034         a preceding four-digit year number, we would mistakenly update
20035         the substring (from two- to four-digit) rather than the two-digit
20036         number at the end, which, combined with the addition of the current
20037         4-digit year number would yield two 5-digit year numbers, e.g.,
20038         here, it would convert the first "99" to "1999, 2013" rather than
20039         the final one:
20040           1991, 99
20041           11999, 20131, 1999
20042         * build-aux/update-copyright: Tighten a regexp.
20043         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20044         Reported by Joseph Myers in
20045         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20047 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20049         regex: omit needless signed-pointer casts
20050         * lib/regcomp.c (build_charclass, build_charclass_op):
20051         Use char *, not unsigned char *, for class name and extra.
20052         The char values are always nonnegative so there's no need to
20053         insist on unsigned char * here, and using char * removes the need
20054         for casts.  Reported by Aharon Robbins in
20055         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20057         regex: support Gawk, which never uses alloca
20058         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20059         Do not include in this case.  Gawk doesn't supply a substitute
20060         alloca.h and doesn't need one.
20062         regex: port __libc_lock_define usage to C89
20063         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20064         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20065         does not conform to C89, as it has an empty macro argument.
20066         Reported by Aharon Robbins in
20067         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20069 2013-01-01  Eric Blake  <eblake@redhat.com>
20071         maint: update all copyright year number ranges
20072         Run "make update-copyright".
20074         version-etc: bump copyright year reported in --version
20075         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20077 2012-12-31  Eric Blake  <eblake@redhat.com>
20079         sigprocmask-tests: skip test if pid is unexpectedly large
20080         * tests/test-sigprocmask.c (main): Add range check.
20082         git-version-gen: avoid test -z portability glitch
20083         * build-aux/git-version-gen: Prefer portable test spelling, since
20084         git-version-gen is run on more than just developer machines.
20086 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20088         git-version-gen: add --fallback option to use if git is not present
20089         * build-aux/git-version-gen: Add support for the new option --fallback,
20090         which comes into play when there is no $tarball_version_file and
20091         git is not working.
20092         (scriptversion): Update.
20094         maint.mk: handle missing git with more grace
20095         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20096         Quietly proceed if git is not present.
20098 2012-12-31  Eric Blake  <eblake@redhat.com>
20100         dup2: work around cygwin bug
20101         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20102         * lib/dup2.c (rpl_dup2): Work around it.
20103         * doc/posix-functions/dup2.texi (dup2): Document it.
20105 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20107         regex: remove unnecessary dependency on localcharset.h
20108         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20109         hasn't been needed for years.
20110         * modules/regex (Depends-on): Remove localcharset.
20112         regex: revert single-byte change
20113         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20114         to this function.  This was alredy fixed in a different way, at
20115         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20116         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20117         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20119         regex: simplify based on Gawk version
20120         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20121         Reported by Aharon Robbins in
20122         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20124 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20126         regex: check that pattern char is single-byte
20127         Reported by Aharon Robbins in
20128         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20129         * lib/regexec.c (check_node_accept_bytes):
20130         Return 0 if the pattern string has a multibyte character here.
20132         regex: implement rational ranges
20133         Reported by Aharon Robbins in
20134         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20135         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20136         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20137         Implement rational ranges.
20139         regex: avoid redefining __wctype
20140         Reported by Aharon Robbins in
20141         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20142         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20143         #undef before defining.
20145         regex: port to hosts where malloc (0) == NULL
20146         Reported by Aharon Robbins in
20147         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20148         * lib/regex_internal.c (re_node_set_alloc):
20149         Don't assume that malloc (0) yields nonnull.
20150         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20151         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20152         * modules/regex (Files): Add m4/eealloc.m4.
20154         regex: port to C89
20155         Reported by Aharon Robbins in
20156         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20157         * lib/regcomp.c (init_word_char): Declaration before statement.
20159         regex: merge glibc changes
20160         Also, copy the license wording from glibc.  This simplifies
20161         merging changes.  gnulib-tool will change the wording to GPL as
20162         appropriate, when importing it to other packages.  The only
20163         glibc change made since the last merge, which needs merging, is:
20164         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20165         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20167         * users.txt: Add Emacs.
20169         doc: omit mention of version when not needed
20170         * doc/gnulib-intro.texi (Portability and Application Code):
20171         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20172         Don't mention particular dates or versions when not necessary, so
20173         that the documentation won't go out of date so quickly.
20175         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20177 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20179         bootstrap: pass --force to autoreconf.
20180         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20181         Add "--force" so that Automake's ylwrap and other such tools
20182         be updated at each bootstrap invocation.
20183         Use it.
20185 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20187         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20188         The earlier patch forgot to update one of the #if conditions, causing
20189         a problem on Debian testing i386 reported by Mats Erik Andersson
20190         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20191         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20192         (__argp_fmtstream_puts, argp_fmtstream_puts)
20193         (__argp_fmtstream_write, argp_fmtstream_write)
20194         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20196         * doc/gnulib-readme.texi: Minor fixups.
20197         (Portability guidelines): Modernize URLs.  Remove some repetition.
20198         (Indent with spaces not TABs): Reword to avoid too-long lines.
20199         Remove some '@ifset standalone' stuff that isn't used.
20201         * doc/gnulib-readme.texi (Portability guidelines):
20202         ctype.h, not ctime.h.
20204         Correct name of POSIX.1-2001.
20205         * doc/posix-functions/fgetc.texi (fgetc):
20206         * doc/posix-functions/fgets.texi (fgets):
20207         * doc/posix-functions/fread.texi (fread):
20208         * doc/posix-functions/fscanf.texi (fscanf):
20209         * doc/posix-functions/getc.texi (getc):
20210         * doc/posix-functions/getchar.texi (getchar):
20211         * doc/posix-functions/scanf.texi (scanf):
20212         POSIX.1-2001, not POSIX-2001.
20214         doc: move README into manual
20215         * README: Move contents to new file doc/gnulib-readme.texi.
20216         Replace with a one-line summary.
20217         * doc/gnulib.texi (Brief Overview): New section,
20218         with old intro preface.  Include gnulib-readme.texi for contents.
20219         (Philosophy): Rename from "Introduction", since this
20220         section no longer introduces the rest.  Write a new preface.
20221         * doc/gnulib-readme.texi: New file, with the old contents of
20222         README texinfo-ized.  This way, the README info appears
20223         in the online and printed manual.
20225 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20227         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20228         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20229         c_vasprintf() prototype.
20231 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20233         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20234         * lib/c-vasprintf.h: Remove stray semicolon.
20236 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20238         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20239         It is obsolete and is planned to be removed from Automake 1.14; see
20240         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20241         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20242         (installdirs-data, installdirs-data-yes):
20243         Use $(MKDIR_P), not $(mkdir_p).
20244         * m4/intl.m4 (AM_INTL_SUBDIR):
20245         * m4/po.m4 (AM_PO_SUBDIRS):
20246         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20248 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20250         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20251         On this platform, we are not optimizing but we are using
20252         the substitute for extern inlines, so compile as if
20253         C99-style extern inline, or a substitute, is available.
20254         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20255         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20256         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20257         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20258         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20259         Declare as ARGP_FS_EI, not as extern.
20260         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20261         (__option_is_short, _option_is_end, __option_is_end)
20262         [!_LIBC && __USE_EXTERN_INLINES]:
20263         Declare as ARGP_EI, not as extern.
20265 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20267         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20269         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20270         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20271         ...), as the latter is fatal with older Autoconfs.
20272         Problem reported and fix suggested by Eric Blake in thread starting at
20273         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20275 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20277         AC_PROG_MKDIR_P: don't workaround if not buggy
20278         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20279         Define only for Autoconf versions before 2.62.
20280         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20281         undocumented m4_PACKAGE_VERSION, for consistency with the
20282         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20283         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20284         was introduced in 2.62.
20286 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20288         New 'c-*printf' modules for formatted output in C locale.
20290         New module 'c-vasnprintf'.
20291         * modules/c-vasnprintf: New file.
20292         * lib/c-vasnprintf.c: New file.
20293         * lib/c-vasnprintf.h: New file.
20295         New module 'c-snprintf'.
20296         * modules/c-snprintf: New file.
20297         * modules/c-snprintf-tests: New file.
20298         * lib/c-snprintf.c: New file.
20299         * lib/c-snprintf.h: New file.
20300         * tests/test-c-snprintf.c: New file.
20301         * tests/test-c-snprintf.sh: New file.
20303         New module 'c-vsnprintf'.
20304         * modules/c-vsnprintf: New file.
20305         * modules/c-vsnprintf-tests: New file.
20306         * lib/c-vsnprintf.c: New file.
20307         * lib/c-vsnprintf.h: New file.
20308         * tests/test-c-vsnprintf.c: New file.
20309         * tests/test-c-vsnprintf.sh: New file.
20311         New module 'c-vasprintf'.
20312         * modules/c-vasprintf: New file.
20313         * modules/c-vasprintf-tests: New file.
20314         * lib/c-asprintf.c: New file.
20315         * lib/c-vasprintf.c: New file.
20316         * lib/c-vasprintf.h: New file.
20317         * tests/test-c-vasprintf.c  +: New file.
20318         * tests/test-c-vasprintf.sh: New file.
20320         New module 'c-xvasprintf'.
20321         * modules/c-xvasprintf: New file.
20322         * modules/c-xvasprintf-tests: New file.
20323         * lib/c-xasprintf.c: New file.
20324         * lib/c-xvasprintf.c: New file.
20325         * lib/c-xvasprintf.h: New file.
20326         * tests/test-c-xvasprintf.c: New file.
20327         * tests/test-c-xvasprintf.sh: New file.
20329 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20331         argp: better 'inline'
20332         Use extern-inline module to declare extern inline functions.
20333         This avoids some bogus warning diagnostics.  Problem discovered
20334         when modifying GNU tar to use the manywarnings module.
20335         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20336         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20337         Define based on extern-inline.
20338         * modules/argp (Depends-on): Add extern-inline.
20340 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20342         filemode, sys_stat: Handle MPX files a la AIX.
20343         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20344         * lib/sys_stat.in.h (S_ISMPX): New macro.
20345         * tests/test-sys_stat.c: Add tests for MPX files.
20347 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20349         x-to-1: honor $PERL
20350         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20351         a chance to use his preferred version of Perl.  This is typically
20352         required by Darwin users whose default /usr/bin/perl does not have all
20353         the libraries required by help2man, and who need to use their MacPorts
20354         installation of Perl instead.
20356 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20358         gnu-web-doc-update: add all the new files, even in new directories
20359         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20360         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20361         Use it.
20362         (main): Don't use cvsutils to get the list of unknown files,
20363         just add all the existing files and directories.
20365 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20367         gnu-web-doc-update: improve --help
20368         * build-aux/gnu-web-doc-update: Move comments into --help.
20370 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20372         mountlist: recognize more "dummy" file systems
20373         * lib/mountlist.c (ME_DUMMY_0):
20374         Add these dummy FS names to the list:
20375         - "debugfs" virtual filesystem for kernel debugging
20376         - "devpts" PTY slave filesystem
20377         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20378         - "fusectl" control filesystem for FUSE
20379         - "mqueue" enumerates POSIX message queues
20380         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20381         - "sysfs" is for exporting kernel objects
20382         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20384 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20386         extern-inline: avoid incompatibility with Darwin Libc
20387         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20388         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20389         Problem reported by Akim Demaille in
20390         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20392 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20394         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20395         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20396         let it handle password prompting.
20398 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20400         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20401         * lib/canonicalize.c (canonicalize_filename_mode):
20402         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20403         fetching the current directory.  Don't overrun the beginning of
20404         rpath if there's no slashes after the MS-Windows drive letter.
20406 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20408         maint.mk: avoid extra forks
20409         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20410         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20411         So use that instead of "$(shell test -f FILE && echo FILE)".
20413 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20415         vasnprintf: fix ASCII_ONLY typo
20416         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20417         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20418         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20419         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20420         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20422 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20424         list, oset, xlist, xoset: fix extern inline issue with C99
20425         This was introduced by my recent changes for 'inline'.
20426         Problem reported for gettext by Daiki Ueno in
20427         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20428         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20429         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20430         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20431         (gl_list_previous_node, gl_list_get_at)
20432         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20433         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20434         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20435         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20436         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20437         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20438         (gl_list_iterator_free, gl_sortedlist_search)
20439         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20440         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20441         (gl_sortedlist_remove):
20442         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20443         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20444         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20445         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20446         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20447         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20448         (gl_list_add_at, gl_sortedlist_add):
20449         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20450         Wrap these extern decls inside "#if 0", because they are implemented
20451         as inline functions, and extern inline is not what's wanted here.
20452         It would simplify these .h files to remove the extern decls entirely,
20453         although a downside would be less-clear separation between
20454         specification and implementation.
20456 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20458         sys_stat: no 'static inline'
20459         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20462         extern-inline: no 'static inline'
20463         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20464         Do not require AC_C_INLINE.
20465         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20466         'static inline', for older compilers.
20468         snippet/warn-on-use: no 'static inline'
20469         * build-aux/snippet/warn-on-use.h:
20470         Remove unnecessary 'inline' in comment.
20472         rbtree-list, rbtreehash-list: no 'static inline'
20473         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20474         * lib/gl_anytree_list2.h (node_at):
20475         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20476         (gl_oset_first, add_nodes_to_buckets):
20477         Now static, not static inline.
20479         regex: no 'static inline'
20480         * lib/regex_internal.c (calc_state_hash):
20481         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20482         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20483         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20484         Now static, not static inline.
20485         (inline) [__GNUC__ < 3 && _LIBC]:
20486         Remove macro; no longer needed.
20488         xvasprintf: no 'static inline'
20489         * lib/xvasprintf.c (xstrcat):
20490         Now static, not static inline.
20491         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20492         Do not require AC_C_INLINE.
20494         parse-datetime, parse-duration: no 'static inline'
20495         * lib/parse-datetime.y (to_uchar):
20496         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20497         (scale_n_add):
20498         Now static, not static inline.
20499         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20500         * modules/parse-duration (configure.ac):
20501         Do not require AC_C_INLINE.
20503         getaddrinfo: no 'static inline'
20504         * lib/getaddrinfo.c (validate_family):
20505         Now static, not static inline.
20506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20507         Do not require AC_C_INLINE.
20509         ftruncate, fts, lstat, openat, raise: no 'static inline'
20510         * lib/ftruncate.c (chsize_nothrow):
20511         * lib/fts.c (opendirat, diropen):
20512         * lib/lstat.c (orig_lstat):
20513         * lib/openat.c (orig_openat):
20514         * lib/raise.c (raise_nothrow):
20515         Now static, not static inline.
20516         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20517         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20518         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20519         * m4/openat.m4 (gl_PREREQ_OPENAT):
20520         * m4/raise.m4 (gl_PREREQ_RAISE):
20521         Do not require AC_C_INLINE.
20523         fflush, stat: no 'static inline'
20524         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20525         (clear_ungetc_buffer, disable_seek_optimization)
20526         (restore_seek_optimization, update_fpos_cache):
20527         * lib/stat.c (orig_stat):
20528         Now static, not static inline.
20529         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20530         (update_fpos_cache):
20531         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20532         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20533         * m4/stat.m4 (gl_PREREQ_STAT):
20534         Do not require AC_C_INLINE.
20536         error, filevercmp: no 'static inline'
20537         * lib/error.c (is_open, flush_stdout):
20538         * lib/filevercmp.c (order):
20539         Now static, not static inline.
20540         * m4/error.m4 (gl_PREREQ_ERROR):
20541         * modules/filevercmp (configure.ac):
20542         Do not require AC_C_INLINE.
20544         dup, execute, fatal-signal, etc.: no 'static inline'
20545         * lib/dup.c (dup_nothrow):
20546         * lib/execute.c (nonintr_close, nonintr_open):
20547         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20548         * lib/fopen.c (orig_fopen):
20549         * lib/freadseek.c (freadptrinc):
20550         * lib/freopen.c (orig_freopen):
20551         * lib/fstat.c (orig_fstat, fstat_nothrow):
20552         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20553         (get_rusage_as_via_iterator):
20554         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20555         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20556         * lib/isatty.c (_isatty_nothrow):
20557         * lib/open.c (orig_open):
20558         * lib/read.c (read_nothrow):
20559         * lib/sigprocmask.c (signal_nothrow):
20560         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20561         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20562         * lib/wait-process.c (unregister_slave_subprocess):
20563         * lib/write.c (write_nothrow):
20564         Now static, not static inline.
20565         * lib/spawn-pipe.c (nonintr_open): Define only if
20566         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20567         * m4/dup.m4 (gl_PREREQ_DUP):
20568         * m4/execute.m4 (gl_EXECUTE):
20569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20570         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20571         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20572         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20573         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20574         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20575         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20576         * m4/open.m4 (gl_PREREQ_OPEN):
20577         * m4/read.m4 (gl_PREREQ_READ):
20578         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20579         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20581         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20582         * m4/write.m4 (gl_PREREQ_WRITE):
20583         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20584         Do not require AC_C_INLINE.
20586         c-strtod, memcoll, readutmp: no 'static inline'
20587         * lib/c-strtod.c (c_locale):
20588         * lib/memcoll.c (strcoll_loop):
20589         * lib/readutmp.c (desirable_utmp_entry):
20590         Now static, not static inline.
20591         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20592         * m4/memcoll.m4 (gl_MEMCOLL):
20593         * m4/readutmp.m4 (gl_READUTMP):
20594         Do not require AC_C_INLINE.
20596         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20597         * lib/arctwo.c (to_uchar):
20598         * lib/md4.c (set_uint32):
20599         * lib/md5.c (set_uint32):
20600         * lib/sha1.c (set_uint32):
20601         * lib/sha256.c (set_uint32):
20602         * lib/sha512.c (set_uint64):
20603         Now static, not static inline.  This is a bit simpler, and doesn't
20604         affect performance with GCC and default optimization.
20605         * m4/arctwo.m4 (gl_ARCTWO):
20606         * m4/md4.m4 (gl_MD4):
20607         * m4/md5.m4 (gl_MD5):
20608         * m4/sha1.m4 (gl_SHA1):
20609         * m4/sha256.m4 (gl_SHA256):
20610         * m4/sha512.m4 (gl_SHA512):
20611         Do not require AC_C_INLINE.
20613         cond, lock, thread: better 'inline'
20614         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20615         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20616         New macros.  Use them instead of static inline, for header functions.
20617         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20618         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20619         * lib/glthread/lock.c (gl_waitqueue_init)
20620         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20621         * lib/glthread/thread.c (get_current_thread_handle):
20622         Change 'static inline' to 'inline'.
20623         * lib/glthread/cond.h, lib/glthread/thread.h:
20624         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20625         * m4/cond.m4 (gl_COND):
20626         * m4/lock.m4 (gl_PREREQ_LOCK):
20627         * m4/thread.m4 (gl_THREAD):
20628         Do not require AC_C_INLINE.
20629         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20631         chdir-long, cycle-check, savewd: better 'inline'
20632         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20633         (find_non_slash):
20634         * lib/cycle-check.c (is_zero_or_power_of_two):
20635         * lib/savewd.c (savewd_delegating):
20636         Change 'static inline' to 'inline'.
20637         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20638         Replace all remaining uses of 'static inline' with it.
20639         * lib/savewd.h:
20640         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20641         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20642         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20643         * m4/savewd.m4 (gl_SAVEWD):
20644         Do not require AC_C_INLINE.
20645         * modules/savewd (Depends-on): Add extern-inline.
20647         base32, base64: no need for 'inline'
20648         * lib/base32.c (to_uchar, get_8, decode_8):
20649         * lib/base64.c (to_uchar, get_4, decode_4):
20650         Change 'static inline' to 'inline'.
20651         * m4/base32.m4 (gl_PREREQ_BASE32):
20652         * m4/base64.m4 (gl_PREREQ_BASE64):
20653         Do not require AC_C_INLINE.
20655         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20656         * lib/gl_array_oset.c (gl_array_nx_add_at):
20657         (gl_array_remove_at):
20658         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20659         (add_to_bucket, remove_from_bucket):
20660         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20661         Change 'static inline' to 'static', as it's simpler to omit
20662         'inline' unless there's a significant performance advantage.
20664         list, oset, xlist, xoset, xsublist: simplify via extern inline
20665         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20666         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20667         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20668         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20669         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20670         New macro.  Replace all uses of 'static inline' with it.
20671         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20672         instead of as macros FOO that are defined to static inline
20673         functions FOO_inline.
20674         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20675         * lib/gl_xsublist.c:
20676         Reimplement from scratch, by defining the corresponding *_INLINE
20677         macro and including the corresponding .h file.  This is simpler.
20678         * modules/list, modules/oset, modules/xlist, modules/xoset:
20679         (Files): Remove m4/gl_list.m4.
20680         (configure.ac): Remove gl_LIST.
20681         * m4/gl_list.m4: Remove.
20682         * modules/list, modules/oset, modules/xlist, modules/xoset:
20683         * modules/xsublist:
20684         (Depends-on): Depend on extern-inline, not inline.
20686         xalloc: better 'inline'
20687         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20688         New macro.  Replace all uses of 'static inline' with it.
20689         (static_inline): Remove.
20690         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20691         Let 'extern inline' do the work automatically, instead of doing
20692         it by hand.
20693         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20694         Remove.  All uses removed.
20695         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20697         gethrxtime: better 'inline'
20698         * lib/xtime.c: New file.
20699         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20700         * lib/xtime.h (XTIME_INCLUDE):
20701         New macros.  Replace all uses of 'static inline' with them.
20702         * lib/gethrxtime.c (gethrxtime): Define only if
20703         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20704         this source file is now always compiled, because of the extern inline.
20705         * lib/gethrxtime.h, lib/xtime.h:
20706         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20707         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20708         if gethrtime works, as they're not needed in that case.
20709         (gl_XTIME): Do not require AC_C_INLINE.
20710         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20711         compiled now.  Move the check into gl_GETHRXTIME.
20712         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20713         (Depends-on): Add extern-inline.
20714         (configure.ac): gethrxtime is always compiled now.
20715         (lib_SOURCES): Add gethrxtime.c.
20717         wctype-h: better 'inline'
20718         * lib/wctype-h.c: New file.
20719         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20720         New macro.  Replace all uses of 'static inline' with it.
20721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20722         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20723         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20724         (Depends-on): Add extern-inline.
20726         unistd: better 'inline'
20727         * lib/unistd.c: New file.
20728         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20729         New macro.  Replace all uses of 'static inline' with it.
20730         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20731         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20732         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20733         (Depends-on): Add extern-inline.
20735         sys_socket: better 'inline'
20736         * lib/sys_socket.c: New file.
20737         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20738         New macro.  Replace all uses of 'static inline' with it.
20739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20740         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20741         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20742         (Depends-on): Add extern-inline.
20744         stdio: better 'inline'
20745         * lib/stdio.c: New file.
20746         * lib/stdio.in.h (_GL_STDIO_INLINE):
20747         New macro.  Replace all uses of 'static inline' with it.
20748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20749         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20750         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20751         (Depends-on): Add extern-inline.
20753         sigaction: better 'inline'
20754         * lib/sig-handler.c: New file.
20755         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20756         New macro.  Replace all uses of 'static inline' with it.
20757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20758         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20759         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20760         (Depends-on): Add extern-inline.
20762         selinux-h: better 'inline'
20763         * lib/se-context.c, lib/se-selinux.c: New files.
20764         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20765         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20766         New macro.  Replace all uses of 'static inline' with it.
20767         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20768         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20769         New macro.  Replace all uses of 'static inline' with it.
20770         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20771         * modules/selinux-h (Files, lib_SOURCES):
20772         Add lib/se-context.c, lib/se-selinux.c.
20773         (Depends-on): Add extern-inline.
20774         (configure.ac): Do not require AC_C_INLINE.
20776         pthread: better 'inline'
20777         * lib/pthread.c: New file.
20778         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20779         New macro.  Replace all uses of 'static inline' with it.
20780         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20781         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20782         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20783         * modules/pthread (Files): Add lib/pthread.c.
20784         (Depends-on): Add extern-inline.
20786         math: better 'inline'
20787         * lib/math.c: New file.
20788         * lib/math.in.h (_GL_MATH_INLINE):
20789         New macro.  Replace all uses of 'static inline' with it.
20790         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20791         * m4/math_h.m4 (gl_MATH_H):
20792         Do not require AC_C_INLINE.
20793         * modules/math (Files, lib_SOURCES):
20794         Add lib/math.c.
20795         (Depends-on): Add extern-inline.
20797         count-one-bits: better 'inline'
20798         * lib/count-one-bits.c: New file.
20799         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20800         New macro.  Replace all uses of 'static inline' with it.
20801         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20802         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20803         Do not require AC_C_INLINE.
20804         * modules/count-one-bits (Files, lib_SOURCES):
20805         Add lib/count-one-bits.c.
20806         (Depends-on): Add extern-inline.
20808         count-leading-zeros: better 'inline'
20809         * lib/count-leading-zeros.c: New file.
20810         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20811         New macro.  Replace all uses of 'static inline' with it.
20812         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20813         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20814         Do not require AC_C_INLINE.
20815         * modules/count-leading-zeros (Files, lib_SOURCES):
20816         Add lib/count-leading-zeros.c.
20817         (Depends-on): Add extern-inline.
20819         bitrotate: better 'inline'
20820         * lib/bitrotate.c: New file.
20821         * lib/bitrotate.h (BITROTATE_INLINE):
20822         New macros.
20823         Replace all uses of 'static inline' with them.
20824         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20825         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20826         (Depends-on): Add extern-inline.
20827         (configure.ac): Do not require AC_C_INLINE.
20829 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20831         maint.mk: avoid gratuitous failure
20832         Reported by Stefano Lattarini in
20833         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20834         * top/maint.mk (public-submodule-commit): Quote more safely.
20836 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20838         canonicalize, canonicalize-lgpl: support MS-Windows file names
20839         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20840         for test cases, which it'd be nice to add at some point.
20841         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20842         * lib/canonicalize.c (canonicalize_filename_mode):
20843         * lib/canonicalize-lgpl.c (__realpath):
20844         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20845         slash is at the beginning of the file name.  Use ISSLASH, instead
20846         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20847         the first character with '/'.  Test for
20848         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20849         with a drive letter.
20850         * lib/canonicalize.c (SLASHES): New macro.
20851         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20853 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20855         fts: introduce FTS_VERBATIM
20856         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20857         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20858         * lib/fts.c (fts_open): Honor it.
20860 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20862         getlogin-tests: allow errno == ENXIO
20863         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20864         with errno == ENXIO (No controlling tty).
20865         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20866         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20867         with errno == ENOENT.  This was reported to happen in various
20868         situations on GNU/Linux.
20870 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20872         getlogin-tests: allow errno == ENOENT
20873         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20874         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20875         when running a test in an Emacs shell buffer.
20877 2012-11-08  Jim Meyering  <jim@meyering.net>
20879         tests/nap.h: avoid warning about unused variable
20880         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20882         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20883         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20884         white space before each of the special-cased file names, to avoid
20885         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20886         in http://bugs.gnu.org/12830.
20888 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20890         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20891         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20892         fails with errno == EBADF when fd is opened with O_PATH.
20893         Reported by Jim Meyering in
20894         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
20895         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20896         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
20898 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20900         test-utimens: speed up by taking shorter naps
20901         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
20902         New functions.
20903         (nap): Use them, to do a better job of guessing the delay.
20904         On Fedora 17 with ext4 atop md atop hard disks, this made
20905         test-utimens run 10x faster, because the test napped for
20906         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20907         <http://bugs.gnu.org/12820#11>.
20909 2012-11-07  Jim Meyering  <jim@meyering.net>
20911         mountlist.c: fix a compilation failure
20912         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
20913         I introduced while transforming commit v0.0-7683-g613bcb6
20915 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20917         errno: port to LynxOS 178 2.2.2
20918         Problem reported by Joel Brobecker in
20919         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
20920         * doc/posix-headers/errno.texi (errno.h): Document this.
20921         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
20922         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
20923         Supply a string for EILSEQ.
20924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
20926 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20928         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
20929         Linux kernel 2.6.39 introduced O_PATH (see
20930         <http://lwn.net/Articles/433854/>) and this is a better fallback
20931         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
20932         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20933         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
20934         * lib/fcntl.in.h (O_ACCMODE):
20935         * tests/test-fcntl-h.c (main):
20936         Do not reject O_ACCMODE merely because it has more than the
20937         minimal number of bits, as POSIX allows extensions here.
20939 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
20941         mountlist: do not classify a bind-mounted dir entry as "dummy"
20942         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
20943         the "none"-testing clause.
20944         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
20945         exception for bind-mounted directories.
20947 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
20949         quote: provide a means to escape strings with nul characters
20950         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
20951         (quote, quote_n): Rename formal arguments for consistency with
20952         quotearg.
20954 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20956         test-raise: don't assume 199 is an invalid signal
20957         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
20959         sh-quote-tests: port to Solaris 9
20960         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
20961         Problem reported by Dagobert Michelsen in
20962         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
20964 2012-10-28  Jim Meyering  <jim@meyering.net>
20966         maint.mk: rename a new configurable variable
20967         * top/maint.mk (_gl_translatable_string_re): Rename from
20968         translation-markers: _gl_ prefix to insulate from user Makefile code,
20969         and the _re suffix to inform that it's a regular expression.
20971 2012-10-26  Eric Blake  <eblake@redhat.com>
20973         maint.mk: let packages tweak sc_po_check pattern
20974         * top/maint.mk (sc_po_check): Add translation-markers, to allow
20975         finding files with other translation markers.
20977 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20979         euidaccess: speed up 'configure' on GNU hosts
20980         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
20981         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
20982         it's needed only in this case.  Use AC_CHECK_DECLS, not
20983         AC_CHECK_DECLS_ONCE.
20984         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
20985         or AC_REQUIRE for AC_FUNC_GETGROUPS.
20987         * lib/regexec.c (re_search_internal): Fix grammar in comment.
20989 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20991         fchmodat, fchownat, fstatat: port to non-inlining compilers
20992         Problem reported for FreeBSD 9 by Jim Meyering in
20993         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
20994         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
20995         New files, which define FCHMODAT_INLINE etc.
20996         * lib/fchmodat.c (FCHMODAT_INLINE):
20997         * lib/fchownat.c (FCHOWNAT_INLINE):
20998         * lib/fstatat.c (FSTATAT_INLINE):
20999         Remove, as chmodat.c etc. now do this.
21000         * modules/fchmodat (Files): Add lib/chmodat.c.
21001         * modules/fchownat (Files): Add lib/chownat.c.
21002         * modules/fstatat (Files): Add lib/statat.c.
21004 2012-10-15  Jim Meyering  <jim@meyering.net>
21006         fchmodat.c, fchownat.c: compile-impeding typos
21007         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21008         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21009         Introduced in commit v0.0-7636-gd202279.
21011 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21013         fcntl-h: support GNU flags like O_IGNORE_CTTY
21014         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21015         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21016         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21017         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21018         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21019         Define to 0 if not already defined.
21020         * tests/test-fcntl-h.c: Test these new flags.
21022 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21024         faccessat, etc.: support AT_FDCWD-only use
21025         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21026         this function only if its first argument is AT_FDCWD.
21027         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21028         values other than AT_FDCWD, so it doesn't want all the openat
21029         machinery with fchdir etc.
21030         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21031         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21032         * modules/unlinkat (Files):
21033         Remove lib/openat-priv.h, as at-internal supplies this file.
21034         Removing this file here allows us to support programs like Emacs
21035         that avoid at-internal.
21037         faccessat: speed up 'configure' on mainstream hosts
21038         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21039         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21040         since it's only on unusual platforms that we need to check for
21041         'access', and it's better not to slow 'configure' down on all
21042         platforms.
21044         faccessat: port to Solaris 10
21045         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21046         Needed on Solaris 10, which doesn't have AT_EACCESS,
21047         so we need the Gnulib fcntl.h, which defines it.
21049 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21050         canonicalize: fix C89 compilation
21051         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21052         declarations so C89 is supported.  Also remove the comment
21053         referencing memorty allocation as the suggested feature could
21054         not be implemented as suggested.
21055         Reported by Michael Goffioul.
21057 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21059         group-member: omit unnecessary dependencies
21060         This is for Emacs, which has its own allocator and where we
21061         don't want to use xalloc.
21062         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21063         since we no longer use xmalloc.  Do not include stdbool.h, since
21064         the changes below happen to remove the only use of bool.
21065         (GROUPBUF_SIZE): New constant.
21066         (struct group_info): Remove n_groups member.  Add groupbuf member.
21067         This lets us get the groups without using malloc, usually.
21068         (free_group_info, get_group_info): Adjust to this.
21069         (get_group_info): Return the number of groups found, or -1 on error.
21070         Use plain malloc not xmalloc, and treat its failure as if there
21071         are no groups, as the user already loses in case of error.
21072         (group_member): Simplify, based on changes to get_group_info.
21073         * modules/group-member (Depends-on): Remove dependencies on
21074         xalloc and stdbool.  Add dependency on xalloc-oversized.
21076 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21078         gethrxtime: port to C++
21079         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21081 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21083         ptsname: fix macro-name typo
21084         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21086 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21088         inttostr: Relax license.
21089         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21091 2012-10-03  Eric Blake  <eblake@redhat.com>
21093         ptsname_r: support ptys returned by FreeBSD posix_openpt
21094         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21095         lives in /dev/pts/.
21097 2012-10-02  Eric Blake  <eblake@redhat.com>
21099         pselect: reject invalid file descriptors
21100         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21101         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21102         * modules/pselect (Depends-on): Add dup2.
21103         * doc/posix-functions/pselect.texi (pselect): Document this.
21105         select: reject invalid file descriptors
21106         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21107         * lib/select.c (rpl_select) [!win32]: Work around it.
21108         * modules/select (Depends-on): Add dup2.
21109         * doc/posix-functions/select.texi (select): Document this.
21111         select: enhance test
21112         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21113         New functions.
21114         (test_function): Enhance test.
21115         (do_select_bad_fd): Avoid any stale errno values.
21117         ptsname: reject invalid file descriptors
21118         http://www.austingroupbugs.net/view.php?id=503
21119         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21121         * modules/stdlib (Makefile.am): Replace witness.
21122         * lib/stdlib.in.h (ptsname): Allow for replacement.
21123         * modules/ptsname (configure.ac): Trigger replacement.
21124         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21126 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21128         hash-pjw-bare: new module
21129         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21130         * lib/hash-pjw-bare.h: Likewise.
21131         * modules/hash-pjw-bare: New file.
21132         * MODULES.html.sh (Misc): Add it.
21134 2012-10-02  Eric Blake  <eblake@redhat.com>
21136         manywarnings: cater to more gcc infelicities
21137         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21138         -Wuninitialized without -O.
21140 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21142         select, poll tests: Make setsockopt invocation effective.
21143         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21144         the bind() call.
21145         * tests/test-select.h (open_server_socket): Likewise.
21147 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21149         sockets, sys_stat: restore AC_C_INLINE
21150         This undoes the 2012-09-22 patch.
21151         * m4/sockets.m4 (gl_SOCKETS):
21152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21153         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21154         and does not support plain 'inline'.  Reported by Bruno Haible in
21155         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21157 2012-09-30  Bruno Haible  <bruno@clisp.org>
21159         localeconv tests: Avoid test failure on OpenIndiana.
21160         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21161         skip the 'grouping' and 'mon_grouping' tests.
21162         Reported by Jim Meyering.
21164 2012-09-30  Bruno Haible  <bruno@clisp.org>
21166         havelib: Follow libtool developments.
21167         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21168         Suggested by Simon Josefsson.
21170 2012-09-29  Jim Meyering  <meyering@redhat.com>
21172         fstatat.c: fix a compile-impeding typo
21173         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21174         Introduced in commit v0.0-7636-gd202279.
21175         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21177 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21179         extern-inline: provide a -Wundef safe config.h
21180         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21181         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21182         to produce a -Wundef warning free config.h.
21184 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21186         hash-pjw: relax license to LGPLv2+
21187         * modules/hash-pjw (License): Relax, with consent of author.
21189 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21191         maint.mk: fix strict vs. lazy variable issues with RELEASE
21192         * top/maint.mk (_equal): New function.
21193         (member_check): Strip the result to avoid spurious spaces.
21194         (url_dir_list): Do not use ifeq, which is strict, as it will
21195         require RELEASE_TYPE to be defined.
21196         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21197         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21198         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21199         (announcement_Cc_beta,announcement_mail_headers_beta)
21200         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21201         (release): Do not depend on $(release-type), as it forces its
21202         evaluation.  Bounce to it.
21204 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21206         maint.mk: formatting changes
21207         * top/maint.mk: Indent bodies of if's.
21209 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21211         maint.mk: factor the validation of RELEASE_TYPE
21212         With help from Jim Meyering.
21213         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21214         * top/maint.mk (_empty, _sp): Move their definition earlier.
21215         (member-check, release-type): New.
21216         Use the latter instead of $(RELEASE_TYPE).
21217         Remove now useless local checks.
21219 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21221         maint.mk: provide "make upload" to ease uploading
21222         See
21223         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21224         Do not depend simply on the current $(VERSION), as there may have been
21225         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21226         as "make release-commit" already does.
21228         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21229         "make TYPE".
21231         * top/maint.mk (upload_command, upload, release): New.
21232         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21233         (VERSION): first word of $(RELEASE) is always right.
21234         (emit_upload_commands): Adjust.
21235         * top/README-release: Update.
21237 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21239         maint.mk: silent rules
21240         With help from Stefano Lattarini.
21241         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21242         (announcement): Use $(AM_V_at).
21244 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21246         localename: port gl_locale_name_thread_unsafe to FreeBSD
21247         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21248         and use the simpler FreeBSD implementation on Mac OS X as well.
21249         Original idea suggested by Ed Maste in
21250         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21252 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21254         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21255         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21256         * lib/mbuiter.c, lib/xsize.c: New files.
21257         * lib/binary-io.h (BINARY_IO_INLINE):
21258         * lib/eealloc.h (EEALLOC_INLINE):
21259         * lib/mbfile.h (MBFILE_INLINE):
21260         * lib/mbiter.h (MBITER_INLINE):
21261         * lib/mbuiter.h (MBUITER_INLINE):
21262         * lib/xsize.h (XSIZE_INLINE):
21263         New macros.
21264         Replace all uses of 'static inline' with them.
21265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21266         * m4/eealloc.m4 (gl_EEALLOC):
21267         * m4/mbfile.m4 (gl_MBFILE):
21268         * m4/mbiter.m4 (gl_MBITER):
21269         * m4/xsize.m4 (gl_XSIZE):
21270         Do not require AC_C_INLINE.
21271         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21272         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21273         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21274         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21275         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21276         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21277         * modules/binary-io, modules/eealloc, modules/mbfile:
21278         * modules/mbiter, modules/mbuiter:
21279         (Depends-on): Add extern-inline.
21281         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21282         * lib/pipe-filter-aux.c: New file.
21283         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21284         Replace all uses of 'static inline' with it.
21285         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21286         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21287         (filter_retcode): No real need for inline here.
21288         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21289         (Files): Add lib/pipe-filter-aux.c.
21290         (Depends-on): Add extern-inline.
21291         (configure.ac): Do not require AC_C_INLINE.
21292         (lib_SOURCES): Add pipe-filter-aux.c.
21294         fdutimensat: omit unnecessary AC_C_INLINE
21295         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21297         fchmodat, fchownat, fstatat: use extern-inline
21298         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21299         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21300         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21301         New macros.
21302         * lib/openat.h:
21303         Replace all uses of 'static inline' with them.
21304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21305         * modules/fchmodat, modules/fchownat, modules/fstatat:
21306         * modules/openat-h:
21307         (Depends-on):
21308         Add extern-inline.
21309         (configure.ac): Remove AC_C_INLINE.
21311         acl, mbchar, priv-set: use extern-inline
21312         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21313         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21314         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21315         New macros.
21316         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21317         Replace all uses of 'static inline' with it.
21318         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21319         * m4/acl.m4 (gl_FUNC_ACL):
21320         * m4/mbchar.m4 (gl_MBCHAR):
21321         * m4/priv-set.m4 (gl_PRIV_SET):
21322         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21323         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21324         Add extern-inline.
21326         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21327         * m4/sockets.m4 (gl_SOCKETS):
21328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21329         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21330         environments where it's already guaranteed to work, so we needn't
21331         check for it at 'configure'-time.
21333         tls-tests: omit unnecessary 'inline'
21334         * tests/test-tls.c (perhaps_yield): No longer inline.
21335         Simplicity and portability trump efficiency in test cases.
21337         utimens-tests: avoid unnecessary 'inline'
21338         * modules/fdutimensat-tests (configure.ac):
21339         * modules/futimens-tests (configure.ac):
21340         * modules/utimens-tests (configure.ac):
21341         * modules/utimensat-tests (configure.ac):
21342         Remove AC_C_INLINE.
21343         * tests/test-utimens-common.h (ctime_compare):
21344         No longer inline.  Simplicity and portability trump efficiency here.
21346         misc: don't limit commentary to inline functions
21347         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21348         * lib/xalloc-oversized.h, lib/xsize.h:
21349         Contrast macros to functions in general, not just to inline functions,
21350         when the commentary does not apply only to inline functions.
21352 2012-09-20  Jim Meyering  <meyering@redhat.com>
21354         non-recursive-gnulib-prefix-hack: new module
21355         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21356         the file that originated in Bison.
21357         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21358         largely copied from a snippet that resided in bison's configure.ac.
21359         * modules/non-recursive-gnulib-prefix-hack: New file.
21360         * MODULES.html.sh (Support for maintaining and releasing projects):
21361         Add it.
21363 2012-09-18  Jim Meyering  <meyering@redhat.com>
21365         maint.mk: generalize _gl_tight_scope for non-recursive make
21366         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21367         that *.h would describe additional .h files in the directory
21368         specified by $(_gl_TS_dir).  I.e., add this...
21369         (_gl_TS_other_headers): New variable.
21371         maint.mk: exempt trailing blanks found in "binary" files
21372         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21373         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21374         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21376 2012-09-17  Jim Meyering  <meyering@redhat.com>
21378         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21379         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21380         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21381         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21383 2012-09-17  Jim Meyering  <meyering@redhat.com>
21385         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21386         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21387         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21388         It is not in the same category as "exit (0)" or "exit (1)", and
21389         besides, I know of no symbolic name for that 77.  Reported by
21390         Richard W.M. Jones in
21391         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21393 2012-09-17  Jim Meyering  <meyering@redhat.com>
21395         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21396         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21397         all uses of #define, not just those that start in column 1.
21398         Richard W.M. Jones reported a false positive in
21399         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21401 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21403         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21404         * lib/localcharset.c (locale_charset) [DARWIN7]:
21405         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21406         as these two values are incompatible.  Problem reported by Max Horn.
21407         For more discussion, please see
21408         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21410         doc: document sticky-EOF issue
21411         * doc/posix-functions/fgetc.texi (fgetc):
21412         * doc/posix-functions/fgets.texi (fgets):
21413         * doc/posix-functions/fread.texi (fread):
21414         * doc/posix-functions/fscanf.texi (fscanf):
21415         * doc/posix-functions/getc.texi (getc):
21416         * doc/posix-functions/getchar.texi (getchar):
21417         * doc/posix-functions/scanf.texi (scanf):
21418         Mention that glibc and default Solaris do not conform to
21419         C99 and POSIX-2001 or later, with respect to how getchar
21420         etc. behave when feof reports nonzero.
21422 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21424         poll: fix poll(0, NULL, msec)
21425         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21426         but nfd is 0.  In that case poll should behave like select.
21428 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21429             Paolo Bonzini  <bonzini@gnu.org>
21431         poll: fix for systems that can't recv() on a non-socket
21432         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21433         is readable.  In this case POLLHUP will not be supported.
21434         * doc/posix-functions/poll.texi: Document this.
21436 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21438         poll/select: document portability problems not fixed by Gnulib.
21439         * doc/posix-functions/poll.texi: poll does not work well on
21440         pipes under Windows.  It has the same limitations as select on
21441         BeOS.
21442         * doc/posix-functions/select.texi: select does not work well
21443         on pipes under Windows.
21445 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21447         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21448         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21449         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21450         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21452 2012-09-06  Eric Blake  <eblake@redhat.com>
21454         net_if: give more details about the bug being fixed
21455         * doc/posix-headers/net_if.texi: Add clarification.
21457 2012-09-05  Eric Blake  <eblake@redhat.com>
21459         net_if: new module
21460         * modules/net_if: New module, borrowing ideas from netinet_in.
21461         * m4/net_if_h.m4: New file.
21462         * lib/net_if.in.h: Likewise.
21463         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21464         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21465         * tests/test-net_if.c: Make function checks conditional.
21466         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21468 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21470         readutmp: fix non-portable UT_PID use
21471         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21472         Use `UT_PID (u) > 0' as absolute condition.
21474 2012-09-04  Jim Meyering  <meyering@redhat.com>
21476         fts: reduce two or more trailing spaces to just one, usually
21477         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21478         or more slashes, trim all but the final one.  But if a name consists
21479         solely of two slashes, don't modify it.  If it consists solely of
21480         three or more slashes, strip all but one.
21482         This is part of the solution to a minor problem with rm:
21483         it would print a bogus ELOOP diagnostic when failing to remove
21484         the slash-decorated name of a symlink-to-directory:
21486             $ mkdir d && ln -s d s && env rm -r s/
21487             rm: cannot remove 's': Too many levels of symbolic links
21489         With the change below and a trivial don't-trim-trailing-slashes
21490         adjustment to remove.c, it does this:
21492             $ env rm -r s/
21493             rm: cannot remove 's/': Not a directory
21495         Improved by: Eric Blake
21497         fts: when there is no risk of overlap, use memcpy, not memmove
21498         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21500 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21502         stdbool: be more compatible with mixed C/C++ compiles
21503         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21504         Define to bool, true, false, respectively, as GCC's builtin
21505         stdbool.h does.  Problem reported by Michael Goffioul in
21506         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21508 2012-08-28  Jim Meyering  <meyering@redhat.com>
21510         revert last change: it was not needed
21511         * tests/test-vc-list-files-git.sh: There's already a test for
21512         a working git, just below.
21514 2012-08-28  Jim Meyering  <meyering@redhat.com>
21516         tests: test-vc-list-files-git.sh: skip if git is not available
21517         * tests/test-vc-list-files-git.sh: Skip this test when git is
21518         not available.
21520 2012-08-26  Bruno Haible  <bruno@clisp.org>
21522         gnulib-tool: Remove no-op option --no-changelog.
21523         * gnulib-tool (func_usage): Don't mention --no-changelog.
21524         (do_changelog): Remove variable.
21525         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21527 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21529         doc: remove fdl-1.2.texi
21530         It is no longer used or maintained, and its use of @acronym
21531         is problematic.  See the thread containing
21532         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21533         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21534         * doc/old-licenses/fdl-1.2.texi: Remove.
21536         execinfo: port to FreeBSD
21537         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21538         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21539         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21540         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21542 2012-08-23  Jim Meyering  <meyering@redhat.com>
21544         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21545         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21546         to placate gcc's -Wold-style-declaration.
21548 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21550         doc: do not use @acronym
21551         * doc/inet_ntoa.texi (inet_ntoa):
21552         * doc/parse-datetime.texi (Seconds since the Epoch)
21553         (Specifying time zone rules):
21554         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21555         Don't use @acronym.  Problem reported by John Darlington in
21556         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21558 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21560         stdnoreturn: port to newer GCCs
21561         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21562         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21563         Problem reported by Jim Meyering in
21564         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21565         Also, rename the 'test' function to a void a clash with the
21566         already-supplied 'main' function; this fixes a bug that incorrectly
21567         rejected GCC 4.7.1's <stdnoreturn.h>.
21568         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21569         Document GCC problem.
21571 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21573         pipe-filter: fix comment typo
21574         * lib/pipe-filter.h: Mention correct function.
21576 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21578         execinfo: new module
21579         This is for Emacs.  Currently, it provides a no-effect stub
21580         on all platforms where it does not already work.
21581         It already works on glibc-based systems, and on Solaris 11.
21582         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21583         New files.
21584         * doc/glibc-headers/execinfo.texi (execinfo.h):
21585         * MODULES.html.sh (Misc): Document it.
21587 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21589         extern-inline: support old GCC 'inline'
21590         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21591         if available.  This applies to GCC versions 2.7 through 4.2, or
21592         when newer GCC is using -fgnu89-inline.  The goal is to address
21593         some of the performance issues mentioned by Bruno Haible in
21594         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21596 2012-08-20  Eric Blake  <eblake@redhat.com>
21598         maint.mk: avoid redundant file name in message
21599         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21600         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21601         (sc_makefile_path_separator_check): Remove bogus $(ME).
21603 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21605         timer-time: fix link order when static linking on glibc
21606         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21607         _after_ -lrt so that it's significant.
21609 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21611         timespec: omit unnecessary AC_C_INLINE
21612         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21614         stat-time: omit unnecessary AC_C_INLINE
21615         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21616         Do not require AC_C_INLINE.
21618         ignore-value: omit unnecessary AC_C_INLINE
21619         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21621         sys_select: avoid 'static inline'
21622         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21624         mktime: avoid 'static inline'
21625         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21628 2012-08-19  Bruno Haible  <bruno@clisp.org>
21630         gnulib-tool: Improve coding style.
21631         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21632         func_emit_lib_Makefile_am.
21633         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21635 2012-08-19  Bruno Haible  <bruno@clisp.org>
21637         gnulib-tool: Fix indentation.
21638         * gnulib-tool (func_import): Fix indentation.
21640 2012-08-19  Bruno Haible  <bruno@clisp.org>
21642         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21643         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21644         on the list of removed files.
21646 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21648         test-parse-datetime: avoid glibc leap-second glitch
21649         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21650         with the 2012 rules.  Problem reported by Bruce Dubbs in
21651         <http://bugs.gnu.org/12206>.
21653 2012-08-14  Bruno Haible  <bruno@clisp.org>
21655         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21656         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21657         from argument.
21658         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21660 2012-08-14  Eric Blake  <eblake@redhat.com>
21662         ldexp: relax license
21663         * modules/ldexp (License): Trivial relax, since the module only
21664         provides a permissively licensed m4 file.
21666 2012-08-13  Bruno Haible  <bruno@clisp.org>
21668         gnulib-tool: Fix persistence of --witness-c-macro option.
21669         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21670         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21672 2012-08-11  Eric Blake  <eblake@redhat.com>
21674         count-leading-zeros: use a lookup table on non-gcc compilers
21675         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21676         alternate implementation, suggested by Jim Meyering.
21678 2012-08-10  Eric Blake  <eblake@redhat.com>
21680         count-leading-zeros: new module
21681         * modules/count-leading-zeros: New module.
21682         * m4/count-leading-zeros.m4: New file.
21683         * lib/count-leading-zeros.h: Likewise.
21684         * modules/count-leading-zeros-tests: New test.
21685         * tests/test-count-leading-zeros.c: New file.
21686         * MODULES.html.sh (Integer arithmetic functions): Document it.
21688 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21689             Jim Meyering  <meyering@redhat.com>
21691         maintainer-makefile: Fix syntax error with dash.
21692         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21693         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21695 2012-08-05  Jim Meyering  <meyering@redhat.com>
21697         extern-inline: also ignore -Wmissing-declarations
21698         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21699         required with gcc-4.8.0-to-be.
21701         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21702         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21703         for /error ?([^,]*)/.  This avoids false-positives for strings like
21704         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21706 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21708         gnumakefile: better interaction with Automake-NG
21709         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21710         Automake-NG always contain a definition of VPATH, even in non-VPATH
21711         builds (its value being simply '.' in that case).  So, in the
21712         'clean-GNUmakefile' rule, to determine whether running under a
21713         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21714         '$(VPATH)' expands to the empty string.
21716 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21718         base64: Use extern C scope in header file, for C++.
21719         * lib/base64.h: Add C++ namespace protection.
21721 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21723         stat-time, timespec, u64: support naive out-of-dir builds
21724         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21725         Use '#include "foo.h"', not '#include <foo.h>', when including
21726         one's own interface.  This works better when configuring with
21727         out-of-directory builds, since packages need not add an
21728         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21730 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21732         utimens: use extern-inline
21733         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21734         * lib/utimens.h: Add copyright notice, since this is now large enough
21735         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21736         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21737         * modules/utimens (Depends-on): Add extern-inline.
21739         u64: use extern-inline
21740         * lib/u64.c: New file.
21741         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21742         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21743         * modules/u64 (Files): Add lib/u64.c.
21744         (Depends-on): Add extern-inline.
21745         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21746         does that now.
21747         (lib_SOURCES): Add u64.c.
21749         timespec: use extern-inline
21750         * lib/timespec.c: New file.
21751         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21752         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21753         * modules/timespec (Files): Add lib/timespec.c.
21754         (Depends-on): Add extern-inline.
21755         (lib_SOURCES): Add timespec.c.
21757         stat-time: use extern-inline
21758         * lib/stat-time.c: New file.
21759         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21760         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21761         * modules/stat-time (Files): Add lib/stat-time.c.
21762         (Depends-on): Add extern-inline.
21763         (lib_SOURCES): Add stat-time.c.
21765         extern-inline: new module
21766         * modules/extern-inline, m4/extern-inline.m4: New files.
21767         This is for better support of 'extern inline' a la ISO C99,
21768         with a portable alternative on compilers that do not support
21769         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21770         of the Emacs executable, when compiled with debugging disabled,
21771         which is a typical way that Emacs is built while developing.
21773 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21775         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21776         * build-aux/do-release-commit-and-tag: Move variable definitions
21777         together.
21778         ($branch): Instead of defaulting to "master", default to the current
21779         branch (as gnu-web-doc-update does).
21780         (help): Display the current values of the option arguments.
21781         * top/maint.mk (release-commit): New.
21782         * top/README-release: Simplify the corresponding step.
21784 2012-07-30  Eric Blake  <eblake@redhat.com>
21786         passfd: fix comment on recvfd
21787         * lib/passfd.c (recvfd): Fix comment.
21788         Reported by Jann Horn <jannhorn@googlemail.com>.
21790 2012-07-30  Jim Meyering  <meyering@redhat.com>
21792         maint.mk: avoid a sub-shell
21793         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21795 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21797         maint.mk: use silent-rules support from Automake
21798         * top/maint.mk (news-check, vc-diff-check, announcement)
21799         (no-submodule-changes, alpha beta stable, release-prep)
21800         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21802 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21804         maint.mk: provide a web-manual-update target
21805         * top/maint.mk: here.
21806         * top/README-release: Use it to simplify the web manual update step.
21808 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21810         README-release: shorten the circuit to post a news
21811         * top/README-release: Point directly to the news submission form.
21813 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21815         gnu-web-doc-update: fix --help
21816         * build-aux/gnu-web-doc-update: The information "top level" was written
21817         twice.
21819 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21821         maint.mk: absolute VPATH issue
21822         * top/maint.mk (release-prep): Help Git find .git/.
21823         From Jim Meyering.
21825 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21827         gitlog-to-changelog: fix previous change
21828         * build-aux/gitlog-to-changelog: Fix condition.
21829         Add missing ";".
21831 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21833         gitlog-to-changelog: don't expect .git to be in $srcdir
21834         Reported by Bruno Haible.
21835         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21836         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21837         Use it.
21839 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21841         maint.mk: absolute VPATH build fix
21842         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21843         $(srcdir) is not a parent of $(builddir).
21845 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21847         clean-temp: Fix memory leak.
21848         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21849         'files' members of tmpdir.
21851 2012-07-27  Jim Meyering  <meyering@redhat.com>
21853         maint.mk: new rule: refresh-gnulib-patches
21854         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21855         Use this rule to refresh them.
21856         * top/maint.mk (refresh-gnulib-patches): New rule.
21858 2012-07-24  Bruno Haible  <bruno@clisp.org>
21860         gnulib-tool: Fix handling of inctests variable.
21861         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21862         Reported by Nick Bowler <nbowler@elliptictech.com>.
21864 2012-07-22  Bruno Haible  <bruno@clisp.org>
21866         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21867         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21868         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21869         Remove exemption for getpass.h.
21870         Suggested by Eric Blake.
21872 2012-07-20  Eric Blake  <eblake@redhat.com>
21874         verify: document conflict with -Wnested-externs
21875         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21877         maint.mk: forbid exit(-1)
21878         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21880 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21882         fsusage: port back to Solaris
21883         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21884         error (fsd not declared) on Solaris 10.  Reported privately by
21885         Andrew Borodin.
21887 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21889         gnu-web-doc-update: fix error messages
21890         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21892         gnu-web-doc-update: check the requirements.
21893         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
21894         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21895         * build-aux/bootstrap (find_tool): Comment change.
21897 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
21899         maint.mk: minor simplication.
21900         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
21901         for default values.
21903 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
21905         gitlog-to-changelog: VPATH build issues
21906         If builddir is not a subdirectory of srcdir, running git from it will
21907         fail.
21908         * build-aux/gitlog-to-changelog (--srcdir): New option.
21910 2012-07-15  Bruno Haible  <bruno@clisp.org>
21912         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
21913         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
21914         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
21915         Remove exemption for fpending.h.
21916         Suggested by Eric Blake.
21918 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21920         pthread_sigmask: fix bug on FreeBSD 9
21921         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
21922         Include string.h.
21923         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
21924         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
21925         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
21926         but pthread_sigmask (1729, NULL, NULL) returns zero.
21927         See <http://bugs.gnu.org/11884>.
21928         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
21929         by inspecting whether the main call changed the old mask.
21931 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
21933         README-release: make it more legible
21934         * top/README-release: Improve typography slightly.
21936 2012-07-15  Jim Meyering  <meyering@redhat.com>
21938         maint: require that each sc_... command start with "@"
21939         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
21940         "make sc_maint" helps us avoid this nit.
21942 2012-07-15  Jim Meyering  <meyering@redhat.com>
21944         maint.mk: add leading "@" to quiet new "make syntax-check" rule
21945         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
21947 2012-07-13  Eric Blake  <eblake@redhat.com>
21949         maint.mk: new syntax check for HAVE_DECL checks
21950         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
21951         * cfg.mk
21952         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21953         Exempt some false positives.
21954         Based on a report by Karel Zak.
21956         argp: make HAVE_DECL usage consistent
21957         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
21958         macros, not whether they are defined.
21959         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
21960         convention with other declaration checks.
21961         Reported by Karel Zak, with suggestions from Paul Eggert.
21963         stat-time: relax license to LGPLv2+
21964         * modules/stat-time (License): Relax, with consent of all authors.
21966         strndup: fix m4 usage error
21967         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
21968         defined, to either 0 or 1.
21969         Reported by Karel Zak.
21971 2012-07-11  Jim Meyering  <meyering@redhat.com>
21973         maint: enable the sc_avoid_if_before_free syntax-check rule
21974         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
21975         (if_before_free_offenders_): Define.
21976         (if_before_free_basename_re_): Define.
21977         Exempt current files with useless if-before-free.
21979 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21981         gettext: do not assume '#define ... defined ...' behavior
21982         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
21983         Do not use '#define FOO ... defined BAR ...', as the C standard says
21984         it's not portable to expect that this works after macro expansion.
21985         Problem reported for gzip by Steven M. Schweda in
21986         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
21988 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21990         getloadavg: clean out old Emacs and Autoconf cruft
21991         See Glenn Morris in <http://bugs.gnu.org/11905>.
21992         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
21993         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
21994         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
21995         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
21997 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
21999         bootstrap: let warn be like tests/init.sh's warn_
22000         Reported by Jim Meyering.
22001         * build-aux/bootstrap (warn): Remove, replaced by...
22002         (warnf_, warn_): these.
22003         Adjust callers.
22004         Shorten messages that no longer fit in 80 columns.
22006 2012-07-09  Bruno Haible  <bruno@clisp.org>
22008         getopt: Simplify after Emacs changed.
22009         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22010         (gl_GETOPT_IFELSE): Remove macro.
22012 2012-07-09  Jim Meyering  <meyering@redhat.com>
22014         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22015         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22017         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22018         Bugs in both of those conspired to make the
22019         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22020         _sc_search_regexp's handling of non-empty $in_files would filter
22021         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22022         choice of in_files value meant there would be no match in most
22023         projects, due to the presence of two or more Makefile.in files.
22024         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22025         Fix a bug in how a non-empty $$in_files was processed:
22026         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22027         in spite of the name, it's a regexp, not a list of file names.
22029 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22031         getloadavg, getopt: fix commentary re configure.in
22032         Autoconf is deprecating the name 'configure.in', so change it to
22033         to the new name 'configure.ac' in a couple of places.
22034         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22035         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22036         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22037         Emacs has renamed it to configure.ac, and it no longer refers
22038         to these macros anyway.
22040         timespec: mark functions with const attributes
22041         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22042         Mark with _GL_ATTRIBUTE_CONST.
22044 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22046         canonicalize[-lgpl]: handle "guessing" values when cross-building
22047         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22048         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22049         matches "*yes" instead of just "yes".  Regression introduced in commit
22050         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22052 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22053             Bruno Haible  <bruno@clisp.org>
22055         canonicalize: make the right guess when cross-compiling to GNU
22056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22057         determine whether cross-compiling to glibc systems, so as to
22058         include GNU/Hurd.
22060 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22062         timespec-sub: avoid duplicate include
22063         * lib/timespec-sub.c: Do not include <config.h> twice.
22064         Reported by Juanma Barranquero.
22066 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22068         bootstrap: use a more consistent error reporting scheme
22069         * build-aux/bootstrap (warn, die): New.
22070         Use them.
22072 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22074         sys_time: allow too-wide tv_sec
22075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22076         timeval even if tv_sec is wider than time_t.  This allows
22077         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22078         as without this patch gnulib replaces struct timeval
22079         and OpenBSD futimes therefore has a type mismatch.
22080         * doc/posix-headers/sys_time.texi: Mention this.
22082         pthread: check for both pthread_create and pthread_join
22083         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22084         alter the check so that it tests for both pthread_create and
22085         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22086         Suggested by Bruno Haible and Richard Yao in
22087         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22089         parse-datetime: doc tuneup
22090         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22091         spacing issues.
22093 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22095         do-release-commit-and-tag: fix the previous commit
22096         * build-aux/do-release-commit-and-tag: Actually the test was right,
22097         but the comment and the error message were misleading.
22098         Fix comment, and improve error message.
22099         Perform check first, so that NEWS is not modified uselessly.
22101         do-release-commit-and-tag: fix typo
22102         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22103         _not_ start with a stub.
22105 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22107         pthread: check for pthread_create, not pthread_join
22108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22109         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22110         pthread_join in libc.  I hope this removes the need for all the
22111         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22112         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22114 2012-07-04  Jim Meyering  <meyering@redhat.com>
22116         parse-datetime: fix failure to diagnose invalid input
22117         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22118         rather than diagnosing the invalid input.  Now it reports this:
22119         date: invalid date '\260'
22120         * lib/parse-datetime.y (to_uchar): Define.
22121         (yylex): Don't sign-extend "other" bytes.
22122         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22123         Thanks to Bruno Haible for the patch to this file.
22124         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22125         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22127 2012-07-03  Jim Meyering  <meyering@redhat.com>
22129         bootstrap: do not require now-removed build-aux/missing
22130         Now that build-aux/missing is, er, missing, bootstrap would
22131         silently fail.
22132         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22133         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22134         no longer part of gnulib.
22135         Diagnose the failure.
22137 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22139         alloca: add support for HP NonStop TNS/E native
22140         * lib/alloca.in.h (alloca): Support the new host.
22141         From a suggestion by Joachim Schmitz in
22142         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22144 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22146         fsusage: remove code not needed on non GNU/Linux systems.
22148         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22149         Don't include headers no longer needed in this case.
22150         * lib/fsusage.c [STAT_STATVFS &&
22151         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22152         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22154 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22156         fsusage: include files needed for glibc 2.6 fallback
22157         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22158         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22159         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22160         Problem reported by Ludovic Courtès in
22161         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22163         fsusage: avoid needless check on GNU/Linux
22164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22165         on GNU/Linux systems, since it can't possibly work.
22167 2012-07-01  Bruno Haible  <bruno@clisp.org>
22169         log: Fix an autoconf >= 2.64 warning.
22170         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22171         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22173 2012-06-28  Bruno Haible  <bruno@clisp.org>
22175         log10f: Fix possible configuration problem.
22176         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22177         $LOGF_LIBM.
22178         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22180 2012-06-28  Bruno Haible  <bruno@clisp.org>
22182         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22183         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22184         not gl_cv_func_unlink_works.
22185         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22187 2012-06-27  Eric Blake  <eblake@redhat.com>
22189         config: drop scripts that automake says are not independent
22190         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22191         * build-aux/elisp-comp: Delete.
22192         * build-aux/missing: Likewise.
22193         * build-aux/ylwrap: Likewise.
22194         * modules/elisp-comp: Likewise.
22195         * MODULES.html.sh: Drop mention of elisp-comp.
22196         * NEWS: Mention this.
22198 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22200         root-uid: new module
22201         This is for portability to Tandem's NonStop Kernel.
22202         * lib/root-uid.h, modules/root-uid: New files.
22203         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22204         * lib/write-any-file.c, tests/test-sethostname2.c:
22205         Include "root-uid.h".
22206         * lib/euidaccess.c (euidaccess):
22207         * lib/pt_chown.c (main):
22208         * lib/unlinkdir.c (cannot_unlink_dir):
22209         * lib/write-any-file.c (can_write_any_file):
22210         * m4/mknod.m4 (gl_FUNC_MKNOD):
22211         * tests/test-sethostname2.c (geteuid, main):
22212         Don't assume ROOT_UID == 0.
22213         * modules/euidaccess (Depends-on):
22214         * modules/pt_chown (Depends-on):
22215         * modules/sethostname-tests (Depends-on):
22216         * modules/unlinkdir (Depends-on):
22217         * modules/write-any-file (Depends-on):
22218         Add root-uid.
22220         regex: use locale-independent comparison for codeset name
22221         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22222         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22223         for codeset name.
22224         * lib/regex_internal.h: Do not include <strings.h>, since we
22225         no longer use strcasecmp.
22226         * modules/regex (Depends-on): Remove strcase.
22228 2012-06-23  Bruno Haible  <bruno@clisp.org>
22230         getopt-posix: No longer guarantee that option processing is resettable.
22231         * doc/posix-functions/getopt.texi: Drop description of problem with
22232         internal state. Fix info about mingw and msvc9.
22233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22234         option processing by getopt(). Run three test programs instead of one.
22235         Simplify cross-compilation guess.
22236         * NEWS: Mention the change.
22237         Reported by Rich Felker <dalias@aerifal.cx>.
22239 2012-06-26  Bruno Haible  <bruno@clisp.org>
22241         argp, regex: Ensure strcasecmp gets declared.
22242         * lib/argp-help.c: Include <strings.h>.
22243         * lib/regex_internal.h: Likewise.
22244         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22246 2012-06-24  Bruno Haible  <bruno@clisp.org>
22248         ptsname_r: Make it consistent with ptsname on AIX.
22249         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22250         implementation as for OSF/1.
22251         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22252         a pty master.
22254         ptsname_r: Make it consistent with ptsname on OSF/1.
22255         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22256         OSF/1.
22258 2012-06-24  Bruno Haible  <bruno@clisp.org>
22260         ttyname_r: Fix result on OSF/1, Solaris.
22261         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22263 2012-06-24  Bruno Haible  <bruno@clisp.org>
22265         ptsname_r: Add support for Solaris.
22266         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22267         Solaris.
22269         ptsname_r: Fix test failure on native Windows.
22270         * modules/ptsname_r (Depends-on): Add isatty.
22272         ptsname_r: Fix test failures on IRIX, Solaris.
22273         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22274         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22275         accordingly.
22276         * lib/ptsname_r.c: Include <fcntl.h>.
22277         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22278         set errno if fd is invalid.
22279         * tests/test-isatty.c (main): Update comments.
22281 2012-06-24  Bruno Haible  <bruno@clisp.org>
22283         ptsname test: Extend test.
22284         * tests/test-ptsname.c: Include <errno.h>.
22285         (main): Test behaviour with invalid file descriptor.
22287 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22289         time: fix obsolete comment
22290         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22291         reference to HAVE_STRUCT_TIMESPEC in comment.
22293 2012-06-23  Bruno Haible  <bruno@clisp.org>
22295         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22297         does not handle abbreviated long options with equivalent
22298         disambiguations, set gl_replace_getopt to yes.
22299         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22301 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22303         time_r: fix typo that always overrode localtime_r decl
22304         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22305         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22306         not in a standard include.
22308 2012-06-22  Bruno Haible  <bruno@clisp.org>
22310         Write "Mac OS X" instead of "MacOS X".
22311         * README: Write "Mac OS X" instead of "MacOS X".
22312         * build-aux/bootstrap: Likewise.
22313         * build-aux/install-reloc: Likewise.
22314         * lib/acl-internal.h: Likewise.
22315         * lib/acl_entries.c: Likewise.
22316         * lib/argp-ba.c: Likewise.
22317         * lib/argp-pv.c: Likewise.
22318         * lib/config.charset: Likewise.
22319         * lib/copy-acl.c: Likewise.
22320         * lib/csharpexec.c: Likewise.
22321         * lib/euidaccess.c: Likewise.
22322         * lib/fbufmode.c: Likewise.
22323         * lib/fflush.c: Likewise.
22324         * lib/file-has-acl.c: Likewise.
22325         * lib/filemode.h: Likewise.
22326         * lib/fpurge.c: Likewise.
22327         * lib/freadable.c: Likewise.
22328         * lib/freadahead.c: Likewise.
22329         * lib/freading.c: Likewise.
22330         * lib/freadptr.c: Likewise.
22331         * lib/freadseek.c: Likewise.
22332         * lib/fseeko.c: Likewise.
22333         * lib/fseterr.c: Likewise.
22334         * lib/fsusage.c: Likewise.
22335         * lib/fwritable.c: Likewise.
22336         * lib/fwriting.c: Likewise.
22337         * lib/get-rusage-as.c: Likewise.
22338         * lib/get-rusage-data.c: Likewise.
22339         * lib/getdomainname.c: Likewise.
22340         * lib/idpriv-drop.c: Likewise.
22341         * lib/idpriv-droptemp.c: Likewise.
22342         * lib/localcharset.c: Likewise.
22343         * lib/locale.in.h: Likewise.
22344         * lib/localename.c: Likewise.
22345         * lib/mbsrtowcs-state.c: Likewise.
22346         * lib/nproc.c: Likewise.
22347         * lib/passfd.c: Likewise.
22348         * lib/posix_openpt.c: Likewise.
22349         * lib/printf-parse.c: Likewise.
22350         * lib/progreloc.c: Likewise.
22351         * lib/safe-read.h: Likewise.
22352         * lib/safe-write.h: Likewise.
22353         * lib/sched.in.h: Likewise.
22354         * lib/set-mode-acl.c: Likewise.
22355         * lib/signal.in.h: Likewise.
22356         * lib/stdint.in.h: Likewise.
22357         * lib/stdio-impl.h: Likewise.
22358         * lib/stdlib.in.h: Likewise.
22359         * lib/strtod.c: Likewise.
22360         * lib/sys_select.in.h: Likewise.
22361         * lib/tcgetsid.c: Likewise.
22362         * lib/unistd.in.h: Likewise.
22363         * lib/unlockpt.c: Likewise.
22364         * lib/vasnprintf.c: Likewise.
22365         * lib/vma-iter.c: Likewise.
22366         * lib/wcsrtombs-state.c: Likewise.
22367         * m4/acl.m4: Likewise.
22368         * m4/acosl.m4: Likewise.
22369         * m4/asinl.m4: Likewise.
22370         * m4/atanl.m4: Likewise.
22371         * m4/c-stack.m4: Likewise.
22372         * m4/cosl.m4: Likewise.
22373         * m4/expl.m4: Likewise.
22374         * m4/extensions.m4: Likewise.
22375         * m4/fdatasync.m4: Likewise.
22376         * m4/fmal.m4: Likewise.
22377         * m4/frexp.m4: Likewise.
22378         * m4/frexpf.m4: Likewise.
22379         * m4/frexpl.m4: Likewise.
22380         * m4/fsusage.m4: Likewise.
22381         * m4/getdomainname.m4: Likewise.
22382         * m4/getloadavg.m4: Likewise.
22383         * m4/getopt.m4: Likewise.
22384         * m4/gettext.m4: Likewise.
22385         * m4/gnulib-common.m4: Likewise.
22386         * m4/intdiv0.m4: Likewise.
22387         * m4/intlmacosx.m4: Likewise.
22388         * m4/largefile.m4: Likewise.
22389         * m4/ldexpl.m4: Likewise.
22390         * m4/link-follow.m4: Likewise.
22391         * m4/locale-ar.m4: Likewise.
22392         * m4/locale-fr.m4: Likewise.
22393         * m4/locale-ja.m4: Likewise.
22394         * m4/locale-tr.m4: Likewise.
22395         * m4/locale-zh.m4: Likewise.
22396         * m4/locale_h.m4: Likewise.
22397         * m4/lock.m4: Likewise.
22398         * m4/logl.m4: Likewise.
22399         * m4/mathfunc.m4: Likewise.
22400         * m4/minus-zero.m4: Likewise.
22401         * m4/mktime.m4: Likewise.
22402         * m4/mmap-anon.m4: Likewise.
22403         * m4/multiarch.m4: Likewise.
22404         * m4/nanosleep.m4: Likewise.
22405         * m4/nocrash.m4: Likewise.
22406         * m4/poll.m4: Likewise.
22407         * m4/printf-frexpl.m4: Likewise.
22408         * m4/printf.m4: Likewise.
22409         * m4/signbit.m4: Likewise.
22410         * m4/sinl.m4: Likewise.
22411         * m4/sqrtl.m4: Likewise.
22412         * m4/strerror_r.m4: Likewise.
22413         * m4/tanl.m4: Likewise.
22414         * m4/threadlib.m4: Likewise.
22415         * m4/ttyname_r.m4: Likewise.
22416         * m4/unlink.m4: Likewise.
22417         * m4/visibility.m4: Likewise.
22418         * m4/wcwidth.m4: Likewise.
22419         * tests/minus-zero.h: Likewise.
22420         * tests/test-alloca-opt.c: Likewise.
22421         * tests/test-copy-acl.sh: Likewise.
22422         * tests/test-copy-file.sh: Likewise.
22423         * tests/test-fdatasync.c: Likewise.
22424         * tests/test-file-has-acl.sh: Likewise.
22425         * tests/test-flock.c: Likewise.
22426         * tests/test-fsync.c: Likewise.
22427         * tests/test-localename.c: Likewise.
22428         * tests/test-malloca.c: Likewise.
22429         * tests/test-nonblocking-pipe.h: Likewise.
22430         * tests/test-nonblocking-socket.h: Likewise.
22431         * tests/test-openpty.c: Likewise.
22432         * tests/test-posix_openpt.c: Likewise.
22433         * tests/test-ptsname.c: Likewise.
22434         * tests/test-ptsname_r.c: Likewise.
22435         * tests/test-sameacls.c: Likewise.
22436         * tests/test-select.h: Likewise.
22437         * tests/test-set-mode-acl.sh: Likewise.
22438         * tests/test-snprintf-posix.h: Likewise.
22439         * tests/test-sprintf-posix.h: Likewise.
22440         * tests/test-strtod.c: Likewise.
22441         * tests/test-time.c: Likewise.
22442         * tests/test-vasnprintf-posix.c: Likewise.
22443         * tests/test-vasprintf-posix.c: Likewise.
22444         * doc/acl-resources.txt: Likewise.
22445         * doc/**/*.texi: Likewise.
22446         Reported by Max Horn <max@quendi.de>.
22448 2012-06-22  Bruno Haible  <bruno@clisp.org>
22450         grantpt: Relax requirement regarding invalid file descriptors.
22451         * lib/grantpt.c: Don't include <fcntl.h>.
22452         (grantpt): Don't verify the validity of the file descriptor.
22453         * modules/grantpt (Depends-on): Remove fcntl-h.
22454         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22455         file descriptors.
22456         * doc/posix-functions/grantpt.texi: Document more platforms on which
22457         grantpt succeeds for invalid file descriptors.
22458         Reported by Rich Felker <dalias@aerifal.cx>.
22460 2012-06-22  Bruno Haible  <bruno@clisp.org>
22462         fbufmode test: Don't test unportable behaviour.
22463         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22464         (main): Invoke it three times.
22465         Reported by Szabolcs Nagy <nsz@port70.net>
22466         and Rich Felker <dalias@aerifal.cx>.
22468 2012-06-21  Bruno Haible  <bruno@clisp.org>
22470         gnulib-tool: Refactor inctests variable.
22471         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22472         (func_modules_transitive_closure,
22473         func_modules_transitive_closure_separately,
22474         func_import, func_create_testdir): Update.
22476         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22477         * gnulib-tool: Accept option --without-tests.
22478         (func_usage): Document --without-tests option. Rearrange.
22479         (inctests): Normalize according to the mode.
22480         * NEWS: Mention the change.
22481         Suggested by Simon Josefsson.
22483 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22485         parse-duration test: Avoid spurious output.
22486         * tests/test-parse-duration.sh: Reindent with leading tabs.
22488 2012-06-21  Jim Meyering  <meyering@redhat.com>
22490         maint: disable the strncpy prohibition
22491         * cfg.mk: Do not prohibit strncpy here.
22493 2012-06-21  Bruno Haible  <bruno@clisp.org>
22495         nonblocking: Avoid compilation error on mingw64.
22496         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22497         fscanf.
22498         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22499         * modules/vfscanf (configure.ac): Likewise.
22500         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22501         definition only if stdio.h has prepared it.
22502         Reported by Daniel P. Berrange <berrange@redhat.com>.
22504 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22506         gnulib-tool: Use readlink if it is available.
22507         * gnulib-tool (func_readlink): Choose function more appropriately.
22509 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22511         posixtm-tests: port to buggy compiler
22512         Problem reported by Simon Josefsson in
22513         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22514         * modules/posixtm-tests (Depends-on): Add stdint.
22515         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22516         Now of type int_least64_t, not int64_t, both because that's
22517         what INT64_C returns and because int_least64_t works even
22518         on 72-bit hosts.
22519         (T): Use INT64_C on constants outside the traditional int range,
22520         to work around compiler bug noted by Simon.
22522         mktime: fix integer overflow in 'configure'-time test
22523         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22524         after integer overflow.  Problem reported by Rich Felker in
22525         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22526         Also, don't look for further instances of a bug if we've already
22527         found one instance; this helps 'configure' run faster.
22529 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22531         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22532         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22533         GetVersionEx correctly.
22534         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22536 2012-06-20  Bruno Haible  <bruno@clisp.org>
22538         fdopen: Allow implementations that don't reject invalid fd arguments.
22539         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22540         succeeds.
22541         Reported by Rich Felker <dalias@aerifal.cx>.
22543 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22545         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22546         bring in LIBINTL.
22548 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22550         init.sh: do not rely on autoupated PWD
22551         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22552         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22553         Although Nelson's bug was not necessarily fixed by this patch,
22554         it seems wise to make the change for safety.
22555         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22556         automagically after 'cd'; this is not reliable on older shells.
22557         (setup_): Fail if we cannot cd to temporary directory.
22559 2012-06-19  Bruno Haible  <bruno@clisp.org>
22561         stat, fstat: Avoid warnings on mingw64.
22562         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22563         redefining.
22564         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22565         Reported by Daniel P. Berrange <berrange@redhat.com>.
22567 2012-06-19  Bruno Haible  <bruno@clisp.org>
22569         stdioext: Add support for musl libc.
22571         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22572         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22574         * m4/fseterr.m4: New file.
22575         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22576         function exists.
22577         * modules/fseterr (Files): Add m4/fseterr.m4.
22578         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22579         __fseterr does not exist.
22580         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22582         * lib/freadable.h: Update comment.
22584         * lib/fwritable.h: Update comment.
22586         * lib/freading.h: Update comment.
22588         * lib/fwriting.h: Update comment.
22590         * m4/freadahead.m4: New file.
22591         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22592         that function exists.
22593         * modules/freadahead (Files): Add m4/freadahead.m4.
22594         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22595         __freadahead does not exist.
22596         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22598         * m4/freadptr.m4: New file.
22599         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22600         function exists.
22601         * modules/freadptr (Files): Add m4/freadptr.m4.
22602         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22603         __freadptr does not exist.
22604         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22606         * m4/freadseek.m4: New file.
22607         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22608         exists.
22609         * modules/freadseek (Files): Add m4/freadseek.m4.
22610         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22612         * lib/fpurge.c (fpurge): Update comment.
22614         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22616 2012-06-19  Bruno Haible  <bruno@clisp.org>
22618         *printf-posix: Put more info into config.log.
22619         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22620         exit code into config.log.
22622 2012-06-19  Bruno Haible  <bruno@clisp.org>
22624         getopt-gnu: Fix exit code overflow in autoconf test.
22625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22626         to keep them below < 128.
22628 2012-06-17  Jim Meyering  <meyering@redhat.com>
22630         maint.mk: fix typo in code to derive GPG key at release time
22631         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22633 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22635         regex: avoid warning when pointers are not long
22636         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22637         and uintptr_t, not long, for portability to hosts where pointers and
22638         long have different sizes.  Issue noted by Daniel P. Berrange in
22639         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22640         and fix suggested by Bruno Haible in
22641         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22643 2012-06-17  Bruno Haible  <bruno@clisp.org>
22645         dummy: Relicense into the public domain.
22646         * modules/dummy (License): Set to "public domain".
22647         Suggested by Reuben Thomas.
22649 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22651         announce-gen: VPATH issues
22652         * build-aux/announce-gen (--srcdir): New option, used to trim the
22653         $srcdir part of the path from $builddir to NEWS.
22654         * top/maint.mk (announcement): Adjust.
22656 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22658         gnu-web-doc-update: VPATH builds
22659         * build-aux/gnu-web-doc-update (--builddir): New option.
22660         Revamp the handling of options.
22661         Prefer $(...) to `...`.
22662         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22663         the template, and it is GNU mktemp specific.
22664         Prefer set -e to long series of &&.
22665         Restore the initial git branch, not "master".
22666         Properly initialize submodules (don't rely only on bootstrap).
22667         Do not reconfigure blindly, use config.status.
22668         * top/README-release: Update instructions for gnu-web-doc-update.
22670 2012-06-11  Jim Meyering  <meyering@redhat.com>
22672         maint.mk: revert most of the previous change re "all these"
22673         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22674         For rationale, see the discussion at
22675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22677 2012-06-10  Karl Berry  <karl@gnu.org>
22679         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22681         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22683 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22685         parse-duration: Relicense under LGPLv2+.
22686         * modules/parse-duration (License): Change to LGPLv2+.
22688 2012-06-10  Jim Meyering  <meyering@redhat.com>
22690         maint.mk: prohibit common grammar error: "all these"
22691         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22692         the list of prohibited word sequences.  It should be "all of these".
22693         * lib/tempname.c (__gen_tempname): Fix one of them.
22695 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22697         do-release-commit-and-tag: support VPATH builds
22698         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22699         (noteworthy): Defined earlier to factor its value.
22700         (noteworthy_stub): New.
22701         Use it to factor.
22702         (help_version): Split into...
22703         (help, version): these.
22704         Adjust the option processing part.
22705         Support "--option=value" in addition to "--option value".
22706         (builddir): New.
22707         (--builddir): New option.
22708         * top/README-release: Document this.
22709         Reword slightly so that the reader cannot understand that he
22710         has to do these steps before calling do-release-commit-and-tag.
22712 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22714         readme-release: also require announce-gen and maintainer-makefile
22715         * modules/readme-release (Depends-on): here.
22716         * modules/announce-gen, modules/do-release-commit-and-tag,
22717         modules/gnu-web-doc-update, modules/maintainer-makefile
22718         (Description): Point to readme-release.
22720 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22722         maint.mk: fix VPATH issues.
22723         * top/maint.mk (news-check): GNU Make understand $< very well.
22724         (release-prep): NEWS is in $(srcdir).
22726 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22728         readme-release: require the promoted modules.
22729         * modules/readme-release (Depends-on): Add
22730         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22731         in this text.
22733 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22734             Bruno Haible  <bruno@clisp.org>
22736         error, strerror-override: Support mingw64 from Fedora 17.
22737         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22738         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22739         EINPROGRESS.
22740         * lib/strerror-override.h (strerror_override): Test it.
22741         * lib/strerror-override.c (strerror_override): Likewise.
22742         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22744 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22745             Bruno Haible  <bruno@clisp.org>
22747         error, strerror-override: Support mingw64 from Fedora 17.
22748         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22749         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22750         * lib/strerror-override.h (strerror_override): Test it.
22751         * lib/strerror-override.c (strerror_override): Likewise.
22753 2012-06-03  Bruno Haible  <bruno@clisp.org>
22755         error, strerror-override: Support new errno values from POSIX:2008.
22756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22757         ENOTRECOVERABLE.
22758         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22759         platforms.
22760         * lib/strerror-override.c (strerror_override): Conditionalize the
22761         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22762         * lib/strerror-override.h (strerror_override): Declare also if
22763         GNULIB_defined_EOWNERDEAD is defined.
22764         * tests/test-errno.c (e130, e131): New variables.
22765         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22766         ENOTRECOVERABLE.
22767         Reported by Paolo Bonzini.
22769 2012-05-31  Jim Meyering  <meyering@redhat.com>
22771         savewd: add missing dependency on sys_wait module
22772         * modules/savewd (Depends-on): Add sys_wait, needed at least
22773         for MSVC.  Report and suggested change by Michael Goffioul.
22775 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22777         system-quote-tests: port to CentOS 5
22778         Problem reported by Tom G. Christensen in
22779         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22780         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22782 2012-05-29  Jim Meyering  <meyering@redhat.com>
22784         maint: fix typos in comments and ChangeLog
22785         Culprits identified and fixed mostly automatically using these commands:
22786         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22787         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22788         using http://github.com/lyda/misspell-check
22789         * ChangeLog: Fix typos.
22790         * doc/solaris-versions: Likewise.
22791         * lib/regexec.c (re_search_stub): Likewise.
22792         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22794 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22796         manywarnings: remove duplicate -Wmultichar entry
22797         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22798         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22799         so keep the entry marked as documented.
22801 2012-05-27  Karl Berry  <karl@gnu.org>
22803         * config/srclist.txt (mktime.c): remove last libc sync,
22804         perhaps just temporarily.
22806 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22808         regex: don't assume uint64_t or uint32_t
22809         * lib/regcomp.c (init_word_char): Don't assume that the types
22810         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22811         them, and on some 32-bit compilers there is no uint64_t.
22812         Problem reported by Gianluigi Tiesi in
22813         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22815 2012-05-25  Jim Meyering  <meyering@redhat.com>
22817         maint.mk: add strncpy-prohibiting syntax-check rule
22818         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22820 2012-05-24  Jim Meyering  <meyering@redhat.com>
22822         maint.mk: compute $(gpg_key_ID) more portably
22823         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22824         That use of sed is not portable to some fringe systems.
22825         Reported by Paul Eggert in
22826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22828 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22830         mktime: sync from glibc
22831         * config/srclist.txt: Uncomment mktime.c.
22832         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22833         First, indent with tabs, since glibc uses tabs and doesn't want to
22834         change and we'd rather be identical to glibc.  Also, two small
22835         coding changes:
22836         (isdst_differ): Use &&, not &, as && is the usual style.
22837         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22838         for clarity.
22840 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22842         announce-gen: du -h is more portable than du --human
22843         * build-aux/announce-gen (sizes): Invoke du with -h instead
22844         of --human.  Accept leading white space in its output.
22846 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22848         announce-gen: Improve diagnostics.
22849         * build-aux/announce-gen: When parsing command line options,
22850         prefer "announce-gen: option --release-type requires an argument"
22851         to "Option release-type requires an argument".
22853 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22855         maint.mk: gpg_key_ID: use sed more portably
22856         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22857         the closing brace.
22858         (refresh-po): Fuse two sed invocations into one.
22860 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22862         gitlog-to-changelog: support the log message format used in Bison.
22863         * build-aux/gitlog-to-changelog: Support --strip-tab and
22864         --strip-cherry-picked.
22866 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22868         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22869         the rest of the current time slice to another thread in the current
22870         process. So if the thread that feeds the file decscriptor we're
22871         polling is not in the current process, we get busy-waiting.
22872         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22873         Patch from Theodore Leblond.
22874         * lib/select.c: Split polling out of the loop that sets the output
22875         fd_sets.  Check for zero result and loop if the wait timeout is
22876         infinite.
22878 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22880         select: Fix build error on IRIX 6.5.
22881         * lib/select.c: Include stddef.h for NULL.
22883 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22885         gc: fix libgcrypt detection on older machines.
22886         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22887         copyright years because the file has been distributed every year
22888         since it was created.
22890 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22892         crypto: fix bug in large buffer handling
22893         Problem reported by Serge Belyshev for glibc in
22894         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
22895         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
22896         * lib/md4.c (md4_process_block):
22897         * lib/md5.c (md5_process_block):
22898         * lib/sha1.c (sha1_process_block):
22899         * lib/sha256.c (sha256_process_block):
22900         Don't assume the buffer length is less than 2**32.
22901         * lib/sha512.c (sha512_process_block): Likewise.
22902         Here, the bug is present only in the rare case where the host does
22903         not support uint64_t or where size_t is wider than 64 bits.
22904         Use u64size to work around the problems.
22905         * lib/u64.h (u64size): New macro.
22907 2012-05-15  Pádraig Brady  <P@draigBrady.com>
22909         fsusage: fix block size returned on older Linux 2.6
22911         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
22912         which is available since Linux 2.6.
22913         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
22914         when the member is available so it can be used as a fallback.
22915         * doc/posix-functions/statvfs.texi: Mention the hang issue
22916         on Linux < 2.6.36.
22918 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22920         bootstrap: suppress stderr chatter
22921         * build-aux/bootstrap (insert_sorted_if_absent, main program):
22922         Omit unnecessary chatter to stderr.  The main program chatter
22923         was there only inadvertantly.
22925         bootstrap: .gitignore files created by autopoint, libtool
22926         I ran into this problem when bootstrapping the latest diffutils.
22927         After './bootstrap', 'git status' reported lots of untracked files
22928         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
22929         autopoint and do not need to be version-controlled.
22930         * build-aux/bootstrap: Put into .gitignore the files that
22931         autopoint and libtool create, by keeping track of files that exist
22932         after but not before these programs are run.
22933         (version_controlled_file): Move up.  2nd arg is now full file
22934         name, not base name; this is more convenient.  Put CVS at the end,
22935         as it's now somewhat deprecated.
22937 2012-05-14  Jim Meyering  <meyering@redhat.com>
22939         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
22940         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
22941         definition.  Reported by Bruno Haible.
22943 2012-05-13  Bruno Haible  <bruno@clisp.org>
22944             Paul Eggert  <eggert@cs.ucla.edu>
22946         binary-io: Define set_binary_mode function.
22947         * lib/binary-io.h (set_binary_mode): New function.
22948         (SET_BINARY): Define in terms of set_binary_mode.
22949         * modules/binary-io (configure.ac): Require AC_C_INLINE.
22950         * tests/test-binary-io.c (main): Accept an argument, and test either
22951         set_binary_mode or SET_BINARY depending on the argument.
22952         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
22953         argument. Clean up also t-bin-out0.tmp.
22955 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
22957         bootstrap: take advantage of POSIX shell features
22959         The 'bootstrap' script offered by Gnulib script already uses POSIX
22960         shell features (like $((...)) arithmetic expansions) that are not
22961         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
22962         means that bootstrap must already be run using a proper POSIX shell,
22963         which will thus provide more features, like ${var#pattern} parameter
22964         expansion or inversion of a command exit status with '!'.  We can
22965         thus use these features to improve the clarity and the performances
22966         of the bootstrap script.
22968         Suggested by Eric Blake.
22970         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
22971         of sed/expr plus command substitutions, to save some forks.  While
22972         we are at it, prefer the POSIX $(...) form of command substitution,
22973         rather than the legacy form `...` (since the former is visually
22974         clearer and interacts better with quoting), and prefer the idiom:
22975           "if ! CMD; then ACTION ..."
22976         over the idiom:
22977           "if CMD; then :; else ACTION ..."
22978         which was required by legacy Bourne shells not supporting '!'.
22980 2012-05-12  Bruno Haible  <bruno@clisp.org>
22982         system-quote: Add more comments.
22983         * lib/system-quote.h: Add more comments about wilcards and limitations.
22984         Suggested by Eli Zaretskii <eliz@gnu.org>.
22986         sh-quote, system-quote: Add comments about wildcards.
22987         * lib/sh-quote.h: Clarify what happens with wildcard characters.
22988         * lib/system-quote.h: Likewise.
22989         Reported by Eli Zaretskii <eliz@gnu.org>.
22991 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22993         fsusage: check for GNU/Linux statvfs problem dynamically
22994         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
22995         Define STAT_STATFS2_BSIZE too, since in this case the code now
22996         checks dynamically whether statvfs is reliable, falling back on
22997         Linux-style statfs otherwise.
22998         (statvfs_works): New function, for dynamically testing statvfs.
22999         (get_fs_usage) [STAT_STATVFS]: Use it.
23000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23001         statvfs on GNU/Linux hosts, since it's now done dynamically.
23003 2012-05-10  Bruno Haible  <bruno@clisp.org>
23005         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23006         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23007         '?' character.
23008         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23009         * tests/test-system-quote-main.c (check_all): Check also strings like
23010         "??????????".
23011         Reported by Eli Zaretskii <eliz@gnu.org>.
23013 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23015         _Noreturn: port config.h to gcc -Wundef
23016         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23017         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23018         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23020 2012-05-10  Bruno Haible  <bruno@clisp.org>
23022         system-quote: Refactor.
23023         * lib/system-quote.h (system_quote_copy): Fix comment.
23024         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23025         New functions, extracted from system_quote_copy.
23026         (system_quote_length, system_quote_copy): Use these functions.
23027         Reported by Paul Eggert.
23029 2012-05-08  Bruno Haible  <bruno@clisp.org>
23031         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23032         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23034 2012-05-08  Bruno Haible  <bruno@clisp.org>
23036         Tests for module 'system-quote'.
23037         * modules/system-quote-tests: New file.
23038         * tests/test-system-quote.sh: New file.
23039         * tests/test-system-quote-main.c: New file.
23040         * tests/test-system-quote-child.c: New file.
23042         New module 'system-quote'.
23043         * lib/system-quote.h: New file.
23044         * lib/system-quote.c: New file.
23045         * modules/system-quote: New file.
23047 2012-05-08  Bruno Haible  <bruno@clisp.org>
23049         sh-quote: Make C++ safe and allow multiple inclusion.
23050         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23051         declarations in extern "C".
23053 2012-05-08  Bruno Haible  <bruno@clisp.org>
23055         sh-quote tests: Make tests stricter.
23056         * tests/test-sh-quote.c (check_one): Check the return value of
23057         shell_quote_copy.
23058         (main): Check a string with a CR character. Check a string that
23059         contains UCHAR_MAX.
23061 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23063         warnings.m4: provide a means to specify the program to compile.
23064         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23065         (gl_WARN_ADD): here.
23066         Use gl_AS_VAR_APPEND.
23067         Support an argument to specify the program to compile.
23068         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23069         AC_SUBST the WARN_CFLAGS when they are used.
23070         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23071         leave this to gl_WARN_ADD.
23073 2012-05-08  Eric Blake  <eblake@redhat.com>
23075         doc: recommendations on gettext version
23076         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23077         choice between versions.
23078         * DEPENDENCIES (gettext): Cover both approaches.
23080 2012-05-08  Jim Meyering  <meyering@redhat.com>
23082         init.sh: explain why EXEEXT support uses aliases rather than functions
23083         * tests/init.sh: Add a comment.
23085         init.sh: don't let bash aliases interfere with tests
23086         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23087         is bash.  This avoids problems for those who alias standard commands to
23088         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23089         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23091 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23093         stdint: be more consistent with glibc, SunOS libc
23094         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23095         (gl_int_fast16_t, gl_uint_fast16_t)
23096         (gl_int_fast32_t, gl_uint_fast32_t)
23097         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23098         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23099         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23100         Be consistent with glibc by default, and with SunOS 5.10 and later
23101         if __sun is defined.  This lessens the likelihood of clashes if
23102         code compiled for older hosts is combined with code compiled for
23103         newer ones.  Problem reported by Niels Möller in
23104         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23106 2012-05-07  Eric Blake  <eblake@redhat.com>
23108         isatty: relax license to LGPLv2+
23109         * modules/isatty (License): Relax license.
23111 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23113         stat-size: comment fix
23114         * lib/stat-size.h: Remove obsolete comment about indenting.
23116 2012-05-06  Bruno Haible  <bruno@clisp.org>
23118         Tests for module 'sh-quote'.
23119         * modules/sh-quote-tests: New file.
23120         * tests/test-sh-quote.c: New file.
23122 2012-05-06  Bruno Haible  <bruno@clisp.org>
23124         sh-quote: Improve shell_quote_argv's signature.
23125         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23126         * lib/sh-quote.c (shell_quote_argv): Likewise.
23128 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23130         stdint: document issues with int_fast8_t etc.
23131         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23132         stdint.h substitutes may define these types differently.  See
23133         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23135 2012-05-05  Bruno Haible  <bruno@clisp.org>
23137         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23139         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23140         or 'guessing no (mishandles large arguments)'.
23142 2012-05-05  Bruno Haible  <bruno@clisp.org>
23144         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23145         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23146         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23147         set gl_cv_func_link_follows_symlink to "guessing no".
23149 2012-05-05  Bruno Haible  <bruno@clisp.org>
23151         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23152         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23153         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23154         "guessing no".
23155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23157 2012-05-05  Bruno Haible  <bruno@clisp.org>
23159         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23160         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23161         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23162         set gl_cv_struct_dirent_d_ino to "guessing yes".
23164 2012-05-05  Bruno Haible  <bruno@clisp.org>
23166         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23167         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23168         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23169         "guessing yes".
23171 2012-05-05  Bruno Haible  <bruno@clisp.org>
23173         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23174         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23175         compiling to a glibc system, set gl_cv_func_signbit and
23176         gl_cv_func_signbit_gcc to "guessing yes".
23178 2012-05-05  Bruno Haible  <bruno@clisp.org>
23180         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23181         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23182         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23183         to "guessing yes".
23184         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23185         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23187 2012-05-05  Bruno Haible  <bruno@clisp.org>
23189         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23191         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23192         gl_cv_func_realpath_works to "guessing yes".
23194 2012-05-05  Bruno Haible  <bruno@clisp.org>
23196         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23198         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23200 2012-05-04  Bruno Haible  <bruno@clisp.org>
23202         Tweak last commit.
23203         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23206 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23208         unistd_h: make it easier to avoid sys_types_h
23209         This is useful for Emacs, which has its own method of porting to
23210         Windows, and which therefore does not need the sys_types_h module.
23211         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23212         code moved here from gl_SYS_TYPES_H.
23213         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23214         using the code directly.
23215         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23216         gl_SYS_TYPES_H.
23217         * modules/sys_types (Files):
23218         * modules/unistd (Files): Add m4/off_t.m4.
23220 2012-05-03  Bruno Haible  <bruno@clisp.org>
23222         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23223         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23224         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23225         "guessing yes" or "guessing no".
23226         (gl_FUNC_LSTAT): Update.
23227         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23228         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23229         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23231 2012-05-03  Bruno Haible  <bruno@clisp.org>
23233         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23234         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23235         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23236         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23237         cross-compiling, choose the first alternative on glibc systems.
23238         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23240 2012-05-03  Bruno Haible  <bruno@clisp.org>
23242         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23243         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23244         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23246 2012-05-03  Bruno Haible  <bruno@clisp.org>
23248         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23249         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23251 2012-05-03  Bruno Haible  <bruno@clisp.org>
23253         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23254         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23255         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23256         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23257         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23258         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23259         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23260         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23261         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23262         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23263         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23264         gl_cv_func_chown_ctime_works to "guessing yes".
23265         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23266         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23267         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23268         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23269         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23271         compiling to glibc systems, set gl_cv_func_open_directory_works to
23272         "guessing yes".
23273         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23274         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23275         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23276         "guessing yes".
23277         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23278         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23279         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23280         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23281         "guessing yes".
23282         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23283         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23284         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23285         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23286         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23287         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23288         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23289         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23290         "guessing yes".
23291         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23292         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23293         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23294         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23295         "guessing yes".
23296         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23297         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23298         "guessing yes".
23299         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23300         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23301         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23302         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23303         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23304         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23305         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23306         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23307         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23308         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23309         "guessing yes".
23310         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23311         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23312         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23313         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23314         "guessing yes".
23315         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23316         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23317         "guessing yes".
23318         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23319         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23320         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23321         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23322         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23323         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23324         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23325         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23326         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23327         "guessing yes".
23328         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23329         compiling to glibc systems, set gl_cv_func_mknod_works to
23330         "guessing yes".
23331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23332         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23333         "guessing yes".
23334         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23335         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23336         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23337         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23338         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23339         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23340         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23341         compiling to glibc systems, set gl_cv_func_svid_putenv to
23342         "guessing yes".
23343         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23344         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23345         "guessing yes".
23346         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23347         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23348         "guessing yes".
23349         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23350         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23351         to "guessing yes".
23352         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23353         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23354         to "guessing yes".
23355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23356         compiling to glibc systems, set gl_cv_func_rmdir_works to
23357         "guessing yes".
23358         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23359         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23360         gl_cv_func_unlink_parent_fails to "guessing yes".
23361         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23362         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23363         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23364         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23365         gl_cv_func_rename_dest_works to "guessing yes".
23366         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23367         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23369         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23370         "guessing yes".
23371         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23372         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23373         "guessing yes".
23374         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23375         compiling to glibc systems, set gl_cv_func_setenv_works to
23376         "guessing yes".
23377         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23378         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23379         "guessing yes".
23380         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23381         compiling to glibc systems, set gl_cv_func_sleep_works to
23382         "guessing yes".
23383         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23384         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23385         "guessing yes".
23386         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23387         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23388         "guessing yes".
23389         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23390         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23391         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23392         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23393         "guessing yes".
23394         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23395         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23396         "guessing yes".
23397         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23398         compiling to glibc systems, set gl_cv_func_usleep_works to
23399         "guessing yes".
23400         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23401         compiling to glibc systems, set gl_cv_func_futimesat_works to
23402         "guessing yes".
23404 2012-05-03  Bruno Haible  <bruno@clisp.org>
23406         Say "guessing yes" or "guessing no" when cross-compiling.
23407         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23408         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23409         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23410         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23411         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23412         am_cv_func_working_getline to "guessing yes" or "guessing no".
23413         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23414         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23415         (gl_FUNC_MEMMEM): When cross-compiling, set
23416         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23418         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23420         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23421         "guessing no".
23422         (gl_FUNC_STRCASESTR): When cross-compiling, set
23423         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23424         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23425         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23426         (gl_FUNC_STRSTR): When cross-compiling, set
23427         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23428         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23429         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23430         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23431         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23433 2012-05-01  Bruno Haible  <bruno@clisp.org>
23435         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23436         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23437         * build-aux/reloc-ldflags: Likewise.
23438         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23440 2012-05-01  Bruno Haible  <bruno@clisp.org>
23442         gnulib-tool: Remove transitional code.
23443         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23444         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23446 2012-05-01  Bruno Haible  <bruno@clisp.org>
23448         getcwd: Fix misindentation.
23449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23451 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23453         exclude: process exclude and include directives in order
23454         This restores the pre-2009 behavior, and is part of a fix of a
23455         grep bug reported by Quentin Arce in
23456         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23457         * lib/exclude.c (struct exclude): Remove 'tail' member.
23458         (new_exclude_segment): Prepend the new segment instead of appending.
23459         Return void, since that's now more convenient.
23460         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23461         (file_name_matches): Renamed from excluded_file_name_p.
23462         (file_pattern_matches, file_name_matches):
23463         Return true if the pattern matches, not if it excludes.
23464         All callers changed.
23465         (excluded_file_name): Process the list in reverse order;
23466         since the list is now reversed this restores the pre-2009 behavior.
23467         (add_exclude): Adjust to new reversed-order list.  Use local var
23468         rather than macro, for clarity.
23469         * tests/test-exclude7.sh: Adjust to corrected behavior.
23471         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23472         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23473         it's not possible here.  Handle the case of \ at end of pattern
23474         without dumping core.
23475         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23477         _Noreturn: future-proof non-GNU and non-MSVC compilers
23478         * build-aux/snippet/_Noreturn.h (_Noreturn):
23479         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23480         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23481         C11 or later.  This is more likely to work with random future C
23482         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23483         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23485         exclude: handle wildcards with FNM_EXTMATCH
23486         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23487         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23488         comment that "has wildcards" really means "has or may have
23489         wildcards".  Simplify by avoiding the need to call strcspn.
23491 2012-04-29  Bruno Haible  <bruno@clisp.org>
23493         gnulib-tool: Fix list of authors.
23494         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23496 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23498         bootstrap: support Automake-NG in $buildreq
23499         * bootstrap (check_versions): Handle automake and aclocal from
23500         Automake-NG specially.  They can be specified as respectively
23501         the "automake-ng" and "aclocal-ng" requirements.
23503 2012-04-25  Eric Blake  <eblake@redhat.com>
23505         bootstrap: only force latest Makefile.in.in for gettext module
23506         * build-aux/bootstrap (with_gettext): Only install latest
23507         Makefile.in.in for projects requesting bleeding edge gettext.
23509 2012-04-22  Bruno Haible  <bruno@clisp.org>
23511         doc: Mention reason for replacement on glibc/Linux systems.
23512         * doc/posix-functions/dprintf.texi: Mention the problem with special
23513         'long double' values.
23514         * doc/posix-functions/fprintf.texi: Likewise.
23515         * doc/posix-functions/printf.texi: Likewise.
23516         * doc/posix-functions/snprintf.texi: Likewise.
23517         * doc/posix-functions/sprintf.texi: Likewise.
23518         * doc/posix-functions/vdprintf.texi: Likewise.
23519         * doc/posix-functions/vfprintf.texi: Likewise.
23520         * doc/posix-functions/vprintf.texi: Likewise.
23521         * doc/posix-functions/vsnprintf.texi: Likewise.
23522         * doc/posix-functions/vsprintf.texi: Likewise.
23523         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23524         platforms with F_DUPFD_CLOEXEC problems.
23525         * doc/posix-functions/glob.texi: Mention which platforms are affected
23526         by the problem with symbolic links.
23527         * doc/posix-functions/linkat.texi: Mention the problem with
23528         AT_SYMLINK_FOLLOW on Linux.
23530 2012-04-22  Bruno Haible  <bruno@clisp.org>
23532         pwrite: Don't replace on all platforms.
23533         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23535 2012-04-22  Bruno Haible  <bruno@clisp.org>
23537         rint* tests: Avoid gcc warnings.
23538         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23539         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23540         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23542 2012-04-21  Bruno Haible  <bruno@clisp.org>
23544         users.txt: Update.
23545         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23546         switched from CVS to git, bzr, or svn.
23548 2012-04-21  Bruno Haible  <bruno@clisp.org>
23550         Large File Support for native Windows platforms.
23552         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23553         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23555         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23556         type.
23557         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23558         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23559         * doc/posix-headers/sys_types.texi: Mention the effect of the
23560         'largefile' module.
23562         * lib/fcntl.in.h: Add comments about off_t.
23563         * modules/fcntl-h (Depends-on): Add sys_types.
23565         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23566         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23567         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23568         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23569         * modules/unistd (Depends-on): Add sys_types.
23570         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23572         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23573         instead of lseek.
23574         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23575         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23576         * modules/lseek (Depends-on): Add sys_types.
23578         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23579         msvc-nothrow.h.
23580         (SetFileSize): New function.
23581         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23582         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23583         if Large File Support is requested.
23584         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23585         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23587         * lib/stdio.in.h: Add comments about off_t.
23588         * modules/stdio (Depends-on): Add sys_types.
23590         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23591         instead of ftello.
23592         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23593         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23594         (gl_PREREQ_FTELLO): New macro.
23595         * modules/ftello (Depends-on): Add sys_types.
23596         (configure.ac): Incoke gl_PREREQ_FTELLO.
23598         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23599         instead of fseeko.
23600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23601         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23602         (gl_PREREQ_FSEEKO): New macro.
23603         * modules/fseeko (Depends-on): Add sys_types.
23604         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23606         * lib/sys_stat.in.h: Add comments about off_t.
23607         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23608         64-bit integer for st_size in 'struct stat'.
23609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23610         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23611         * modules/sys_stat (Depends-on): Add sys_types.
23612         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23614         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23615         instead of stat or _stat.
23617         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23618         'struct _stati64' instead of fstat and 'struct stat'.
23619         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23620         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23622         Reported by Ray Satiro <raysatiro@yahoo.com>.
23624 2012-04-19  Eric Blake  <eblake@redhat.com>
23626         bootstrap: accommodate older libtool
23627         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23628         Reported by Daniel P. Berrange.
23630 2012-04-19  Jim Meyering  <meyering@redhat.com>
23632         announce-gen: avoid failure due to lack of Digest::SHA1
23633         Even with the preferred Digest::SHA available, this script
23634         would fail when the backup module, Digest::SHA1, was not installed.
23635         * build-aux/announce-gen: Quote the conditional use of "use".
23636         Reported by Reuben Thomas in:
23637         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23639         bootstrap: don't let a user's CDPATH setting affect this script
23640         When CDPATH is set, cd will sometimes generate output.
23641         When "cd" is run in a subshell whose output matters, that
23642         surprising-to-some output can cause malfunction.
23643         Unsetting CDPATH turns off this shell "feature."
23644         * build-aux/bootstrap (CDPATH): Unset.
23645         Reported by Reuben Thomas in:
23646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23647         and inspired by his patch here:
23648         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23650 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23651         and Jim Meyering  <meyering@redhat.com>
23653         maint.mk: catch "see @xref{}" and similar
23654         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23655         prohibit "See also @xref{", "Also see @pxref{", and similar.
23657 2012-04-16  Jim Meyering  <meyering@redhat.com>
23659         bootstrap: really use gnulib's po/Makefile.in.in
23660         * build-aux/bootstrap: Correct the source file name in previous change.
23661         Reported by Akim Demaille.
23663         configmake: correct minor inconsistency in Makefile rule
23664         * modules/configmake (Makefile.am): All other rules like this one
23665         run the final "mv -f ..." in the same backslash-continued command
23666         as the one that does everything else.  This one put the mv -f ...
23667         command on a separate, non-backslash-continued line.
23668         Make it like the others.
23670         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23671         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23672         the one from gettext.  Reported by Akim Demaille.
23674 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23676         Fix recursion of install-* into po directories.
23677         Bison's install-pdf bug reported by Hans Aberg at
23678         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23679         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23680         (install-info, install-pdf, install-ps): New targets.
23682 2012-04-16  Jim Meyering  <meyering@redhat.com>
23684         maint: avoid spurious "make sc_maint" failure
23685         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23686         exempt all *.class file names, for lib/javaversion.class.
23688 2012-04-15  Bruno Haible  <bruno@clisp.org>
23690         lseek: Make configure test independent of environment.
23691         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23692         Windows, we know that lseek() on pipes is broken; skip the runtime
23693         test.
23695 2012-04-14  Bruno Haible  <bruno@clisp.org>
23697         stat: Bypass buggy override in mingw64.
23698         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23699         * lib/stat.c (stat) [mingw64]: Define to _stat.
23700         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23702 2012-04-14  Bruno Haible  <bruno@clisp.org>
23704         pathmax: Fix compilation error on MSVC 9.
23705         * modules/pathmax (Depends-on): Add unistd.
23707 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23709         README: document pointer comparison assumption
23710         * README (Portability guidelines): Document assumption about
23711         pointer comparisons, in response to a recent bug-gnulib comment by
23712         Jeffrey Kegler.
23714 2012-04-12  Bruno Haible  <bruno@clisp.org>
23716         Tests for module 'getrusage'.
23717         * modules/getrusage-tests: New file.
23718         * tests/test-getrusage.c: New file.
23720         New module 'getrusage'.
23721         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23722         warn-on-use.h.
23723         (getrusage): New declaration.
23724         * lib/getrusage.c: New file.
23725         * m4/getrusage.m4: New file.
23726         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23727         is declared.
23728         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23729         HAVE_GETRUSAGE.
23730         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23731         snippet/c++defs, snippet/warn-on-use.
23732         (Makefile.am): Update generation of sys/resource.h. Substitute
23733         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23734         * modules/getrusage: New file.
23735         * doc/posix-functions/getrusage.texi: Mention the new module.
23737 2012-04-12  Bruno Haible  <bruno@clisp.org>
23739         Tests for module 'sys_resource'.
23740         * modules/sys_resource-tests: New file.
23741         * tests/test-sys_resource.c: New file.
23743         New module 'sys_resource'.
23744         * lib/sys_resource.in.h: New file.
23745         * m4/sys_resource_h.m4: New file.
23746         * modules/sys_resource: New file.
23747         * doc/posix-headers/sys_resource.texi: Mention the new module.
23749 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23751         ioctl: Fix compilation error on mingw.
23752         * lib/ioctl.c: Include <windows.h>.
23753         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23755 2012-04-04  Jim Meyering  <meyering@redhat.com>
23757         regex: correct #pragma guard expression
23758         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23759         not 4.3.  Correct its cpp guard expression.
23761 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23763         regex: remove unnecessary type punning
23764         Problem reported by Vladimir Serbinenko in
23765         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23766         * lib/regex.h (struct re_pattern_buffer): Change the type of
23767         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23768         Fix comment to match code.
23769         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23770         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23771         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23772         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23773         (set_regs):
23774         Omit no-longer-necessary casts.
23776 2012-04-03  Bruno Haible  <bruno@clisp.org>
23778         Tests for module 'ilogbl'.
23779         * modules/ilogbl-tests: New file.
23780         * tests/test-ilogbl.c: New file.
23782         New module 'ilogbl'.
23783         * lib/math.in.h (ilogbl): New declaration.
23784         * lib/ilogbl.c: New file.
23785         * m4/ilogbl.m4: New file.
23786         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23788         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23789         Split sed invocation, to avoid the limit of 100 substitutions of
23790         HP-UX 'sed'.
23791         * modules/ilogbl: New file.
23792         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23793         * doc/posix-functions/ilogbl.texi: Mention the new module.
23795 2012-04-03  Bruno Haible  <bruno@clisp.org>
23797         Tests for module 'ilogbf'.
23798         * modules/ilogbf-tests: New file.
23799         * tests/test-ilogbf.c: New file.
23801         New module 'ilogbf'.
23802         * lib/math.in.h (ilogbf): New declaration.
23803         * lib/ilogbf.c: New file.
23804         * m4/ilogbf.m4: New file.
23805         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23807         REPLACE_ILOGBF.
23808         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23809         REPLACE_ILOGBF.
23810         * modules/ilogbf: New file.
23811         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23812         * doc/posix-functions/ilogbf.texi: Mention the new module.
23814 2012-04-03  Bruno Haible  <bruno@clisp.org>
23816         Tests for module 'ilogb'.
23817         * modules/ilogb-tests: New file.
23818         * tests/test-ilogb.c: New file.
23819         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23820         tests/test-logb-ieee.h.
23822         New module 'ilogb'.
23823         * lib/math.in.h (ilogb): New declaration.
23824         * lib/ilogb.c: New file.
23825         * m4/ilogb.m4: New file.
23826         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23828         REPLACE_ILOGB.
23829         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23830         REPLACE_ILOGB.
23831         * modules/ilogb: New file.
23832         * tests/test-math-c++.cc: Check the declaration of ilogb.
23833         * doc/posix-functions/ilogb.texi: Mention the new module.
23835 2012-04-03  Bruno Haible  <bruno@clisp.org>
23837         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23838         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23839         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23840         (main): Check their values.
23841         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23842         problem.
23844 2012-04-03  Bruno Haible  <bruno@clisp.org>
23846         Tests for module 'logbl-ieee'.
23847         * modules/logbl-ieee-tests: New file.
23848         * tests/test-logbl-ieee.c: New file.
23850         New module 'logbl-ieee'.
23851         * modules/logbl-ieee: New file.
23853         Tests for module 'logb-ieee'.
23854         * modules/logb-ieee-tests: New file.
23855         * tests/test-logb-ieee.c: New file.
23857         New module 'logb-ieee'.
23858         * modules/logb-ieee: New file.
23860         Tests for module 'logbf-ieee'.
23861         * modules/logbf-ieee-tests: New file.
23862         * tests/test-logbf-ieee.c: New file.
23863         * tests/test-logb-ieee.h: New file.
23865         New module 'logbf-ieee'.
23866         * modules/logbf-ieee: New file.
23868 2012-04-03  Bruno Haible  <bruno@clisp.org>
23870         Tests for module 'logbl'.
23871         * modules/logbl-tests: New file.
23872         * tests/test-logbl.c: New file.
23874         New module 'logbl'.
23875         * lib/math.in.h (logbl): New declaration.
23876         * lib/logbl.c: New file.
23877         * m4/logbl.m4: New file.
23878         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23880         REPLACE_LOGBL.
23881         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23882         REPLACE_LOGBL.
23883         * modules/logbl: New file.
23884         * tests/test-math-c++.cc: Check the declaration of logbl.
23885         * doc/posix-functions/logbl.texi: Mention the new module.
23887 2012-04-02  Bruno Haible  <bruno@clisp.org>
23889         Tests for module 'logbf'.
23890         * modules/logbf-tests: New file.
23891         * tests/test-logbf.c: New file.
23893         New module 'logbf'.
23894         * lib/math.in.h (logbf): New declaration.
23895         * lib/logbf.c: New file.
23896         * m4/logbf.m4: New file.
23897         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
23898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
23899         REPLACE_LOGBF.
23900         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
23901         REPLACE_LOGBF.
23902         * modules/logbf: New file.
23903         * tests/test-math-c++.cc: Check the declaration of logbf.
23904         * doc/posix-functions/logbf.texi: Mention the new module.
23906 2012-04-02  Bruno Haible  <bruno@clisp.org>
23908         logb tests: More tests.
23909         * tests/test-logb.h: New file, based on tests/test-logb.c and
23910         tests/test-frexp.h.
23911         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
23912         (main): Just invoke test_function.
23913         * modules/logb-tests (Files): Add tests/test-logb.h,
23914         tests/minus-zero.h, tests/randomd.c.
23915         (Makefile.am): Add randomd.c to test_logb_SOURCES.
23917         logb: Provide replacement and workarounds.
23918         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
23919         is 1.
23920         * lib/logb.c: New file.
23921         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
23922         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
23923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
23924         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
23925         * modules/logb (Files): Add lib/logb.c.
23926         (Depends-on): Add isfinite, frexp, isnand.
23927         (configure.ac): Compile the replacement code logb.c if needed.
23928         * tests/test-math-c++.cc: Check the declaration of logb.
23929         * doc/posix-functions/logb.texi: Mention the replacement and the bug
23930         with subnormal numbers.
23932 2012-04-02  Bruno Haible  <bruno@clisp.org>
23934         log10* tests: Speed up.
23935         * tests/test-log10.h (test_function): Reduce amount of random numbers
23936         to test.
23938 2012-04-01  Bruno Haible  <bruno@clisp.org>
23940         logf-ieee: Fix test whether logf works.
23941         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
23943 2012-04-01  Bruno Haible  <bruno@clisp.org>
23945         log10l: Work around log10l-ieee test failure on IRIX 6.5.
23946         * lib/log10l.c: Include <float.h>
23947         (log10l): On IRIX, normalize the +Infinity value.
23948         * modules/log10l (Depends-on): Add 'float'.
23949         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
23950         +Infinity.
23952         log10f-ieee: Work around test failure on NetBSD 5.1.
23953         * m4/log10f-ieee.m4: New file.
23954         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
23955         test whether log10f works with a negative argument. Replace it if not.
23956         * lib/log10f.c (log10f): For negative arguments, return NaN.
23957         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
23958         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
23959         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
23961         log10f-ieee: Work around test failure on Solaris 9.
23962         * modules/log10f-ieee (Depends-on): Add log10-ieee.
23963         (configure.ac): Require gl_FUNC_LOG10F.
23965         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23966         * m4/log10-ieee.m4: New file.
23967         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
23968         whether log10 works with a negative argument. Replace it if not.
23969         * lib/log10.c (log10): For negative arguments, return NaN.
23970         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
23971         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
23972         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
23974         Tests for module 'log10l-ieee'.
23975         * modules/log10l-ieee-tests: New file.
23976         * tests/test-log10l-ieee.c: New file.
23978         New module 'log10l-ieee'.
23979         * modules/log10l-ieee: New file.
23981         Tests for module 'log10-ieee'.
23982         * modules/log10-ieee-tests: New file.
23983         * tests/test-log10-ieee.c: New file.
23985         New module 'log10-ieee'.
23986         * modules/log10-ieee: New file.
23988         Tests for module 'log10f-ieee'.
23989         * modules/log10f-ieee-tests: New file.
23990         * tests/test-log10f-ieee.c: New file.
23991         * tests/test-log10-ieee.h: New file.
23993         New module 'log10f-ieee'.
23994         * modules/log10f-ieee: New file.
23996 2012-04-01  Bruno Haible  <bruno@clisp.org>
23998         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
23999         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24000         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24001         workaround.
24002         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24003         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24005         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24006         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24007         (Depends-on): Update conditions.
24008         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24009         IRIX 6.5, OSF/1 5.1 problems.
24011 2012-04-01  Bruno Haible  <bruno@clisp.org>
24013         log10f: Work around OSF/1 5.1 bug.
24014         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24015         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24016         workaround.
24017         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24018         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24020         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24021         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24022         (Depends-on): Update conditions.
24023         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24025 2012-04-01  Bruno Haible  <bruno@clisp.org>
24027         log10: Work around OSF/1 5.1 bug.
24028         * lib/math.in.h (log10): New declaration.
24029         * lib/log10.c: New file.
24030         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24031         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24032         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24034         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24035         * modules/log10 (Files): Add lib/log10.c.
24036         (Depends-on): Add math.
24037         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24038         * tests/test-math-c++.cc: Check the declaration of log10.
24039         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24041 2012-03-31  Bruno Haible  <bruno@clisp.org>
24043         log10l tests: More tests.
24044         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24045         tests/minus-zero.h, tests/randoml.c.
24046         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24047         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24048         (main): Invoke test_function.
24050         log10f tests: More tests.
24051         * modules/log10f-tests (Files): Add tests/test-log10.h,
24052         tests/minus-zero.h, tests/randomf.c.
24053         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24054         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24055         (main): Invoke test_function.
24057         log10 tests: More tests.
24058         * tests/test-log10.h: New file.
24059         * modules/log10-tests (Files): Add tests/test-log10.h,
24060         tests/minus-zero.h, tests/randomd.c.
24061         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24062         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24063         (main): Invoke test_function.
24065 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24067         fflush: Fix syntax error.
24068         * lib/fflush.c: Include unused-parameter.h, needed for
24069         _GL_UNUSED_PARAMETER.
24070         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24072 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24074         regex: pacify GCC when compiling GRUB
24075         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24076         a diagnostic.  Reported by Vladimir Serbinenko in
24077         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24079 2012-03-29  Eric Blake  <eblake@redhat.com>
24081         stdio: don't assume gets any more
24082         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24083         support.
24084         * modules/stdio (Makefile.am): Likewise.
24085         * lib/stdio-read.c (gets): Likewise.
24086         * tests/test-stdio-c++.cc: Likewise.
24087         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24088         * lib/stdio.in.h (gets): Make warning occur in more places.
24089         * doc/posix-functions/gets.texi (gets): Update documentation.
24090         Reported by Christer Solskogen.
24092         maint.mk: fix syntax checks without exclusions
24093         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24094         Reported by Daniel P. Berrange.
24096         strerror_r: avoid compiler warning
24097         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24098         level.
24100         fflush: avoid compiler warning
24101         * lib/fflush.c (update_fpos_cache): Mark variables that are
24102         potentially unused.
24104 2012-03-25  Bruno Haible  <bruno@clisp.org>
24106         Tests for module 'localeconv'.
24107         * modules/localeconv-tests: New file.
24108         * tests/test-localeconv.c: New file.
24110         New module 'localeconv'.
24111         * lib/locale.in.h (localeconv): New declaration.
24112         * lib/localeconv.c: New file.
24113         * m4/localeconv.m4: New file.
24114         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24115         REPLACE_LOCALECONV.
24116         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24117         REPLACE_LOCALECONV.
24118         * modules/localeconv: New file.
24119         * modules/nl_langinfo (Depends-on): Add localeconv.
24120         * modules/human (Depends-on): Likewise.
24121         * doc/posix-functions/localeconv.texi: Mention the new module.
24123 2012-03-25  Bruno Haible  <bruno@clisp.org>
24125         locale: Provide a complete 'struct lconv'.
24126         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24127         'struct lconv' does not contain int_p_cs_precedes.
24128         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24129         * doc/posix-headers/locale.texi: Update.
24131         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24132         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24133         * doc/posix-headers/locale.texi: Update.
24135         locale: Provide a working 'struct lconv'.
24136         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24137         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24138         'struct lconv' does not even contain decimal_point.
24139         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24140         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24141         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24142         * doc/posix-headers/locale.texi: Mention the problems with
24143         'struct lconv'.
24144         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24146 2012-03-24  Bruno Haible  <bruno@clisp.org>
24148         Enable common subexpression optimization in GCC.
24149         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24150         macros.
24151         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24152         GCC attribute 'const'.
24153         (uc_locale_language): Declare with GCC attribute 'pure'.
24154         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24155         with GCC attribute 'const'.
24156         * lib/unictype.in.h (uc_is_general_category_withtable,
24157         uc_combining_class, uc_combining_class_name,
24158         uc_combining_class_long_name, uc_bidi_class_name,
24159         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24160         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24161         uc_decimal_value, uc_digit_value, uc_numeric_value,
24162         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24163         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24164         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24165         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24166         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24167         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24168         Declare with GCC attribute 'const'.
24169         (uc_general_category_name, uc_general_category_long_name,
24170         uc_general_category_byname, uc_general_category,
24171         uc_is_general_category, uc_combining_class_byname,
24172         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24173         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24174         Declare with GCC attribute 'pure'.
24175         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24176         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24177         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24178         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24179         with GCC attribute 'pure'.
24180         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24181         'const'.
24182         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24183         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24184         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24185         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24186         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24187         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24188         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24189         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24190         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24191         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24192         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24193         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24194         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24195         GCC attribute 'pure'.
24196         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24197         'const'.
24198         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24199         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24200         u32_strwidth): Declare with GCC attribute 'pure'.
24202         Enable common subexpression optimization in GCC.
24203         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24204         (alphasort): Declare with GCC attribute 'pure'.
24205         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24206         (atoll): Declare with GCC attribute 'pure'.
24207         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24208         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24209         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24210         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24211         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24212         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24213         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24215 2012-03-24  Bruno Haible  <bruno@clisp.org>
24217         gnulib-tool: Avoid unintended error output from 'cmp'.
24218         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24219         "cmp -s", not "cmp > /dev/null".
24221 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24223         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24225         It's not just Automake versions < 1.9b that creates an empty
24226         pkgdatadir at installation time if pkgdata_DATA is specified
24227         to empty; modern automake versions do this as well, at least
24228         until automake 1.11.4 (not yet released at the moment of writing,
24229         but soon to appear).  That behaviour was generally considered a
24230         feature rather than a bug, at least until this discussion:
24231         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24233         See also automake bugs #10997 and #11030.
24235         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24236         reference to relevant automake bug numbers.
24237         (func_emit_tests_Makefile_am): Likewise.
24239 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24241         announce-gen: use Digest::SHA when possible
24242         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24243         back to Digest::SHA1 if necessary.
24245 2012-03-20  Jim Meyering  <meyering@redhat.com>
24247         tests: avoid gcc warnings about argv vs. const initializers
24248         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24249         warnings about discarding 'const' qualifier from pointer target type.
24250         * tests/test-posix_spawn2.c (main): Likewise.
24252 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24254         README-release: simplify slightly
24255         * top/README-release: Run "git checkout master" only once.
24257 2012-03-15  Mark Wielaard  <mark@klomp.org>
24259         git-merge-changelog: add specific example on how to use with hg.
24260         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24262 2012-03-18  Mark Wielaard  <mark@klomp.org>
24264         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24266 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24268         git-version-gen: don't let "prefix" envvar cause trouble
24269         * build-aux/git-version-gen (prefix): Initialize properly,
24270         so as not to use a value specified via the environment.
24271         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24273 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24275         regex: diagnose too-large repeat counts in EREs
24276         Previously, the code did not diagnose the too-large repeat count
24277         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24278         as if it were 'b\{1000000000}', which is unexpected.
24279         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24280         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24281         is a reasonable one for this problem.  Another option would be to
24282         create a new REG_OVERFLOW error for repeat counts that are too large.
24283         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24284         count is too large, so that the caller can distinguish the two cases.
24285         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24286         "Too large" return code, and that repeat counts are one example of this.
24288 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24290         doc: some glibc x32 integer width issues
24291         * doc/posix-headers/sys_types.texi (sys/types.h):
24292         * doc/posix-headers/time.texi (time.h):
24293         Mention that glibc x32 does not conform to POSIX in a couple of
24294         areas related to integer widths.
24296 2012-03-15  Bruno Haible  <bruno@clisp.org>
24298         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24299         * lib/fma.c (VOLATILE): New macro.
24300         (FUNC): Use it to work around a GCC compiler bug.
24302 2012-03-13  Bruno Haible  <bruno@clisp.org>
24304         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24305         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24306         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24307         REPLACE_HYPOTL to 1.
24308         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24310 2012-03-13  Bruno Haible  <bruno@clisp.org>
24312         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24313         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24314         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24315         REPLACE_REMAINDERL to 1.
24316         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24317         bug.
24319 2012-03-13  Bruno Haible  <bruno@clisp.org>
24321         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24322         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24323         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24324         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24325         too big rounding errors.
24326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24327         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24328         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24329         (Depends-on): Update conditions.
24330         * tests/test-sqrtl.c (my_ldexpl): New function.
24331         (main): Add test of a particular value.
24332         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24334 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24336         doc: Update timer_* platform portability notes.
24337         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24338         that always return ENOSYS.
24339         * doc/posix-functions/timer_delete.texi: Likewise.
24340         * doc/posix-functions/timer_gettime.texi: Likewise.
24341         * doc/posix-functions/timer_settime.texi: Likewise.
24343 2012-03-13  Bruno Haible  <bruno@clisp.org>
24345         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24346         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24347         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24348         REPLACE_CBRTL to 1.
24349         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24351 2012-03-13  Bruno Haible  <bruno@clisp.org>
24353         remainderl: Avoid compilation error on AIX >= 5.2.
24354         * lib/math.in.h (remainderl): Undefine macro from the system header.
24356 2012-03-13  Bruno Haible  <bruno@clisp.org>
24358         Avoid compilation errors with MSVC option -fp:strict.
24359         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24360         * lib/cbrtf.c: Likewise.
24361         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24363 2012-03-12  Bruno Haible  <bruno@clisp.org>
24365         uninorm: Don't crash in out-of-memory conditions.
24366         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24367         gracefully.
24368         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24369         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24371 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24373         quote: fix syntax-check
24374         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24375         also exports quote_quoting_options.
24377 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24379         Collapse list of copyright years to ranges.  See
24380         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24381         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24382         build-aux/csharpexec.sh.in, build-aux/gnupload,
24383         build-aux/install-reloc, build-aux/javacomp.sh.in,
24384         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24385         build-aux/move-if-change, build-aux/reloc-ldflags,
24386         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24388 2012-03-11  Bruno Haible  <bruno@clisp.org>
24390         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24391         * m4/log2f-ieee.m4: New file.
24392         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24393         whether log2f works with a minus zero argument. Replace it if not.
24394         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24395         (Depends-on): Add log2-ieee.
24396         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24397         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24399         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24400         * m4/log2-ieee.m4: New file.
24401         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24402         whether log2 works with a minus zero argument. Replace it if not.
24403         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24404         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24405         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24407         Tests for module 'log2l-ieee'.
24408         * modules/log2l-ieee-tests: New file.
24409         * tests/test-log2l-ieee.c: New file.
24411         New module 'log2l-ieee'.
24412         * modules/log2l-ieee: New file.
24414         Tests for module 'log2-ieee'.
24415         * modules/log2-ieee-tests: New file.
24416         * tests/test-log2-ieee.c: New file.
24418         New module 'log2-ieee'.
24419         * modules/log2-ieee: New file.
24421         Tests for module 'log2f-ieee'.
24422         * modules/log2f-ieee-tests: New file.
24423         * tests/test-log2f-ieee.c: New file.
24424         * tests/test-log2-ieee.h: New file.
24426         New module 'log2f-ieee'.
24427         * modules/log2f-ieee: New file.
24429 2012-03-11  Bruno Haible  <bruno@clisp.org>
24431         Tests for module 'log2l'.
24432         * modules/log2l-tests: New file.
24433         * tests/test-log2l.c: New file.
24435         New module 'log2l'.
24436         * lib/math.in.h (log2l): New declaration.
24437         * lib/log2l.c: New file.
24438         * m4/log2l.m4: New file.
24439         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24441         REPLACE_LOG2L.
24442         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24443         REPLACE_LOG2L.
24444         * modules/log2l: New file.
24445         * tests/test-math-c++.cc: Check the declaration of log2l.
24446         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24447         and OSF/1 problems.
24449 2012-03-11  Bruno Haible  <bruno@clisp.org>
24451         Tests for module 'log2f'.
24452         * modules/log2f-tests: New file.
24453         * tests/test-log2f.c: New file.
24455         New module 'log2f'.
24456         * lib/math.in.h (log2f): New declaration.
24457         * lib/log2f.c: New file.
24458         * m4/log2f.m4: New file.
24459         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24461         REPLACE_LOG2F.
24462         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24463         REPLACE_LOG2F.
24464         * modules/log2f: New file.
24465         * tests/test-math-c++.cc: Check the declaration of log2f.
24466         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24467         and OSF/1 and Cygwin problems.
24469 2012-03-11  Bruno Haible  <bruno@clisp.org>
24471         Tests for module 'log2'.
24472         * modules/log2-tests: New file.
24473         * tests/test-log2.c: New file.
24474         * tests/test-log2.h: New file.
24476         New module 'log2'.
24477         * lib/math.in.h (log2): New declaration.
24478         * lib/log2.c: New file.
24479         * m4/log2.m4: New file.
24480         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24482         REPLACE_LOG2.
24483         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24484         REPLACE_LOG2.
24485         * modules/log2: New file.
24486         * tests/test-math-c++.cc: Check the declaration of log2.
24487         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24488         and OSF/1 and Cygwin problems.
24490 2012-03-11  Bruno Haible  <bruno@clisp.org>
24492         exp2* tests: More tests.
24493         * tests/test-exp2.h (test_function): Test all integral arguments that
24494         don't need to overflow or denormalized numbers.
24495         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24496         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24497         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24499 2012-03-10  Bruno Haible  <bruno@clisp.org>
24501         log1pl-ieee: Work around test failure on AIX 7.1.
24502         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24504         log1pl-ieee: Work around test failure on IRIX 6.5.
24505         * m4/log1pl-ieee.m4: New file.
24506         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24507         test whether log1pl works with a minus zero argument. Replace it if
24508         not.
24509         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24511         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24512         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24513         (Depends-on): Update conditions.
24514         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24515         m4/signbit.m4.
24516         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24517         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24519         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24520         * m4/log1pf-ieee.m4: New file.
24521         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24522         test whether log1pf works with a minus zero argument. Replace it if
24523         not.
24524         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24525         m4/signbit.m4.
24526         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24527         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24529         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24530         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24531         (configure.ac): Require gl_FUNC_LOG1PF.
24533         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24534         * m4/log1p-ieee.m4: New file.
24535         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24536         whether log1p works with a minus zero argument. Replace it if not.
24537         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24539         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24540         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24541         (Depends-on): Update conditions.
24542         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24543         m4/signbit.m4.
24544         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24545         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24547         Tests for module 'log1pl-ieee'.
24548         * modules/log1pl-ieee-tests: New file.
24549         * tests/test-log1pl-ieee.c: New file.
24551         New module 'log1pl-ieee'.
24552         * modules/log1pl-ieee: New file.
24554         Tests for module 'log1p-ieee'.
24555         * modules/log1p-ieee-tests: New file.
24556         * tests/test-log1p-ieee.c: New file.
24558         New module 'log1p-ieee'.
24559         * modules/log1p-ieee: New file.
24561         Tests for module 'log1pf-ieee'.
24562         * modules/log1pf-ieee-tests: New file.
24563         * tests/test-log1pf-ieee.c: New file.
24564         * tests/test-log1p-ieee.h: New file.
24566         New module 'log1pf-ieee'.
24567         * modules/log1pf-ieee: New file.
24569 2012-03-10  Bruno Haible  <bruno@clisp.org>
24571         Tests for module 'log1pl'.
24572         * modules/log1pl-tests: New file.
24573         * tests/test-log1pl.c: New file.
24575         New module 'log1pl'.
24576         * lib/math.in.h (log1pl): New declaration.
24577         * lib/log1pl.c: New file.
24578         * m4/log1pl.m4: New file.
24579         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24581         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24582         * modules/log1pl: New file.
24583         * tests/test-math-c++.cc: Check the declaration of log1pl.
24584         * doc/posix-functions/log1pl.texi: Mention the new module.
24586 2012-03-10  Bruno Haible  <bruno@clisp.org>
24588         Tests for module 'log1pf'.
24589         * modules/log1pf-tests: New file.
24590         * tests/test-log1pf.c: New file.
24592         New module 'log1pf'.
24593         * lib/math.in.h (log1pf): New declaration.
24594         * lib/log1pf.c: New file.
24595         * m4/log1pf.m4: New file.
24596         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24598         REPLACE_LOG1PF.
24599         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24600         REPLACE_LOG1PF.
24601         * modules/log1pf: New file.
24602         * tests/test-math-c++.cc: Check the declaration of log1pf.
24603         * doc/posix-functions/log1pf.texi: Mention the new module.
24605 2012-03-10  Bruno Haible  <bruno@clisp.org>
24607         log1p tests: More tests.
24608         * tests/test-log1p.h: New file.
24609         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24610         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24611         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24612         (main): Invoke test_function.
24614         log1p: Provide replacement for Minix and MSVC.
24615         * lib/math.in.h (log1p): New declaration.
24616         * lib/log1p.c: New file.
24617         * m4/log1p.m4: New file.
24618         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24620         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24621         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24622         (Depends-on): Add math, isnand, log, round.
24623         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24624         HAVE_LOG1P is 0.
24625         * tests/test-math-c++.cc: Check the declaration of log1p.
24626         * doc/posix-functions/log1p.texi: Mention the replacement.
24628 2012-03-10  Bruno Haible  <bruno@clisp.org>
24630         math tests: Small simplification.
24631         * tests/test-exp.h (test_function): Use the same err_bound for
24632         'double' on platforms with sizeof (long double) == sizeof (double)
24633         than on platforms with sizeof (long double) > sizeof (double).
24634         * tests/test-exp2.h (test_function): Likewise.
24635         * tests/test-expm1.h (test_function): Likewise.
24636         * tests/test-log.h (test_function): Likewise.
24638 2012-03-10  Bruno Haible  <bruno@clisp.org>
24640         Fix some comments.
24641         * lib/expl.c: Fix an ambiguous comment.
24642         * lib/expm1.c: Likewise.
24643         * lib/expm1l.c: Likewise.
24644         * lib/exp2.c: Likewise.
24645         * lib/exp2l.c: Likewise.
24647 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24649         regex: allow inclusion of <regex.h> before <limits.h>
24650         Without this patch, portable programs had to include <limits.h> before
24651         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24652         I ran into this problem with a test version of GNU grep on Solaris 8.
24653         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24654         This is done conditionally so that this change can be merged
24655         back to glibc.
24656         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24657         using the included regex.
24659         fts: depend on fdopendir
24660         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24661         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24662         problem was introduced when fdopendir was split out.
24664 2012-03-10  Bruno Haible  <bruno@clisp.org>
24666         Remove unused variables.
24667         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24668         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24670 2012-03-10  Bruno Haible  <bruno@clisp.org>
24672         isnanf-nolibm: Fix last commit.
24673         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24675         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24676         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24678 2012-03-10  Bruno Haible  <bruno@clisp.org>
24680         logf-ieee: Work around test failure on NetBSD 5.1.
24681         * m4/logf-ieee.m4: New file.
24682         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24683         whether logf works with a negative argument. Replace it if not.
24684         * lib/logf.c (logf): For negative arguments, return NaN.
24685         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24686         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24687         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24689         logf-ieee: Work around test failure on Solaris 9.
24690         * modules/logf-ieee (Depends-on): Add log-ieee.
24691         (configure.ac): Require gl_FUNC_LOGF.
24693         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24694         * m4/log-ieee.m4: New file.
24695         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24696         log works with a negative argument. Replace it if not.
24697         * lib/log.c (log): For negative arguments, return NaN.
24698         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24699         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24700         * doc/posix-functions/log.texi: Mention the log-ieee module.
24702         Tests for module 'logl-ieee'.
24703         * modules/logl-ieee-tests: New file.
24704         * tests/test-logl-ieee.c: New file.
24706         New module 'logl-ieee'.
24707         * modules/logl-ieee: New file.
24709         Tests for module 'log-ieee'.
24710         * modules/log-ieee-tests: New file.
24711         * tests/test-log-ieee.c: New file.
24713         New module 'log-ieee'.
24714         * modules/log-ieee: New file.
24716         Tests for module 'logf-ieee'.
24717         * modules/logf-ieee-tests: New file.
24718         * tests/test-logf-ieee.c: New file.
24719         * tests/test-log-ieee.h: New file.
24721         New module 'logf-ieee'.
24722         * modules/logf-ieee: New file.
24724 2012-03-10  Bruno Haible  <bruno@clisp.org>
24726         log: Fix bug introduced on 2012-03-09.
24727         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24729 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24731         timer-time: link explicitly with pthreads on glibc
24732         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24733         to support static linking, when newer glibc is
24734         detected, as that contains pthread emulation of
24735         POSIX timer functions where required.
24736         * modules/timer-time: Depend on threadlib to
24737         pull in the appropriate library to link.
24739 2012-03-10  Bruno Haible  <bruno@clisp.org>
24741         log* tests: More tests.
24742         * tests/test-log.h: New file.
24743         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24744         (main): Invoke test_function.
24745         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24746         (main): Invoke test_function.
24747         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24748         (main): Invoke test_function.
24749         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24750         tests/randomd.c.
24751         (Makefile.am): Add randomd.c to test_log_SOURCES.
24752         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24753         tests/randomf.c.
24754         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24755         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24756         tests/randoml.c.
24757         (Depends-on): Add 'float'.
24758         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24760 2012-03-09  Bruno Haible  <bruno@clisp.org>
24762         logl: Work around OSF/1 5.1 bug.
24763         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24764         * lib/logl.c (logl): If logl exists, use it and provide just the
24765         workaround.
24766         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24767         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24769         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24770         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24771         (Depends-on): Update conditions.
24772         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24774 2012-03-09  Bruno Haible  <bruno@clisp.org>
24776         logf: Work around OSF/1 5.1 bug.
24777         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24778         * lib/logf.c (logf): If logf exists, use it and provide just the
24779         workaround.
24780         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24781         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24783         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24784         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24785         (Depends-on): Update conditions.
24786         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24788 2012-03-09  Bruno Haible  <bruno@clisp.org>
24790         log: Work around OSF/1 5.1 bug.
24791         * lib/math.in.h (log): New declaration.
24792         * lib/log.c: New file.
24793         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24794         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24795         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24797         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24798         * modules/log (Files): Add lib/log.c.
24799         (Depends-on): Add math.
24800         (configure.ac): If REPLACE_LOG is 1, compile an override.
24801         * tests/test-math-c++.cc: Check the declaration of log.
24802         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24804 2012-03-09  Jim Meyering  <meyering@redhat.com>
24806         readtokens.c: adjust wording in a comment
24807         * lib/readtokens.c: Insert omitted "that" in a comment.
24809 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24811         modechange: add notations +40, 00440, etc.
24812         * lib/modechange.c (mode_compile): Support new notations
24813         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24815 2012-03-08  Bruno Haible  <bruno@clisp.org>
24817         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24818         * m4/exp2l-ieee.m4: New file.
24819         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24820         test whether exp2l works with a NaN argument and with a negative
24821         infinity argument. Replace it if not.
24822         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24824         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24825         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24826         (Depends-on): Update conditions.
24827         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24828         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24829         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24831         Tests for module 'exp2l-ieee'.
24832         * modules/exp2l-ieee-tests: New file.
24833         * tests/test-exp2l-ieee.c: New file.
24835         New module 'exp2l-ieee'.
24836         * modules/exp2l-ieee: New file.
24838         Tests for module 'exp2-ieee'.
24839         * modules/exp2-ieee-tests: New file.
24840         * tests/test-exp2-ieee.c: New file.
24842         New module 'exp2-ieee'.
24843         * modules/exp2-ieee: New file.
24845         Tests for module 'exp2f-ieee'.
24846         * modules/exp2f-ieee-tests: New file.
24847         * tests/test-exp2f-ieee.c: New file.
24848         * tests/test-exp2-ieee.h: New file.
24850         New module 'exp2f-ieee'.
24851         * modules/exp2f-ieee: New file.
24853 2012-03-08  Bruno Haible  <bruno@clisp.org>
24855         Tests for module 'exp2l'.
24856         * modules/exp2l-tests: New file.
24857         * tests/test-exp2l.c: New file.
24859         New module 'exp2l'.
24860         * lib/math.in.h (exp2l): New declaration.
24861         * lib/exp2l.c: New file.
24862         * lib/expl-table.c: New file, extracted from lib/expl.c.
24863         * lib/expl.c (gl_expl_table): New declaration.
24864         (expl): Remove expl_table. Update reference.
24865         * m4/exp2l.m4: New file.
24866         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24868         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24869         * modules/exp2l: New file.
24870         * modules/expl (Files): Add lib/expl-table.c.
24871         (configure.ac): Compile also expl-table.c.
24872         * tests/test-math-c++.cc: Check the declaration of exp2l.
24873         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24874         problem.
24876 2012-03-08  Bruno Haible  <bruno@clisp.org>
24878         Tests for module 'exp2f'.
24879         * modules/exp2f-tests: New file.
24880         * tests/test-exp2f.c: New file.
24882         New module 'exp2f'.
24883         * lib/math.in.h (exp2f): New declaration.
24884         * lib/exp2f.c: New file.
24885         * m4/exp2f.m4: New file.
24886         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24888         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24889         * modules/exp2f: New file.
24890         * tests/test-math-c++.cc: Check the declaration of exp2f.
24891         * doc/posix-functions/exp2f.texi: Mention the new module and the
24892         IRIX problem.
24894 2012-03-08  Bruno Haible  <bruno@clisp.org>
24896         Tests for module 'exp2'.
24897         * modules/exp2-tests: New file.
24898         * tests/test-exp2.c: New file.
24899         * tests/test-exp2.h: New file.
24901         New module 'exp2'.
24902         * lib/math.in.h (exp2): New declaration.
24903         * lib/exp2.c: New file.
24904         * m4/exp2.m4: New file.
24905         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
24906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
24907         REPLACE_EXP2.
24908         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
24909         REPLACE_EXP2.
24910         * modules/exp2: New file.
24911         * tests/test-math-c++.cc: Check the declaration of exp2.
24912         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
24913         and OpenBSD problems.
24915 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24917         savedir: fix comment typo
24918         * lib/savedir.c (savedirstream): Fix typo in comment.
24920 2012-03-08  Bruno Haible  <bruno@clisp.org>
24922         test-readtokens.c: use const; remove unwarranted cast
24923         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
24925 2012-03-08  Bruno Haible  <bruno@clisp.org>
24927         fmal: Avoid compilation error on AIX.
24928         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
24929         AIX 5.2..7.1.
24931 2012-03-08  Bruno Haible  <bruno@clisp.org>
24933         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
24934         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
24935         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
24936         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
24937         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
24938         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
24939         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
24941 2012-03-08  Bruno Haible  <bruno@clisp.org>
24943         remainderf: Override buggy system function on IRIX 6.5.
24944         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
24945         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
24946         when it exists.
24947         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
24949 2012-03-08  Jim Meyering  <meyering@redhat.com>
24951         test-readtokens.c: avoid const-related compilation warnings
24952         * tests/test-readtokens.c: Avoid const-related compilation warnings.
24954 2012-03-07  Jim Meyering  <meyering@redhat.com>
24955             Bruno Haible  <bruno@clisp.org>
24957         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
24958         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
24959         tests/randomd.c.
24960         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
24961         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
24962         tests/randoml.c.
24963         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
24965 2012-03-07  Bruno Haible  <bruno@clisp.org>
24967         expm1l: Avoid compilation error on AIX.
24968         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
24969         AIX 5.2..7.1.
24971 2012-03-07  Bruno Haible  <bruno@clisp.org>
24973         expm1l: Don't override undeclared system function on IRIX 6.5.
24974         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
24975         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
24976         it exists. Set HAVE_DECL_EXPM1L.
24977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
24978         HAVE_EXPM1L.
24979         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
24980         HAVE_EXPM1L.
24981         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
24983 2012-03-07  Bruno Haible  <bruno@clisp.org>
24985         remainderl: Don't override undeclared system function on IRIX 6.5.
24986         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
24987         HAVE_REMAINDERL.
24988         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
24989         declared when it exists. Set HAVE_DECL_REMAINDERL.
24990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
24991         not HAVE_REMAINDERL.
24992         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
24993         HAVE_REMAINDERL.
24994         * doc/posix-functions/remainderl.texi: Mention missing declaration
24995         problem.
24997 2012-03-07  Bruno Haible  <bruno@clisp.org>
24999         rintf: Don't override undeclared system function on IRIX 6.5.
25000         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25001         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25002         exists. Set HAVE_DECL_RINTF.
25003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25004         HAVE_RINTF.
25005         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25006         HAVE_RINTF.
25007         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25009 2012-03-07  Bruno Haible  <bruno@clisp.org>
25011         roundl: Avoid compilation error on AIX.
25012         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25013         AIX 5.2..7.1.
25015 2012-03-07  Bruno Haible  <bruno@clisp.org>
25017         roundl: Don't override undeclared system function on IRIX 6.5.
25018         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25019         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25020         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25021         * modules/roundl (configure.ac): For replacement code, test
25022         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25023         (Depends-on): Update conditions.
25024         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25026 2012-03-07  Bruno Haible  <bruno@clisp.org>
25028         roundf: Don't override undeclared system function on IRIX 6.5.
25029         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25030         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25031         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25032         * modules/roundf (configure.ac): For replacement code, test
25033         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25034         (Depends-on): Update conditions.
25035         * modules/roundf-ieee (Depends-on): Update conditions.
25036         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25038 2012-03-07  Bruno Haible  <bruno@clisp.org>
25040         round: Don't override undeclared system function on IRIX 6.5.
25041         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25042         argument.
25043         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25044         also when it is not declared. Set HAVE_ROUND. For replacement code,
25045         test HAVE_ROUND, not HAVE_DECL_ROUND.
25046         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25047         not HAVE_DECL_ROUND.
25048         (Depends-on): Update conditions.
25049         * modules/round-ieee (Depends-on): Update conditions.
25050         * doc/posix-functions/round.texi: Mention the IRIX problem.
25052 2012-03-07  Bruno Haible  <bruno@clisp.org>
25054         copysignf: Don't override undeclared system function on IRIX 6.5.
25055         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25056         HAVE_COPYSIGNF.
25057         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25058         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25060         not HAVE_COPYSIGNF.
25061         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25062         HAVE_COPYSIGNF.
25063         * doc/posix-functions/copysignf.texi: Mention missing declaration
25064         problem.
25066 2012-03-07  Jim Meyering  <meyering@redhat.com>
25068         readtokens: add tests
25069         * modules/readtokens-tests: New file.
25070         * tests/test-readtokens.c: New file.
25072 2012-03-07  Jim Meyering  <meyering@redhat.com>
25074         quotearg: the module must now include quote.h
25075         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25076         So must the module.
25077         * modules/quotearg (Files): Add quote.h.
25079 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25081         readtokens: avoid core dumps with unusual calling patterns
25082         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25083         * lib/readtokens.c: Include limits.h.
25084         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25085         (readtoken): Don't cache the delimiters; the cache code was buggy
25086         if !delim && saved_delim, or if the new n_delim differs from the old.
25087         Also, it wasn't thread-safe.
25089 2012-03-07  Bruno Haible  <bruno@clisp.org>
25091         quote: Adhere to common module description layout.
25092         * modules/quote (Makefile.am): Add back empty section.
25094 2012-03-06  Akim Demaille  <demaille@gostai.com>
25096         quote: fuse into quotearg
25097         This patch is made for the benefit of Bison.
25098         quote does not leave the choice of the quoting style to the user.
25099         quoting_style provides poor customizability, yet quoting_options,
25100         which is very rich, is hidden inside quotearg.c.  So in order to
25101         allow quote customization, move its implementation to quotearg.c.
25102         * lib/quote.c: Remove.
25103         * modules/quote: Adjust.
25104         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25105         warning: provide all the members of literal structs.
25106         (quote_quoting_options): New.
25107         (quote, quote_n): Import implementation from quote.c.
25108         * lib/quote.h: Import the comments from quote.c.
25109         (quote_quoting_options): New.
25111 2012-03-06  Bruno Haible  <bruno@clisp.org>
25113         Tests for module 'expm1l-ieee'.
25114         * modules/expm1l-ieee-tests: New file.
25115         * tests/test-expm1l-ieee.c: New file.
25117         New module 'expm1l-ieee'.
25118         * modules/expm1l-ieee: New file.
25120         Tests for module 'expm1f-ieee'.
25121         * modules/expm1f-ieee-tests: New file.
25122         * tests/test-expm1f-ieee.c: New file.
25124         New module 'expm1f-ieee'.
25125         * modules/expm1f-ieee: New file.
25127         Tests for module 'expm1-ieee'.
25128         * modules/expm1-ieee-tests: New file.
25129         * tests/test-expm1-ieee.c: New file.
25130         * tests/test-expm1-ieee.h: New file.
25132         New module 'expm1-ieee'.
25133         * modules/expm1-ieee: New file.
25134         * m4/expm1-ieee.m4: New file.
25135         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25136         whether expm1 works with a minus zero argument. Replace it if not.
25137         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25139         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25140         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25141         (Depends-on): Update conditions.
25142         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25143         AIX problem.
25145 2012-03-06  Bruno Haible  <bruno@clisp.org>
25147         Work around expm1f bug on IRIX 6.5.
25148         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25149         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25150         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25151         not work.
25152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25153         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25154         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25155         (Depends-on): Update conditions.
25156         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25158 2012-03-06  Bruno Haible  <bruno@clisp.org>
25160         Tests for module 'expm1l'.
25161         * modules/expm1l-tests: New file.
25162         * tests/test-expm1l.c: New file.
25164         New module 'expm1l'.
25165         * lib/math.in.h (expm1l): New declaration.
25166         * lib/expm1l.c: New file.
25167         * m4/expm1l.m4: New file.
25168         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25170         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25171         * modules/expm1l: New file.
25172         * tests/test-math-c++.cc: Check the declaration of expm1l.
25173         * doc/posix-functions/expm1l.texi: Mention the new module.
25175 2012-03-06  Bruno Haible  <bruno@clisp.org>
25177         Tests for module 'expm1f'.
25178         * modules/expm1f-tests: New file.
25179         * tests/test-expm1f.c: New file.
25181         New module 'expm1f'.
25182         * lib/math.in.h (expm1f): New declaration.
25183         * lib/expm1f.c: New file.
25184         * m4/expm1f.m4: New file.
25185         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25187         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25188         * modules/expm1f: New file.
25189         * tests/test-math-c++.cc: Check the declaration of expm1f.
25190         * doc/posix-functions/expm1f.texi: Mention the new module.
25192 2012-03-06  Bruno Haible  <bruno@clisp.org>
25194         Tests for module 'expm1'.
25195         * modules/expm1-tests: New file.
25196         * tests/test-expm1.c: New file.
25197         * tests/test-expm1.h: New file.
25199         New module 'expm1'.
25200         * lib/math.in.h (expm1): New declaration.
25201         * lib/expm1.c: New file.
25202         * m4/expm1.m4: New file.
25203         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25205         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25206         * modules/expm1: New file.
25207         * tests/test-math-c++.cc: Check the declaration of expm1.
25208         * doc/posix-functions/expm1.texi: Mention the new module.
25210 2012-03-06  Bruno Haible  <bruno@clisp.org>
25212         math: Ensure declarations of math functions.
25213         * modules/acosf (Depends-on): Add 'extensions'.
25214         * modules/asinf (Depends-on): Likewise.
25215         * modules/atan2f (Depends-on): Likewise.
25216         * modules/atanf (Depends-on): Likewise.
25217         * modules/cbrt (Depends-on): Likewise.
25218         * modules/cbrtf (Depends-on): Likewise.
25219         * modules/cbrtl (Depends-on): Likewise.
25220         * modules/copysignf (Depends-on): Likewise.
25221         * modules/copysignl (Depends-on): Likewise.
25222         * modules/cosf (Depends-on): Likewise.
25223         * modules/coshf (Depends-on): Likewise.
25224         * modules/expf (Depends-on): Likewise.
25225         * modules/fabsf (Depends-on): Likewise.
25226         * modules/fabsl (Depends-on): Likewise.
25227         * modules/fmaf (Depends-on): Likewise.
25228         * modules/fmal (Depends-on): Likewise.
25229         * modules/fmodf (Depends-on): Likewise.
25230         * modules/fmodl (Depends-on): Likewise.
25231         * modules/frexpf (Depends-on): Likewise.
25232         * modules/frexpl (Depends-on): Likewise.
25233         * modules/hypot (Depends-on): Likewise.
25234         * modules/hypotf (Depends-on): Likewise.
25235         * modules/hypotl (Depends-on): Likewise.
25236         * modules/ldexpf (Depends-on): Likewise.
25237         * modules/ldexpl (Depends-on): Likewise.
25238         * modules/log10f (Depends-on): Likewise.
25239         * modules/log10l (Depends-on): Likewise.
25240         * modules/log1p (Depends-on): Likewise.
25241         * modules/logb (Depends-on): Likewise.
25242         * modules/logf (Depends-on): Likewise.
25243         * modules/modff (Depends-on): Likewise.
25244         * modules/modfl (Depends-on): Likewise.
25245         * modules/powf (Depends-on): Likewise.
25246         * modules/remainderf (Depends-on): Likewise.
25247         * modules/remainderl (Depends-on): Likewise.
25248         * modules/rintf (Depends-on): Likewise.
25249         * modules/rintl (Depends-on): Likewise.
25250         * modules/sinf (Depends-on): Likewise.
25251         * modules/sinhf (Depends-on): Likewise.
25252         * modules/sqrtf (Depends-on): Likewise.
25253         * modules/tanf (Depends-on): Likewise.
25254         * modules/tanhf (Depends-on): Likewise.
25255         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25256         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25257         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25258         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25259         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25260         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25261         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25262         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25263         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25264         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25265         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25266         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25267         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25268         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25269         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25270         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25271         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25272         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25273         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25274         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25275         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25276         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25277         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25278         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25279         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25280         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25281         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25282         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25283         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25284         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25285         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25286         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25287         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25288         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25289         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25290         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25291         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25292         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25293         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25294         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25295         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25297 2012-03-06  Bruno Haible  <bruno@clisp.org>
25299         math: Update module names in warnings.
25300         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25301         tanl): Use specific module name in warn-on-use warning.
25303 2012-03-06  Bruno Haible  <bruno@clisp.org>
25305         expl: Simplify computation.
25306         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25308 2012-03-05  Bruno Haible  <bruno@clisp.org>
25310         exp* tests: More tests.
25311         * tests/test-exp.h: New file.
25312         * tests/test-exp.c: Include <float.h> and test-exp.h.
25313         (main): Invoke test_function.
25314         * tests/test-expf.c: Include <float.h> and test-exp.h.
25315         (main): Invoke test_function.
25316         * tests/test-expl.c: Include <float.h> and test-exp.h.
25317         (main): Invoke test_function.
25318         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25319         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25320         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25321         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25322         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25323         (Depends-on): Add 'float'.
25324         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25326         expl: Fix precision of computed result.
25327         * lib/expl.c: Completely rewritten.
25328         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25329         (Maintainer): Add me.
25330         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25332 2012-03-05  Bruno Haible  <bruno@clisp.org>
25334         cbrt* tests: More tests.
25335         * tests/test-cbrt.h: New file.
25336         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25337         (main): Invoke test_function.
25338         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25339         (main): Invoke test_function.
25340         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25341         (main): Invoke test_function.
25342         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25343         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25344         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25345         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25346         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25347         (Depends-on): Add 'float'.
25348         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25350 2012-03-05  Bruno Haible  <bruno@clisp.org>
25352         hypot* tests: More tests.
25353         * tests/test-hypot.h: New file, partially extracted from
25354         tests/test-hypotl.c.
25355         * tests/test-hypot.c: Include test-hypot.h.
25356         (main): Invoke test_function.
25357         * tests/test-hypotf.c: Include test-hypot.h.
25358         (main): Invoke test_function.
25359         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25360         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25361         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25362         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25363         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25364         tests/randomf.c.
25365         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25366         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25367         tests/randoml.c.
25368         (Depends-on): Add 'fpucw', 'float'.
25369         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25371 2012-03-05  Bruno Haible  <bruno@clisp.org>
25373         fpucw: Doc about FreeBSD.
25374         * lib/fpucw.h: Mention FreeBSD in comments.
25376 2012-03-04  Bruno Haible  <bruno@clisp.org>
25378         sqrt* tests: More tests.
25379         * tests/test-sqrt.h: New file.
25380         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25381         (main): Invoke test_function.
25382         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25383         (main): Invoke test_function.
25384         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25385         (main): Invoke test_function.
25386         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25387         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25388         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25389         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25390         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25391         (Depends-on): Add 'float'.
25392         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25394 2012-03-04  Bruno Haible  <bruno@clisp.org>
25396         remainder* tests: More tests.
25397         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25398         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25399         (main): Invoke test_function.
25400         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25401         (main): Invoke test_function.
25402         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25403         (main): Invoke test_function.
25404         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25405         tests/randomd.c.
25406         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25407         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25408         tests/randomf.c.
25409         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25410         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25411         tests/randoml.c.
25412         (Depends-on): Add 'float'.
25413         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25415 2012-03-04  Bruno Haible  <bruno@clisp.org>
25417         remainder, remainderf, remainderl: Fix computation for large quotients.
25418         * lib/remainder.c: Completely rewritten.
25419         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25420         USE_FLOAT.
25421         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25422         USE_LONG_DOUBLE.
25423         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25424         isnand, isinf. Remove round, fma.
25425         * modules/remainderf (Files): Add lib/remainder.c.
25426         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25427         Remove roundf, fmaf.
25428         * modules/remainderl (Files): Add lib/remainder.c.
25429         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25430         isinf. Remove roundl, fmal.
25431         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25432         REMAINDER_LIBM.
25433         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25434         REMAINDERF_LIBM.
25435         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25436         REMAINDERL_LIBM.
25438 2012-03-04  Bruno Haible  <bruno@clisp.org>
25440         fmod* tests: More tests.
25441         * tests/test-fmod.h (my_ldexp): New function.
25442         (test_function): Reduce amount of random numbers to test. Add tests
25443         of very large quotients x / y.
25444         * tests/test-fmod.c (MAX_EXP): New macro.
25445         * tests/test-fmodf.c (MAX_EXP): Likewise.
25446         * tests/test-fmodl.c (MAX_EXP): Likewise.
25448 2012-03-04  Bruno Haible  <bruno@clisp.org>
25450         fmod, fmodl: Fix computation for large quotients x / y.
25451         * lib/fmod.c: Completely rewritten.
25452         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25453         USE_LONG_DOUBLE.
25454         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25455         isnand. Remove fma.
25456         * modules/fmodl (Files): Add lib/fmod.c.
25457         (Depends-on): Add float, isfinite, signbit, fabsl,
25458         frexpl, ldexpl, isnanl. Remove fma.
25459         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25460         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25462 2012-03-03  Bruno Haible  <bruno@clisp.org>
25464         fmod* tests: More tests.
25465         * tests/test-fmod.h: New file.
25466         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25467         (main): Invoke test_function.
25468         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25469         (main): Invoke test_function.
25470         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25471         (main): Invoke test_function.
25472         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25473         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25474         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25475         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25476         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25477         (Depends-on): Add 'float'.
25478         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25480 2012-03-03  Bruno Haible  <bruno@clisp.org>
25482         rint* tests: More tests.
25483         * tests/test-rint.h: New file, partially extracted from
25484         tests/test-rintl.c.
25485         * tests/test-rint.c: Include test-rint.h.
25486         (main): Invoke test_function.
25487         * tests/test-rintf.c: Include test-rint.h.
25488         (main): Invoke test_function.
25489         * tests/test-rintl.c: Include test-rint.h.
25490         (main): Invoke test_function.
25491         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25492         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25493         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25494         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25495         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25496         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25498 2012-03-03  Bruno Haible  <bruno@clisp.org>
25500         modf* tests: More tests.
25501         * tests/test-modf.h: New file.
25502         * tests/test-modf.c: Include <float.h> and test-modf.h.
25503         (main): Invoke test_function.
25504         * tests/test-modff.c: Include <float.h> and test-modf.h.
25505         (main): Invoke test_function.
25506         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25507         (main): Invoke test_function.
25508         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25509         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25510         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25511         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25512         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25513         (Depends-on): Add 'float'.
25514         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25516 2012-03-03  Bruno Haible  <bruno@clisp.org>
25518         fabs* tests: More tests.
25519         * tests/test-fabs.h: New file, partially extracted from
25520         tests/test-fabsl.c.
25521         * tests/test-fabs.c (RANDOM): New macro.
25522         * tests/test-fabsf.c (RANDOM): New macro.
25523         * tests/test-fabsl.c (RANDOM): New macro.
25524         * modules/fabs-tests (Files): Add tests/randomd.c.
25525         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25526         * modules/fabsf-tests (Files): Add tests/randomf.c.
25527         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25528         * modules/fabsl-tests (Files): Add tests/randoml.c.
25529         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25531 2012-03-03  Bruno Haible  <bruno@clisp.org>
25533         ldexp* tests: More tests.
25534         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25535         * tests/test-ldexp.c (RANDOM): New macro.
25536         * tests/test-ldexpf.c (RANDOM): New macro.
25537         * tests/test-ldexpl.c (RANDOM): New macro.
25538         * modules/ldexp-tests (Files): Add tests/randomd.c.
25539         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25540         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25541         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25542         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25543         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25545 2012-03-03  Bruno Haible  <bruno@clisp.org>
25547         frexp* tests: More tests.
25548         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25549         * tests/test-frexp.c (RANDOM): New macro.
25550         * tests/test-frexpf.c (RANDOM): New macro.
25551         * tests/test-frexpl.c (RANDOM): New macro.
25552         * modules/frexp-tests (Files): Add tests/randomd.c.
25553         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25554         * modules/frexpf-tests (Files): Add tests/randomf.c.
25555         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25556         * modules/frexpl-tests (Files): Add tests/randoml.c.
25557         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25559 2012-03-03  Bruno Haible  <bruno@clisp.org>
25561         Support for pseudo-random numbers in tests.
25562         * tests/randomf.c: New file.
25563         * tests/randomd.c: New file.
25564         * tests/randoml.c: New file.
25565         * tests/macros.h (randomf, randomd, randoml): New declarations.
25567 2012-03-03  Bruno Haible  <bruno@clisp.org>
25569         frexp* tests: Refactor.
25570         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25571         * tests/test-frexp.c: Include and use it.
25572         * tests/test-frexpf.c: Likewise.
25573         * tests/test-frexpl.c: Likewise.
25574         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25575         * modules/frexpf-tests (Files): Likewise.
25576         * modules/frexpl-tests (Files): Likewise.
25578 2012-03-02  Jim Meyering  <meyering@redhat.com>
25580         maint: don't specify XZ_OPT=-9ev in dist-related rule
25581         Using xz's -9 option is warranted only if you have a very large
25582         tarball (see xz's documentation for the sizes vs. presets), and
25583         requires 64MiB of memory at decompression time.
25584         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25585         Automake's default of just "-e" is fine.  Override on a
25586         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25588 2012-03-01  Eric Blake  <eblake@redhat.com>
25590         maint.mk: allow announcement for non-gnulib project
25591         * maint.mk (announcement): Skip gnulib version if not used.
25593 2012-03-01  Jim Meyering  <meyering@redhat.com>
25595         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25596         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25597         envvar settings cannot interfere.  Otherwise, setting envvars like
25598         prohibit=foo require=bar, etc. would cause spurious test failures.
25600 2012-03-01  Eric Blake  <eblake@redhat.com>
25602         maint.mk: add per-line exclusions to prohibitions
25603         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25604         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25605         (sc_const_long_option): Use it.
25607 2012-03-01  Bruno Haible  <bruno@clisp.org>
25609         Tests for module 'expl-ieee'.
25610         * modules/expl-ieee-tests: New file.
25611         * tests/test-expl-ieee.c: New file.
25613         New module 'expl-ieee'.
25614         * modules/expl-ieee: New file.
25616         Tests for module 'exp-ieee'.
25617         * modules/exp-ieee-tests: New file.
25618         * tests/test-exp-ieee.c: New file.
25620         New module 'exp-ieee'.
25621         * modules/exp-ieee: New file.
25623         Tests for module 'expf-ieee'.
25624         * modules/expf-ieee-tests: New file.
25625         * tests/test-expf-ieee.c: New file.
25626         * tests/test-exp-ieee.h: New file.
25628         New module 'expf-ieee'.
25629         * modules/expf-ieee: New file.
25631 2012-02-29  Bruno Haible  <bruno@clisp.org>
25633         cbrtl-ieee: Work around test failure on IRIX 6.5.
25634         * m4/cbrtl-ieee.m4: New file.
25635         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25636         test whether cbrtl works with a minus zero argument. Replace it if not.
25637         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25639         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25640         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25641         (Depends-on): Update conditions.
25642         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25643         m4/signbit.m4.
25644         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25645         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25646         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25648         Tests for module 'cbrtl-ieee'.
25649         * modules/cbrtl-ieee-tests: New file.
25650         * tests/test-cbrtl-ieee.c: New file.
25652         New module 'cbrtl-ieee'.
25653         * modules/cbrtl-ieee: New file.
25655         Tests for module 'cbrt-ieee'.
25656         * modules/cbrt-ieee-tests: New file.
25657         * tests/test-cbrt-ieee.c: New file.
25659         New module 'cbrt-ieee'.
25660         * modules/cbrt-ieee: New file.
25662         Tests for module 'cbrtf-ieee'.
25663         * modules/cbrtf-ieee-tests: New file.
25664         * tests/test-cbrtf-ieee.c: New file.
25665         * tests/test-cbrt-ieee.h: New file.
25667         New module 'cbrtf-ieee'.
25668         * modules/cbrtf-ieee: New file.
25670 2012-02-29  Bruno Haible  <bruno@clisp.org>
25672         cbrtf: Work around bug in IRIX 6.5 system function.
25673         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25674         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25675         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25676         work.
25677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25678         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25679         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25680         (Depends-on): Update conditions.
25681         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25683 2012-02-29  Bruno Haible  <bruno@clisp.org>
25685         Tests for module 'cbrtl'.
25686         * modules/cbrtl-tests: New file.
25687         * tests/test-cbrtl.c: New file.
25689         New module 'cbrtl'.
25690         * lib/math.in.h (cbrtl): New declaration.
25691         * lib/cbrtl.c: New file.
25692         * m4/cbrtl.m4: New file.
25693         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25695         HAVE_DECL_CBRTL.
25696         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25697         HAVE_DECL_CBRTL.
25698         * modules/cbrtl: New file.
25699         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25700         * doc/posix-functions/cbrtl.texi: Mention the new module.
25702 2012-02-29  Bruno Haible  <bruno@clisp.org>
25704         Tests for module 'cbrtf'.
25705         * modules/cbrtf-tests: New file.
25706         * tests/test-cbrtf.c: New file.
25708         New module 'cbrtf'.
25709         * lib/math.in.h (cbrtf): New declaration.
25710         * lib/cbrtf.c: New file.
25711         * m4/cbrtf.m4: New file.
25712         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25714         HAVE_DECL_CBRTF.
25715         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25716         HAVE_DECL_CBRTF.
25717         * modules/cbrtf: New file.
25718         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25719         * doc/posix-functions/cbrtf.texi: Mention the new module.
25721 2012-02-29  Bruno Haible  <bruno@clisp.org>
25723         cbrt: Provide replacement on MSVC and Minix.
25724         * lib/math.in.h (cbrt): New declaration.
25725         * lib/cbrt.c: New file.
25726         * m4/cbrt.m4: New file.
25727         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25729         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25730         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25731         (Depends-on): Add dependencies.
25732         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25733         * tests/test-math-c++.cc: Check the declaration of cbrt.
25734         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25735         replacement.
25737 2012-02-29  Bruno Haible  <bruno@clisp.org>
25739         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25740         * m4/hypotl-ieee.m4: New file.
25741         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25742         test whether hypotl works with mixed NaN and Infinity arguments.
25743         Replace it if not.
25744         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25746         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25747         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25748         (Depends-on): Update conditions.
25749         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25750         (Depends-on): Add hypot-ieee.
25751         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25752         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25754         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25755         * m4/hypotf-ieee.m4: New file.
25756         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25757         test whether hypotf works with mixed NaN and Infinity arguments.
25758         Replace it if not.
25759         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25760         (Depends-on): Add hypot-ieee.
25761         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25762         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25764         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25765         * lib/math.in.h (hypot): New declaration.
25766         * lib/hypot.c: New file.
25767         * m4/hypot-ieee.m4: New file.
25768         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25769         whether hypot works with mixed NaN and Infinity arguments. Replace it
25770         if not.
25771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25772         REPLACE_HYPOT.
25773         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25774         * modules/hypot (Files): Add lib/hypot.c.
25775         (Depends-on): Add dependencies.
25776         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25777         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25778         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25779         * tests/test-math-c++.cc: Check the declaration of hypot.
25780         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25782         Tests for module 'hypotl-ieee'.
25783         * modules/hypotl-ieee-tests: New file.
25784         * tests/test-hypotl-ieee.c: New file.
25786         New module 'hypotl-ieee'.
25787         * modules/hypotl-ieee: New file.
25789         Tests for module 'hypot-ieee'.
25790         * modules/hypot-ieee-tests: New file.
25791         * tests/test-hypot-ieee.c: New file.
25793         New module 'hypot-ieee'.
25794         * modules/hypot-ieee: New file.
25796         Tests for module 'hypotf-ieee'.
25797         * modules/hypotf-ieee-tests: New file.
25798         * tests/test-hypotf-ieee.c: New file.
25799         * tests/test-hypot-ieee.h: New file.
25801         New module 'hypotf-ieee'.
25802         * modules/hypotf-ieee: New file.
25804 2012-02-29  Bruno Haible  <bruno@clisp.org>
25806         Remove unused variables.
25807         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25808         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25809         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25810         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25812 2012-02-29  Eric Blake  <eblake@redhat.com>
25814         termios: fix pid_t always, not just for tcgetsid
25815         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25816         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25817         just when building tcgetsid.
25819 2012-02-29  Bruno Haible  <bruno@clisp.org>
25821         Tests for module 'hypotl'.
25822         * modules/hypotl-tests: New file.
25823         * tests/test-hypotl.c: New file.
25825         New module 'hypotl'.
25826         * lib/math.in.h (hypotl): New declaration.
25827         * lib/hypotl.c: New file.
25828         * m4/hypotl.m4: New file.
25829         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25831         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25832         * modules/hypotl: New file.
25833         * tests/test-math-c++.cc: Check the hypotl declaration.
25834         * doc/posix-functions/hypotl.texi: Mention the new module.
25836 2012-02-29  Eric Blake  <eblake@redhat.com>
25838         tcgetsid: fix cygwin header bug
25839         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25841         docs: update cygwin progress
25842         * doc/posix-functions/llround.texi (llround): Added in cygwin
25843         1.7.8.
25844         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25845         * doc/glibc-functions/program_invocation_name.texi
25846         (program_invocation_name): Likewise.
25847         * doc/glibc-functions/program_invocation_short_name.texi
25848         (program_invocation_short_name): Likewise.
25849         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25850         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25851         Likewise.
25852         * doc/posix-functions/pthread_spin_destroy.texi
25853         (pthread_spin_destroy): Added in cygwin 1.7.10.
25854         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25855         Likewise.
25856         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25857         Likewise.
25858         * doc/posix-functions/pthread_spin_trylock.texi
25859         (pthread_spin_trylock): Likewise.
25860         * doc/posix-functions/pthread_spin_unlock.texi
25861         (pthread_spin_unlock): Likewise.
25862         * doc/posix-functions/pthread_setschedprio.texi
25863         (pthread_setschedprio): Likewise.
25864         * doc/posix-functions/pthread_attr_getstack.texi
25865         (pthread_attr_getstack): Likewise.
25866         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25867         (pthread_attr_getstackaddr): Likewise.
25868         * doc/glibc-functions/pthread_getattr_np.texi
25869         (pthread_getattr_np): Likewise.
25870         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25871         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25872         * doc/posix-functions/clock_settime.texi (clock_settime):
25873         Likewise.
25874         * doc/posix-functions/pthread_attr_getguardsize.texi
25875         (pthread_attr_getguardsize): Likewise.
25876         * doc/posix-functions/pthread_attr_setguardsize.texi
25877         (pthread_attr_setguardsize): Likewise.
25878         * doc/posix-functions/pthread_attr_setstack.texi
25879         (pthread_attr_setstack): Likewise.
25880         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25881         (pthread_attr_setstackaddr): Likewise.
25882         * doc/posix-functions/clock_getcpuclockid.texi
25883         (clock_getcpuclockid): Likewise.
25884         * doc/posix-functions/pthread_getcpuclockid.texi
25885         (pthread_getcpuclockid): Likewise.
25886         * doc/glibc-functions/error.texi (error): Likewise.
25887         * doc/glibc-functions/error_at_line.texi (error_at_line):
25888         Likewise.
25889         * doc/glibc-functions/error_message_count.texi
25890         (error_message_count): Likewise.
25891         * doc/glibc-functions/error_one_per_line.texi
25892         (error_one_per_line): Likewise.
25893         * doc/glibc-functions/error_print_progname.texi
25894         (error_print_progname): Likewise.
25895         * doc/posix-functions/pthread_condattr_getclock.texi
25896         (pthread_condattr_getclock): Likewise.
25897         * doc/posix-functions/pthread_condattr_setclock.texi
25898         (pthread_condattr_setclock): Likewise.
25899         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
25900         Likewise.
25901         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
25902         * doc/glibc-functions/getpt.texi (getpt): Likewise.
25903         * doc/glibc-functions/get_current_dir_name.texi
25904         (get_current_dir_name): Likewise.
25905         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
25906         Likewise.
25907         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
25908         wrong return type.
25909         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
25910         1.7.11.
25912 2012-02-29  Bruno Haible  <bruno@clisp.org>
25914         Tests for module 'hypotf'.
25915         * modules/hypotf-tests: New file.
25916         * tests/test-hypotf.c: New file.
25918         New module 'hypotf'.
25919         * lib/math.in.h (hypotf): New declaration.
25920         * lib/hypotf.c: New file.
25921         * m4/hypotf.m4: New file.
25922         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
25924         REPLACE_HYPOTF.
25925         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
25926         REPLACE_HYPOTF.
25927         * modules/hypotf: New file.
25928         * tests/test-math-c++.cc: Check the hypotf declaration.
25929         * doc/posix-functions/hypotf.texi: Mention the new module.
25931         hypot: Prepare for hypotf module.
25932         * m4/hypot.m4: New file.
25933         * modules/hypot (Files): Add m4/hypot.m4.
25934         (configure.ac): Invoke gl_FUNC_HYPOT.
25936 2012-02-29  Bruno Haible  <bruno@clisp.org>
25938         hypot tests: More tests.
25939         * tests/test-hypot.c: Include <float.h>.
25940         (main): Add tests about overflow and underflow.
25942 2012-02-29  Bruno Haible  <bruno@clisp.org>
25944         math code: Add comments.
25945         * lib/acosl.c: Add comment about related glibc source files.
25946         * lib/asinl.c: Likewise.
25947         * lib/atanl.c: Likewise.
25948         * lib/expl.c: Likewise.
25949         * lib/logl.c: Likewise.
25950         * lib/sincosl.c: Likewise.
25951         * lib/sinl.c: Likewise.
25952         * lib/tanl.c: Likewise.
25953         * lib/trigl.c: Likewise.
25954         * lib/cosl.c: Likewise. Fix comments.
25956 2012-02-28  Bruno Haible  <bruno@clisp.org>
25958         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
25959         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
25960         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
25961         HUGE_VALL are defined.
25962         (numeric_equald): Renamed from numeric_equal.
25963         (numeric_equalf, numeric_equall): New functions.
25964         (main): Check also HUGE_VALF, HUGE_VALL.
25965         * modules/math-tests (Files): Add tests/macros.h.
25966         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
25967         HUGE_VALL.
25969 2012-02-28  Bruno Haible  <bruno@clisp.org>
25971         doc: Move ISO C11 feature notes into POSIX chapters.
25972         * doc/posix-functions/aligned_alloc.texi: Renamed from
25973         doc/glibc-functions/aligned_alloc.texi.
25974         * doc/posix-functions/quick_exit.texi: Renamed from
25975         doc/glibc-functions/quick_exit.texi.
25976         * doc/posix-headers/uchar.texi: Renamed from
25977         doc/glibc-headers/uchar.texi.
25978         * doc/posix-functions/c16rtomb.texi: Renamed from
25979         doc/glibc-functions/c16rtomb.texi.
25980         * doc/posix-functions/c32rtomb.texi: Renamed from
25981         doc/glibc-functions/c32rtomb.texi.
25982         * doc/posix-functions/mbrtoc16.texi: Renamed from
25983         doc/glibc-functions/mbrtoc16.texi.
25984         * doc/posix-functions/mbrtoc32.texi: Renamed from
25985         doc/glibc-functions/mbrtoc32.texi.
25986         * doc/gnulib.texi: Update.
25987         (Glibc uchar.h): Remove section.
25988         Suggested by Eric Blake.
25990 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
25992         stdnoreturn: port to MSVC better
25993         MSVC standard headers use __declspec(noreturn), so #define noreturn
25994         to empty on that platform.  Reported by Bruno Haible in
25995         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
25996         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
25997         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
25999 2012-02-28  Bruno Haible  <bruno@clisp.org>
26001         doc: Mention new glibc headers and functions.
26002         * doc/glibc-headers/uchar.texi: New file.
26003         * doc/glibc-functions/aligned_alloc.texi: New file.
26004         * doc/glibc-functions/c16rtomb.texi: New file.
26005         * doc/glibc-functions/c32rtomb.texi: New file.
26006         * doc/glibc-functions/clock_adjtime.texi: New file.
26007         * doc/glibc-functions/fanotify_init.texi: New file.
26008         * doc/glibc-functions/fanotify_mark.texi: New file.
26009         * doc/glibc-functions/inet6_opt_append.texi: New file.
26010         * doc/glibc-functions/inet6_opt_find.texi: New file.
26011         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26012         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26013         * doc/glibc-functions/inet6_opt_init.texi: New file.
26014         * doc/glibc-functions/inet6_opt_next.texi: New file.
26015         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26016         * doc/glibc-functions/inet6_rth_add.texi: New file.
26017         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26018         * doc/glibc-functions/inet6_rth_init.texi: New file.
26019         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26020         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26021         * doc/glibc-functions/inet6_rth_space.texi: New file.
26022         * doc/glibc-functions/login.texi: New file.
26023         * doc/glibc-functions/mbrtoc16.texi: New file.
26024         * doc/glibc-functions/mbrtoc32.texi: New file.
26025         * doc/glibc-functions/name_to_handle_at.texi: New file.
26026         * doc/glibc-functions/ntp_gettimex.texi: New file.
26027         * doc/glibc-functions/open_by_handle_at.texi: New file.
26028         * doc/glibc-functions/prlimit.texi: New file.
26029         * doc/glibc-functions/process_vm_readv.texi: New file.
26030         * doc/glibc-functions/process_vm_writev.texi: New file.
26031         * doc/glibc-functions/recvmmsg.texi: New file.
26032         * doc/glibc-functions/scandirat.texi: New file.
26033         * doc/glibc-functions/sendmmsg.texi: New file.
26034         * doc/glibc-functions/setns.texi: New file.
26035         * doc/glibc-functions/timespec_get.texi: New file.
26036         * doc/gnulib.texi: Include them.
26037         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26038         sections.
26039         Reported by Eric Blake.
26041 2012-02-28  Bruno Haible  <bruno@clisp.org>
26043         Avoid compilation errors with MSVC option -fp:strict.
26044         * lib/floor.c: Use MSVC specific pragma fenv_access.
26045         * lib/ceil.c: Likewise.
26046         * lib/trunc.c: Likewise.
26047         * lib/round.c: Likewise.
26048         * lib/rint.c: Likewise.
26049         * lib/fma.c: Likewise.
26050         * lib/integer_length.c: Likewise.
26051         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26053         * tests/test-floor2.c: Likewise.
26054         * tests/test-floorf2.c: Likewise.
26055         * tests/test-ceil2.c: Likewise.
26056         * tests/test-ceilf2.c: Likewise.
26057         * tests/test-trunc2.c: Likewise.
26058         * tests/test-truncf2.c: Likewise.
26059         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26061 2012-02-27  Bruno Haible  <bruno@clisp.org>
26063         Tests for module 'sqrtl-ieee'.
26064         * modules/sqrtl-ieee-tests: New file.
26065         * tests/test-sqrtl-ieee.c: New file.
26067         New module 'sqrtl-ieee'.
26068         * modules/sqrtl-ieee: New file.
26070         Tests for module 'sqrt-ieee'.
26071         * modules/sqrt-ieee-tests: New file.
26072         * tests/test-sqrt-ieee.c: New file.
26074         New module 'sqrt-ieee'.
26075         * modules/sqrt-ieee: New file.
26077         Tests for module 'sqrtf-ieee'.
26078         * modules/sqrtf-ieee-tests: New file.
26079         * tests/test-sqrtf-ieee.c: New file.
26080         * tests/test-sqrt-ieee.h: New file.
26082         New module 'sqrtf-ieee'.
26083         * modules/sqrtf-ieee: New file.
26085 2012-02-27  Bruno Haible  <bruno@clisp.org>
26087         remainderl-ieee: Work around test failure on OSF/1.
26088         * m4/remainderl-ieee.m4: New file.
26089         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26090         present, test whether remainderl works with a zero second argument.
26091         Replace it if not.
26092         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26094         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26095         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26096         (Depends-on): Update conditions.
26097         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26098         (Depends-on): Add remainder-ieee.
26099         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26100         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26101         module.
26103         remainderf-ieee: Work around test failure on OSF/1.
26104         * m4/remainderf-ieee.m4: New file.
26105         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26106         present, test whether remainderf works with a zero second argument.
26107         Replace it if not.
26108         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26110         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26111         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26112         (Depends-on): Update conditions.
26113         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26114         (Depends-on): Add remainder-ieee.
26115         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26116         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26117         module.
26119         remainder-ieee: Work around test failure on OSF/1.
26120         * m4/remainder-ieee.m4: New file.
26121         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26122         present, test whether remainder works with a zero second argument.
26123         Replace it if not.
26124         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26126         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26127         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26128         (Depends-on): Update dependencies.
26129         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26130         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26131         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26133         Tests for module 'remainderl-ieee'.
26134         * modules/remainderl-ieee-tests: New file.
26135         * tests/test-remainderl-ieee.c: New file.
26137         New module 'remainderl-ieee'.
26138         * modules/remainderl-ieee: New file.
26140         Tests for module 'remainder-ieee'.
26141         * modules/remainder-ieee-tests: New file.
26142         * tests/test-remainder-ieee.c: New file.
26144         New module 'remainder-ieee'.
26145         * modules/remainder-ieee: New file.
26147         Tests for module 'remainderf-ieee'.
26148         * modules/remainderf-ieee-tests: New file.
26149         * tests/test-remainderf-ieee.c: New file.
26150         * tests/test-remainder-ieee.h: New file.
26152         New module 'remainderf-ieee'.
26153         * modules/remainderf-ieee: New file.
26155 2012-02-27  Bruno Haible  <bruno@clisp.org>
26157         modff, modfl: Fix configure syntax error.
26158         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26159         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26161 2012-02-27  Bruno Haible  <bruno@clisp.org>
26163         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26164         * m4/fmodl-ieee.m4: New file.
26165         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26166         whether fmodl works with zero arguments. Replace it if not.
26167         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26168         (Depends-on): Add fmod-ieee.
26169         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26170         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26172         fmodf-ieee: Work around test failure on OSF/1.
26173         * m4/fmodf-ieee.m4: New file.
26174         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26175         whether fmodf works with zero arguments. Replace it if not.
26176         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26178         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26179         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26180         (Depends-on): Update dependencies.
26181         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26182         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26183         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26185         fmodf-ieee: Work around test failure on MSVC 9.
26186         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26187         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26189         fmod-ieee: Work around test failures on OSF/1, mingw.
26190         * m4/fmod-ieee.m4: New file.
26191         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26192         whether fmod works with zero arguments. Replace it if not.
26193         * lib/math.in.h (fmod): New declaration.
26194         * lib/fmod.c: New file.
26195         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26197         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26198         * modules/fmod (Files): Add lib/fmod.c.
26199         (Depends-on): Add math, isinf, trunc, fma.
26200         (configure.ac): Arrange to compile lib/fmod.c if needed.
26201         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26202         m4/signbit.m4.
26203         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26204         * tests/test-math-c++.cc: Check the declaration of fmod.
26205         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26207         fmodl-ieee: Fix test failures.
26208         * lib/fmodl.c (fmodl): Treat Inf specially.
26209         * modules/fmodl (Depends-on): Add isinf.
26211         Tests for module 'fmodl-ieee'.
26212         * modules/fmodl-ieee-tests: New file.
26213         * tests/test-fmodl-ieee.c: New file.
26215         New module 'fmodl-ieee'.
26216         * modules/fmodl-ieee: New file.
26218         Tests for module 'fmod-ieee'.
26219         * modules/fmod-ieee-tests: New file.
26220         * tests/test-fmod-ieee.c: New file.
26222         New module 'fmod-ieee'.
26223         * modules/fmod-ieee: New file.
26225         Tests for module 'fmodf-ieee'.
26226         * modules/fmodf-ieee-tests: New file.
26227         * tests/test-fmodf-ieee.c: New file.
26228         * tests/test-fmod-ieee.h: New file.
26230         New module 'fmodf-ieee'.
26231         * modules/fmodf-ieee: New file.
26233 2012-02-27  Bruno Haible  <bruno@clisp.org>
26235         Tests for module 'rintl-ieee'.
26236         * modules/rintl-ieee-tests: New file.
26237         * tests/test-rintl-ieee.c: New file.
26239         New module 'rintl-ieee'.
26240         * modules/rintl-ieee: New file.
26242         Tests for module 'rint-ieee'.
26243         * modules/rint-ieee-tests: New file.
26244         * tests/test-rint-ieee.c: New file.
26246         New module 'rint-ieee'.
26247         * modules/rint-ieee: New file.
26249         Tests for module 'rintf-ieee'.
26250         * modules/rintf-ieee-tests: New file.
26251         * tests/test-rintf-ieee.c: New file.
26252         * tests/test-rint-ieee.h: New file.
26254         New module 'rintf-ieee'.
26255         * modules/rintf-ieee: New file.
26257 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26259         regex: re_search etc. should return -2 when memory exhausted
26260         This bug was uncovered when testing 'grep'.  Without the fix,
26261         re_search and friends return -1 when memory is exhausted, but -1
26262         means no match, and this causes grep to falsely report no-match
26263         instead of memory-exhaustion.  See
26264         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26265         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26266         trouble; this can occur if re_search_internal ran out of memory.
26268 2012-02-26  Bruno Haible  <bruno@clisp.org>
26270         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26271         * m4/modfl-ieee.m4: New file.
26272         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26273         whether modfl works with Inf. Replace it if not.
26274         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26276         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26277         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26278         (Depends-on): Update dependencies.
26279         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26280         m4/signbit.m4.
26281         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26282         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26284         modfl-ieee: Fix dependencies.
26285         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26287         modfl-ieee: Fix test failures.
26288         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26289         * modules/modfl (Depends-on): Add isfinite, isinf.
26291         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26292         * m4/modff-ieee.m4: New file.
26293         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26294         whether modff works with NaN and Inf. Replace it if not.
26295         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26297         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26298         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26299         (Depends-on): Update dependencies.
26300         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26301         m4/signbit.m4.
26302         (Depends-on): Add modf-ieee.
26303         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26304         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26306         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26307         * m4/modf-ieee.m4: New file.
26308         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26309         whether modf works with NaN and Inf. Replace it if not.
26310         * lib/math.in.h (modf): New declaration.
26311         * lib/modf.c: New file.
26312         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26314         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26315         * modules/modf (Files): Add lib/modf.c.
26316         (Depends-on): Add math, isfinite, trunc, isinf.
26317         (configure.ac): Addrange to compile lib/modf.c if needed.
26318         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26319         m4/signbit.m4.
26320         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26321         * tests/test-math-c++.cc: Check the declaration of modf.
26322         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26324         Tests for module 'modfl-ieee'.
26325         * modules/modfl-ieee-tests: New file.
26326         * tests/test-modfl-ieee.c: New file.
26328         New module 'modfl-ieee'.
26329         * modules/modfl-ieee: New file.
26331         Tests for module 'modf-ieee'.
26332         * modules/modf-ieee-tests: New file.
26333         * tests/test-modf-ieee.c: New file.
26335         New module 'modf-ieee'.
26336         * modules/modf-ieee: New file.
26338         Tests for module 'modff-ieee'.
26339         * modules/modff-ieee-tests: New file.
26340         * tests/test-modff-ieee.c: New file.
26341         * tests/test-modf-ieee.h: New file.
26343         New module 'modff-ieee'.
26344         * modules/modff-ieee: New file.
26346 2012-02-26  Bruno Haible  <bruno@clisp.org>
26348         Tests for module 'fabsl-ieee'.
26349         * modules/fabsl-ieee-tests: New file.
26350         * tests/test-fabsl-ieee.c: New file.
26352         New module 'fabsl-ieee'.
26353         * modules/fabsl-ieee: New file.
26355         Tests for module 'fabs-ieee'.
26356         * modules/fabs-ieee-tests: New file.
26357         * tests/test-fabs-ieee.c: New file.
26359         New module 'fabs-ieee'.
26360         * modules/fabs-ieee: New file.
26362         Tests for module 'fabsf-ieee'.
26363         * modules/fabsf-ieee-tests: New file.
26364         * tests/test-fabsf-ieee.c: New file.
26365         * tests/test-fabs-ieee.h: New file.
26367         New module 'fabsf-ieee'.
26368         * modules/fabsf-ieee: New file.
26370 2012-02-26  Bruno Haible  <bruno@clisp.org>
26372         Tests for module 'fmal-ieee'.
26373         * modules/fmal-ieee-tests: New file.
26374         * tests/test-fmal-ieee.c: New file.
26376         New module 'fmal-ieee'.
26377         * modules/fmal-ieee: New file.
26379         Tests for module 'fma-ieee'.
26380         * modules/fma-ieee-tests: New file.
26381         * tests/test-fma-ieee.c: New file.
26383         New module 'fma-ieee'.
26384         * modules/fma-ieee: New file.
26386         Tests for module 'fmaf-ieee'.
26387         * modules/fmaf-ieee-tests: New file.
26388         * tests/test-fmaf-ieee.c: New file.
26389         * tests/test-fma-ieee.h: New file.
26391         New module 'fmaf-ieee'.
26392         * modules/fmaf-ieee: New file.
26394 2012-02-26  Bruno Haible  <bruno@clisp.org>
26396         Tests for module 'ldexpl-ieee'.
26397         * modules/ldexpl-ieee-tests: New file.
26398         * tests/test-ldexpl-ieee.c: New file.
26400         New module 'ldexpl-ieee'.
26401         * modules/ldexpl-ieee: New file.
26403         Tests for module 'ldexp-ieee'.
26404         * modules/ldexp-ieee-tests: New file.
26405         * tests/test-ldexp-ieee.c: New file.
26407         New module 'ldexp-ieee'.
26408         * modules/ldexp-ieee: New file.
26410         Tests for module 'ldexpf-ieee'.
26411         * modules/ldexpf-ieee-tests: New file.
26412         * tests/test-ldexpf-ieee.c: New file.
26413         * tests/test-ldexp-ieee.h: New file.
26415         New module 'ldexpf-ieee'.
26416         * modules/ldexpf-ieee: New file.
26418 2012-02-26  Bruno Haible  <bruno@clisp.org>
26420         Refactor frexp*-ieee tests.
26421         * tests/test-frexp-ieee.h: New file.
26422         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26423         (main): Just call test_function.
26424         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26425         (main): Just call test_function.
26426         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26427         (main): Just call test_function.
26428         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26429         * modules/frexp-ieee-tests (Files): Likewise.
26430         * modules/frexpl-ieee-tests (Files): Likewise.
26432         Tests for module 'frexpl-ieee'.
26433         * modules/frexpl-ieee-tests: New file.
26434         * tests/test-frexpl-ieee.c: New file.
26436         New module 'frexpl-ieee'.
26437         * modules/frexpl-ieee: New file.
26439         Tests for module 'frexp-ieee'.
26440         * modules/frexp-ieee-tests: New file.
26441         * tests/test-frexp-ieee.c: New file.
26443         New module 'frexp-ieee'.
26444         * modules/frexp-ieee: New file.
26446         Tests for module 'frexpf-ieee'.
26447         * modules/frexpf-ieee-tests: New file.
26448         * tests/test-frexpf-ieee.c: New file.
26450         New module 'frexpf-ieee'.
26451         * modules/frexpf-ieee: New file.
26453 2012-02-26  Bruno Haible  <bruno@clisp.org>
26455         roundl-ieee tests: More tests.
26456         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26457         (main): Add tests for [MX] shaded specification in POSIX.
26458         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26459         (Depends-on): Add isnanl-nolibm.
26461         round-ieee tests: More tests.
26462         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26463         (main): Add tests for [MX] shaded specification in POSIX.
26464         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26465         (Depends-on): Add isnand-nolibm.
26467         roundf-ieee tests: More tests.
26468         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26469         (main): Add tests for [MX] shaded specification in POSIX.
26470         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26471         (Depends-on): Add isnanf-nolibm.
26473         truncl-ieee tests: More tests.
26474         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26475         (main): Add tests for [MX] shaded specification in POSIX.
26476         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26477         (Depends-on): Add isnanl-nolibm.
26479         trunc-ieee tests: More tests.
26480         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26481         (main): Add tests for [MX] shaded specification in POSIX.
26482         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26483         (Depends-on): Add isnand-nolibm.
26485         truncf-ieee tests: More tests.
26486         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26487         (main): Add tests for [MX] shaded specification in POSIX.
26488         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26489         (Depends-on): Add isnanf-nolibm.
26491         ceill-ieee tests: More tests.
26492         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26493         (main): Add tests for [MX] shaded specification in POSIX.
26494         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26495         (Depends-on): Add isnanl-nolibm.
26497         ceil-ieee tests: More tests.
26498         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26499         (main): Add tests for [MX] shaded specification in POSIX.
26500         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26501         (Depends-on): Add isnand-nolibm.
26503         ceilf-ieee tests: More tests.
26504         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26505         (main): Add tests for [MX] shaded specification in POSIX.
26506         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26507         (Depends-on): Add isnanf-nolibm.
26509         floorl-ieee tests: More tests.
26510         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26511         (main): Add tests for [MX] shaded specification in POSIX.
26512         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26513         (Depends-on): Add isnanl-nolibm.
26515         floor-ieee tests: More tests.
26516         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26517         (main): Add tests for [MX] shaded specification in POSIX.
26518         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26519         (Depends-on): Add isnand-nolibm.
26521         floorf-ieee tests: More tests.
26522         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26523         (main): Add tests for [MX] shaded specification in POSIX.
26524         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26525         (Depends-on): Add isnanf-nolibm.
26527 2012-02-26  Bruno Haible  <bruno@clisp.org>
26529         fpieee: More comments.
26530         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26532 2012-02-25  Bruno Haible  <bruno@clisp.org>
26534         Tests for module 'log10l'.
26535         * modules/log10l-tests: New file.
26536         * tests/test-log10l.c: New file.
26537         * tests/test-math-c++.cc: Check the declaration of log10l.
26539         New module 'log10l'.
26540         * lib/math.in.h (log10l): New declaration.
26541         * lib/log10l.c: New file.
26542         * m4/log10l.m4: New file.
26543         * modules/log10l: New file.
26544         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26546         HAVE_DECL_LOG10L.
26547         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26548         HAVE_DECL_LOG10L.
26549         * doc/posix-functions/log10l.texi: Mention the new module.
26551 2012-02-25  Bruno Haible  <bruno@clisp.org>
26553         fmodl, remainder*: Avoid wrong results due to rounding errors.
26554         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26555         expected bounds.
26556         * lib/remainderf.c (remainderf): Likewise.
26557         * lib/remainder.c (remainder): Likewise.
26558         * lib/remainderl.c (remainderl): Likewise.
26560 2012-02-25  Bruno Haible  <bruno@clisp.org>
26562         Tests for module 'remainderl'.
26563         * modules/remainderl-tests: New file.
26564         * tests/test-remainderl.c: New file.
26565         * tests/test-math-c++.cc: Check the declaration of remainderl.
26567         New module 'remainderl'.
26568         * lib/math.in.h (remainderl): New declaration.
26569         * lib/remainderl.c: New file.
26570         * m4/remainderl.m4: New file.
26571         * modules/remainderl: New file.
26572         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26574         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26575         HAVE_REMAINDERL.
26576         * doc/posix-functions/remainderl.texi: Mention the new module.
26578 2012-02-25  Bruno Haible  <bruno@clisp.org>
26580         Tests for module 'remainderf'.
26581         * modules/remainderf-tests: New file.
26582         * tests/test-remainderf.c: New file.
26583         * tests/test-math-c++.cc: Check the declaration of remainderf.
26585         New module 'remainderf'.
26586         * lib/math.in.h (remainderf): New declaration.
26587         * lib/remainderf.c: New file.
26588         * m4/remainderf.m4: New file.
26589         * modules/remainderf: New file.
26590         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26592         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26593         HAVE_REMAINDERF.
26594         * doc/posix-functions/remainderf.texi: Mention the new module.
26596 2012-02-25  Bruno Haible  <bruno@clisp.org>
26598         remainder: Support for MSVC.
26599         * lib/math.in.h (remainder): New declaration.
26600         * lib/remainder.c: New file.
26601         * m4/remainder.m4: New file.
26602         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26603         (Depends-on): Add math, round, fma.
26604         (configure.ac): Use results of gl_FUNC_REMAINDER.
26605         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26607         HAVE_DECL_REMAINDER.
26608         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26609         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26610         * tests/test-math-c++.cc: Check the declaration of remainder.
26611         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26612         problems are fixed.
26614 2012-02-25  Bruno Haible  <bruno@clisp.org>
26616         Tests for module 'fmodl'.
26617         * modules/fmodl-tests: New file.
26618         * tests/test-fmodl.c: New file.
26619         * tests/test-math-c++.cc: Check the declaration of fmodl.
26621         New module 'fmodl'.
26622         * lib/math.in.h (fmodl): New declaration.
26623         * lib/fmodl.c: New file.
26624         * m4/fmodl.m4: New file.
26625         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26627         REPLACE_FMODL.
26628         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26629         REPLACE_FMODL.
26630         * modules/fmodl: New file.
26631         * doc/posix-functions/fmodl.texi: Mention the new module.
26633 2012-02-25  Bruno Haible  <bruno@clisp.org>
26635         Tests for module 'modfl'.
26636         * modules/modfl-tests: New file.
26637         * tests/test-modfl.c: New file.
26638         * tests/test-math-c++.cc: Check the declaration of modfl.
26640         New module 'modfl'.
26641         * lib/math.in.h (modfl): New declaration.
26642         * lib/modfl.c: New file.
26643         * m4/modfl.m4: New file.
26644         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26646         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26647         * modules/modfl: New file.
26648         * doc/posix-functions/modfl.texi: Mention the new module.
26650 2012-02-25  Bruno Haible  <bruno@clisp.org>
26652         Tests for module 'fabsl'.
26653         * modules/fabsl-tests: New file.
26654         * tests/test-fabsl.c: New file.
26655         * tests/test-math-c++.cc: Check the declaration of fabsl.
26657         New module 'fabsl'.
26658         * lib/math.in.h (fabsl): New declaration.
26659         * lib/fabsl.c: New file.
26660         * m4/fabsl.m4: New file.
26661         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26663         REPLACE_FABSL.
26664         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26665         REPLACE_FABSL.
26666         * modules/fabsl: New file.
26667         * doc/posix-functions/fabsl.texi: Mention the new module.
26669 2012-02-25  Bruno Haible  <bruno@clisp.org>
26671         fabs tests: More tests.
26672         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26673         (zero): New variable.
26674         (main): Add tests for signed zero.
26675         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26677         fabsf tests: More tests.
26678         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26679         (zero): New variable.
26680         (main): Add tests for signed zero.
26681         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26683 2012-02-24  Bruno Haible  <bruno@clisp.org>
26685         atanl: Provide function definition on MSVC.
26686         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26687         function pointer.
26688         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26690 2012-02-24  Bruno Haible  <bruno@clisp.org>
26692         acosl: Provide function definition on MSVC.
26693         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26694         function pointer.
26695         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26697 2012-02-24  Bruno Haible  <bruno@clisp.org>
26699         asinl: Provide function definition on MSVC.
26700         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26701         function pointer.
26702         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26704 2012-02-24  Bruno Haible  <bruno@clisp.org>
26706         tanl: Provide function definition on MSVC.
26707         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26708         function pointer.
26709         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26711 2012-02-24  Bruno Haible  <bruno@clisp.org>
26713         cosl: Provide function definition on MSVC.
26714         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26715         function pointer.
26716         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26718 2012-02-24  Bruno Haible  <bruno@clisp.org>
26720         sinl: Provide function definition on MSVC.
26721         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26722         function pointer.
26723         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26725 2012-02-24  Bruno Haible  <bruno@clisp.org>
26727         logl: Provide function definition on MSVC.
26728         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26729         function pointer.
26730         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26732 2012-02-24  Bruno Haible  <bruno@clisp.org>
26734         expl: Provide function definition on MSVC.
26735         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26736         function pointer.
26737         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26739 2012-02-24  Bruno Haible  <bruno@clisp.org>
26741         sqrtl: Provide function definition on MSVC.
26742         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26743         a function pointer.
26744         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26746 2012-02-24  Bruno Haible  <bruno@clisp.org>
26748         ceill: Provide function definition on MSVC.
26749         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26750         used as a function pointer.
26751         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26753 2012-02-24  Bruno Haible  <bruno@clisp.org>
26755         floorl: Provide function definition on MSVC.
26756         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26757         used as a function pointer.
26758         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26760 2012-02-24  Bruno Haible  <bruno@clisp.org>
26762         ceilf: Provide function definition on MSVC.
26763         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26764         used as a function pointer.
26765         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26767 2012-02-24  Bruno Haible  <bruno@clisp.org>
26769         floorf: Provide function definition on MSVC.
26770         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26771         used as a function pointer.
26772         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26774 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26776         stdnoreturn: new module
26777         This implements a replacement for C11's <stdnoreturn.h>.
26778         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26779         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26780         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26781         * tests/test-stdnoreturn.c: New files.
26783 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26785         regex: fix false multibyte matches in some regular expressions
26786         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26787         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26788         * lib/regex_internal.c (re_string_skip_chars):
26789         Fix miscomputation of remain_len that may cause incomplete
26790         multi-byte character and false match.
26792 2012-02-24  Jim Meyering  <meyering@redhat.com>
26794         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26795         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26796         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26797         Remove now-unnecessary str''cmp obfuscation.
26798         Suggested by Akim Demaille.
26800 2012-02-24  Bruno Haible  <bruno@clisp.org>
26802         streq: Rename macro.
26803         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26804         * NEWS: Mention the change.
26805         * lib/mbrtowc.c (mbrtowc): Update.
26806         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26807         * lib/wcwidth.c (wcwidth): Update.
26808         Suggested by Akim Demaille and Jim Meyering.
26810 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26812         regex: fix typo in definition of MIN
26813         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26814         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26816 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26817             Bruno Haible  <bruno@clisp.org>
26819         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26820         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26821         entries into a stack-allocated buffer directly.
26822         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26824 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26825             Bruno Haible  <bruno@clisp.org>
26827         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26829          - There were several instances of this pattern:
26831              for (;;) {
26832                n = acl (f, GETACLCNT, 0, NULL);
26833                [ allocate an array A of size N ]
26834                if (acl (f, GETACL, n, a) == n)
26835                  break;
26836              }
26838            This loop might never terminate if some other process is constantly
26839            manipulating the file's ACL.  The loop should be rewritten to
26840            terminate.
26842          - The acl (... GETACLNT ...) call is merely an optimization; its value
26843            is merely a hint as to how big to make the array.  A better
26844            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26845            and just guess a reasonably-big size, growing the size and trying
26846            again if it's not large enough.  This guarantees termination, and
26847            saves a system call.
26849         * lib/acl-internal.h: Include <limits.h>.
26850         (MIN, SIZE_MAX): New macros.
26851         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26852         a stack-allocated buffer, and use malloc if it does not fit. Don't
26853         use GETACLCNT.
26854         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26856 2012-02-19  Bruno Haible  <bruno@clisp.org>
26858         acl: Fix endless loop on Solaris with vxfs.
26859         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26860         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26861         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26862         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26863         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26864         Reported by Bill Jones in
26865         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26867 2012-02-19  Bruno Haible  <bruno@clisp.org>
26869         acl: Fix copy-acl test failure on Solaris 11.0.
26870         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26871         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26872         that this function returns 0 in some more cases.
26874 2012-02-19  Bruno Haible  <bruno@clisp.org>
26876         acl: Update doc references.
26877         * doc/acl-resources.txt: Update links to Solaris documentation.
26879 2012-02-19  Bruno Haible  <bruno@clisp.org>
26881         Fix test failure in many locales on Solaris 11.
26882         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26883         'tr' arguments.
26884         * tests/test-pipe-filter-ii1.c (main): Likewise.
26885         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26886         expressions in the C locale.
26887         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26888         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26890 2012-02-19  Bruno Haible  <bruno@clisp.org>
26892         gnulib-tool: Improve usage message.
26893         * gnulib-tool (func_usage): Move doc of --help and --version to the
26894         section "Operation modes".
26896 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
26898         README-release: make it easier to execute commands
26899         * top/README-release: break commands out on to separate lines.
26901 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
26903         GNUmakefile: simplify detection of unconfigured trees
26904         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
26905         whether the tree make is being run from is already configured or
26906         not.  Related simplifications.
26908 2012-02-13  Simon Josefsson  <simon@josefsson.org>
26910         * gnulib-tool (func_usage): Document --help and --version.
26912 2012-02-11  Jim Meyering  <meyering@redhat.com>
26914         bootstrap: don't exit 0 upon gnulib-tool failure
26915         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
26916         its exit status, not 0.
26918 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
26920         README-release: various improvements
26921         * top/README-release: Give a command to push changes for the
26922         release.  Add "distcheck" to list of other pre-release checks.
26923         Fix instance of "make stable" which should be "make TYPE".
26925 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26927         maint: replace FSF snail-mail addresses with URLs
26928         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
26929         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
26930         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
26931         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
26932         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
26933         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
26934         * lib/check-version.c, lib/check-version.h, lib/config.charset:
26935         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
26936         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
26937         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
26938         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
26939         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
26940         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
26941         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
26942         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
26943         * lib/glthread/thread.c, lib/glthread/thread.h:
26944         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
26945         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
26946         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
26947         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
26948         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
26949         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
26950         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
26951         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
26952         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
26953         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
26954         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
26955         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
26956         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
26957         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
26958         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
26959         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
26960         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
26961         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
26962         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
26963         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
26964         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
26965         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
26966         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
26967         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
26968         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
26969         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
26970         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
26971         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
26972         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
26973         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
26974         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
26975         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
26976         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
26977         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
26978         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
26979         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
26980         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
26981         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
26982         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
26983         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
26984         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
26985         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
26986         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
26987         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
26988         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
26989         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
26990         * tests/test-poll.c, tests/test-quotearg-simple.c:
26991         * tests/test-quotearg.c, tests/test-quotearg.h:
26992         * tests/test-round-ieee.c, tests/test-round1.c:
26993         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
26994         * tests/test-roundl-ieee.c, tests/test-roundl.c:
26995         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
26996         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
26997         * tests/test-strerror.c, tests/test-strerror_r.c:
26998         * tests/test-strsignal.c, tests/test-strverscmp.c:
26999         * tests/test-xmemdup0.c:
27000         Replace FSF snail mail addresses with URLs, as per GNU coding
27001         standards.  See glibc bug
27002         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27004 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27006         README-release: capitalize a word and split a line
27007         * top/README-release: Fix punctuation and spacing.
27009 2012-02-08  Akim Demaille  <demaille@gostai.com>
27011         fatal-signal: use C prototypes (with explicit void).
27012         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27013         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27015 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27017         regex: spelling fix
27018         * lib/regexec.c: spelling fix
27020         regex: rely on stdint.h for SIZE_MAX
27021         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27023 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27025         regex: merge glibc changes
27027         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27028         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27029         (init_word_char): Work even if bitset words are not exactly 32 or
27030         64 bits wide.  Don't assume there are no padding bits.
27031         * lib/regex.c [_LIBC]: Do not include <config.h>.
27032         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27033         and -Wtype-limits.
27034         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27035         needless disagreement with glibc.  All uses changed.  Define it to
27036         1 only if _GNU_SOURCE, to match glibc.
27037         (_REG_RM_NAME): Remove; no longer needed, since the names in
27038         question are now all protected by __USE_GNU.
27039         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27040         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27041         * lib/regex_internal.h (MIN): New macro.
27043         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27044         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27046         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27047         * lib/regex_internal.c (re_string_fetch_byte_case):
27048         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27049         is miscompiled, and it turns out it is because of an incorrect
27050         attribute on re_string_fetch_byte_case.  Unlike
27051         re_string_peek_byte_case, this one is really not pure, it modifies
27052         memory (increments pstr->cur_idx), and with the pure attribute GCC
27053         assumed it doesn't and it cached the presumed value of
27054         regexp->cur_idx in a variable across the
27055          for (;; ++i)
27056            {
27057              if (i >= BRACKET_NAME_BUF_SIZE)
27058                return REG_EBRACK;
27059              if (token->type == OP_OPEN_CHAR_CLASS)
27060                ch = re_string_fetch_byte_case (regexp);
27061              else
27062                ch = re_string_fetch_byte (regexp);
27063              if (re_string_eoi(regexp))
27064                return REG_EBRACK;
27065              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27066                break;
27067              elem->opr.name[i] = ch;
27068            }
27070         2011-11-29 Andreas Schwab <schwab@redhat.com>
27071         * lib/regcomp.c (build_equiv_class):
27072         Fix access after end of search string in regex matcher.
27074         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27075         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27077         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27078         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27080         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27081         * lib/regcomp.c (parse_branch, parse_sub_exp):
27082         More regex memory leak fixes and tests.
27083         (parse_sub_exp, parse_bracket_exp):
27084         Fix memory leak for some invalid regular expressions.
27086         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27087         * lib/regex_internal.c, lib/regexec.c:
27088         Fix unnecessary overallocation due to incomplete character.  When
27089         incomplete characters are found at the end of a string the code
27090         ran amok and allocated lots of memory.  Stricter limits are now in
27091         place.
27093         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27094         * lib/regex.h: Update documentation.
27096         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27097         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27099         2010-05-05 Andreas Schwab <schwab@redhat.com>
27100         * lib/regexec.c (find_collation_sequence_value):
27101         Fix lookup of collation sequence value during regexp matching.
27103         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27104         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27106         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27107         * lib/regex.h: Cleanup namespace.
27109         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27110         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27112         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27113         * lib/regex_internal.h: Prevent some declarations and definitions
27114         to be seen when used in tests.
27116         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27117         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27118         __libc_lock_* macros if not _LIBC.
27119         (struct re_dfa_t): Add lock.
27121 2012-02-07  Eric Blake  <eblake@redhat.com>
27123         maint.mk: also prohibit lower-case @var@
27124         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27125         lower case, like @top_srcdir@.
27127 2012-02-04  Eric Blake  <eblake@redhat.com>
27129         canonicalize: avoid uninitialized memory use
27130         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27131         random '/' left in dest.
27132         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27134 2012-02-04  Bruno Haible  <bruno@clisp.org>
27136         isatty: Fix test failure of ptsname_r on native Windows.
27137         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27138         and don't set errno.
27139         (isatty): Test first whether fd is valid. Set errno when returning 0.
27141 2012-02-04  Bruno Haible  <bruno@clisp.org>
27143         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27144         * tests/test-spawn-pipe-main.c: Include progname.h.
27145         (main): Invoke set_program_name.
27146         * modules/spawn-pipe-tests (Depends-on): Add progname.
27148         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27149         * tests/test-nonblocking-socket-main.c: Include progname.h.
27150         (main): Invoke set_program_name.
27151         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27153         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27154         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27155         (main): Invoke set_program_name.
27156         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27158 2012-02-04  Eric Blake  <eblake@redhat.com>
27160         canonicalize-lgpl: fix // handling
27161         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27163         canonicalize: fix // handling
27164         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27165         /// to //, since only // is special.
27167 2012-02-04  Bruno Haible  <bruno@clisp.org>
27169         ioctl: Fix test failure on native Windows.
27170         * lib/ioctl.c: Include msvc-nothrow.h.
27171         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27173 2012-02-04  Bruno Haible  <bruno@clisp.org>
27175         fsync: Avoid test failure on native Windows.
27176         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27177         read-only.
27179 2012-02-04  Bruno Haible  <bruno@clisp.org>
27181         sys_select: Avoid syntax error on OpenBSD 5.0.
27182         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27183         currently being included, just include the system's <sys/select.h>.
27185 2012-02-04  Bruno Haible  <bruno@clisp.org>
27187         sys_select: Avoid syntax error on OpenBSD 5.0.
27188         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27189         <sys/select.h>, not before.
27190         Reported by Jiri B <jirib@devio.us>.
27192 2012-02-04  Bruno Haible  <bruno@clisp.org>
27194         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27195         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27196         global variables.
27197         * tests/test-get-rusage-data.c (main): Likewise.
27198         Reported by Jim Meyering.
27200 2012-02-04  Bruno Haible  <bruno@clisp.org>
27202         stdioext: Fix last commit.
27203         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27205 2012-02-03  Bruno Haible  <bruno@clisp.org>
27207         stdioext: Add tentative support for Plan9.
27208         * lib/stdio-impl.h: Include <errno.h>.
27209         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27210         * lib/freadable.c (freadable): Likewise.
27211         * lib/fwritable.c (fwritable): Likewise.
27212         * lib/fbufmode.c (fbufmode): Likewise.
27213         * lib/freading.c (freading): Likewise.
27214         * lib/fwriting.c (fwriting): Likewise.
27215         * lib/freadptr.c (freadptr): Likewise.
27216         * lib/freadseek.c (freadptrinc): Likewise.
27217         * lib/freadahead.c (freadahead): Likewise.
27218         * lib/fpurge.c (fpurge): Likewise.
27219         * lib/fseeko.c (rpl_fseeko): Likewise.
27220         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27221         Reported by Jens Staal <staal1978@gmail.com>.
27223 2012-02-02  Jim Meyering  <meyering@redhat.com>
27225         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27226         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27227         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27228         not even to try to add the attribute.  Instead, add a pragma to suppress
27229         the suggestion/warning.
27231 2012-01-31  Karl Berry  <karl@gnu.org>
27233         setstate doc: typo.
27234         * doc/posix-functions/setstate.texi (setstate): { not (.
27236 2012-01-31  Bruno Haible  <bruno@clisp.org>
27238         popen: Make more robust on Windows.
27239         * lib/popen.c: On native Windows, use the _popen based code even if
27240         HAVE_POPEN is set.
27241         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27242         environment variable on native Windows.
27244 2012-01-30  Bruno Haible  <bruno@clisp.org>
27246         pclose: Fix typo.
27247         * lib/stdio.in.h (pclose): Fix typo in warning message.
27249 2012-01-30  Bruno Haible  <bruno@clisp.org>
27251         doc about getlogin_r, setstate.
27252         * doc/posix-functions/getlogin_r.texi: List the incompatible
27253         declaration problem under "not fixed by gnulib".
27254         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27255         problem on Solaris 11 and other platforms.
27257 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27258             Bruno Haible  <bruno@clisp.org>
27260         poll tests: Make test more robust.
27261         * tests/test-poll.c: Include macros.h.
27262         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27263         return value of various I/O operations.
27264         * modules/poll-tests (Files): Add tests/macros.h.
27266 2012-01-30  Bruno Haible  <bruno@clisp.org>
27268         sys_stat: Fix support for mingw64 and MSVC.
27269         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27270         header files already do it.
27271         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27272         stat itself.
27273         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27275 2012-01-30  Bruno Haible  <bruno@clisp.org>
27277         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27279         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27281 2012-01-29  Bruno Haible  <bruno@clisp.org>
27283         quotearg: Fix test failure on MacOS X 10.5.
27284         * tests/test-quotearg-simple.c: Include localcharset.h.
27285         (main): If the locale encoding is not ASCII, bypass the tests of
27286         locale_quoting_style and clocale_quoting_style.
27287         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27289 2012-01-29  Jim Meyering  <meyering@redhat.com>
27291         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27292         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27293         detect uses of canonicalize_file_name.
27295 2012-01-28  Bruno Haible  <bruno@clisp.org>
27297         test-framework-sh: Fix test failure with AIX 7.1 diff.
27298         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27299         in column 1, like 'diff -c' does.
27300         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27301         whether 'diff -u' is used. Instead, test whether the output contains
27302         some '@' character.
27304 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27306         strtoimax: eliminate need for stdint.h, inttypes.h checks
27307         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27308         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27309         the prerequisites for a recently-introduced strtoimax test.
27310         I guess this might cause strtoimax to be replaced when not
27311         strictly necessary on older hosts, but this shouldn't introduce
27312         any bugs and it should make Emacs 'configure' faster on typical
27313         modern hosts.  Problem discovered when importing the latest gnulib
27314         to an Emacs test version.
27315         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27317 2012-01-28  Bruno Haible  <bruno@clisp.org>
27319         sys_time: Override 'struct timeval' on some native Windows platforms.
27320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27321         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27322         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27323         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27324         needs to be overridden.
27325         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27326         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27327         * tests/test-sys_select.c: Check that the tv_sec member has the same
27328         size as a 'time_t'.
27329         * tests/test-sys_time.c: Likewise.
27330         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27331         is set, set also REPLACE_GETTIMEOFDAY.
27332         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27333         convert the resulting 'struct timeval' before returning.
27334         * lib/select.c: Include <sys/time.h>.
27335         (select, timeval): Undefine at the right place.
27336         * modules/select (Depends-on): Add sys_time.
27337         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27338         some Windows platforms.
27339         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27341 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27343         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27344         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27345         an integer.
27346         * lib/fcntl.c (dupfd): Likewise.
27347         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27349 2012-01-28  Bruno Haible  <bruno@clisp.org>
27351         fcntl: Avoid compilation error on native Windows.
27352         * modules/fcntl (Depends-on): Add 'close'.
27354 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27356         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27357         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27358         pointer to an integer.
27359         * lib/poll.c (IsConsoleHandle): Likewise.
27360         * lib/isatty.c (IsConsoleHandle): Likewise.
27362 2012-01-28  Jim Meyering  <meyering@redhat.com>
27364         doc: clarify README-release
27365         * top/README-release: Clarify: you should make a point to have
27366         the latest stable versions of build tools in your PATH, and the
27367         reference to buildreq is solely for its list of tool names, not
27368         for its minimal-functional version numbers.
27369         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27371         maint.mk: use more readable (yet functionally equivalent) quoting
27372         It is common to quote a single quote in a single quoted string like
27373         this:  '...'\''...'.  Unless you know the idiom, that looks like
27374         gibberish, so prefer to double-quote the string when possible.
27375         Then you can use a more readable, lone single quote: "...'..."
27376         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27377         "don't" is more readable than the equivalent 'don'\''t'.
27378         (sc_cast_of_x_alloc_return_value): Likewise.
27379         (sc_cast_of_alloca_return_value): Likewise.
27380         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27381         rather than '\'':'\''.
27383 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27385         stdalign: relax _Alignof and tighten _Alignas test
27386         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27387         as it was too strict: alignof must divide offsetof, but it need
27388         not equal offsetof.  Inspired by Joseph S. Myers's comment
27389         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27390         Conversely, tighten the _Alignas test a bit, as the resulting
27391         alignment must be exactly 8.
27393 2012-01-27  Bruno Haible  <bruno@clisp.org>
27395         stdalign: Document the last change.
27396         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27398 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27400         stdalign: check that alignof and offsetof are consistent
27401         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27402         Problem reported for gnulib by Richard W.M. Jones in
27403         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27405 2012-01-27  Jim Meyering  <meyering@redhat.com>
27407         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27408         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27409         convert a sequence with gaps to the minimal containing range.
27410         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27411         * tests/test-update-copyright.sh: Test for this.
27412         The FSF confirmed it is ok to do this, assuming there is at
27413         least one significant change per year in the affected range:
27414         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27416 2012-01-26  Bruno Haible  <bruno@clisp.org>
27418         pipe2: refine doc about thread-safety
27419         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27420         multithread-safety problem.
27421         * doc/glibc-functions/accept4.texi: Likewise.
27423 2012-01-26  Bruno Haible  <bruno@clisp.org>
27425         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27426         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27427         In the test program, include <fcntl.h>, for O_RDONLY.
27429 2012-01-26  Eric Blake  <eblake@redhat.com>
27431         pipe2: document lack of thread-safety in replacement
27432         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27433         issue in replacement.
27434         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27435         Based on a report by Eric Wong.
27437 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27438             Bruno Haible  <bruno@clisp.org>
27440         malloca: Avoid warnings on x86_64 mingw64.
27441         * lib/malloca.c: Include <stdint.h>.
27442         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27443         * modules/malloca (Depends-on): Add stdint.
27444         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27446 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27448         obstack: remove __STDC__ conditionals
27449         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27450         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27451         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27452         m4/include_next.m4 as the only gnulib-maintained places that still
27453         refer to __STDC__.
27455 2012-01-24  Bruno Haible  <bruno@clisp.org>
27457         havelib: Modern quoting.
27458         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27459         the recent change to the GNU coding standards.
27461 2012-01-24  Bruno Haible  <bruno@clisp.org>
27463         stdint: Improve support for Android.
27464         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27465         Reported by Simon Josefsson <simon@josefsson.org>.
27467 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27469         doc: omit trailing empty lines from INSTALL etc.
27470         * doc/Makefile (INSTALL): Omit trailing empty lines.
27471         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27472         omit trailing empty lines.  This simplifies the build procedure.
27474 2012-01-23  Jim Meyering  <meyering@redhat.com>
27476         tests: avoid spurious warnings about gl_sockets_startup
27477         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27478         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27479         reporting a "statement with no effect".
27480         * tests/test-accept.c (main): Mark as "(void)".
27481         * tests/test-accept4.c (main): Likewise.
27482         * tests/test-bind.c (main): Likewise.
27483         * tests/test-connect.c (main): Likewise.
27484         * tests/test-getpeername.c (main): Likewise.
27485         * tests/test-getsockname.c (main): Likewise.
27486         * tests/test-getsockopt.c (main): Likewise.
27487         * tests/test-listen.c (main): Likewise.
27488         * tests/test-recv.c (main): Likewise.
27489         * tests/test-recvfrom.c (main): Likewise.
27490         * tests/test-send.c (main): Likewise.
27491         * tests/test-sendto.c (main): Likewise.
27492         * tests/test-setsockopt.c (main): Likewise.
27493         * tests/test-shutdown.c (main): Likewise.
27495 2012-01-21  Bruno Haible  <bruno@clisp.org>
27497         locale-fr.m4: Fix for Android.
27498         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27499         failure of the test program on Bionic libc.
27501 2012-01-21  Jim Meyering  <meyering@redhat.com>
27503         bootstrap: fail when bootstrap_post_import_hook fails
27504         Otherwise, it's far too easy to miss diagnostics emitted
27505         between gnulib-tool's output and that of running configure.
27506         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27508 2012-01-17  Jim Meyering  <meyering@redhat.com>
27510         maint: enable sc_trailing_blank
27511         * build-aux/pmccabe.css: Remove trailing blanks.
27512         * doc/acl-cygwin.txt: Likewise.
27513         * doc/gnu-oids.texi: Likewise
27514         * cfg.mk: Enable sc_trailing_blank.
27515         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27517 2012-01-17  Jim Meyering  <meyering@redhat.com>
27519         maint: enable sc_prohibit_openat_without_use
27520         * cfg.mk: Enable sc_prohibit_openat_without_use.
27521         Exempt lib/selinux-at.c.
27523 2012-01-17  Jim Meyering  <meyering@redhat.com>
27525         maint: enable sc_prohibit_cloexec_without_use
27526         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27527         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27529 2012-01-17  Jim Meyering  <meyering@redhat.com>
27531         maint: enable sc_prohibit_intprops_without_use
27532         * cfg.mk: Enable sc_prohibit_intprops_without_use
27533         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27535 2012-01-17  Jim Meyering  <meyering@redhat.com>
27537         maint: enable sc_prohibit_hash_pjw_without_use
27538         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27539         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27540         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27541         following " (".
27543 2012-01-17  Jim Meyering  <meyering@redhat.com>
27545         maint: enable double-word-prohibiting rule
27546         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27547         Exempt three files.
27549 2012-01-17  Jim Meyering  <meyering@redhat.com>
27551         maint: remove empty lines at EOF, but excluding modules/*
27552         Apply syntax rules at home as well as abroad.  Most changes
27553         were induced by running this:
27554           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27555             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27556             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27557         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27558         Exempt modules/* and two binary files.
27559         Also exempt doc/INSTALL*, per request from Bruno Haible.
27560         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27561         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27562         * doc/Copyright/request-assign.future: Likewise.
27563         * doc/Copyright/request-disclaim.changes: Likewise.
27564         * doc/INSTALL: Likewise.
27565         * doc/INSTALL.ISO: Likewise.
27566         * doc/INSTALL.UTF-8: Likewise.
27567         * doc/acl-cygwin.txt: Likewise.
27568         * doc/acl-resources.txt: Likewise.
27569         * doc/fdl-1.2.texi: Likewise.
27570         * doc/fdl-1.3.texi: Likewise.
27571         * doc/fdl.texi: Likewise.
27572         * lib/argp-pin.c: Likewise.
27573         * lib/round.c: Likewise.
27574         * lib/unicase/u16-totitle.c: Likewise.
27575         * lib/unictype/block_test.c: Likewise.
27576         * lib/uninorm/canonical-decomposition.c: Likewise.
27577         * m4/README: Likewise.
27578         * m4/relocatable-lib.m4: Likewise.
27579         * tests/test-isnand-nolibm.c: Likewise.
27580         * tests/test-isnand.c: Likewise.
27581         * tests/uninorm/NormalizationTest.txt: Likewise.
27583 2012-01-17  Jim Meyering  <meyering@redhat.com>
27585         maint: add framework to run syntax-check rules against gnulib sources
27586         * cfg.mk: New file, to disable all currently-failing tests.
27587         We'll enable them one by one, as they are made to pass.
27588         * Makefile (sc_maint): New rule.
27590 2012-01-21  Bruno Haible  <bruno@clisp.org>
27592         stdint: Add support for Android.
27593         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27594         include the system's <stdint.h>.
27595         Reported by Simon Josefsson <simon@josefsson.org>.
27597 2012-01-19  Jim Meyering  <meyering@redhat.com>
27599         bootstrap: add bootstrap_post_import_hook
27600         Bison does still need something like the gnulib_mk_hook whose
27601         invocation I had to remove along with slurp in commit 767ccd40.
27602         Technically, we could get along without it, but doing so would
27603         have required living with a warning and a mandatory post-bootstrap
27604         automake rerun.
27605         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27606         (bootstrap_post_import_hook): New function.
27607         Invoke it after gnulib-tool --import and before autoreconf.
27609 2012-01-18  Jim Meyering  <meyering@redhat.com>
27611         gitlog-to-changelog: don't use "no_"-prefixed variable name
27612         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27613         to enable both --cluster and --no-cluster.  Change variable name,
27614         s/\$no_cluster/$cluster/, and reverse usage to match.
27616         gitlog-to-changelog: use "||", not "or" in expressions
27617         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27618         expressions.
27620 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27622         gitlog-to-changelog: new option --no-cluster
27623         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27624         clustering of adjacent commit messages.
27626 2012-01-17  Jim Meyering  <meyering@redhat.com>
27628         maint: spell file systems with two words, not one
27629         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27630         two words, not one.
27632 2012-01-16  Jim Meyering  <meyering@redhat.com>
27634         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27635         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27637 2012-01-16  Eric Blake  <eblake@redhat.com>
27639         bootstrap: cater to autoconf 2.59
27640         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27641         is not available.
27643         bootstrap: properly check for libtool
27644         * build-aux/bootstrap (libtoolize): Also run libtool when older
27645         usage is detected.
27647 2012-01-15  Bruno Haible  <bruno@clisp.org>
27649         Improve support for MSVC 9.
27650         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27651         clashes on MSVC.
27652         * lib/fcntl.in.h: Likewise.
27653         * lib/stdlib.in.h: Likewise.
27654         * lib/sys_stat.in.h: Likewise.
27656 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27658         gnupload: we hold the master copy of this script now
27659         For motivation and more information, see:
27660         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27661         * build-aux/gnupload: Make it clear in the heading comments that the
27662         master copy of this file is maintained by gnulib.  Since we are at
27663         it, bump its copyright year and ...
27664         ($scriptversion): ... the date in its version.
27665         ($usage): Patches and bug reports should be sent to the gnulib list,
27666         not the automake one.
27667         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27668         anymore.
27670 2012-01-15  Bruno Haible  <bruno@clisp.org>
27672         Fix module 'random'.
27673         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27674         initstate, setstate are declared.
27676 2012-01-14  Bruno Haible  <bruno@clisp.org>
27678         Tests for module 'random'.
27679         * modules/random-tests: New file.
27680         * tests/test-random.c: New file, based on tests/test-random_r.c.
27682         New module 'random'.
27683         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27684         declarations.
27685         * lib/random.c: New file, based on glibc/stdlib/random.c.
27686         * m4/random.m4: New file.
27687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27688         HAVE_RANDOM.
27689         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27690         * modules/random: New file.
27691         * config/srclist.txt: Add an entry for random.c.
27692         * doc/posix-functions/random.texi: Mention the 'random' module.
27693         * doc/posix-functions/initstate.texi: Likewise.
27694         * doc/posix-functions/setstate.texi: Likewise.
27695         * doc/posix-functions/srandom.texi: Likewise.
27697 2012-01-12  Bruno Haible  <bruno@clisp.org>
27699         random_r: Use common idioms.
27700         * lib/random_r.c: Include <stdlib.h> first.
27702         random_r: Override incompatible API on AIX, OSF/1.
27703         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27704         Override the system function if REPLACE_RANDOM_R is 1.
27705         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27706         and OSF/1, set REPLACE_RANDOM_R.
27707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27708         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27709         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27710         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27711         * doc/glibc-functions/random_r.texi: Likewise.
27712         * doc/glibc-functions/setstate_r.texi: Likewise.
27714         random_r: Support for MSVC 9.
27715         * lib/random_r.c: Include stdint.h, not inttypes.h.
27717 2012-01-12  Eric Blake  <eblake@redhat.com>
27719         inet_ntop: guard extra work by IF_LINT
27720         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27721         better code generation when not checking for warnings.
27722         Suggested by Paul Eggert and Jim Meyering.
27724         strptime: fix regression on mingw
27725         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27726         Fix regression.  Reported by Bruno Haible.
27728 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27729             Bruno Haible  <bruno@clisp.org>
27731         copy-file: add error-code-returning variant.
27732         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27733         (qcopy_file_preserving): New declaration.
27734         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27735         copy_file_preserving. Change return type to 'int'. Don't emit an error
27736         message here.
27737         (copy_file_preserving): New function.
27738         * tests/test-copy-file.c: Include <stdlib.h>.
27739         (main): Test qcopy_file_preserving if the environment variable
27740         NO_STDERR_OUTPUT is set.
27741         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27742         with NO_STDERR_OUTPUT
27743         * tests/test-copy-file-2.sh: Likewise.
27745 2012-01-10  Bruno Haible  <bruno@clisp.org>
27747         copy-file: Use 'quote' module consistently.
27748         * lib/copy-file.c (copy_file_preserving): Use quote().
27750         copy-file: Refactor.
27751         * lib/copy-file.c: Include quote.h.
27752         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27753         message here.
27754         * modules/copy-file (Depends-on): Add quote.
27756         acl: Export qcopy_acl.
27757         * lib/acl.h (qcopy_acl): New declaration.
27758         * lib/copy-acl.c (qcopy_acl): Make non-static.
27760         acl: Rename a local variable.
27761         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27763         acl: Align return values of copy_acl and qcopy_acl.
27764         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27765         maybe < -1.
27767 2012-01-11  Eric Blake  <eblake@redhat.com>
27769         strptime: silence gcc warnings
27770         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27771         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27772         Reported by Daniel P. Berrange.
27774         inet_ntop: silence gcc warning
27775         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27776         Reported by Daniel P. Berrange.
27778 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27780         getloadavg test: skip the test on GNU/Linux without /proc mounted
27781         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27782         file.  When /proc is not mounted, it always fails with ENOENT.
27783         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27784         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27786 2012-01-10  Bruno Haible  <bruno@clisp.org>
27788         regex: Avoid link error on MSVC 9.
27789         * modules/regex (Depends-on): Add wctype.
27791 2012-01-10  Bruno Haible  <bruno@clisp.org>
27793         doc: Mention --with-tests option.
27794         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27795         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27796         --with-tests.
27797         Reported by Reuben Thomas.
27799 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27801         users.txt: order package names lexicographically.
27802         * users.txt: Order package names lexicographically.
27804 2012-01-10  Jim Meyering  <meyering@redhat.com>
27806         maint.mk: fix description in comment
27807         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27809         ignore-value: remove deprecated ignore_ptr function
27810         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27811         * NEWS: Note this.
27813 2012-01-09  Jim Meyering  <meyering@redhat.com>
27815         test-init.sh: avoid a subshell
27816         * tests/test-init.sh: Remove protective subshell.
27817         Suggested by Bernhard Voelker.  While a subshell is normally
27818         required to protect against older shells (Solaris, FreeBSD) that
27819         warn about a missing program before performing redirection, the
27820         shell-selection tests performed by init.sh probably exclude any
27821         offending shell.
27823 2012-01-08  Bruno Haible  <bruno@clisp.org>
27825         setlocale tests: Avoid test failure on Solaris 11.0.
27826         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27827         variable.
27829 2012-01-08  Bruno Haible  <bruno@clisp.org>
27831         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27832         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27833         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27834         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27835         macro.
27836         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27837         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27838         * lib/spawn_faction_addopen.c: Add workaround implementation if
27839         HAVE_WORKING_POSIX_SPAWN.
27840         * modules/spawn (Makefile): Substitute
27841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27842         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27843         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27845         (Depends-on): Update conditions.
27846         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27847         the Solaris 11 bug.
27849 2012-01-08  Bruno Haible  <bruno@clisp.org>
27851         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27852         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27853         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27854         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27855         macro.
27856         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27857         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27858         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27859         HAVE_WORKING_POSIX_SPAWN.
27860         * modules/spawn (Makefile): Substitute
27861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27862         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27863         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27865         (Depends-on): Update conditions.
27866         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27867         the Solaris 11 bug.
27869 2012-01-08  Bruno Haible  <bruno@clisp.org>
27871         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27872         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27875         HAVE_WORKING_POSIX_SPAWN.
27876         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27877         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27879         * lib/spawn_faction_addclose.c: Add workaround implementation if
27880         HAVE_WORKING_POSIX_SPAWN.
27881         * modules/spawn (Makefile): Substitute
27882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27883         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27884         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27885         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27886         (Depends-on): Update conditions.
27887         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27888         the Solaris 11 bug.
27890 2012-01-08  Bruno Haible  <bruno@clisp.org>
27892         doc: Update for Solaris 11.0.
27893         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
27894         * m4/printf.m4: Update comments.
27896 2012-01-08  Bruno Haible  <bruno@clisp.org>
27898         mktime: Avoid compilation error on Solaris 11.
27899         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
27901 2012-01-08  Bruno Haible  <bruno@clisp.org>
27903         doc: Small fix.
27904         * doc/posix-headers/nl_types.texi: Correct platforms list.
27906 2012-01-08  Simon Josefsson  <simon@josefsson.org>
27908         Add lgpl-3.0 module.
27909         * MODULES.html.sh (Support for building documentation): Add
27910         lgpl-3.0.
27911         * modules/lgpl-3.0: New file.
27913 2012-01-08  Jim Meyering  <meyering@redhat.com>
27915         select.c: indent with spaces, not TABs
27916         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
27918 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27920         quotearg: do not use grave accent for left quote
27921         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
27922         locale_quoting_style.
27923         (quotearg_buffer_restyled): Fix example.
27924         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
27926 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27928         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
27929         Most programs do not have translation catalogs for English and much
27930         less separate catalogs for British and American English.  Drop the
27931         suggestion to translators about these two, and provide it
27932         automatically for Unicode locales.  Like most programs, even those
27933         using American English, we use single quotation marks.  This conflicts
27934         with the American typographic convention, but works better when you
27935         cite the entire error message within double quotes.  It also tries not
27936         to clash with established practice and with what non-gnulib programs
27937         will usually do.
27938         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27939         using an UTF-8 or GB-18030 locale.  The list of other locales with
27940         quotes was provided by Bruno Haible.
27941         (quotearg_buffer_restyled): Adjust instructions to translators.
27942         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
27943         text, since this would be wrong when using Unicode.
27944         * modules/quotearg: Depend on c-strcaseeq.
27946 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27948         quotearg: fix Wikipedia link
27949         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
27951 2012-01-07  Simon Josefsson  <simon@josefsson.org>
27953         Fix for mingw with MSVC9.
27954         * m4/ld-version-script.m4: Check that compiler rejects version
27955         scripts with syntax errors.  Reported by Bruno Haible
27956         <bruno@clisp.org>.
27958 2012-01-06  Bruno Haible  <bruno@clisp.org>
27960         Talk about "native Windows API", not "Woe32".
27961         * lib/accept4.c: Update comments to mention native Windows.
27962         * lib/execute.c: Likewise.
27963         * lib/fatal-signal.c: Likewise.
27964         * lib/localcharset.c: Likewise.
27965         * lib/nanosleep.c: Likewise.
27966         * lib/nl_langinfo.c: Likewise.
27967         * lib/pclose.c: Likewise.
27968         * lib/pipe-filter-gi.c: Likewise.
27969         * lib/pipe-filter-ii.c: Likewise.
27970         * lib/pipe.c: Likewise.
27971         * lib/pipe2.c: Likewise.
27972         * lib/popen.c: Likewise.
27973         * lib/progreloc.c: Likewise.
27974         * lib/relocatable.c: Likewise.
27975         * lib/sigaction.c: Likewise.
27976         * lib/sigprocmask.c: Likewise.
27977         * lib/spawn-pipe.h: Likewise.
27978         * lib/spawn-pipe.c: Likewise.
27979         * lib/spawni.c: Likewise.
27980         * lib/stat-time.h: Likewise.
27981         * lib/w32spawn.h: Likewise.
27982         * tests/test-isatty.c: Likewise.
27983         * lib/config.charset: More comments.
27984         * doc/gnulib-intro.texi: Mention native Windows.
27985         * doc/posix-functions/_Exit_C99.texi: Likewise.
27986         * doc/posix-headers/fcntl.texi: Likewise.
27988 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
27990         argp: Avoid crash if translator uses % characters in a translation.
27991         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
27992         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27994 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27996         doc: C11 and C++11 are now official
27997         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
27998         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
27999         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28000         * modules/stdalign:
28001         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28003 2012-01-06  Bruno Haible  <bruno@clisp.org>
28005         uc-is-grapheme-break tests: Tweak.
28006         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28007         message.
28009 2012-01-06  Bruno Haible  <bruno@clisp.org>
28011         test-init.sh: correct the test for diff -u
28012         * tests/test-init.sh: Also redirect stdout to /dev/null.
28014 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28016         Use ', not `, for quoting output.
28017         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28018         (print_changelog_deltas, get_tool_versions, main program):
28019         * build-aux/git-version-gen:
28020         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28021         * build-aux/move-if-change (help):
28022         * build-aux/useless-if-before-free (usage, main program):
28023         * check-module (parse_module_file, usage)
28024         (find_included_lib_files, check_module):
28025         * lib/argmatch.c (main) [TEST]:
28026         * lib/argp-help.c (_help):
28027         * lib/getopt1.c (main) [TEST]:
28028         * lib/git-merge-changelog.c (usage):
28029         * lib/xstrtol-error.c (xstrtol_error):
28030         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28031         * m4/argz.m4 (gl_FUNC_ARGZ):
28032         * m4/bison.m4 (gl_BISON):
28033         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28035         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28036         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28037         * m4/gc-random.m4 (gl_GC_RANDOM):
28038         * m4/intl.m4 (gt_CHECK_DECL):
28039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28041         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28042         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28043         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28044         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28045         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28046         * tests/test-dirname.c (main):
28047         * tests/test-getpass.c (main):
28048         * tests/test-iconvme.c (main):
28049         * tests/test-parse-datetime.c (LOG):
28050         * tests/test-xstrtoimax.sh:
28051         * tests/test-xstrtol.sh:
28052         * tests/test-xstrtoll.sh:
28053         * tests/test-xstrtoumax.sh:
28054         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28055         * top/GNUmakefile (abort-due-to-no-makefile):
28056         Quote 'like this', not `like this', as per the recent change to
28057         the GNU coding standards.
28059 2012-01-05  Bruno Haible  <bruno@clisp.org>
28061         strtoimax: Don't force a replacement on systems where intmax_t is int.
28062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28063         'intmax_t' is not larger than 'int'.
28064         Reported by Pádraig Brady <P@draigBrady.com>.
28066 2012-01-05  Bruno Haible  <bruno@clisp.org>
28068         doc: Mention NetBSD bugs.
28069         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28070         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28072 2012-01-05  Bruno Haible  <bruno@clisp.org>
28074         strtoumax tests: Enhance tests.
28075         * tests/test-strtoumax.c (main): Add tests for large values.
28077 2012-01-05  Bruno Haible  <bruno@clisp.org>
28079         strtoimax: Work around AIX 5.1 bug.
28080         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28081         definition.
28082         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28083         Set HAVE_STRTOIMAX.
28084         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28085         REPLACE_STRTOIMAX.
28086         * modules/inttypes-incomplete (Makefile.am): Substitute
28087         REPLACE_STRTOIMAX.
28088         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28089         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28090         (Depends-on): Update conditions.
28091         * tests/test-strtoimax.c (main): Add tests for large values.
28092         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28094 2012-01-05  Bruno Haible  <bruno@clisp.org>
28096         inttypes: Modernize.
28097         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28098         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28099         (Makefile.am): Update inttypes.h rule.
28101 2012-01-05  Jim Meyering  <meyering@redhat.com>
28103         init.sh: don't waste a subshell just to redirect stderr
28104         * tests/init.sh: In testing for diff -u and diff -c, use a
28105         stderr-redirecting exec inside `...` rather than a subshell.
28107         test-init.sh: avoid failure on HP-UX 11.00
28108         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28109         resolves to diff -c or cmp.  Reported by Bruno Haible.
28111 2012-01-05  Bruno Haible  <bruno@clisp.org>
28113         Tests for module 'strtoull'.
28114         * modules/strtoull-tests: New file.
28115         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28117 2012-01-05  Bruno Haible  <bruno@clisp.org>
28119         Tests for module 'strtoll'.
28120         * modules/strtoll-tests: New file.
28121         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28123 2012-01-05  Bruno Haible  <bruno@clisp.org>
28125         Tests for module 'strtoul'.
28126         * modules/strtoul-tests: New file.
28127         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28129 2012-01-05  Bruno Haible  <bruno@clisp.org>
28131         Tests for module 'strtol'.
28132         * modules/strtol-tests: New file.
28133         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28135 2012-01-04  Jim Meyering  <meyering@redhat.com>
28137         test-init.sh: accommodate Solaris 5.10's different diff -u output
28138         * tests/test-init.sh: Also exempt @@ lines from the comparison
28139         of diff output, since Solaris 5.10 and GNU diff formats differ.
28140         Reported by Stefano Lattarini.
28142 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28144         test-posixtm: don't assume signed integer wraparound
28145         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28146         after signed integer overflow.  Inspired by (though it may not
28147         fix) Bruno Haible's bug report in
28148         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28150         Spell out "Windows 9x" and "Windows XP".
28151         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28152         "Windows 9x" and "WinXP" with "Windows XP".
28154 2012-01-04  Jim Meyering  <meyering@redhat.com>
28156         test-vc-list-files-cvs.sh: remove obsolete comment
28157         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28158         double exit.  Now that's all encapsulated via skip_ and Exit.
28160 2012-01-04  Bruno Haible  <bruno@clisp.org>
28162         Talk about "native Windows API", not "Win32".
28163         * lib/classpath.c: Update comments to mention native Windows.
28164         * lib/csharpexec.c: Likewise.
28165         * lib/dup2.c: Likewise.
28166         * lib/error.c: Likewise.
28167         * lib/fcntl.c: Likewise.
28168         * lib/filename.h: Likewise.
28169         * lib/findprog.c: Likewise.
28170         * lib/get-rusage-as.c: Likewise.
28171         * lib/get-rusage-data.c: Likewise.
28172         * lib/getpagesize.c: Likewise.
28173         * lib/javaexec.c: Likewise.
28174         * lib/msvc-inval.c: Likewise.
28175         * lib/msvc-nothrow.c: Likewise.
28176         * lib/nanosleep.c: Likewise.
28177         * lib/nonblocking.c: Likewise.
28178         * lib/printf-parse.c: Likewise.
28179         * lib/setlocale.c: Likewise.
28180         * lib/sigaction.c: Likewise.
28181         * lib/strerror_r.c: Likewise.
28182         * lib/tmpdir.c: Likewise.
28183         * lib/vasnprintf.c: Likewise.
28184         * lib/w32spawn.h: Likewise.
28185         * lib/waitpid.c: Likewise.
28186         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28187         * m4/locale-ar.m4: Likewise.
28188         * m4/locale-fr.m4: Likewise.
28189         * m4/locale-ja.m4: Likewise.
28190         * m4/locale-tr.m4: Likewise.
28191         * m4/locale-zh.m4: Likewise.
28192         * m4/printf.m4: Likewise.
28193         * tests/test-cloexec.c: Likewise.
28194         * tests/test-copy-acl.sh: Likewise.
28195         * tests/test-copy-file.sh: Likewise.
28196         * tests/test-file-has-acl.sh: Likewise.
28197         * tests/test-set-mode-acl.sh: Likewise.
28198         * tests/test-dup-safer.c: Likewise.
28199         * tests/test-dup2.c: Likewise.
28200         * tests/test-dup3.c: Likewise.
28201         * tests/test-fcntl.c: Likewise.
28202         * tests/test-nonblocking-pipe.h: Likewise.
28203         * tests/test-nonblocking-socket.h: Likewise.
28204         * tests/test-pipe.c: Likewise.
28205         * tests/test-pipe2.c: Likewise.
28206         * tests/test-spawn-pipe-child.c: Likewise.
28207         * doc/acl-resources.txt: Likewise.
28208         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28209         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28210         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28211         * lib/localcharset.c: Update comments to mention native Windows.
28212         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28213         * lib/localename.c: Likewise.
28214         * lib/progreloc.c: Likewise.
28215         * lib/relocatable.c: Likewise.
28216         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28217         (windows_compute_revents): Renamed from win32_compute_revents.
28218         (windows_compute_revents_socket): Renamed from
28219         win32_compute_revents_socket.
28220         * lib/select.c: Update comments to mention native Windows.
28221         (windows_poll_handle): Renamed from win32_poll_handle.
28222         * m4/threadlib.m4: Update comments to mention native Windows.
28223         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28224         --enable-threads=windows instead of --enable-threads=win32. Set
28225         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28226         * lib/glthread/lock.h: Update comments to mention native Windows.
28227         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28228         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28229         USE_WIN32_THREADS.
28230         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28231         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28232         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28233         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28234         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28235         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28236         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28237         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28238         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28239         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28240         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28241         * tests/test-tls.c: Likewise.
28242         Rationale:
28243         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28244         on both 32-bit and 64-bit Windows systems.
28245         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28246         line of distinction is between "native Windows" on one side and Unix/
28247         POSIX systems on the other side. More details in
28248         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28249         Suggested by Paul Eggert.
28251 2012-01-03  Bruno Haible  <bruno@clisp.org>
28253         isatty: Support for MSVC 9.
28254         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28255         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28256         (_isatty_nothrow): New function.
28257         (isatty): Use it instead of _isatty.
28258         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28259         * lib/poll.c (IsConsoleHandle): Likewise.
28260         * lib/select.c (IsConsoleHandle): Likewise.
28261         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28262         (gl_PREREQ_ISATTY): New macro.
28263         * modules/isatty (Depends-on): Add msvc-inval.
28264         (configure.ac): Invoke gl_PREREQ_ISATTY.
28266 2012-01-03  Jim Meyering  <meyering@redhat.com>
28268         maint.mk: remove temporary transition aid from over 1.5 years ago
28269         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28270         purpose was to aid in the transition (avoiding silent malfunction)
28271         from that old name to the new _sc_search_regexp.  This shim was
28272         added by commit 219c504b.
28274         init.sh: do not try to accommodate compare arguments starting with "-"
28275         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28276         compare arguments that start with "-".  Besides, we do not worry
28277         about this when invoking diff or cmp; why start now with sed?
28278         Using "--" to separate options from argument would trigger sed
28279         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28280         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28282 2012-01-02  Bruno Haible  <bruno@clisp.org>
28284         Enhance tests for module 'isatty'.
28285         * modules/isatty-tests (Depends-on): Add pipe-posix.
28286         * tests/test-isatty.c: Include <fcntl.h>.
28287         (DEV_NULL): New macro.
28288         (main): Test the resut of isatty() also on regular files, pipes, and
28289         /dev/null.
28291         New module 'isatty'.
28292         * lib/unistd.in.h (isatty): New declaration.
28293         * lib/isatty.c: New file, based on an idea of
28294         Bastien Roucariès <roucaries.bastien@gmail.com>.
28295         * m4/isatty.m4: New file.
28296         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28297         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28298         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28299         REPLACE_ISATTY.
28300         * modules/isatty: New file.
28301         * doc/posix-functions/isatty.texi: Mention the new module.
28302         Suggested by Paolo Bonzini.
28304 2012-01-02  Bruno Haible  <bruno@clisp.org>
28306         canonicalize: Tweak 2011-12-29 commit.
28307         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28308         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28310 2012-01-02  Jim Meyering  <meyering@redhat.com>
28312         gitlog-to-changelog: describe input syntax in --help output
28313         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28315         gitlog-to-changelog: fix typo in --help: show backslash before email @
28316         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28317         in sources, but not in actual output.
28319 2011-12-30  Jim Meyering  <meyering@redhat.com>
28321         gitlog-to-changelog: don't malfunction when name contains %-directive
28322         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28323         in a name string cause trouble.  E.g., with a user name of "%s",
28324         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28326 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28328         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28329         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28330         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28331         the "  (tiny change)" notation that is appended to the standard
28332         ChangeLog "date  name  email" header line.
28334 2012-01-01  Jim Meyering  <meyering@redhat.com>
28336         test-framework-sh: init.sh: fix "make dist" failure
28337         When using gnulib-tool's --with-tests option and any module that
28338         depends on test-framework-sh, "make dist" would fail due to the
28339         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28340         in the gltests directory, and not in the gllib/ directory.
28341         One way to work around that is to move the EXTRA_DIST += init.sh
28342         from the primary module to the -tests one:
28343         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28344         * modules/test-framework-sh (Makefile.am): ...not here.
28345         Reported by Tom G. Christensen in
28346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28348         version-etc: update copyright year reported by --version
28349         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28351 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28353         canonicalize: only stat() if required
28354         * lib/canonicalize.c (canonicalize_filename_mode):
28355         Avoid calling l?stat() when both CAN_MISSING,
28356         and CAN_NOLINKS are set, as we neither need
28357         to resolve symlinks or test component existence.
28359 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28361         doc: cover st_ino issues once; add OpenVMS etc.
28362         * doc/posix-functions/stat.texi (stat):
28363         * doc/posix-functions/lstat.texi (lstat):
28364         * doc/posix-functions/fstatat.texi (fstatat):
28365         * doc/posix-functions/fstat.texi (fstat):
28366         Move general 'struct stat' stuff to sys_stat.texi,
28367         leaving behind a pointer.
28368         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28369         Merge duplicate info about 'struct stat' problems into here.
28370         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28371         and suggest partial workarounds.
28373         same-inode: port to OpenVMS
28374         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28375         three st_ino values.
28377 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28379         canonicalize: fix references to stat() and lstat()
28380         * lib/canonicalize.c (canonicalize_filename_mode):
28381         Ensure references always resolve to a replacement
28382         function if required (even via a macro).
28384 2011-12-30  Jim Meyering  <meyering@redhat.com>
28386         gitlog-to-changelog: remove a little duplication
28387         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28388         rather than twice.
28390 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28392         canonicalize: add support for not resolving symlinks
28393         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28394         indicate we don't want to follow symlinks.  Also
28395         provide CAN_MODE_MASK to aid setting these existing
28396         mutually exclusive values.
28397         * lib/canonicalize.c (canonicalize_filename_mode):
28398         Extract the flags from can_mode parameter, which
28399         are currently just used to select between stat()
28400         and lstat().  Also ensure that mutually exclusive
28401         values are flagged immediately as invalid.
28402         * tests/test-canonicalize.c: Verify symlinks are
28403         not followed, and that invalid flag combinations
28404         are diagnosed.
28406 2011-12-25  Jim Meyering  <meyering@redhat.com>
28408         gitlog-to-changelog: do not clump multi-paragraph entries
28409         Identical header lines (date,name,email+coauthors) are suppressed,
28410         thus putting all entries with those same characteristics under
28411         a single header.  However, when a log entry consists of two or
28412         more paragraphs, it may not be clear where it starts and ends.
28413         This change makes it so that such an entry is always separated
28414         from others by a header line, even when that header would
28415         otherwise be suppressed.
28416         * build-aux/gitlog-to-changelog: Implement the above.
28417         Inspired by a related request from Stefano Lattarini in
28418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28420 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28422         announce-gen: fix `cmd' typo in diagnostic
28423         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28424         diagnostic: a missing '$' meant that the command was not output.
28426 2011-12-23  Jim Meyering  <meyering@redhat.com>
28428         test-framework-sh: distribute init.sh
28429         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28430         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28431         fail due to the lack of init.sh.
28433         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28434         * modules/atexit-tests: Rather than listing tests/init.sh,
28435         now that there's a module for it, simply depend on that new module.
28436         * modules/closein-tests: Likewise.
28437         * modules/exclude-tests: Likewise.
28438         * modules/getcwd-tests: Likewise.
28439         * modules/perror-tests: Likewise.
28440         * modules/pread-tests: Likewise.
28441         * modules/pwrite-tests: Likewise.
28442         * modules/vc-list-files-tests: Likewise.
28443         * modules/verify-tests: Likewise.
28444         * modules/xalloc-die-tests: Likewise.
28445         * modules/xstrtoimax-tests: Likewise.
28446         * modules/xstrtol-tests: Likewise.
28447         * modules/xstrtoll-tests: Likewise.
28448         * modules/xstrtoumax-tests: Likewise.
28449         * modules/yesno-tests: Likewise.
28451 2011-12-22  Jim Meyering  <meyering@redhat.com>
28453         test-framework-sh: add minimal tests of init.sh's compare function
28454         * modules/test-framework-sh-tests: New file.
28455         * tests/test-init.sh: New file.
28457         test-framework-sh: new module
28458         * modules/test-framework-sh: New file.
28459         * MODULES.html.sh (Support for maintaining and releasing projects):
28460         List it.
28462         init.sh: do not emit simulated diff output to stderr
28463         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28465 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28467         .gitignore: ignore gnulib.dvi and regex.info
28468         * doc/.gitignore:add gnulib.dvi and regex.info
28470 2011-12-22  Jim Meyering  <meyering@redhat.com>
28472         init.sh: correct previous change
28473         * tests/init.sh (compare): My previous change was wrong.
28474         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28476         init.sh: avoid unwarranted test failure when using "set -e"
28477         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28478         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28479         a use like "compare exp out" would get evoke an unconditional failure.
28481 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28483         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28484         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28485         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28486         autoreconf that did not.
28487         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28488         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28490 2011-12-17  Jim Meyering  <meyering@redhat.com>
28492         bootstrap: remove some now-unneeded code
28493         This script arose back when gnulib-tool was young.
28494         Since then, it has seen improvements that render much of this
28495         script unnecessary.  In particular, it can now make symlinks
28496         to the files it uses.  Also, I no longer see as much value in
28497         marking files as read-only via comments.
28498         If you relied on the symlink-creation feature of the preceding
28499         version of this script, you can get most of that functionality
28500         by adding the --symlink option to the definition of
28501         gnulib_tool_option_extras in your bootstrap.conf file.
28502         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28503         Run autopoint and libtoolize *before* gnulib-tool.
28504         After it, run an abbreviated autoreconf, rather than a loop around
28505         all tools.
28506         (slirp, bt_mark_as_generated): Remove functions.
28508 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28510         ftoastr: fix typo
28511         * lib/ftoastr.h: Fix misspelling in comment.
28513 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28515         * top/README-release: fix punctuation.
28517 2011-12-17  Jim Meyering  <meyering@redhat.com>
28519         bootstrap: correct the recent buildreq change
28520         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28521         had no effect.
28522         * build-aux/bootstrap (buildreq): Bracket each search term with
28523         "*...*", so that the shell "case" statement works as intended.
28524         Add comments.
28526 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28528         build: let bootstrap resort to wget when downloading .po files
28529         * build-aux/bootstrap (download_po_files): Fallback to wget when
28530         downloading the .po files via rsync fails.  This is necessary to
28531         bootstrap from behind a strict firewall.
28533 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28535         stdint: don't assume C++11 when compiling with g++
28536         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28537         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28538         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28539         work also in C++ before C++11, as that improperly inhibits
28540         generating a substitute stdint.h for that case.
28542 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28544         alloca: protect comment from gnulib-tool
28545         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28546         that gnulib-tool doesn't think it's a license, and munge it to
28547         say "GCC version 3".
28549 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28551         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28552         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28553         $(abs_top_builddir) instead of $(top_builddir).
28555 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28557         strftime-tests: also test nanoseconds
28558         * tests/test-strftime.c (T): Add a test of %N.
28560 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28562         inttypes, stdint: add C++11 support
28563         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28564         when including inttypes.h and stdint.h.  Support this change to
28565         the standard.
28566         * doc/posix-headers/inttypes.texi (inttypes.h):
28567         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28568         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28569         Define if not defined already, for the benefit of pre-C++11 hosts.
28570         Define the standard format macros (e.g., PRId8) always.
28571         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28572         Likewise, if __cpluspus.  Define the standard constant and limit
28573         macros (e.g., INT8_C, INT8_MAX) always.
28574         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28575         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28576         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28577         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28578         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28579         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28580         Likewise.
28582 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28584         nonblocking tests: Fix test failure on Linux/PPC.
28585         Suggested by Prerna Saxena in
28586         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28587         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28588         Set to 1100000.
28590 2011-12-12  Jim Meyering  <meyering@redhat.com>
28592         argmatch: don't hard-code `' when listing valid option arguments
28593         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28594         use the quote function to add quotes.  Use fputs rather than
28595         fprintf for the format string with no format directive.
28597 2011-12-07  Eric Blake  <eblake@redhat.com>
28599         bootstrap: detect tools required by gnulib-tool
28600         * build-aux/bootstrap (buildreq): Provide minimum implicit
28601         dependencies.
28602         * DEPENDENCIES: Mention patch as a prereq.
28604 2011-12-04  Bruno Haible  <bruno@clisp.org>
28606         sethostname: Port to Windows platforms.
28607         * lib/sethostname.c: Provide an alternate implementation for Windows
28608         platforms.
28609         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28610         (main): Skip the test if sethostname() fails with EPERM. On Windows
28611         platforms, don't check the result of gethostname().
28613 2011-12-04  Bruno Haible  <bruno@clisp.org>
28614             Jim Meyering  <meyering@redhat.com>
28616         tests: Avoid spurious error message on platforms without mktemp program.
28617         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28619 2011-12-04  Bruno Haible  <bruno@clisp.org>
28621         sethostname: Fix documentation.
28622         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28623         "not fixed" section.
28625 2011-12-03  Bruno Haible  <bruno@clisp.org>
28627         gnulib-tool: Verify that the License field is present and non-empty.
28628         * gnulib-tool (func_get_license_raw): New function, extracted from
28629         func_get_license.
28630         (func_get_license): Use it. Warn if the module is not a test module and
28631         has no license.
28632         Suggested by Jim Meyering.
28634 2011-12-03  Bruno Haible  <bruno@clisp.org>
28636         sethostname tests: Fix link error on mingw.
28637         * tests/test-sethostname1.c: New file, extracted from
28638         tests/test-sethostname.c.
28639         * tests/test-sethostname2.c: New file, extracted from
28640         tests/test-sethostname.c.
28641         * tests/test-sethostname.c: Remove file.
28642         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28643         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28644         (Depends-on): Add gethostname.
28645         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28646         Link the latter with $(GETHOSTNAME_LIB).
28648         sethostname tests: Fix compilation error on mingw.
28649         * tests/test-sethostname.c: Don't include <sys/types.h>.
28650         (geteuid): Use a dummy value without uid_t.
28651         * modules/sethostname-tests (Depends-on): Remove sys_types.
28653         sethostname tests: Avoid a gcc warning.
28654         * tests/test-sethostname.c (main): Remove an unused variable.
28656         Tweak last commit.
28657         * modules/sethostname-tests (Files): Sort by decreasing importance.
28658         (configure.ac): Check for geteuid.
28659         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28660         the test when there's nothing to test. Drop an unnecessary cast.
28661         Improve an error message. Verify that the final sethostname() call
28662         succeeds.
28664 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28666         Add a test suite for the sethostname module.
28667         * modules/sethostname-tests: New file.  A test program
28668         for the sethostname module.
28669         * tests/test-sethostname.c: Likewise.
28671 2011-12-03  Bruno Haible  <bruno@clisp.org>
28673         Tweak last commit.
28674         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28675         Fix preprocessor directives indentation. Fix typos.
28676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28677         * modules/unistd (Makefile): Likewise.
28679 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28681         Integrate the sethostname module into unistd.
28682         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28683         into the unistd.h header.
28684         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28685         preprocessor directives.
28686         * modules/unistd: Setup the Makefile substitutions of the
28687         SETHOSTNAME preprocessor directives.
28689 2011-12-03  Bruno Haible  <bruno@clisp.org>
28691         Tweak last commit.
28692         * lib/sethostname.c: Don't include <string.h>.
28693         (sethostname): No need to copy the argument string to the stack. Don't
28694         call clearerr. Preserve errno when fprintf failed.
28695         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28696         Don't invoke AC_REPLACE_FUNCS.
28697         * modules/sethostname (Link): Remove empty section.
28698         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28699         failure problem.
28701 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28703         New module 'sethostname'.
28704         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28705         for systems that lack it.
28706         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28707         sethostname declaration and function.
28708         * modules/sethostname: New file.  Define the sethostname module.
28710 2011-12-03  Bruno Haible  <bruno@clisp.org>
28712         Tweak last commit.
28713         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28715 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28717         Split the HOST_NAME_MAX detection into a separate m4 macro.
28718         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28719         macro so it can be used by the pending sethostname module.
28721 2011-12-03  Bruno Haible  <bruno@clisp.org>
28723         Fix module descriptions syntax.
28724         * modules/argv-iter (License): Fix syntax.
28725         * modules/di-set (License): Likewise.
28726         * modules/ino-map (License): Likewise.
28727         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28729 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28731         stdalign: port to Clang 3.0
28732         Problem reported by Simon Josefsson in
28733         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28734         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28735         which has <stdalign.h> but which does not define alignof.
28736         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28738 2011-12-01  Eric Blake  <eblake@redhat.com>
28740         mktempd: silence dd usage
28741         * build-aux/mktempd (rand_bytes): Silence dd.
28743 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28745         manywarnings: Don't mention gcc version in docstring.
28746         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28747         Jim Meyering <meyering@redhat.com>.
28749 2011-11-30  Jim Meyering  <meyering@redhat.com>
28751         hash: mark a few floating point constants with "f" suffix
28752         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28753         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28754         floating point constants with "f", since they're destined to be
28755         saved/used as "float"s.
28757 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28759         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28760         * tests/test-float.c (test_long_double): Correct and re-enable the
28761         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28763 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28765         Avoid subtracting two pointers that don't point into the same block.
28766         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28767         only pointers into the same memory block are subtracted. We cannot
28768         assume that sizeof (ptrdiff_t) == sizeof (void *).
28770 2011-11-29  Eric Blake  <eblake@redhat.com>
28772         maint.mk: add syntax check for use of compare from init.sh
28773         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28774         moved here from coreutils.
28776         manywarnings: drop -Wunsuffixed-float-constants
28777         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28778         '1.0D', which is the only way to silence this warning for 'double'.
28780 2011-11-29  Jim Meyering  <meyering@redhat.com>
28782         hash: mark compute_bucket_size with the pure attribute
28783         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28785         quotearg, propername: correct pragma guard expression
28786         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28787         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28789 2011-11-28  Jim Meyering  <meyering@redhat.com>
28791         propername: do not mark proper_name with the const attribute
28792         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28793         since it examines data pointed to by its parameter.
28794         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28795         the suggestion from -Wsuggest-attribute=const.
28797         propername: mark one more function as const
28798         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28800 2011-11-27  Jim Meyering  <meyering@redhat.com>
28802         mark functions with const and pure attributes
28804         Mark functions per suggestions from gcc-4.6 when using these options:
28805         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28806         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28807         Follow these guidelines: when possible, apply the attribute to
28808         an extern declaration, not to its definition.  Apply it to the
28809         definition only when the definition is static.
28810         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28811         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28812         * lib/base64.h (isbase64): Likewise.
28813         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28814         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28815         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28816         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28817         (c_tolower, c_toupper): Likewise.
28818         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28819         * lib/chdir-long.c (find_non_slash): Likewise.
28820         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28821         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28822         * lib/file-type.h (file_type): Likewise.
28823         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28824         * lib/filevercmp.c (verrevcmp): Likewise.
28825         * lib/freadahead.h (freadahead): Likewise.
28826         * lib/fts.c (fts_maxarglen): Likewise.
28827         * lib/hash-pjw.h (hash_pjw): Likewise.
28828         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28829         * lib/hash.c (is_prime, next_prime): Likewise.
28830         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28831         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28832         (hash_table_ok, hash_get_first, hash_string): Likewise.
28833         (compute_bucket_size): Likewise.
28834         * lib/i-ring.h (i_ring_empty): Likewise.
28835         * lib/isnan.c (isnanl): Likewise.
28836         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28837         * lib/memcasecmp.h (memcasecmp): Likewise.
28838         * lib/memchr2.h (memchr2): Likewise.
28839         * lib/memcmp2.h (memcmp2): Likewise.
28840         * lib/parse-datetime.y (lookup_zone): Likewise.
28841         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28842         [!WINDOWS_SOCKETS]: Likewise.
28843         * lib/strnlen1.h (strnlen1): Likewise.
28844         * lib/uniwidth.in.h (uc_width): Likewise.
28845         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28846         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28847         (quoting_options_from_style): Add a comment.
28848         * lib/propername.h (proper_name): Add a comment.
28850 2011-11-27  Bruno Haible  <bruno@clisp.org>
28852         Remove unused macros from !_LIBC code in glibc-borrowed files.
28853         * lib/fnmatch.c (STRCOLL): Remove macro.
28854         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28855         * lib/glob.c (__stat, __readdir64): Remove macros.
28856         * lib/tempname.c (__open64, __xstat64): Remove macros.
28857         Suggested by Paul Eggert.
28859 2011-11-27  Bruno Haible  <bruno@clisp.org>
28861         getcwd: Fix link error on MSVC 9.
28862         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28864 2011-11-27  Bruno Haible  <bruno@clisp.org>
28866         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28867         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28868         HAVE_OPENDIR is 0.
28869         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28870         HAVE_CLOSEDIR is 0.
28871         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28872         is 0.
28873         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28875 2011-11-27  Bruno Haible  <bruno@clisp.org>
28877         getcwd: Fix bug from 2011-08-17.
28878         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28879         platforms that need it.
28880         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28881         code of 4 to be a failure, not a success. This ensures that
28882         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28884 2011-11-27  Bruno Haible  <bruno@clisp.org>
28886         binary-io tests: Avoid test failure on mingw when libtool is used.
28887         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28888         Don't verify the size of t-bin-out1.tmp here.
28889         * tests/test-binary-io.sh: Verify it here.
28890         Reported by Simon Josefsson.
28892 2011-11-26  Bruno Haible  <bruno@clisp.org>
28894         Fix conflict between two instantiations of module 'unistd'.
28895         * gnulib-tool (func_emit_autoconf_snippet): Substitute
28896         ${include_guard_prefix} also in the autoconf snippet.
28897         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
28898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
28899         GNULIB_UNISTD_H_GETOPT.
28900         * modules/getopt-posix (configure.ac): Set the
28901         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28902         * modules/getopt-gnu (configure.ac): Likewise.
28903         * modules/unistd (Makefile.am): Change the substitution value of
28904         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
28905         Reported by Simon Josefsson.
28907 2011-11-25  Bruno Haible  <bruno@clisp.org>
28909         pagealign_alloc: Doc and comments.
28910         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28911         module.
28912         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
28914 2011-11-25  Jim Meyering  <meyering@redhat.com>
28916         test-update-copyright.sh: avoid false-positive failure
28917         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
28918         around false positive failure on Cygwin/Windows.  The latter was
28919         matching erroneously-created files with names like
28920         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
28922 2011-11-25  Simon Josefsson  <simon@josefsson.org>
28924         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
28925         * m4/valgrind-tests.m4: Check that the parameters that will be
28926         used works, not just a subset of them.  Reported by Bruno Haible
28927         <bruno@clisp.org>.
28929 2011-11-24  Jim Meyering  <meyering@redhat.com>
28931         test-stdalign.c: comment out long double tests
28932         * tests/test-stdalign.c: Don't try to reduce alignment of long double
28933         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28934         error: '_Alignas' specifiers cannot reduce alignment of \
28935         'static_longdouble_alignas'.
28937 2011-11-22  Jim Meyering  <meyering@redhat.com>
28939         init.sh: make "compare /dev/null FILE" output more readable
28940         * tests/init.sh (compare_): Document the preferred order of arguments.
28941         (emit_diff_u_header_): New function.
28942         (compare_dev_null_): Emit a simulated diff, rather than just the
28943         contents of the unexpected file.  Suggestion from Bruno Haible.
28945 2011-11-21  Jim Meyering  <meyering@redhat.com>
28946             Eric Blake  <eblake@redhat.com>
28948         init.sh: work around OSF/1 5.1's mishandling of /dev/null
28949         * tests/init.sh: Make our compare function slightly more portable.
28950         Reported by Bruno Haible in
28951         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
28953 2011-11-21  Simon Josefsson  <simon@josefsson.org>
28955         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
28956         before using it, in code that ends up in config.h.
28958 2011-11-20  Bruno Haible  <bruno@clisp.org>
28960         getcwd: Work around getcwd bug on AIX 5..7.
28961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
28962         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
28963         Use a different value for gl_cv_func_getcwd_path_max. Move the
28964         definition of HAVE_PARTLY_WORKING_GETCWD from here...
28965         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
28966         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
28967         Define HAVE_MINIMALLY_WORKING_GETCWD.
28968         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
28969         where it is not even minimally working, that is, on AIX.
28970         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
28971         m4/getcwd-path-max.m4.
28972         (main): Update exit code computation.
28973         * doc/posix-functions/getcwd.texi: Mention list of platforms where
28974         getcwd does not handle long file names.
28976 2011-11-20  Bruno Haible  <bruno@clisp.org>
28978         getcwd: Fix bug from 2009-09-10.
28979         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
28980         like "no".
28982 2011-11-20  Simon Josefsson  <simon@josefsson.org>
28984         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28986 2011-11-20  Bruno Haible  <bruno@clisp.org>
28988         fma tests: Avoid shadowing local variables.
28989         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
28990         expected.
28992 2011-11-20  Bruno Haible  <bruno@clisp.org>
28994         copysignf tests: Fix.
28995         * tests/test-copysignf.c: Fix signature check.
28997 2011-11-20  Bruno Haible  <bruno@clisp.org>
28999         fma: Remove unused code.
29000         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29001         unused macros.
29003 2011-11-20  Bruno Haible  <bruno@clisp.org>
29005         sethostname: Fix doc about AIX.
29006         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29007         sethostname; it has it.
29009         sethostname: Mention more portability problems.
29010         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29011         problem.
29012         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29014 2011-11-19  Bruno Haible  <bruno@clisp.org>
29016         Depend on module fcntl-h when AT_FDCWD is used.
29017         * modules/utimens (Depends-on): Add fcntl-h.
29018         * modules/areadlinkat (Depends-on): Likewise.
29019         * modules/areadlinkat-with-size (Depends-on): Likewise.
29020         * modules/faccessat (Depends-on): Likewise.
29021         * modules/fchmodat (Depends-on): Likewise.
29022         * modules/fchownat (Depends-on): Likewise.
29023         * modules/getcwd (Depends-on): Likewise.
29024         * modules/mkdirat (Depends-on): Likewise.
29025         * modules/mkfifoat (Depends-on): Likewise.
29026         * modules/readlinkat (Depends-on): Likewise.
29027         * modules/symlinkat (Depends-on): Likewise.
29028         * modules/dup2-tests (Depends-on): Likewise.
29029         * modules/fdutimensat-tests (Depends-on): Likewise.
29030         * modules/futimens-tests (Depends-on): Likewise.
29032 2011-11-19  Bruno Haible  <bruno@clisp.org>
29034         euidaccess: Update a comment.
29035         * lib/euidaccess.c: Update comment about platforms with faccessat.
29037 2011-11-19  Bruno Haible  <bruno@clisp.org>
29039         openat: Fix file list.
29040         * modules/openat (Files): Remove lib/at-func.c.
29042 2011-11-19  Bruno Haible  <bruno@clisp.org>
29044         fstatat: Simplify.
29045         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29046         gnulib should define rpl_fstatat, there is a
29047         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29049 2011-11-19  Bruno Haible  <bruno@clisp.org>
29051         Ensure 'inline' can be used in tests/test-utimens-common.h.
29052         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29053         * modules/futimens-tests (configure.ac): Likewise.
29054         * modules/utimens-tests (configure.ac): Likewise.
29055         * modules/utimensat-tests (configure.ac): Likewise.
29057 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29059         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29060         not hash_insert0.
29061         (hash_insert_if_absent): Doc fix.
29063 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29065         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29067 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29069         test-getcwd: disambiguate exit status
29070         * tests/test-getcwd.c (test_long_name): Return 0..7.
29071         (main): Exit with an unambiguous exit status.  The old
29072         code yielded a mysterious mixture of two failure codes.
29074         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29075         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29076         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29077         rpl_fstatat or fstatat.  This should fix the other problem
29078         reported by Kai Habel in
29079         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29080         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29081         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29082         and I reproduced it on a Solaris 8 host we still have in production.
29084 2011-11-18  Jim Meyering  <meyering@redhat.com>
29086         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29087         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29088         Add a sentence to the comment.
29089         (hash_insert0): New function that simply calls hash_insert_if_absent.
29090         * lib/hash.h (hash_insert_if_absent): Declare it.
29091         (hash_insert0): Add deprecation attribute.
29092         (_GL_ATTRIBUTE_DEPRECATED): Define.
29093         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29094         not hash_insert0.
29095         * NEWS: Mention it, even though it's not really an incompatible change.
29097 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29099         openat: avoid compilation failure due to lack of <errno.h> inclusion
29100         * lib/openat.c: Include <errno.h>.
29102 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29104         * modules/getcwd (Depends-on): Add fdopendir.
29105         This fixes one of the two problems reported by Kai Habel in
29106         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29108         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29109         stdalign problem reported by Ian Beckwith in
29110         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29111         * modules/crypto/gc-arcfour (Depends-on):
29112         Depend conditionally on crypto/arcfour.
29113         * modules/crypto/gc-arctwo (Depends-on):
29114         Depend conditionally on crypto/arctwo.
29115         * modules/crypto/gc-des (Depends-on):
29116         Depend conditionally on crypto/des.
29117         * modules/crypto/gc-hmac-md5 (Depends-on):
29118         Depend conditionally on crypto/hmac-md5.
29119         * modules/crypto/gc-hmac-sha1 (Depends-on):
29120         Depend conditionally on crypto/hmac-sha1.
29121         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29122         * modules/crypto/gc-md4 (Depends-on):
29123         Depend conditionally on crypto/md4.
29124         * modules/crypto/gc-md5 (Depends-on):
29125         Depend conditionally on crypto/md5.
29126         * modules/crypto/gc-rijndael (Depends-on):
29127         Depend conditionally on crypto/rijndael.
29128         * modules/crypto/gc-sha1 (Depends-on):
29129         Depend conditionally on crypto/sha1.
29130         * modules/crypto/gc-arcfour:
29131         * modules/crypto/gc-arctwo:
29132         * modules/crypto/gc-des:
29133         * modules/crypto/gc-hmac-md5:
29134         * modules/crypto/gc-hmac-sha1:
29135         * modules/crypto/gc-md2:
29136         * modules/crypto/gc-md4:
29137         * modules/crypto/gc-md5:
29138         * modules/crypto/gc-rijndael:
29139         * modules/crypto/gc-sha1:
29140         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29141         now that the conditional dependencies do the work for us.
29143 2011-11-17  Jim Meyering  <meyering@redhat.com>
29145         tests: factor st_ctime-comparison out of two headers
29146         * tests/test-utimens-common.h (ctime_compare): Define.
29147         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29148         * tests/test-lutimens.h (test_lutimens): Likewise.
29149         * tests/test-utimens.h (test_utimens): Likewise.
29151         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29152         Invoke the test program via an init.sh-using wrapper.
29153         * tests/test-getcwd.sh: New file.
29154         * modules/getcwd-tests (Files): Add it.
29155         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29157 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29159         gitlog-to-changelog: support multi-author commits.
29160         The FSF cares about keeping track of all authors of patches to its
29161         projects, but Git doesn't provide obvious support for multi-author
29162         changesets. Consensus seems to be forming around the use of extra
29163         Signed-off-by inspired lines in the log message formatted as
29164         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29165         multi-author commits between version control systems.
29166         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29167         log message and output in standard ChangeLog multi-author format.
29168         Reported by Peter Rosin <peda@lysator.liu.se>
29170 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29171             Bruno Haible  <bruno@clisp.org>
29173         Fix some modules' file list.
29174         * modules/fstatat (Files): Add m4/lstat.m4.
29175         * modules/openat (Files): Likewise.
29176         * modules/unlinkat (Files): Likewise.
29178 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29180         maint.mk: fix tight-scope.mk generation in VPATH builds.
29181         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29182         reference with $(srcdir) so that the file is found correctly even
29183         when running `make syntax-check' in a VPATH build.
29185 2011-11-13  Bruno Haible  <bruno@clisp.org>
29186             Jim Meyering  <meyering@redhat.com>
29188         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29189         * tests/init.sh (compare): Remove "No differences encountered" or
29190         synonymous output from the 'diff' program.
29192 2011-11-13  Bruno Haible  <bruno@clisp.org>
29194         Makefile: Tweak indentation.
29195         * Makefile: Use tab as first character in every line that contains rule
29196         commands.
29198 2011-11-13  Bruno Haible  <bruno@clisp.org>
29200         Syntax check for copyright statements.
29201         * check-copyright: New file.
29202         * Makefile (sc_check_copyright): New rule.
29204 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29206         * build-aux/git-version-gen: Add --prefix to configure the tag
29207         match string.
29209 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29211         * build-aux/git-version-gen: Add --help and --version.
29213 2011-11-12  Jim Meyering  <meyering@redhat.com>
29215         revamp the other test-exclude?.sh scripts to use init.sh, too
29216         * tests/test-exclude1.sh: Use init.sh.
29217         * tests/test-exclude2.sh: Likewise.
29218         * tests/test-exclude3.sh: Likewise.
29219         * tests/test-exclude4.sh: Likewise.
29220         * tests/test-exclude5.sh: Likewise.
29221         * tests/test-exclude6.sh: Likewise.
29222         * tests/test-exclude7.sh: Likewise.
29223         * tests/test-exclude8.sh: Likewise.
29224         * modules/exclude-tests (Files): List init.sh.
29226         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29227         These shell scripts ignored failure of the binary test-exclude,
29228         so making the latter return 77 didn't cause them to be skipped.
29229         * tests/test-exclude5.sh: Exit with test-exclude's error status
29230         when that program fails.  Revamp to use init.sh.
29231         * tests/test-exclude2.sh: Likewise.
29233         test-exclude: fix a typo
29234         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29236 2011-11-11  Bruno Haible  <bruno@clisp.org>
29238         obstack: Fix compilation error on MSVC 9.
29239         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29241 2011-11-11  Jim Meyering  <meyering@redhat.com>
29243         test-exclude: skip tests rather than failing on deficient systems
29244         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29245         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29246         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29247         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29249 2011-11-10  Bruno Haible  <bruno@clisp.org>
29251         ptsname_r test: Avoid gcc warning on glibc systems.
29252         * tests/test-ptsname_r.c (null_ptr): New function.
29253         (test_errors): Use it.
29255 2011-11-10  Bruno Haible  <bruno@clisp.org>
29257         ptsname_r: Avoid compilation error on OSF/1 5.1.
29258         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29260         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29261         function is not declared or incompatibly declared.
29262         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29263         * modules/ptsname_r (Depends-on, configure.ac): Update.
29264         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29266 2011-11-10  Bruno Haible  <bruno@clisp.org>
29268         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29269         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29270         When cross-compiling, guess yes on all platforms except AIX.
29271         Reported by Ludovic Courtès <ludo@gnu.org>.
29273 2011-11-09  Bruno Haible  <bruno@clisp.org>
29275         ptsname_r tests: Fix bugs.
29276         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29277         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29279 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29281         fstatat: work with cross-compilation
29282         Problem reported by Ludovic Courtès in
29283         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29284         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29285         "cross-compiling" and assume the bug is present.  Replace
29286         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29287         an inverted sense, to be more conservative about our assumptions.
29288         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29290 2011-11-09  Bruno Haible  <bruno@clisp.org>
29292         Improve MODULES.html output.
29293         * modules/mkfifoat (Description): Use the word "function".
29294         * modules/readlinkat (Description): Likewise.
29295         * modules/symlinkat (Description): Likewise.
29297 2011-11-09  Eric Blake  <eblake@redhat.com>
29299         ptsname_r-tests: new test module
29300         * modules/ptsname_r-tests: New module.
29301         * tests/test-ptsname_r.c: New file.
29303         ptsname_r: new module
29304         * modules/ptsname_r: New module.
29305         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29306         * lib/ptsname.c (__ptsname_r): Split...
29307         * lib/ptsname_r.c: ...into new file.
29308         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29309         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29310         * modules/stdlib (Makefile.am): Substitute witnesses.
29311         * lib/stdlib.in.h (ptsname_r): Declare it.
29312         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29313         * MODULES.html.sh (Misc): Likewise.
29314         * modules/ptsname (Depends-on): Alter dependency.
29315         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29317 2011-11-09  Jim Meyering  <meyering@redhat.com>
29319         announce-gen: be more concise when there's only one URL+tarball
29320         * build-aux/announce-gen (get_tool_versions): When you distribute
29321         only one type of tarball, combine the first two "Here are..."
29322         sections and make the key-checking grammar independent of
29323         how many tarballs there are.
29325 2011-11-09  Eric Blake  <eblake@redhat.com>
29327         openpty: provide a stub on mingw
29328         * lib/pty.in.h (includes): Provide forward declarations.
29329         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29331         raise: fix mingw handling of SIGPIPE
29332         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29334 2011-11-08  Bruno Haible  <bruno@clisp.org>
29336         More conditional dependencies.
29337         * modules/faccessat (Depends-on): Add conditions.
29338         * modules/fchmodat (Depends-on): Likewise.
29339         * modules/fchownat (Depends-on): Likewise.
29340         * modules/fstatat (Depends-on): Likewise.
29341         * modules/mkfifoat (Depends-on): Likewise.
29342         * modules/readlinkat (Depends-on): Likewise.
29343         * modules/symlinkat (Depends-on): Likewise.
29344         * modules/unlinkat (Depends-on): Likewise.
29345         * modules/utimensat (Depends-on): Likewise.
29346         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29347         * modules/linkat (Depends-on): Refine the conditions.
29348         * modules/renameat (Depends-on): Likewise.
29350 2011-11-08  Bruno Haible  <bruno@clisp.org>
29352         faccessat: Move AC_LIBOBJ invocation to module description.
29353         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29354         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29355         invocation from here...
29356         * modules/faccessat (configure.ac): ... to here. Invoke
29357         gl_PREREQ_FACCESSAT.
29359 2011-11-08  Bruno Haible  <bruno@clisp.org>
29361         faccessat: Simplify autoconf macro.
29362         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29363         gl_FUNC_EUIDACCESS.
29365 2011-11-08  Bruno Haible  <bruno@clisp.org>
29367         renameat: Fix dependencies.
29368         * modules/renameat (Depends-on): Add stdbool.
29370 2011-11-08  Bruno Haible  <bruno@clisp.org>
29372         mkfifoat: Fix module description.
29373         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29374         not gl_UNISTD_MODULE_INDICATOR.
29376 2011-11-08  Bruno Haible  <bruno@clisp.org>
29378         fstatat: Remove unused dependency.
29379         * modules/fstatat (Depends-on): Remove fstat.
29381 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29383         GNUmakefile: behave when Makefile is missing.
29384         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29386 2011-11-08  Bruno Haible  <bruno@clisp.org>
29388         openat: Conditionalize dependencies.
29389         * lib/openat.c: Reduce the scope of some #includes.
29390         * modules/openat (Depends-on): Add conditions.
29392 2011-11-07  Jim Meyering  <meyering@redhat.com>
29394         maint.mk: extract GPG key ID without using a temporary file
29395         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29396         without using a temporary file.  Based on a suggestion from Werner Koch
29397         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29399 2011-11-07  Eric Blake  <eblake@redhat.com>
29401         grantpt: fix typo
29402         * lib/stdlib.in.h (grantpt): Check correct function.
29404         maint.mk: silence new syntax check
29405         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29407 2011-11-06  Bruno Haible  <bruno@clisp.org>
29409         Doc about floating-point and math API.
29410         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29411         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29413 2011-11-06  Bruno Haible  <bruno@clisp.org>
29415         stdalign tests: Skip the test when compiled by Sun C.
29416         * tests/test-stdalign.c (main): Skip the test on Sun C.
29418 2011-11-06  Bruno Haible  <bruno@clisp.org>
29420         ansi-c++-opt: Complete the 2011-06-05 change.
29421         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29422         does not support namespaces, set the variable to "no", not to ":".
29424 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29426         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29428 2011-11-06  Bruno Haible  <bruno@clisp.org>
29430         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29431         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29432         (minus_zerol) [HP-UX]: New macro.
29433         (unary_minus) [HP-UX]: New function.
29434         (copysignl) [HP-UX]: Use unary_minus function.
29436 2011-11-06  Bruno Haible  <bruno@clisp.org>
29438         ldexp, ldexpf, ldexpl: Enhance tests.
29439         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29440         and tests/test-ldexpl.c.
29441         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29442         LDEXP, MIN_EXP, MAX_EXP): New macros.
29443         Include test-ldexp.h.
29444         (main): Just call test_function.
29445         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29446         infinity.h, nan.h.
29447         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29448         MAX_EXP): New macros.
29449         Include test-ldexp.h.
29450         (x, y): Remove variables.
29451         (main): Just call test_function.
29452         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29453         infinity.h, nan.h.
29454         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29455         MAX_EXP): New macros.
29456         Include test-ldexp.h.
29457         (x, y): Remove variables.
29458         (main): Just call test_function.
29459         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29460         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29461         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29462         (Depends-on): Add isnand-nolibm, signbit, float.
29463         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29464         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29465         (Depends-on): Add isnanf-nolibm, signbit, float.
29467 2011-11-06  Bruno Haible  <bruno@clisp.org>
29469         math tests: Cosmetics.
29470         * tests/test-math-c++.cc: Reorder declarations.
29472 2011-11-05  Bruno Haible  <bruno@clisp.org>
29474         fma*: Simplify test.
29475         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29476         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29478         Tests for module 'fmal'.
29479         * modules/fmal-tests: New file.
29480         * tests/test-fmal1.c: New file.
29481         * tests/test-fmal2.c: New file.
29483         New module 'fmal'.
29484         * lib/math.in.h (fmal): New declaration.
29485         * lib/fmal.c: New file.
29486         * m4/fmal.m4: New file.
29487         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29489         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29490         REPLACE_FMAL.
29491         * modules/fmal: New file.
29492         * doc/posix-functions/fmal.texi: Mention the new module and the various
29493         bugs.
29495         Tests for module 'fmaf'.
29496         * modules/fmaf-tests: New file.
29497         * tests/test-fmaf1.c: New file.
29498         * tests/test-fmaf2.c: New file.
29500         New module 'fmaf'.
29501         * lib/math.in.h (fmaf): New declaration.
29502         * lib/fmaf.c: New file.
29503         * m4/fmaf.m4: New file.
29504         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29506         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29507         REPLACE_FMAF.
29508         * modules/fmaf: New file.
29509         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29510         bugs.
29512         Tests for module 'fma'.
29513         * modules/fma-tests: New file.
29514         * tests/test-fma1.c: New file.
29515         * tests/test-fma1.h: New file.
29516         * tests/test-fma2.c: New file.
29517         * tests/test-fma2.h: New file.
29519         New module 'fma'.
29520         * lib/math.in.h (fma): New declaration.
29521         * lib/fma.c: New file.
29522         * m4/fma.m4: New file.
29523         * m4/fegetround.m4: New file.
29524         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29526         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29527         REPLACE_FMA.
29528         * modules/fma: New file.
29529         * doc/posix-functions/fma.texi: Mention the new module and the various
29530         bugs.
29532         Extend gl_MATHFUNC.
29533         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29534         Support 'void' as argument type.
29535         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29537 2011-11-05  Jim Meyering  <meyering@redhat.com>
29539         maint.mk: also prohibit inclusion of dirent.h without use
29540         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29542 2011-11-05  Bruno Haible  <bruno@clisp.org>
29544         ldexpl tests: Avoid test failure on MSVC 9.
29545         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29546         value. Needed in order to enforce the conversion from a value greater
29547         than LDBL_MAX to Infinity.
29549 2011-11-05  Bruno Haible  <bruno@clisp.org>
29551         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29552         * modules/at-internal: New file, extracted from modules/openat.
29553         * modules/openat-h: New file.
29554         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29555         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29556         * modules/openat (Description): Add reference to POSIX function.
29557         (Files): Remove lib/openat.h, lib/openat-proc.c.
29558         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29559         intprops, unistd.
29560         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29561         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29562         gl_FCNTL_MODULE_INDICATOR.
29563         (Include): Remove unistd.h, openat.h.
29564         * modules/areadlinkat (Files): Add lib/at-func.c.
29565         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29566         openat-die, openat-h, save-cwd.
29567         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29568         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29569         openat-die, openat-h, save-cwd, unistd.
29570         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29571         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29572         openat-h, save-cwd. Remove fcntl-h, openat.
29573         * modules/fchmodat (Files): Remove lib/openat.h.
29574         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29575         openat, stdbool, unistd.
29576         * modules/fchownat (Files): Remove lib/openat.h.
29577         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29578         openat, stdbool, sys_stat.
29579         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29580         lib/openat-proc.c.
29581         (Depends-on): Add at-internal.
29582         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29583         * modules/fstatat (Files): Remove lib/openat.h.
29584         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29585         stdbool, unistd.
29586         * modules/fts (Depends-on): Add openat-h.
29587         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29588         openat.
29589         * modules/mkdirat (Files): Remove lib/openat.h.
29590         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29591         openat, stdbool, sys_stat.
29592         * modules/mkfifoat (Files): Add lib/at-func.c.
29593         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29594         openat-h, save-cwd. Remove fcntl-h, openat.
29595         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29596         * modules/readlinkat (Files): Add lib/at-func.c.
29597         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29598         openat-h, save-cwd. Remove fcntl-h, openat.
29599         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29600         openat.
29601         * modules/selinux-at (Files): Add lib/at-func.c.
29602         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29603         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29604         * modules/symlinkat (Files): Add lib/at-func.c.
29605         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29606         openat-h, save-cwd. Remove fcntl-h, openat.
29607         * modules/unlinkat (Files): Remove lib/openat.h.
29608         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29609         stdbool.
29610         * modules/utimensat (Files): Add lib/at-func.c.
29611         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29612         openat-die, openat-h, save-cwd.
29613         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29614         * modules/fdutimensat-tests (Depends-on): Add openat.
29615         * modules/fstatat-tests (Depends-on): Add openat-h.
29616         * modules/readlinkat-tests (Depends-on): Add openat.
29617         * modules/symlinkat-tests (Depends-on): Add openat.
29619 2011-11-05  Bruno Haible  <bruno@clisp.org>
29621         openat: Include <stdbool.h>.
29622         * lib/openat.c: Include <stdbool.h>.
29624 2011-11-04  Bruno Haible  <bruno@clisp.org>
29626         fchownat, renameat, unlinkat: Fix dependencies.
29627         * modules/fchownat (Depends-on): Add fstatat.
29628         * modules/renameat (Depends-on): Likewise.
29629         * modules/unlinkat (Depends-on): Likewise.
29631 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29633         openat: remove direct dependency on dirent
29634         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29635         and hasn't been needed ever since fdopendir was split into its own
29636         module on 2009-08-31.
29637         * modules/openat (Depends-on): Remove dirent.
29639 2011-11-04  Bruno Haible  <bruno@clisp.org>
29641         renameat: Optimize code size.
29642         * modules/renameat (configure.ac): Don't compile at-func2.c if
29643         REPLACE_RENAMEAT is 1.
29645 2011-11-04  Bruno Haible  <bruno@clisp.org>
29647         openat tests: Fix file list.
29648         * modules/openat-tests (Files): Add tests/test-open.h.
29650 2011-11-04  Bruno Haible  <bruno@clisp.org>
29652         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29653         * modules/fchmodat (Depends-on): Add openat-die.
29654         * modules/fchownat (Depends-on): Likewise.
29655         * modules/linkat (Depends-on): Likewise.
29656         * modules/renameat (Depends-on): Likewise.
29657         * modules/openat (Depends-on): Add dirent.
29659 2011-11-04  Jim Meyering  <meyering@redhat.com>
29661         at-func*.c: fix comments
29662         * lib/at-func2.c: Correct/improve first-line comment.
29663         * lib/at-func.c: Correct grammar in first-line comment.
29665 2011-11-04  Bruno Haible  <bruno@clisp.org>
29667         New module 'mkdirat', split off from module 'openat'.
29668         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29669         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29670         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29671         * modules/mkdirat: New file, extracted from modules/openat.
29672         * modules/openat (Files): Remove lib/mkdirat.c.
29673         (Depends-on): Remove mkdir.
29674         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29675         (Include): Remove <sys/stat.h>.
29676         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29677         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29678         tests/test-mkdir.h.
29679         (Depends-on): Remove ignore-value.
29680         (Makefile.am): Remove rules for test-mkdirat.
29681         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29682         of module 'openat'.
29683         * NEWS: Mention the change.
29685 2011-11-04  Bruno Haible  <bruno@clisp.org>
29687         closedir: Avoid warning on mingw.
29688         * lib/closedir.c: Include <unistd.h>.
29690 2011-11-04  Bruno Haible  <bruno@clisp.org>
29692         New module 'fstatat', split off from module 'openat'.
29693         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29694         defined.
29695         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29697         gl_FUNC_FSTATAT.
29698         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29699         * modules/fstatat: New file, extracted from modules/openat.
29700         * modules/openat (Files): Remove lib/fstatat.c.
29701         (Depends-on): Remove lstat.
29702         (configure.ac): Remove AC_LIBOBJ of fstatat.
29703         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29704         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29705         tests/test-lstat.h, tests/test-stat.h.
29706         (Depends-on): Remove getcwd-lgpl.
29707         (Makefile.am): Remove rules for test-fstatat.
29708         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29709         of module 'openat'.
29710         * NEWS: Mention the change.
29711         * modules/getcwd (Depends-on): Add fstatat.
29712         * modules/linkat (Depends-on): Likewise.
29713         * modules/mkfifoat-tests (Depends-on): Likewise.
29714         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29716 2011-11-03  Bruno Haible  <bruno@clisp.org>
29718         New module 'unlinkat', split off from module 'openat'.
29719         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29720         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29721         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29722         * modules/unlinkat: New file, extracted from modules/openat. Correct
29723         the dependency conditions.
29724         * modules/openat (Files): Remove lib/unlinkat.c.
29725         (Depends-on): Remove rmdir, unlink.
29726         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29727         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29728         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29729         tests/test-rmdir.h, tests/test-unlink.h.
29730         (Depends-on): Remove unlinkdir.
29731         (Makefile.am): Remove rules for test-unlinkat.
29732         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29733         of module 'openat'.
29734         * NEWS: Mention the change.
29735         * modules/linkat-tests (Depends-on): Add unlinkat.
29736         * modules/mkfifoat-tests (Depends-on): Likewise.
29737         * modules/readlinkat-tests (Depends-on): Likewise.
29739 2011-11-02  Bruno Haible  <bruno@clisp.org>
29741         New module 'fchmodat', split off from module 'openat'.
29742         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29743         defined.
29744         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29746         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29747         * modules/fchmodat: New file, extracted from modules/openat.
29748         * modules/openat (Files): Remove lib/fchmodat.c.
29749         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29750         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29751         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29752         (Makefile.am): Remove rules for test-fchmodat.
29753         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29754         of module 'openat'.
29755         * NEWS: Mention the change.
29757 2011-11-02  Jim Meyering  <meyering@redhat.com>
29759         putenv: indent #definition of "environ" to placate cppi
29760         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29762         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29763         Git logs are often treated as immutable, because editing them
29764         changes the SHA1 checksums of all descendants.  Thus, errors in
29765         git logs tend to stay there forever.  However, when we generate
29766         a ChangeLog file -- typically for distribution -- from that git log,
29767         we can actually make corrections in the generated file.  The key
29768         lies in recording in machine-readable/applicable form the desired
29769         corrections.  See --help for description and an example.
29770         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29771         (usage): Describe it; alphabetize option descriptions.
29772         (main): Honor the new option, carefully.
29774 2011-11-01  Jim Meyering  <meyering@redhat.com>
29776         gitlog-to-changelog: avoid an infloop
29777         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29778         that ends up being empty.
29780 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29782         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29783         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29784         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29785         contains (possibly-quoted) backslashes.  This should avoid
29786         all-too-common shell bugs if COMPLICATED contains backslashes in
29787         the "wrong" places.  Reported by David Evans in
29788         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29789         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29790         because we want ASCII ranges.  Is there some reason we don't use
29791         the C locale everywhere in this script?
29792         (func_module, top level): Avoid unwanted pathname expansion when
29793         $repo_url_prefix or $repo_url_suffix_repl contain shell
29794         metacharacters like '?' and '*'.
29796 2011-11-01  Bruno Haible  <bruno@clisp.org>
29798         fchownat: Improve description.
29799         * modules/fchownat (Description): Add link to function.
29801 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29803         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29804         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29805         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29806         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29808 2011-11-01  Bruno Haible  <bruno@clisp.org>
29810         alignof: Avoid collision with stdalign module.
29811         * lib/alignof.h (alignof): Remove macro.
29812         * NEWS: Mention the change.
29813         Reported by Paul Eggert.
29815 2011-11-01  Bruno Haible  <bruno@clisp.org>
29817         New module 'fchownat', split off from module 'openat'.
29818         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29819         defined.
29820         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29821         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29822         invoke gl_FUNC_FCHOWNAT.
29823         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29824         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29825         * modules/fchownat: New file, extracted from modules/openat.
29826         * modules/openat (Files): Remove lib/fchownat.c.
29827         (Depends-on): Remove lchown.
29828         (configure.ac): Remove AC_LIBOBJ of fchownat.
29829         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29830         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29831         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29832         (Depends-on): Remove mgetgroups, usleep, stat-time.
29833         (configure.ac): Remove test for getegid.
29834         (Makefile.am): Remove rules for test-fchownat.
29835         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29836         of module 'openat'.
29837         * NEWS: Mention the change.
29839 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29841         stdalign: port better to MSVC and to Sun C 5.11
29842         This fixes some of the problems reported by Bruno Haible in
29843         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29844         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29845         shortcomings of MSVC and of Sun C 5.11.
29846         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29847         around __declspec arg.
29848         * modules/stdalign-tests (Files): Add tests/macros.h.
29849         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29850         Include macros.h, for ASSERT.
29851         (DECLARE_ALIGNED): Remove.
29852         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29853         to catch bug), and to 1 if not (simplifies the rest of the code).
29854         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29855         (CHECK_AUTO): Remove.
29856         (CHECK_ALIGNED): Check only the alignment of the static vars,
29857         since auto var alignment isn't supported by Sun C 5.11.
29858         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29859         ASSERT failures are easier to diagnose.
29861 2011-10-31  Bruno Haible  <bruno@clisp.org>
29863         doc about some IRIX 5.3 problems.
29864         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29865         on IRIX 5.3.
29866         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29867         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29868         5.3.
29869         * doc/posix-functions/grantpt.texi: Likewise.
29870         * doc/posix-functions/unlockpt.texi: Likewise.
29871         * doc/posix-functions/lgamma.texi: Likewise.
29872         * doc/posix-functions/nextafter.texi: Likewise.
29873         * doc/posix-functions/remainder.texi: Likewise.
29874         * doc/posix-functions/select.texi: Mention misplaced declaration on
29875         IRIX 5.3.
29876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29878 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29880         gitlog-to-changelog: fix git-log invocation.
29881         git-log mishandles date strings before 1970-01-01 UTC, and there is
29882         no use to specify --since=1970-01-01 by default anyway.
29883         * build-aux/gitlog-to-changelog: By default, when no --since option
29884         was given, do not specify explicit --since option to git-log.
29886 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29888         gitlog-to-changelog: new option --append-dot.
29889         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29890         first non-blank line of each commit message terminated with a dot.
29892 2011-10-30  Bruno Haible  <bruno@clisp.org>
29894         ffsl, ffsll: Avoid compilation error due to 'restrict'.
29895         * lib/ffsl.h: Include <config.h>.
29896         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
29898 2011-10-30  Jim Meyering  <meyering@redhat.com>
29900         GNUmakefile: reenable "make syntax-check" for most projects
29901         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
29902         build-aux variable", "syntax-check" would do nothing but succeed with
29903         the "No version control files detected..." diagnostic (unless you
29904         happened to override _build-aux via cfg.mk).
29905         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
29906         to precede inclusion of maint.mk.  Otherwise, these variables would
29907         be used undefined in any project that does not override the default.
29909 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
29911         gitlog-to-changelog: treat a message with only blank lines as empty.
29912         * build-aux/gitlog-to-changelog: Move the code that removes leading and
29913         trailing blank lines before the code that issues a warning about an
29914         empty commit message.
29916 2011-10-30  Jim Meyering  <meyering@redhat.com>
29918         test-parse-datetime.c: avoid new DST-related false positive test failure
29919         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
29920         based on the time/date we'll convert, not the current time.
29921         Otherwise, the moment we cross a DST boundary like today's in
29922         Europe, (CEST to CET), that offset ends up being one hour off.
29924 2011-10-27  Bruno Haible  <bruno@clisp.org>
29926         fstat: Tweak documentation.
29927         * modules/fstat (Description): More precise description.
29929 2011-10-27  Bruno Haible  <bruno@clisp.org>
29931         Update documentation regarding 'largefile' module.
29932         * doc/posix-functions/fstat.texi: Tweak wording.
29933         * doc/posix-functions/opendir.texi: Mention that the module fixes the
29934         problems with huge directories and/or small ino_t types.
29935         * doc/posix-functions/readdir.texi: Likewise.
29936         * doc/posix-functions/rewinddir.texi: Likewise.
29938 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
29940         maint.mk: don't maintain a second build-aux variable.
29941         * maint.mk (build_aux): Removed.  The maintainer-makefile module
29942         depends on GNUmakefile, which already maintains a cfg.mk
29943         overridable $(_build-aux) for projects with a non-standard
29944         build-aux directory location, although without the $(srcdir)
29945         prefix.  Use that variable consistently instead of introducing a
29946         second one.  Adjust all call sites.
29948 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29950         Add stdalign module and use it in other modules.
29951         This is based on a previous proposal by Bruno Haible
29952         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
29954         stdalign: new module
29955         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
29956         * modules/stdalign: New files.
29957         * MODULES.html.sh (c1x_core_properties): Add stdalign.
29958         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
29960         stdalign-tests: new module
29961         * modules/stdalign-tests, tests/test-stdalign.c: New files.
29963         argp: use stdalign
29964         * lib/argp-parse.c: Include <stdalign.h>.
29965         (alignof): Remove.
29966         * modules/argp (Depends-on): Add stdalign.
29968         crypto libraries: use stdalign
29969         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
29970         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
29971         Do not include <stdlib.h> twice, in md4.c.
29972         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
29973         because we are accessing a pointer's bit-pattern, not a size.
29974         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
29975         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
29976         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
29977         * modules/crypto/sha512: Likewise.
29979         sys_socket: use stdalign, not alignof
29980         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
29981         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
29983 2011-10-27  Bruno Haible  <bruno@clisp.org>
29985         raise test: Avoid a test failure on Linux/MIPS.
29986         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
29987         because 99 is a valid signal on Linux/MIPS.
29989 2011-10-27  Bruno Haible  <bruno@clisp.org>
29991         nonblocking tests: Fix test failure on Linux/MIPS.
29992         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
29993         Set to 270000.
29995 2011-10-27  Bruno Haible  <bruno@clisp.org>
29997         utimensat: Work around problem on Linux/hppa.
29998         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
29999         values.
30000         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30002 2011-10-25  Jim Meyering  <meyering@redhat.com>
30004         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30005         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30006         after symbols like NULL, size_t, etc.
30007         Reported by Alfred M. Szmidt.
30009         maint.mk: exempt ENODATA from a syntax-check rule
30010         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30011         from the sc_prohibit_always-defined_macros syntax-check rule.
30012         Add a comment.  See this for more details:
30013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30015 2011-10-23  Jim Meyering  <meyering@redhat.com>
30017         fts: close parent dir FD before returning from post-traversal fts_read
30018         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30019         unlink A, even though an FD open on A remained.  This is suboptimal
30020         (holding a file descriptor open longer than needed), but otherwise not
30021         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30022         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30023         that represents a real problem: it causes the removal of A to fail
30024         with e.g., "rm: cannot remove `A': Device or resource busy"
30026         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30027         directory file descriptors.  After completing the final, FTS_DP,
30028         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30029         cache, but then proceeded to add a new FD to it via the subsequent
30030         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30031         final file descriptor would be closed only via fts_close's call to
30032         fd_ring_clear.  Now, it is usually closed earlier, via the final
30033         FTS_DP-returning fts_read call.
30034         * lib/fts.c (restore_initial_cwd): New function, converted from
30035         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30036         Update callers.
30037         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30038         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30040 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30041             Bruno Haible  <bruno@clisp.org>
30042             Jim Meyering  <jim@meyering.net>
30044         readme-release: improve safety of release prep instructions.
30045         * README-release: Don't git pull all branches when only master
30046         is needed for the release process.
30047         Run make maintainer-clean before changing trees and merging.
30048         Don't try to run ./configure right after git pull in case files
30049         that influence the bootstrap process have changed, move the
30050         ./configure step to after running ./bootstrap.
30051         Don't bootstrap "one last time"... it's the first time!
30053 2011-10-22  Bruno Haible  <bruno@clisp.org>
30055         errno, strerror-override: Support for MSVC 10.
30056         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30057         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30058         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30059         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30060         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30061         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30062         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30063         Assign values compatible with MSVC 10.
30064         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30065         New macros.
30066         (GNULIB_defined_EWINSOCK): New macro.
30067         * lib/strerror-override.c (strerror_override): Update accordingly.
30068         * lib/strerror-override.h: Likewise.
30069         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30070         longer equal to the corresponding errno value.
30071         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30073 2011-10-22  Bruno Haible  <bruno@clisp.org>
30075         perror: Recognize when test program crashes.
30076         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30077         strerror, set gl_cv_func_perror_works to no.
30078         Reported by Daniel Richard G. <skunk@iskunk.org>.
30080         perror: Fix indentation.
30081         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30083 2011-10-22  Bruno Haible  <bruno@clisp.org>
30085         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30086         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30087         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30088         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30089         functions, not as a macro.
30090         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30091         macros.
30092         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30093         absence of macro.
30094         Suggested by Eric Blake.
30095         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30097 2011-10-21  Bruno Haible  <bruno@clisp.org>
30099         relocatable-prog-wrapper: Don't leave object files behind.
30100         * build-aux/install-reloc: Re-synchronize list of .o files to be
30101         removed with list of compilation units.
30103 2011-10-20  Bruno Haible  <bruno@clisp.org>
30105         openpty, posix_openpt: Remove code duplication.
30106         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30107         * lib/openpty.c: Include <stdlib.h>.
30108         (openpty): Use posix_openpt on all platforms except IRIX.
30109         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30111 2011-10-20  Bruno Haible  <bruno@clisp.org>
30113         unlockpt: Detect invalid argument.
30114         * lib/unlockpt.c: Include <fcntl.h>.
30115         (unlockpt): Check whether fd is valid, using fcntl().
30116         * modules/unlockpt (Depends-on): Add fcntl-h.
30118 2011-10-20  Bruno Haible  <bruno@clisp.org>
30120         openpty: Avoid compilation error on AIX 6.1.
30121         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30123 2011-10-20  Bruno Haible  <bruno@clisp.org>
30125         posix_openpt: Support for OpenBSD.
30126         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30127         (posix_openpt) [OpenBSD]: New code.
30128         * lib/grantpt.c: Include <fcntl.h>.
30129         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30130         * modules/grantpt (Depends-on): Add fcntl-h.
30132 2011-10-20  Bruno Haible  <bruno@clisp.org>
30134         posix_openpt test: Coding style.
30135         * tests/test-posix_openpt.c: Use GNU coding style.
30137 2011-10-20  Bruno Haible  <bruno@clisp.org>
30139         grantpt: Support --avoid=pt_chown.
30140         * modules/grantpt (Files): Add lib/pty-private.h.
30142 2011-10-20  Bruno Haible  <bruno@clisp.org>
30144         posix_openpt: Fix autoconf macro.
30145         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30146         unneeded check for _getpty.
30148 2011-10-20  Bruno Haible  <bruno@clisp.org>
30150         openpty: Update comments.
30151         * lib/openpty.c: Add comments about Minix.
30153 2011-10-19  Eric Blake  <eblake@redhat.com>
30155         openpty: relax license
30156         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30158         pt_chown: use configmake to simplify build
30159         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30161         ptsname and others: relax license
30162         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30163         * modules/unlockpt (License): Likewise.
30164         * modules/pt_chown (License): Likewise.
30165         * modules/ptsname (License): Likewise.
30166         * modules/ttyname_r (License): Likewise.
30168 2011-10-19  Jim Meyering  <meyering@redhat.com>
30170         posix_openpt: remove spurious #endif
30171         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30173 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30175         maint.mk: Respect $(build_aux) in web-manual rule.
30176         * top/maint.mk (web-manual): Find gen-announce script in user's
30177         $(build_aux) directory instead of hard-coding 'build-aux'.
30179 2011-10-19  Bruno Haible  <bruno@clisp.org>
30181         posix_openpt: Fix compilation error.
30182         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30183         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30184         Mention the openpty module as an alternative.
30186 2011-10-19  Bruno Haible  <bruno@clisp.org>
30188         Support for old NeXTstep 3.3 frexp().
30189         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30190         execution time of the test to 5 seconds.
30191         Reported by Daniel Richard G. <skunk@iskunk.org>.
30193 2011-10-19  Bruno Haible  <bruno@clisp.org>
30195         Support for old NeXTstep 3.3 sed.
30196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30197         part, use /.../, not \|...|. Escape periods in the header file name.
30198         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30199         Reported by Daniel Richard G. <skunk@iskunk.org>.
30201 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30203         Support for old NeXTstep 3.3 gcc.
30204         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30205         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30206         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30207         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30208         * lib/regex.h (_Restrict_arr_): Likewise.
30209         * lib/regex_internal.h (re_token_t): Likewise.
30210         * lib/regexec.c (check_node_accept_bytes): Likewise.
30211         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30213 2011-10-18  Eric Blake  <eblake@redhat.com>
30215         posix_openpt: new module
30216         * modules/posix_openpt: New module.
30217         * m4/posix_openpt.m4: New file.
30218         * lib/posix_openpt.c: Likewise.
30219         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30220         (gl_STDLIB_H_DEFAULTS): Set defaults.
30221         * modules/stdlib (Makefile.am): Substitute macros.
30222         * lib/stdlib.in.h (posix_openpt): Declare.
30223         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30224         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30225         * modules/posix_openpt-tests: New test module.
30226         * tests/test-posix_openpt.c: New test.
30228 2011-10-15  Bruno Haible  <bruno@clisp.org>
30230         xstrtoll: Fix compilation failure.
30231         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30232         from lib/strtol.c.
30233         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30234         some platforms.
30235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30237 2011-10-15  Bruno Haible  <bruno@clisp.org>
30239         vasnprintf: Optimize bit search operation.
30240         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30242         gl_DOUBLE_EXPONENT_LOCATION.
30243         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30244         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30245         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30246         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30247         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30248         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30249         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30250         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30251         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30253 2011-10-15  Bruno Haible  <bruno@clisp.org>
30255         vasnprintf: Fix comments.
30256         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30258 2011-10-14  Bruno Haible  <bruno@clisp.org>
30260         Tests for module 'integer_length_ll'.
30261         * modules/integer_length_ll-tests: New file.
30262         * tests/test-integer_length_ll.c: New file.
30264         New module 'integer_length_ll'.
30265         * lib/integer_length_ll.c: New file.
30266         * modules/integer_length_ll: New file.
30268 2011-10-14  Bruno Haible  <bruno@clisp.org>
30270         Tests for module 'integer_length_l'.
30271         * modules/integer_length_l-tests: New file.
30272         * tests/test-integer_length_l.c: New file.
30274         New module 'integer_length_l'.
30275         * lib/integer_length_l.c: New file.
30276         * modules/integer_length_l: New file.
30278 2011-10-14  Bruno Haible  <bruno@clisp.org>
30280         Tests for module 'integer_length'.
30281         * modules/integer_length-tests: New file.
30282         * tests/test-integer_length.c: New file.
30284         New module 'integer_length'.
30285         * lib/integer_length.h: New file.
30286         * lib/integer_length.c: New file.
30287         * modules/integer_length: New file.
30289 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30291         popen: Fix dependency conditions.
30292         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30294 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30296         perror: Fix autoconf test.
30297         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30298         <stdlib.h> and <string.h>.
30300 2011-10-14  Bruno Haible  <bruno@clisp.org>
30302         ffsl: Optimize on 64-bit platforms.
30303         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30304         unrolling.
30306 2011-10-13  Bruno Haible  <bruno@clisp.org>
30308         ffsl: Optimize on 32-bit platforms.
30309         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30310         use ffs() without a loop.
30312         ffsl, ffsll: Optimize for GCC.
30313         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30314         * lib/ffsl.c (GCC_BUILTIN): New macro.
30315         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30317 2011-10-13  Bruno Haible  <bruno@clisp.org>
30319         ffs, bcopy, memset: Support symbol renaming via config.h.
30320         * lib/ffs.c: Include <config.h>.
30321         * lib/bcopy.c: Likewise.
30322         * lib/memset.c: Likewise.
30324 2011-10-10  Bruno Haible  <bruno@clisp.org>
30326         atanl: Simplify for platforms where 'long double' == 'double'.
30327         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30328         alternative implementation.
30329         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30330         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30331         * modules/atanl (Depends-on): Add atan. Update conditions.
30333 2011-10-10  Bruno Haible  <bruno@clisp.org>
30335         acosl: Simplify for platforms where 'long double' == 'double'.
30336         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30337         alternative implementation.
30338         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30339         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30340         * modules/acosl (Depends-on): Add acos. Update conditions.
30342 2011-10-10  Bruno Haible  <bruno@clisp.org>
30344         asinl: Simplify for platforms where 'long double' == 'double'.
30345         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30346         alternative implementation.
30347         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30348         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30349         * modules/asinl (Depends-on): Add asin. Update conditions.
30351 2011-10-10  Bruno Haible  <bruno@clisp.org>
30353         tanl: Simplify for platforms where 'long double' == 'double'.
30354         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30355         implementation.
30356         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30357         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30358         * modules/tanl (Depends-on): Add tan. Update conditions.
30359         (configure.ac): Don't compile trigl.c if
30360         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30362 2011-10-10  Bruno Haible  <bruno@clisp.org>
30364         cosl: Simplify for platforms where 'long double' == 'double'.
30365         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30366         implementation.
30367         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30368         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30369         * modules/cosl (Depends-on): Add cos. Update conditions.
30370         (configure.ac): Don't compile sincosl.c and trigl.c if
30371         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30373 2011-10-10  Bruno Haible  <bruno@clisp.org>
30375         sinl: Simplify for platforms where 'long double' == 'double'.
30376         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30377         implementation.
30378         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30379         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30380         * modules/sinl (Depends-on): Add sin. Update conditions.
30381         (configure.ac): Don't compile sincosl.c and trigl.c if
30382         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30384 2011-10-10  Bruno Haible  <bruno@clisp.org>
30386         logl: Simplify for platforms where 'long double' == 'double'.
30387         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30388         implementation.
30389         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30390         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30391         * modules/logl (Depends-on): Add log. Update conditions.
30393 2011-10-10  Bruno Haible  <bruno@clisp.org>
30395         expl: Simplify for platforms where 'long double' == 'double'.
30396         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30397         implementation.
30398         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30399         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30400         * modules/expl (Depends-on): Add exp. Update conditions.
30402 2011-10-10  Bruno Haible  <bruno@clisp.org>
30404         sqrtl: Simplify for platforms where 'long double' == 'double'.
30405         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30406         alternative implementation.
30407         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30408         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30409         * modules/sqrtl (Depends-on): Update conditions.
30411 2011-10-10  Bruno Haible  <bruno@clisp.org>
30413         ldexpl: Simplify for platforms where 'long double' == 'double'.
30414         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30415         alternative implementation.
30416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30417         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30418         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30420 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30422         ffsll: set correct witness
30423         * modules/ffsll (configure.ac): Fix typo.
30425 2011-10-10  Bruno Haible  <bruno@clisp.org>
30427         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30428         * lib/printf-frexpl.c: Include <config.h>.
30429         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30430         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30431         second time.
30432         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30433         gl_LONG_DOUBLE_VS_DOUBLE.
30434         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30435         conditions.
30437 2011-10-10  Bruno Haible  <bruno@clisp.org>
30439         frexpl: Simplify for platforms where 'long double' == 'double'.
30440         * lib/frexpl.c: Include <config.h>.
30441         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30442         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30443         time.
30444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30445         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30446         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30447         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30448         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30449         conditions.
30451 2011-10-10  Jim Meyering  <meyering@redhat.com>
30453         test-renameat: don't leave behind a temporary file
30454         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30455           ERROR: files left in build directory after distclean:
30456           ./gltests/test-renameat.too
30457           make[1]: *** [distcleancheck] Error 1
30458         Reported by Tom G. Christensen.
30460 2011-10-09  Bruno Haible  <bruno@clisp.org>
30462         rint: Determine RINT_LIBM correctly on AIX 7.
30463         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30464         directly, not only through a function pointer. Also accept an optional
30465         4th argument with extra code.
30466         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30467         rintf() call by gcc when optimizing.
30469         mathfunc.m4: Refactor.
30470         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30471         m4 variable.
30473 2011-10-09  Bruno Haible  <bruno@clisp.org>
30475         rintl: Simplify for platforms where 'long double' == 'double'.
30476         * lib/rintl.c: Include <config.h>.
30477         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30478         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30479         time.
30480         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30481         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30482         * modules/rintl (Depends-on): Add rint. Update conditions.
30484 2011-10-09  Bruno Haible  <bruno@clisp.org>
30486         roundl: Simplify for platforms where 'long double' == 'double'.
30487         * lib/roundl.c: Include <config.h>.
30488         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30489         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30490         time.
30491         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30492         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30493         * modules/roundl (Depends-on): Add round. Update conditions.
30495 2011-10-09  Bruno Haible  <bruno@clisp.org>
30497         truncl: Simplify for platforms where 'long double' == 'double'.
30498         * lib/truncl.c: Include <config.h>.
30499         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30500         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30501         time.
30502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30503         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30504         * modules/truncl (Depends-on): Add trunc. Update conditions.
30506 2011-10-09  Bruno Haible  <bruno@clisp.org>
30508         ceill: Simplify for platforms where 'long double' == 'double'.
30509         * lib/ceill.c: Include <config.h>.
30510         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30511         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30512         time.
30513         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30514         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30515         * modules/ceill (Depends-on): Add ceil. Update conditions.
30517 2011-10-09  Bruno Haible  <bruno@clisp.org>
30519         floorl: Simplify for platforms where 'long double' == 'double'.
30520         * lib/floorl.c: Include <config.h>.
30521         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30522         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30523         time.
30524         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30525         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30526         * modules/floorl (Depends-on): Add floor. Update conditions.
30528 2011-10-09  Bruno Haible  <bruno@clisp.org>
30530         rint: Fix ordering constraints.
30531         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30532         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30533         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30535 2011-10-09  Bruno Haible  <bruno@clisp.org>
30537         copysignl: Simplify for platforms where 'long double' == 'double'.
30538         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30539         alternative.
30540         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30541         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30542         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30544 2011-10-09  Bruno Haible  <bruno@clisp.org>
30546         Tests for module 'rintl'.
30547         * modules/rintl-tests: New file.
30548         * tests/test-rintl.c: New file.
30550         New module 'rintl'.
30551         * lib/math.in.h (rintl): New declaration.
30552         * lib/rintl.c: New file.
30553         * m4/rintl.m4: New file.
30554         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30556         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30557         * modules/rintl: New file.
30558         * tests/test-math-c++.cc: Check the declaration of rintl.
30559         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30560         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30561         * doc/posix-functions/rintl.texi: Mention the new module.
30563 2011-10-09  Bruno Haible  <bruno@clisp.org>
30565         Tests for module 'rintf'.
30566         * modules/rintf-tests: New file.
30567         * tests/test-rintf.c: New file.
30569         New module 'rintf'.
30570         * lib/math.in.h (rintf): New declaration.
30571         * lib/rintf.c: New file.
30572         * m4/rintf.m4: New file.
30573         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30575         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30576         * modules/rintf: New file.
30577         * tests/test-math-c++.cc: Check the declaration of rintf.
30578         * doc/posix-functions/rintf.texi: Mention the new module.
30580 2011-10-09  Bruno Haible  <bruno@clisp.org>
30582         rint: Support for MSVC.
30583         * lib/math.in.h (rint): New declaration.
30584         * lib/rint.c: New file.
30585         * m4/rint.m4: New file.
30586         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30588         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30589         * modules/rint (Description): Fix.
30590         (Files): Add lib/rint.c, m4/rint.m4.
30591         (Depends-on): Add math.
30592         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30593         gl_MATH_MODULE_INDICATOR.
30594         * tests/test-math-c++.cc: Check the declaration of rint.
30595         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30596         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30597         * doc/posix-functions/rint.texi: Mention the replacement provided by
30598         the module.
30600         rint tests: More tests.
30601         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30602         minus-zero.h, infinity.h, nan.h.
30603         (main): Skip the test if the current rounding mode is not standard. Add
30604         tests for negative numbers, minus zero, infinity, NaN.
30605         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30606         tests/nan.h.
30607         (Depends-on): Add isnand-nolibm.
30609 2011-10-09  Bruno Haible  <bruno@clisp.org>
30611         Tests for module 'copysignl'.
30612         * modules/copysignl-tests: New file.
30613         * tests/test-copysignl.c: New file.
30615         New module 'copysignl'.
30616         * lib/math.in.h (copysignl): New declaration.
30617         * lib/copysignl.c: New file.
30618         * m4/copysignl.m4: New file.
30619         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30621         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30622         HAVE_COPYSIGNL.
30623         * modules/copysignl: New file.
30624         * tests/test-math-c++.cc: Check the declaration of copysignl.
30625         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30626         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30627         * doc/posix-functions/copysignl.texi: Mention the new module.
30629 2011-10-09  Bruno Haible  <bruno@clisp.org>
30631         Tests for module 'copysignf'.
30632         * modules/copysignf-tests: New file.
30633         * tests/test-copysignf.c: New file.
30635         New module 'copysignf'.
30636         * lib/math.in.h (copysignf): New declaration.
30637         * lib/copysignf.c: New file.
30638         * m4/copysignf.m4: New file.
30639         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30641         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30642         HAVE_COPYSIGNF.
30643         * modules/copysignf: New file.
30644         * tests/test-math-c++.cc: Check the declaration of copysignf.
30645         * doc/posix-functions/copysignf.texi: Mention the new module.
30647 2011-10-09  Bruno Haible  <bruno@clisp.org>
30649         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30651         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30652         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30653         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30654         gl_SIGNAL_H_DEFAULTS.
30656 2011-10-09  Bruno Haible  <bruno@clisp.org>
30658         poll: Make macro safer.
30659         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30660         ac_cv_header_poll_h is not set.
30662 2011-10-09  Bruno Haible  <bruno@clisp.org>
30664         copysign: Provide replacement.
30665         * lib/math.in.h (copysign): New declaration.
30666         * lib/copysign.c: New file.
30667         * m4/copysign.m4: New file.
30668         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30670         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30671         HAVE_COPYSIGN.
30672         * modules/copysign (Description): Clarify.
30673         (Files): Add lib/copysign.c, m4/copysign.m4.
30674         (Depends-on): Add math, signbit.
30675         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30676         gl_MATH_MODULE_INDICATOR.
30677         * tests/test-math-c++.cc: Check the declaration of copysign.
30678         * doc/posix-functions/copysign.texi: Mention the effects of the module
30679         on Minix and MSVC.
30681 2011-10-09  Bruno Haible  <bruno@clisp.org>
30683         isinf: Ensure macro on AIX 5.1.
30684         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30685         macro.
30686         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30688 2011-10-09  Bruno Haible  <bruno@clisp.org>
30690         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30691         * modules/snprintf-posix-tests (configure.ac): Require
30692         gl_LONG_DOUBLE_VS_DOUBLE.
30693         * modules/sprintf-posix-tests (configure.ac): Likewise.
30694         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30695         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30696         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30697         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30698         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30699         tests on platforms where 'long double' is the same as 'double'.
30700         * tests/test-sprintf-posix.h (test_function): Likewise.
30701         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30702         * tests/test-vasprintf-posix.c (test_function): Likewise.
30704         *printf: Fix for platforms where 'long double' == 'double'.
30705         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30706         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30707         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30708         * modules/fprintf-posix (Files): Likewise.
30709         * modules/obstack-printf-posix (Files): Likewise.
30710         * modules/snprintf-posix (Files): Likewise.
30711         * modules/sprintf-posix (Files): Likewise.
30712         * modules/vasnprintf (Files): Likewise.
30713         * modules/vasnprintf-posix (Files): Likewise.
30714         * modules/vasprintf-posix (Files): Likewise.
30715         * modules/vdprintf-posix (Files): Likewise.
30716         * modules/vfprintf-posix (Files): Likewise.
30717         * modules/vsnprintf-posix (Files): Likewise.
30718         * modules/vsprintf-posix (Files): Likewise.
30719         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30720         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30721         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30722         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30723         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30724         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30725         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30727         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30728         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30729         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30730         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30731         'long double'.
30732         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30734         isinf: Fix for platforms where 'long double' == 'double'.
30735         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30736         Don't blindly assume 80-bit 'long double'.
30738         isfinite: Fix for platforms where 'long double' == 'double'.
30739         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30740         Don't blindly assume 80-bit 'long double'.
30742         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30743         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30744         * modules/isfinite-tests (configure.ac): Require
30745         gl_LONG_DOUBLE_VS_DOUBLE.
30746         * modules/isinf-tests (configure.ac): Likewise.
30747         * modules/isnan-tests (configure.ac): Likewise.
30748         * modules/isnanl-tests (configure.ac): Likewise.
30749         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30750         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30751         tests on platforms where 'long double' is the same as 'double'.
30752         * tests/test-isinf.c (test_isinfl): Likewise.
30753         * tests/test-isnan.c (test_long_double): Likewise.
30754         * tests/test-isnanl.h (main): Likewise.
30756 2011-10-08  Bruno Haible  <bruno@clisp.org>
30758         Tests for module 'tanhf'.
30759         * modules/tanhf-tests: New file.
30760         * tests/test-tanhf.c: New file.
30762         New module 'tanhf'.
30763         * lib/math.in.h (tanhf): New declaration.
30764         * lib/tanhf.c: New file.
30765         * m4/tanhf.m4: New file.
30766         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30768         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30769         * modules/tanhf: New file.
30770         * tests/test-math-c++.cc: Check the declaration of tanhf.
30771         * doc/posix-functions/tanhf.texi: Mention the new module.
30773         tanh: Use a .m4 file.
30774         * m4/tanh.m4: New file.
30775         * modules/tanh (Files): Add it.
30776         (configure.ac): Just invoke gl_FUNC_TANH.
30778 2011-10-08  Bruno Haible  <bruno@clisp.org>
30780         Tests for module 'coshf'.
30781         * modules/coshf-tests: New file.
30782         * tests/test-coshf.c: New file.
30784         New module 'coshf'.
30785         * lib/math.in.h (coshf): New declaration.
30786         * lib/coshf.c: New file.
30787         * m4/coshf.m4: New file.
30788         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30790         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30791         * modules/coshf: New file.
30792         * tests/test-math-c++.cc: Check the declaration of coshf.
30793         * doc/posix-functions/coshf.texi: Mention the new module.
30795         cosh: Use a .m4 file.
30796         * m4/cosh.m4: New file.
30797         * modules/cosh (Files): Add it.
30798         (configure.ac): Just invoke gl_FUNC_COSH.
30800 2011-10-08  Bruno Haible  <bruno@clisp.org>
30802         Tests for module 'sinhf'.
30803         * modules/sinhf-tests: New file.
30804         * tests/test-sinhf.c: New file.
30806         New module 'sinhf'.
30807         * lib/math.in.h (sinhf): New declaration.
30808         * lib/sinhf.c: New file.
30809         * m4/sinhf.m4: New file.
30810         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30812         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30813         * modules/sinhf: New file.
30814         * tests/test-math-c++.cc: Check the declaration of sinhf.
30815         * doc/posix-functions/sinhf.texi: Mention the new module.
30817         sinh: Use a .m4 file.
30818         * m4/sinh.m4: New file.
30819         * modules/sinh (Files): Add it.
30820         (configure.ac): Just invoke gl_FUNC_SINH.
30822 2011-10-08  Bruno Haible  <bruno@clisp.org>
30824         Tests for module 'atan2f'.
30825         * modules/atan2f-tests: New file.
30826         * tests/test-atan2f.c: New file.
30828         New module 'atan2f'.
30829         * lib/math.in.h (atan2f): New declaration.
30830         * lib/atan2f.c: New file.
30831         * m4/atan2f.m4: New file.
30832         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30834         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30835         * modules/atan2f: New file.
30836         * tests/test-math-c++.cc: Check the declaration of atan2f.
30837         * doc/posix-functions/atan2f.texi: Mention the new module.
30839         atan2: Use a .m4 file.
30840         * m4/atan2.m4: New file.
30841         * modules/atan2 (Files): Add it.
30842         (configure.ac): Just invoke gl_FUNC_ATAN2.
30844 2011-10-08  Bruno Haible  <bruno@clisp.org>
30846         Tests for module 'atanf'.
30847         * modules/atanf-tests: New file.
30848         * tests/test-atanf.c: New file.
30850         New module 'atanf'.
30851         * lib/math.in.h (atanf): New declaration.
30852         * lib/atanf.c: New file.
30853         * m4/atanf.m4: New file.
30854         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30856         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30857         * modules/atanf: New file.
30858         * tests/test-math-c++.cc: Check the declaration of atanf.
30859         * doc/posix-functions/atanf.texi: Mention the new module.
30861         atan: Use a .m4 file.
30862         * m4/atan.m4: New file.
30863         * modules/atan (Files): Add it.
30864         (configure.ac): Just invoke gl_FUNC_ATAN.
30866 2011-10-08  Bruno Haible  <bruno@clisp.org>
30868         Tests for module 'acosf'.
30869         * modules/acosf-tests: New file.
30870         * tests/test-acosf.c: New file.
30872         New module 'acosf'.
30873         * lib/math.in.h (acosf): New declaration.
30874         * lib/acosf.c: New file.
30875         * m4/acosf.m4: New file.
30876         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30878         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30879         * modules/acosf: New file.
30880         * tests/test-math-c++.cc: Check the declaration of acosf.
30881         * doc/posix-functions/acosf.texi: Mention the new module.
30883         acos: Use a .m4 file.
30884         * m4/acos.m4: New file.
30885         * modules/acos (Files): Add it.
30886         (configure.ac): Just invoke gl_FUNC_ACOS.
30888 2011-10-08  Bruno Haible  <bruno@clisp.org>
30890         Tests for module 'asinf'.
30891         * modules/asinf-tests: New file.
30892         * tests/test-asinf.c: New file.
30894         New module 'asinf'.
30895         * lib/math.in.h (asinf): New declaration.
30896         * lib/asinf.c: New file.
30897         * m4/asinf.m4: New file.
30898         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
30899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
30900         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
30901         * modules/asinf: New file.
30902         * tests/test-math-c++.cc: Check the declaration of asinf.
30903         * doc/posix-functions/asinf.texi: Mention the new module.
30905         asin: Use a .m4 file.
30906         * m4/asin.m4: New file.
30907         * modules/asin (Files): Add it.
30908         (configure.ac): Just invoke gl_FUNC_ASIN.
30910 2011-10-08  Bruno Haible  <bruno@clisp.org>
30912         Tests for module 'tanf'.
30913         * modules/tanf-tests: New file.
30914         * tests/test-tanf.c: New file.
30916         New module 'tanf'.
30917         * lib/math.in.h (tanf): New declaration.
30918         * lib/tanf.c: New file.
30919         * m4/tanf.m4: New file.
30920         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
30921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
30922         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
30923         * modules/tanf: New file.
30924         * tests/test-math-c++.cc: Check the declaration of tanf.
30925         * doc/posix-functions/tanf.texi: Mention the new module.
30927         tan: Use a .m4 file.
30928         * m4/tan.m4: New file.
30929         * modules/tan (Files): Add it.
30930         (configure.ac): Just invoke gl_FUNC_TAN.
30932 2011-10-08  Bruno Haible  <bruno@clisp.org>
30934         Tests for module 'cosf'.
30935         * modules/cosf-tests: New file.
30936         * tests/test-cosf.c: New file.
30938         New module 'cosf'.
30939         * lib/math.in.h (cosf): New declaration.
30940         * lib/cosf.c: New file.
30941         * m4/cosf.m4: New file.
30942         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
30943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
30944         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
30945         * modules/cosf: New file.
30946         * tests/test-math-c++.cc: Check the declaration of cosf.
30947         * doc/posix-functions/cosf.texi: Mention the new module.
30949         cos: Use a .m4 file.
30950         * m4/cos.m4: New file.
30951         * modules/cos (Files): Add it.
30952         (configure.ac): Just invoke gl_FUNC_COS.
30954 2011-10-08  Bruno Haible  <bruno@clisp.org>
30956         Tests for module 'sinf'.
30957         * modules/sinf-tests: New file.
30958         * tests/test-sinf.c: New file.
30960         New module 'sinf'.
30961         * lib/math.in.h (sinf): New declaration.
30962         * lib/sinf.c: New file.
30963         * m4/sinf.m4: New file.
30964         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
30965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
30966         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
30967         * modules/sinf: New file.
30968         * tests/test-math-c++.cc: Check the declaration of sinf.
30969         * doc/posix-functions/sinf.texi: Mention the new module.
30971         sin: Use a .m4 file.
30972         * m4/sin.m4: New file.
30973         * modules/sin (Files): Add it.
30974         (configure.ac): Just invoke gl_FUNC_SIN.
30976 2011-10-08  Bruno Haible  <bruno@clisp.org>
30978         Tests for module 'powf'.
30979         * modules/powf-tests: New file.
30980         * tests/test-powf.c: New file.
30982         New module 'powf'.
30983         * lib/math.in.h (powf): New declaration.
30984         * lib/powf.c: New file.
30985         * m4/powf.m4: New file.
30986         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
30987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
30988         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
30989         * modules/powf: New file.
30990         * tests/test-math-c++.cc: Check the declaration of powf.
30991         * doc/posix-functions/powf.texi: Mention the new module.
30993         pow: Use a .m4 file.
30994         * m4/pow.m4: New file.
30995         * modules/pow (Files): Add it.
30996         (configure.ac): Just invoke gl_FUNC_POW.
30998 2011-10-08  Bruno Haible  <bruno@clisp.org>
31000         Tests for module 'log10f'.
31001         * modules/log10f-tests: New file.
31002         * tests/test-log10f.c: New file.
31004         New module 'log10f'.
31005         * lib/math.in.h (log10f): New declaration.
31006         * lib/log10f.c: New file.
31007         * m4/log10f.m4: New file.
31008         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31010         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31011         * modules/log10f: New file.
31012         * tests/test-math-c++.cc: Check the declaration of log10f.
31013         * doc/posix-functions/log10f.texi: Mention the new module.
31015         log10: Use a .m4 file.
31016         * m4/log10.m4: New file.
31017         * modules/log10 (Files): Add it.
31018         (configure.ac): Just invoke gl_FUNC_LOG10.
31020 2011-10-08  Bruno Haible  <bruno@clisp.org>
31022         Tests for module 'logf'.
31023         * modules/logf-tests: New file.
31024         * tests/test-logf.c: New file.
31026         New module 'logf'.
31027         * lib/math.in.h (logf): New declaration.
31028         * lib/logf.c: New file.
31029         * m4/logf.m4: New file.
31030         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31032         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31033         * modules/logf: New file.
31034         * tests/test-math-c++.cc: Check the declaration of logf.
31035         * doc/posix-functions/logf.texi: Mention the new module.
31037         log: Use a .m4 file.
31038         * m4/log.m4: New file.
31039         * modules/log (Files): Add it.
31040         (configure.ac): Just invoke gl_FUNC_LOG.
31042 2011-10-08  Bruno Haible  <bruno@clisp.org>
31044         Tests for module 'expf'.
31045         * modules/expf-tests: New file.
31046         * tests/test-expf.c: New file.
31048         New module 'expf'.
31049         * lib/math.in.h (expf): New declaration.
31050         * lib/expf.c: New file.
31051         * m4/expf.m4: New file.
31052         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31054         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31055         * modules/expf: New file.
31056         * tests/test-math-c++.cc: Check the declaration of expf.
31057         * doc/posix-functions/expf.texi: Mention the new module.
31059         exp: Use a .m4 file.
31060         * m4/exp.m4: New file.
31061         * modules/exp (Files): Add it.
31062         (configure.ac): Just invoke gl_FUNC_EXP.
31064 2011-10-08  Bruno Haible  <bruno@clisp.org>
31066         Tests for module 'sqrtf'.
31067         * modules/sqrtf-tests: New file.
31068         * tests/test-sqrtf.c: New file.
31070         New module 'sqrtf'.
31071         * lib/math.in.h (sqrtf): New declaration.
31072         * lib/sqrtf.c: New file.
31073         * m4/sqrtf.m4: New file.
31074         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31076         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31077         * modules/sqrtf: New file.
31078         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31079         * doc/posix-functions/sqrtf.texi: Mention the new module.
31081 2011-10-08  Bruno Haible  <bruno@clisp.org>
31083         Tests: Avoid link failures w.r.t. libintl.
31084         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31085         $(LIBINTL).
31086         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31087         $(LIBINTL).
31088         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31089         against $(LIBINTL).
31090         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31091         $(LIBINTL).
31092         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31093         $(LIBINTL).
31094         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31096 2011-10-08  Bruno Haible  <bruno@clisp.org>
31098         pow tests: Defeat compiler optimizations.
31099         * tests/test-pow.c (main): Assign arguments to x and y before use.
31101 2011-10-08  Bruno Haible  <bruno@clisp.org>
31103         gnulib-tool: Improve last commit.
31104         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31105         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31106         ignore dependencies that are not among the modules list.
31108 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31110         gnulib-tool: don't follow dependencies to avoided modules
31111         This fixes a bug that is related to the previous one.
31112         * gnulib-tool (func_modules_transitive_closure)
31113         (func_emit_autoconf_snippets):
31114         Check whether a dependency is acceptable before using it.
31115         (--extract-dependencies): Report an error if --avoid is also used,
31116         since this combination of options is not yet supported.
31118         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31119         Problem reported by Peter Dyballa in
31120         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31121         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31122         when echoing "$condition".
31124 2011-10-07  Bruno Haible  <bruno@clisp.org>
31126         Fix documentation about math functions on MacOS X.
31127         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31128         MacOS X 10.5.
31129         * doc/posix-functions/fdim.texi: Likewise.
31130         * doc/posix-functions/feclearexcept.texi: Likewise.
31131         * doc/posix-functions/fegetenv.texi: Likewise.
31132         * doc/posix-functions/fegetround.texi: Likewise.
31133         * doc/posix-functions/feholdexcept.texi: Likewise.
31134         * doc/posix-functions/feraiseexcept.texi: Likewise.
31135         * doc/posix-functions/fesetenv.texi: Likewise.
31136         * doc/posix-functions/fesetround.texi: Likewise.
31137         * doc/posix-functions/fetestexcept.texi: Likewise.
31138         * doc/posix-functions/feupdateenv.texi: Likewise.
31139         * doc/posix-functions/fmax.texi: Likewise.
31140         * doc/posix-functions/fmin.texi: Likewise.
31141         * doc/posix-functions/log2.texi: Likewise.
31142         * doc/posix-functions/modff.texi: Likewise.
31143         * doc/posix-functions/nan.texi: Likewise.
31144         * doc/posix-functions/nanf.texi: Likewise.
31145         * doc/posix-functions/nextafterf.texi: Likewise.
31146         * doc/posix-functions/remquo.texi: Likewise.
31148 2011-10-07  Bruno Haible  <bruno@clisp.org>
31150         modff: Drop assumption about library that defines modff.
31151         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31152         AC_CHECK_FUNCS.
31153         * modules/modff (Files): Add m4/mathfunc.m4.
31155 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31157         raise tests: Avoid a GCC warning.
31158         * tests/test-raise.c (handler): Use _Noreturn.
31160 2011-10-07  Bruno Haible  <bruno@clisp.org>
31162         Tests for module 'ldexpf'.
31163         * modules/ldexpf-tests: New file.
31164         * tests/test-ldexpf.c: New file.
31166         New module 'ldexpf'.
31167         * lib/math.in.h (ldexpf): New declaration.
31168         * lib/ldexpf.c: New file.
31169         * m4/ldexpf.m4: New file.
31170         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31172         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31173         * modules/ldexpf: New file.
31174         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31175         * doc/posix-functions/ldexpf.texi: Mention the new module.
31177 2011-10-06  Bruno Haible  <bruno@clisp.org>
31179         frexpf: Work around problems on IRIX and mingw.
31180         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31182         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31183         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31184         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31185         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31186         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31188 2011-10-06  Bruno Haible  <bruno@clisp.org>
31190         fabsf: Drop assumption about library that defines fabsf.
31191         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31192         AC_CHECK_FUNCS.
31193         * modules/fabsf (Files): Add m4/mathfunc.m4.
31195 2011-10-06  Bruno Haible  <bruno@clisp.org>
31197         frexpf: Drop assumption about library that defines frexpf.
31198         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31199         'int *', 'float *', 'long double *', 'float', 'long double'.
31200         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31201         AC_CHECK_FUNCS.
31202         * modules/frexpf (Files): Add m4/mathfunc.m4.
31204         Tests for module 'frexpf'.
31205         * modules/frexpf-tests: New file.
31206         * tests/test-frexpf.c: New file.
31208         New module 'frexpf'.
31209         * lib/math.in.h (frexpf): New declaration.
31210         * lib/frexpf.c: New file.
31211         * m4/frexpf.m4: New file.
31212         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31214         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31215         * modules/frexpf: New file.
31216         * tests/test-math-c++.cc: Check the declaration of frexpf.
31217         * doc/posix-functions/frexpf.texi: Mention the new module.
31219 2011-10-06  Bruno Haible  <bruno@clisp.org>
31221         math: Sort function declarations of math.in.h.
31222         * lib/math.in.h (frexp, logb): Move declarations.
31224 2011-10-05  Bruno Haible  <bruno@clisp.org>
31226         Tests for module 'modff'.
31227         * modules/modff-tests: New file.
31228         * tests/test-modff.c: New file.
31230         New module 'modff'.
31231         * lib/math.in.h (modff): New declaration.
31232         * lib/modff.c: New file.
31233         * m4/modff.m4: New file.
31234         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31236         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31237         * modules/modff: New file.
31238         * tests/test-math-c++.cc: Check the declaration of modff.
31239         * doc/posix-functions/modff.texi: Mention the new module.
31241         modf tests: Make test sharper.
31242         * tests/test-modf.c (main): Strengthen upper bound.
31244         modf: Use a .m4 file.
31245         * m4/modf.m4: New file.
31246         * modules/modf (Files): Add it.
31247         (configure.ac): Just invoke gl_FUNC_MODF.
31249 2011-10-05  Bruno Haible  <bruno@clisp.org>
31251         Tests for module 'fmodf'.
31252         * modules/fmodf-tests: New file.
31253         * tests/test-fmodf.c: New file.
31255         New module 'fmodf'.
31256         * lib/math.in.h (fmodf): New declaration.
31257         * lib/fmodf.c: New file.
31258         * m4/fmodf.m4: New file.
31259         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31261         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31262         * modules/fmodf: New file.
31263         * tests/test-math-c++.cc: Check the declaration of fmodf.
31264         * doc/posix-functions/fmodf.texi: Mention the new module.
31266         fmod: Use a .m4 file.
31267         * m4/fmod.m4: New file.
31268         * modules/fmod (Files): Add it.
31269         (configure.ac): Just invoke gl_FUNC_FMOD.
31271 2011-10-05  Bruno Haible  <bruno@clisp.org>
31273         Tests for module 'fabsf'.
31274         * modules/fabsf-tests: New file.
31275         * tests/test-fabsf.c: New file.
31277         New module 'fabsf'.
31278         * lib/math.in.h (fabsf): New declaration.
31279         * lib/fabsf.c: New file.
31280         * m4/fabsf.m4: New file.
31281         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31283         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31284         * modules/fabsf: New file.
31285         * tests/test-math-c++.cc: Check the declaration of fabsf.
31286         * doc/posix-functions/fabsf.texi: Mention the new module.
31288         fabs: Use a .m4 file.
31289         * m4/fabs.m4: New file.
31290         * modules/fabs (Files): Add it.
31291         (configure.ac): Just invoke gl_FUNC_FABS.
31293 2011-10-05  Jim Meyering  <meyering@redhat.com>
31295         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31296         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31297         ls -lL regression introduced in coreutils-8.12, it does so at the
31298         cost of an additional stat call in the common case.  Besides, now
31299         that the kernel change that prompted commit 95f7c57f has been reverted
31300         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31301         we have no use for commit 95f7c57f, "file-has-acl: use
31302         acl_extended_file_nofollow if available".
31304 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31306         file-has-acl: revert unintended change in behavior of ls -L
31307         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31308         derived from...
31309         (file_has_acl): ...code here.  Call it.
31310         This problem was introduced with 2011-07-22 commit 95f7c57f,
31311         "file-has-acl: use acl_extended_file_nofollow if available".
31312         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31314 2011-10-03  Bruno Haible  <bruno@clisp.org>
31316         poll: Avoid link errors on MSVC.
31317         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31318         * modules/poll (Depends-on): Add sockets.
31319         (Link): New section.
31320         * NEWS: Mention the change.
31321         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31322         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31323         $(LIB_POLL) instead of $(LIBSOCKET).
31325 2011-10-03  Bruno Haible  <bruno@clisp.org>
31327         sys_select tests: Fix link error on MSVC 9.
31328         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31329         with $(LIB_SELECT) instead of $(LIBSOCKET).
31331 2011-10-03  Bruno Haible  <bruno@clisp.org>
31333         sys_select: Fix compilation error on mingw.
31334         * lib/sys_select.in.h: On native Windows, include <io.h>.
31336 2011-10-03  Bruno Haible  <bruno@clisp.org>
31338         wmemset: Support for MSVC.
31339         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31340         whether wmemset() exists.
31342 2011-10-03  Bruno Haible  <bruno@clisp.org>
31344         wmemmove: Support for MSVC.
31345         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31346         whether wmemmove() exists.
31348 2011-10-03  Bruno Haible  <bruno@clisp.org>
31350         wmemcpy: Support for MSVC.
31351         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31352         whether wmemcpy() exists.
31354 2011-10-03  Bruno Haible  <bruno@clisp.org>
31356         wmemcmp: Support for MSVC.
31357         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31358         whether wmemcmp() exists.
31360 2011-10-03  Bruno Haible  <bruno@clisp.org>
31362         wmemchr: Support for MSVC.
31363         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31364         whether wmemchr() exists.
31366 2011-10-03  Bruno Haible  <bruno@clisp.org>
31368         glthread/*, strsignal: Support for MSVC.
31369         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31370         including <winsock.h> on MSVC 9.
31371         * lib/glthread/lock.h: Likewise.
31372         * lib/glthread/thread.h: Likewise.
31373         * lib/glthread/tls.h: Likewise.
31374         * lib/glthread/yield.h: Likewise.
31375         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31376         if HAVE_UNISTD_H is false.
31377         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31379 2011-10-03  Bruno Haible  <bruno@clisp.org>
31381         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31382         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31383         Set to 100000.
31385 2011-10-03  Bruno Haible  <bruno@clisp.org>
31387         acl: Fix specification.
31388         * lib/file-has-acl.c (file_has_acl): Fix specification.
31390 2011-10-03  Bruno Haible  <bruno@clisp.org>
31392         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31393         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31394         (compute_curr_prefix, shared_library_fullname,
31395         find_shared_library_fullname, get_shared_library_fullname, relocate):
31396         Use it together with PIC && INSTALLDIR.
31397         Reported by <jojelino@gmail.com>
31398         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31400 2011-10-01  Jim Meyering  <meyering@redhat.com>
31402         maint.mk: adjust a release-related rule not to require use of gzip
31403         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31404         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31405         projects that build only .tar.xz files.  Also fix an erroneous test.
31407         test-linkat: don't leave behind a temporary file
31408         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31409         Otherwise, coreutils' "make distcheck" would fail with this:
31410           Only in /c/cu/tests/torture/coreutils/test/\
31411             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31412           make[2]: *** [my-distcheck] Error 1
31414         float, math: add omitted file
31415         * lib/itold.c: Add file, required for yesterday's float change.
31417 2011-10-01  Bruno Haible  <bruno@clisp.org>
31419         isinf: Fix for OpenBSD/x86.
31420         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31421         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31422         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31424 2011-10-01  Bruno Haible  <bruno@clisp.org>
31426         isfinite: Fix syntax error in configure test.
31427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31429         isfinite: Fix typo.
31430         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31431         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31433 2011-10-01  Bruno Haible  <bruno@clisp.org>
31435         nonblocking tests: Fix test failure on Linux/IA-64.
31436         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31437         Set to 270000.
31439 2011-10-01  Bruno Haible  <bruno@clisp.org>
31441         mkfifoat tests: Fix a test failure on mingw.
31442         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31443         with error ENOSYS.
31445 2011-09-30  Bruno Haible  <bruno@clisp.org>
31447         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31448         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31449         'long double'. Set REPLACE_ITOLD.
31450         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31451         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31452         * lib/itold.c: New file.
31453         * modules/float (Files): Add lib/itold.c.
31454         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31455         (Makefile.am): Substitute REPLACE_ITOLD.
31456         * modules/math (Depends-on): Add float.
31457         (Makefile.am): Substitute REPLACE_ITOLD.
31458         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31459         * doc/posix-headers/math.texi: Likewise.
31460         * doc/posix-functions/logl.texi: Likewise.
31462 2011-09-30  Bruno Haible  <bruno@clisp.org>
31464         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31465         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31466         Set to 140000.
31468 2011-09-30  Bruno Haible  <bruno@clisp.org>
31470         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31471         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31472         invocation, say "right after AC_PROG_CC_STDC", not "right after
31473         AC_PROG_CC".
31474         Reported by Gary V. Vaughan <gary@gnu.org>.
31476 2011-09-30  Bruno Haible  <bruno@clisp.org>
31478         Centralize C99 requirement.
31479         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31480         * modules/stdarg (configure.ac-early): Invoke it instead of
31481         AC_PROG_CC_STDC.
31482         Reported by Gary V. Vaughan and Paul Eggert.
31484 2011-09-29  Bruno Haible  <bruno@clisp.org>
31486         float: Fix LDBL_MAX value on Linux/PowerPC.
31487         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31488         on Linux/PowerPC.
31489         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31490         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31491         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31492         platform.
31493         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31495 2011-09-29  Bruno Haible  <bruno@clisp.org>
31497         doc: Improve doc about gl_EARLY.
31498         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31499         AC_PROG_CC_STDC invocation.
31500         Reported by Gary V. Vaughan <gary@gnu.org>.
31502 2011-09-28  Bruno Haible  <bruno@clisp.org>
31504         fgetc, fputc, fread, fwrite tests: Fix link error.
31505         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31506         on non-MSVC platforms.
31507         * tests/test-fputc.c (main): Likewise.
31508         * tests/test-fread.c (main): Likewise.
31509         * tests/test-fwrite.c (main): Likewise.
31510         Reported by Jim Meyering.
31512 2011-09-27  Bruno Haible  <bruno@clisp.org>
31514         fputc, fwrite tests: Avoid test failure on MSVC.
31515         * tests/test-fgetc.c: Include msvc-inval.h.
31516         (main): Invoke gl_msvc_inval_ensure_handler.
31517         * tests/test-fputc.c: Include msvc-inval.h.
31518         (main): Invoke gl_msvc_inval_ensure_handler.
31519         * tests/test-fread.c: Include msvc-inval.h.
31520         (main): Invoke gl_msvc_inval_ensure_handler.
31521         * tests/test-fwrite.c: Include msvc-inval.h.
31522         (main): Invoke gl_msvc_inval_ensure_handler.
31523         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31524         * modules/fputc-tests (Depends-on): Likewise.
31525         * modules/fread-tests (Depends-on): Likewise.
31526         * modules/fwrite-tests (Depends-on): Likewise.
31528 2011-09-27  Bruno Haible  <bruno@clisp.org>
31530         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31531         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31532         (raise): Remove older, duplicated declaration.
31533         (_gl_raise_SIGPIPE): New declaration.
31534         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31535         (rpl_raise): Remove function.
31536         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31537         a gnulib-defined SIGPIPE here.
31538         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31539         'sigprocmask' has detected missing signal-blocking and the module
31540         'sigpipe' is enabled.
31541         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31543 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31545         base64-tests: avoid memory leak
31546         * tests/test-base64.c (main): Plug memory leak.
31548         base32: new module
31549         * modules/base32: New module.
31550         * lib/base32.c: New file.
31551         * lib/base32.h: Likewise.
31552         * m4/base32.m4: Likewise.
31553         * modules/base32-tests: New test.
31554         * tests/test-base32.c: Likewise.
31555         * MODULES.html.sh (Misc): Mention it.
31557 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31559         gnulib: use more-standard license notice wording
31560         * gnulib-tool (func_emit_copyright_notice): When emitting a
31561         license notice into a file, use the standard wording as suggested
31562         by the current information for GNU maintainers, except say "file"
31563         rather than "program".  The new wording gives a license version
31564         number, which addresses an issue raised by Glenn Morris in
31565         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31566         * m4/onceonly.m4: Use that same wording here, too.
31568         dup2: minor simplification
31569         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31570         as lib/dup2.c no longer uses 'inline'.
31572 2011-09-25  Bruno Haible  <bruno@clisp.org>
31574         strings: Fix compilation error on MSVC.
31575         * lib/strings.in.h: Include <stddef.h> for size_t.
31577 2011-09-25  Bruno Haible  <bruno@clisp.org>
31579         fflush et al.: Document limitation on MSVC.
31580         * doc/posix-functions/fflush.texi: Document possible crash in handling
31581         mode other than DEFAULT_HANDLING.
31582         * doc/posix-functions/fgetc.texi: Likewise.
31583         * doc/posix-functions/fputc.texi: Likewise.
31584         * doc/posix-functions/fread.texi: Likewise.
31585         * doc/posix-functions/fwrite.texi: Likewise.
31587 2011-09-25  Bruno Haible  <bruno@clisp.org>
31589         msvc-inval: Allow three invalid parameter handling modes.
31590         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31591         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31592         macros.
31593         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31594         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31595         SANE_LIBRARY_HANDLING as a no-op.
31596         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31597         <stdlib.h>.
31598         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31600 2011-09-25  Bruno Haible  <bruno@clisp.org>
31602         msvc-inval: Make handler multithread-safe.
31603         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31604         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31605         declarations.
31606         (gl_msvc_inval_current): New declaration.
31607         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31608         Operate on the structure returned by gl_msvc_inval_current().
31609         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31610         Remove varaiables.
31611         (tls_index, tls_initialized): New variables.
31612         (not_per_thread): New variable.
31613         (gl_msvc_inval_current): New function.
31614         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31615         returned by gl_msvc_inval_current().
31617 2011-09-25  Bruno Haible  <bruno@clisp.org>
31619         msvc-inval: Install handler globally.
31620         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31621         !_MSC_VER.
31622         (gl_msvc_invalid_parameter_handler): Remove declaration.
31623         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31624         declarations.
31625         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31626         Install the handler globally, don't uninstall it.
31627         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31628         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31629         currently valid, call RaiseException instead.
31630         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31631         for !_MSC_VER.
31633 2011-09-25  Bruno Haible  <bruno@clisp.org>
31635         strerror_r-posix: Fix for MSVC 9.
31636         * lib/strerror_r.c (local_snprintf): New function.
31637         (snprintf): Define to local_snprintf, not to _snprintf.
31639 2011-09-25  Bruno Haible  <bruno@clisp.org>
31641         ftruncate: Support for MSVC 9.
31642         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31643         (chsize_nothrow): New function.
31644         (chsize): Redefine as a macro.
31645         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31646         * modules/ftruncate (Depends-on): Add msvc-inval.
31648 2011-09-25  Bruno Haible  <bruno@clisp.org>
31650         New module 'fstat'.
31651         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31652         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31653         * lib/fchdir.c (rpl_fstat): Remove function.
31654         * m4/fstat.m4: New file.
31655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31657         declared.
31658         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31659         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31660         * modules/fstat: New file.
31661         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31662         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31663         is set.
31664         * doc/posix-functions/fstat.texi: Mention the new module and the
31665         problem on MSVC.
31666         * NEWS: Mention the change.
31667         * modules/acl (Depends-on): Add fstat.
31668         * modules/chdir-safer (Depends-on): Likewise.
31669         * modules/chown (Depends-on): Likewise.
31670         * modules/copy-file (Depends-on): Likewise.
31671         * modules/fchdir (Depends-on): Likewise.
31672         * modules/fdopendir (Depends-on): Likewise.
31673         * modules/fopen (Depends-on): Likewise.
31674         * modules/fts (Depends-on): Likewise.
31675         * modules/getcwd (Depends-on): Likewise.
31676         * modules/isapipe (Depends-on): Likewise.
31677         * modules/linkat (Depends-on): Likewise.
31678         * modules/lseek (Depends-on): Likewise.
31679         * modules/mkdir-p (Depends-on): Likewise.
31680         * modules/open (Depends-on): Likewise.
31681         * modules/openat (Depends-on): Likewise.
31682         * modules/read-file (Depends-on): Likewise.
31683         * modules/renameat (Depends-on): Likewise.
31684         * modules/utimens (Depends-on): Likewise.
31686 2011-09-25  Bruno Haible  <bruno@clisp.org>
31688         linkat: Fix compilation on MSVC 9.
31689         * lib/linkat.c: Don't include <stdint.h>.
31691 2011-09-25  Bruno Haible  <bruno@clisp.org>
31693         fclose: Support for MSVC 9.
31694         * lib/fclose.c: Include msvc-inval.h.
31695         (fclose_nothrow): New function.
31696         (rpl_fclose): Use it.
31697         * modules/fclose (Depends-on): Add msvc-inval.
31698         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31700 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31702         dup2: minor simplifications
31703         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31704         that it's a performance win.
31705         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31706         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31708 2011-09-24  Jim Meyering  <meyering@redhat.com>
31710         test-futimens: avoid a warning from gcc -Wshadow
31711         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31712         to avoid a shadowing warning.
31714 2011-09-24  Bruno Haible  <bruno@clisp.org>
31716         fdopen: Support for MSVC 9.
31717         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31718         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31719         * lib/fdopen.c: Include msvc-inval.h.
31720         (fdopen_nothrow): New function.
31721         (rpl_fdopen): Use it.
31722         * modules/fdopen (Depends-on): Add msvc-inval.
31723         * modules/fclose-tests (Depends-on): Add fdopen.
31724         * modules/fflush-tests (Depends-on): Likewise.
31725         * modules/fgetc-tests (Depends-on): Likewise.
31726         * modules/fputc-tests (Depends-on): Likewise.
31727         * modules/fread-tests (Depends-on): Likewise.
31728         * modules/freopen-tests (Depends-on): Likewise.
31729         * modules/fseeko-tests (Depends-on): Likewise.
31730         * modules/ftello-tests (Depends-on): Likewise.
31731         * modules/fwrite-tests  (Depends-on): Likewise.
31732         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31734 2011-09-24  Bruno Haible  <bruno@clisp.org>
31736         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31737         * modules/fgetc-tests (Depends-on): Add unistd.
31738         * modules/fputc-tests (Depends-on): Likewise.
31739         * modules/fread-tests (Depends-on): Likewise.
31740         * modules/fwrite-tests (Depends-on): Likewise.
31742 2011-09-24  Bruno Haible  <bruno@clisp.org>
31744         dup: Simplify autoconf test.
31745         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31746         on gl_MSVC_INVAL's result.
31748 2011-09-24  Bruno Haible  <bruno@clisp.org>
31750         Tests for function fwrite().
31751         * modules/fwrite-tests: New file.
31752         * tests/test-fwrite.c: New file.
31753         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31755         Tests for function fread().
31756         * modules/fread-tests: New file.
31757         * tests/test-fread.c: New file.
31758         * modules/stdio-tests (Depends-on): Add fread-tests.
31760         Activate fputc tests.
31761         * modules/stdio-tests (Depends-on): Add fputc-tests.
31763         Enhance fgetc, fputc tests.
31764         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31765         * tests/test-fputc.c (main): Likewise.
31767 2011-09-24  Bruno Haible  <bruno@clisp.org>
31769         write: Support for MSVC 9.
31770         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31771         is not 1.
31772         * lib/write.c (write_nothrow): New function.
31773         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31774         not 1. Use write_nothrow.
31775         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31776         invalid parameter handler.
31777         (gl_PREREQ_WRITE): New macro.
31778         * modules/write (Depends-on): Add msvc-inval.
31779         (configure.ac): Invoke gl_PREREQ_WRITE.
31780         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31782 2011-09-24  Bruno Haible  <bruno@clisp.org>
31784         read: Fix last commit.
31785         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31787 2011-09-24  Bruno Haible  <bruno@clisp.org>
31789         dup2: Fix last commit.
31790         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31791         (rpl_dup2): Disable fcntl workaround on native Windows.
31793         sigprocmask: Make code safer.
31794         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31795         section that changes macro definitions for this compilation unit.
31797 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31799         dup2: clarify by coalescing Windows-specific material
31800         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31801         "msvc-nothrow.h"' to the Windows-specific section, so that the
31802         Emacs source need not contain these include files.
31803         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31804         Windows-specific fixes into this function rather than just the
31805         nothrow fix, as this shortens and clarifies the code.  Always
31806         define as a function, as that's a bit cleaner than having it be
31807         sometimes a function and sometimes a macro.
31808         (rpl_dup2): Move the Windows-specific stuff out of here and into
31809         ms_windows_dup2.  Don't protect the Haiku-related fix with
31810         "#if !defined __linux__", as the same code also works around
31811         a Linux kernel bug, and it doesn't add any system calls on any
31812         platform.  Add comment about FreeBSD 6.1.
31814         sigprocmask: move #include directive
31815         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31816         Windows-specific section, so that the Emacs source need not
31817         contain msvc-inval.h.
31819 2011-09-23  Bruno Haible  <bruno@clisp.org>
31821         read: Support for MSVC 9.
31822         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31823         is not 1.
31824         * lib/read.c (read_nothrow): New function.
31825         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31826         read_nothrow.
31827         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31828         invalid parameter handler.
31829         (gl_PREREQ_READ): New macro.
31830         * modules/read (Depends-on): Add msvc-inval.
31831         (configure.ac): Invoke gl_PREREQ_READ.
31832         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31834 2011-09-23  Bruno Haible  <bruno@clisp.org>
31836         close: Support for MSVC 9.
31837         * lib/close.c: Include <errno.h>, msvc-inval.h.
31838         (close_nothrow): New function.
31839         (rpl_close): Use it.
31840         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31841         invalid parameter handler.
31842         * modules/close (Depends-on): Add msvc-inval.
31843         * modules/dup2-tests (Depends-on): Add close.
31844         * modules/dup3-tests (Depends-on): Likewise.
31845         * modules/fcntl-tests (Depends-on): Likewise.
31846         * modules/spawn-pipe-tests (Depends-on): Likewise.
31847         * modules/unistd-safer-tests (Depends-on): Likewise.
31848         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31850 2011-09-23  Bruno Haible  <bruno@clisp.org>
31852         New module 'dup'.
31853         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31854         Allow replacement.
31855         * lib/dup.c: New file.
31856         * lib/fchdir.c (rpl_dup): Remove function.
31857         * m4/dup.m4: New file.
31858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31859         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31861         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31862         * modules/dup: New file.
31863         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31864         'dup' module is in use.
31865         * modules/fdopendir (Depends-on): Add dup.
31866         * modules/fdutimensat-tests (Depends-on): Likewise.
31867         * modules/fts (Depends-on): Likewise.
31868         * modules/futimens-tests (Depends-on): Likewise.
31869         * modules/posix_spawnp-tests (Depends-on): Likewise.
31870         * modules/unistd-safer-tests (Depends-on): Likewise.
31871         * modules/utimens-tests (Depends-on): Likewise.
31872         * doc/posix-functions/dup.texi: Mention the new module and the problem
31873         on MSVC.
31875 2011-09-23  Bruno Haible  <bruno@clisp.org>
31877         getdtablesize: Support for MSVC 9.
31878         * lib/getdtablesize.c: Include msvc-inval.h.
31879         (_setmaxstdio_nothrow): New function.
31880         (_setmaxstdio): Redefine it.
31881         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31882         * modules/getdtablesize (Depends-on): Add msvc-inval.
31883         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31885 2011-09-23  Bruno Haible  <bruno@clisp.org>
31887         signal-h: Rename from signal.
31888         * modules/signal-h: Renamed from modules/signal.
31889         * modules/pthread_sigmask (Depends-on): Update.
31890         * modules/raise (Depends-on): Likewise.
31891         * modules/sigaction (Depends-on): Likewise.
31892         * modules/sigpipe (Depends-on): Likewise.
31893         * modules/sigprocmask (Depends-on): Likewise.
31894         * modules/sys_select (Depends-on): Likewise.
31895         * modules/signal-h-tests: Renamed from modules/signal-tests.
31896         (Files, Depends-on, Makefile.am): Update.
31897         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
31898         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
31899         (Files, Makefile.am): Update.
31900         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
31901         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
31902         * modules/signal: New placeholder file.
31903         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
31904         * doc/posix-headers/signal.texi: Update.
31905         * NEWS: Mention the change.
31907 2011-09-23  Bruno Haible  <bruno@clisp.org>
31909         sigprocmask: Avoid crashes through signal() on MSVC 9.
31910         * lib/sigprocmask.c: Include msvc-inval.h.
31911         (signal_nothrow): New function.
31912         (signal): Redefine it.
31913         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
31914         * modules/sigprocmask (Depends-on): Add msvc-inval.
31915         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
31917 2011-09-23  Bruno Haible  <bruno@clisp.org>
31919         Tests for module 'raise'.
31920         * modules/raise-tests: New file.
31921         * tests/test-raise.c: New file.
31923         raise: Support for MSVC.
31924         * lib/signal.in.h (raise): New declaration.
31925         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
31926         for native Windows platforms.
31927         * m4/raise.m4: New file.
31928         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
31929         HAVE_RAISE, REPLACE_RAISE.
31930         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
31931         REPLACE_RAISE.
31932         * modules/raise (Status, Notice): Remove fields.
31933         (Files): Add m4/raise.m4.
31934         (Depends-on): Add signal, msvc-inval.
31935         (configure.ac): Use the common idioms.
31936         (Maintainer): Add me.
31937         * tests/test-signal-c++.cc: Check the signature of raise.
31938         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
31940 2011-09-23  Bruno Haible  <bruno@clisp.org>
31942         pipe2: Fix compilation on pre-C99 compilers.
31943         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
31945 2011-09-23  Bruno Haible  <bruno@clisp.org>
31947         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
31948         * lib/msvc-nothrow.h: New file.
31949         * lib/msvc-nothrow.c: New file.
31950         * m4/msvc-nothrow.m4: New file.
31951         * modules/msvc-nothrow: New file.
31952         * lib/dup2.c: Include msvc-nothrow.h.
31953         (rpl_dup2): No need to protect _get_osfhandle call here.
31954         * lib/accept4.c: Include msvc-nothrow.h.
31955         * lib/error.c: Likewise.
31956         * lib/fcntl.c: Likewise.
31957         * lib/lseek.c: Likewise.
31958         * lib/nonblocking.c: Likewise.
31959         * lib/poll.c: Likewise.
31960         * lib/read.c: Likewise.
31961         * lib/select.c: Likewise.
31962         * lib/sockets.h: Likewise.
31963         * lib/sockets.c: Likewise.
31964         * lib/stdio-read.c: Likewise.
31965         * lib/stdio-write.c: Likewise.
31966         * lib/write.c: Likewise.
31967         * lib/w32sock.h: Likewise.
31968         * lib/w32spawn.h: Likewise.
31969         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
31970         * lib/fsync.c: Likewise.
31971         * lib/isapipe.c: Likewise.
31972         * modules/dup2 (Depends-on): Add msvc-nothrow.
31973         * modules/accept4 (Depends-on): Likewise.
31974         * modules/error (Depends-on): Likewise.
31975         * modules/fcntl (Depends-on): Likewise.
31976         * modules/lseek (Depends-on): Likewise.
31977         * modules/nonblocking (Depends-on): Likewise.
31978         * modules/poll (Depends-on): Likewise.
31979         * modules/read (Depends-on): Likewise.
31980         * modules/select (Depends-on): Likewise.
31981         * modules/sockets (Depends-on): Likewise.
31982         * modules/sigpipe (Depends-on): Likewise.
31983         * modules/write (Depends-on): Likewise.
31984         * modules/accept (Depends-on): Likewise.
31985         * modules/bind (Depends-on): Likewise.
31986         * modules/connect (Depends-on): Likewise.
31987         * modules/gethostname (Depends-on): Likewise.
31988         * modules/getpeername (Depends-on): Likewise.
31989         * modules/getsockname (Depends-on): Likewise.
31990         * modules/getsockopt (Depends-on): Likewise.
31991         * modules/ioctl (Depends-on): Likewise.
31992         * modules/listen (Depends-on): Likewise.
31993         * modules/recv (Depends-on): Likewise.
31994         * modules/recvfrom (Depends-on): Likewise.
31995         * modules/send (Depends-on): Likewise.
31996         * modules/sendto (Depends-on): Likewise.
31997         * modules/setsockopt (Depends-on): Likewise.
31998         * modules/shutdown (Depends-on): Likewise.
31999         * modules/socket (Depends-on): Likewise.
32000         * modules/execute (Depends-on): Likewise.
32001         * modules/spawn-pipe (Depends-on): Likewise.
32002         * modules/flock (Depends-on): Likewise.
32003         * modules/fsync (Depends-on): Likewise.
32004         * modules/isapipe (Depends-on): Likewise.
32005         * tests/test-cloexec.c: Include msvc-nothrow.h.
32006         * tests/test-dup-safer.c: Likewise.
32007         * tests/test-dup2.c: Likewise.
32008         * tests/test-dup3.c: Likewise.
32009         * tests/test-fcntl.c: Likewise.
32010         * tests/test-pipe.c: Likewise.
32011         * tests/test-pipe2.c: Likewise.
32012         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32013         * modules/unistd-safer-tests (Depends-on): Likewise.
32014         * modules/dup2-tests (Depends-on): Likewise.
32015         * modules/dup3-tests (Depends-on): Likewise.
32016         * modules/fcntl-tests (Depends-on): Likewise.
32017         * modules/pipe-posix-tests (Depends-on): Likewise.
32018         * modules/pipe2-tests (Depends-on): Likewise.
32020 2011-09-23  Bruno Haible  <bruno@clisp.org>
32022         dup2: Make code more maintainable.
32023         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32024         (rpl_dup2): Use it.
32025         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32026         * modules/dup2 (configure.ac): Invoke it.
32027         Reported by Paul Eggert.
32029 2011-09-23  Bruno Haible  <bruno@clisp.org>
32031         msvc-inval: Fix compilation error.
32032         * lib/msvc-inval.h: Include <excpt.h>.
32034 2011-09-23  Bruno Haible  <bruno@clisp.org>
32036         mkdir: Tweak for MSVC 9.
32037         * lib/sys_stat.in.h: Update comments.
32038         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32040         Tests for module 'chdir'.
32041         * modules/chdir-tests: New file.
32042         * tests/test-chdir.c: New file.
32044         New module 'chdir'.
32045         * modules/chdir: New file.
32046         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32047         (chdir): New declaration.
32048         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32049         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32050         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32051         * tests/test-unistd-c++.cc: Check signature of chdir.
32052         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32053         * modules/chdir-long (Depends-on): Add chdir.
32054         * modules/fchdir (Depends-on): Likewise.
32055         * modules/rename (Depends-on): Likewise.
32056         * modules/savewd (Depends-on): Likewise.
32058         rmdir: Support for mingw, MSVC 9.
32059         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32060         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32062         getcwd: Tweak for MSVC 9.
32063         * lib/unistd.in.h: Update comments.
32064         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32066 2011-09-22  Bruno Haible  <bruno@clisp.org>
32068         strerror_r-posix: Avoid a link error on MSVC.
32069         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32070         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32072 2011-09-22  Bruno Haible  <bruno@clisp.org>
32074         select: Avoid link errors on MSVC.
32075         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32076         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32077         * modules/pselect (Link): Likewise.
32078         * NEWS: Mention the change.
32079         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32080         test-select-stdin against $(LIB_SELECT).
32081         * modules/pselect-tests (Makefile.am): Link test-pselect against
32082         $(LIB_SELECT).
32084 2011-09-22  Bruno Haible  <bruno@clisp.org>
32086         select: Avoid compilation error on MSVC.
32087         * lib/select.c: Don't include <stdbool.h>.
32089 2011-09-21  Bruno Haible  <bruno@clisp.org>
32091         Consolidate all uses of PATH_MAX in *.m4 files.
32092         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32093         macros.
32094         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32095         and gl_PATHMAX_SNIPPET.
32096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32098         * modules/chdir-long (Files): Add m4/pathmax.m4.
32099         * modules/getcwd (Files): Likewise.
32101 2011-09-21  Bruno Haible  <bruno@clisp.org>
32103         ftruncate: Un-deprecate, concentrate on Win32 support.
32104         * modules/ftruncate (Status, Notice): Remove sections.
32105         (Depends-on): Add largefile.
32106         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32107         non-mingw platforms.
32108         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32109         include <io.h>.
32110         * modules/perror-tests (Depends-on): Add ftruncate.
32111         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32112         'ftruncate' module.
32114 2011-09-21  Bruno Haible  <bruno@clisp.org>
32116         Add dependencies to new dirent related modules.
32117         * modules/opendir (Depends-on): Add closedir.
32118         * modules/getcwd (Depends-on): Add opendir, closedir.
32119         * modules/dirent-safer-tests (Depends-on): Likewise.
32120         * modules/fdopendir-tests (Depends-on): Likewise.
32121         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32122         * modules/renameat-tests (Depends-on): Likewise.
32124 2011-09-21  Bruno Haible  <bruno@clisp.org>
32126         opendir: Avoid compilation error on mingw.
32127         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32128         * modules/opendir (Depends-on): Add unistd.
32130 2011-09-21  Bruno Haible  <bruno@clisp.org>
32132         ftruncate tests: Avoid a test failure on mingw.
32133         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32135 2011-09-21  Bruno Haible  <bruno@clisp.org>
32137         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32138         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32139         native Windows.
32141 2011-09-21  Bruno Haible  <bruno@clisp.org>
32143         New module 'fdopen'.
32144         * lib/stdio.in.h (fdopen): New declaration.
32145         * lib/fdopen.c: New file.
32146         * m4/fdopen.m4: New file.
32147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32148         REPLACE_FDOPEN.
32149         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32150         REPLACE_FDOPEN.
32151         * modules/fdopen: New file.
32152         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32153         * tests/test-stdio-c++.cc: Check signature of fdopen.
32154         * doc/posix-functions/fdopen.texi: Mention the new module.
32156 2011-09-21  Bruno Haible  <bruno@clisp.org>
32158         unlockpt tests: Avoid test failure on NetBSD 5.1.
32159         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32160         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32162 2011-09-21  Bruno Haible  <bruno@clisp.org>
32164         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32165         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32166         * tests/test-getlogin_r.c (main): Likewise.
32168 2011-09-20  Bruno Haible  <bruno@clisp.org>
32170         time tests: Don't require pid_t.
32171         * doc/posix-headers/time.texi: Revert last change.
32172         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32173         * tests/test-time.c: Comment out the check for pid_t.
32175 2011-09-20  Bruno Haible  <bruno@clisp.org>
32177         fsync tests: Avoid a test failure on mingw.
32178         * tests/test-fsync.c (main): Allow a failure with EIO.
32180 2011-09-20  Bruno Haible  <bruno@clisp.org>
32182         euidaccess: Update comments.
32183         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32185 2011-09-20  Bruno Haible  <bruno@clisp.org>
32187         Ensure EBADF returns for socket functions on mingw.
32188         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32189         descriptor is invalid.
32190         * lib/bind.c (rpl_bind): Likewise.
32191         * lib/connect.c (rpl_connect): Likewise.
32192         * lib/getpeername.c (rpl_getpeername): Likewise.
32193         * lib/getsockname.c (rpl_getsockname): Likewise.
32194         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32195         * lib/listen.c (rpl_listen): Likewise.
32196         * lib/recv.c (rpl_recv): Likewise.
32197         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32198         * lib/send.c (rpl_send): Likewise.
32199         * lib/sendto.c (rpl_sendto): Likewise.
32200         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32201         * lib/shutdown.c (rpl_shutdown): Likewise.
32203 2011-09-20  Bruno Haible  <bruno@clisp.org>
32205         select tests: EBADF tests.
32206         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32207         test_bad_fd): New functions.
32208         (test_function): Invoke also test_bad_fd.
32210 2011-09-20  Bruno Haible  <bruno@clisp.org>
32212         Tests for module 'posix_spawn_file_actions_addopen.
32213         * modules/posix_spawn_file_actions_addopen-tests: New file.
32214         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32216         Tests for module 'posix_spawn_file_actions_adddup2'.
32217         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32218         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32220         Tests for module 'posix_spawn_file_actions_addclose'.
32221         * modules/posix_spawn_file_actions_addclose-tests: New file.
32222         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32224 2011-09-20  Bruno Haible  <bruno@clisp.org>
32226         Tests for module 'unlockpt'.
32227         * modules/unlockpt-tests: New file.
32228         * tests/test-unlockpt.c: New file.
32229         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32231         Tests for module 'grantpt'.
32232         * modules/grantpt-tests: New file.
32233         * tests/test-grantpt.c: New file.
32234         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32236 2011-09-20  Bruno Haible  <bruno@clisp.org>
32238         freopen tests: EBADF tests.
32239         * tests/test-freopen.c: Include errno.h, unistd.h.
32240         (main): Add tests for EBADF, commented out for the moment.
32242         fclose tests: EBADF tests.
32243         * tests/test-fclose.c (main): Add tests for EBADF.
32245         fflush tests: EBADF tests.
32246         * tests/test-fflush.c: Include errno.h, macros.h.
32247         (main): Add tests for EBADF.
32249         ftello tests: EBADF tests.
32250         * tests/test-ftello4.sh: New file.
32251         * tests/test-ftello4.c: New file.
32252         * modules/ftello-tests (Files): Add them.
32253         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32255         fseeko tests: EBADF tests.
32256         * tests/test-fseeko4.sh: New file.
32257         * tests/test-fseeko4.c: New file.
32258         * modules/fseeko-tests (Files): Add them.
32259         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32261         Tests for function fputc().
32262         * modules/fputc-tests: New file.
32263         * tests/test-fputc.c: New file.
32264         * modules/stdio-tests (Depends-on): Add fputc-tests.
32266         Tests for function fgetc().
32267         * modules/fgetc-tests: New file.
32268         * tests/test-fgetc.c: New file.
32269         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32271         Tests for function fdopen().
32272         * modules/fdopen-tests: New file.
32273         * tests/test-fdopen.c: New file.
32274         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32276         Tests for module 'vdprintf'.
32277         * modules/vdprintf-tests: New file.
32278         * tests/test-vdprintf.c: New file.
32280         Tests for module 'dprintf'.
32281         * modules/dprintf-tests: New file.
32282         * tests/test-dprintf.c: New file.
32284 2011-09-20  Bruno Haible  <bruno@clisp.org>
32286         Tests for module 'ioctl'.
32287         * modules/ioctl-tests: New file.
32288         * tests/test-ioctl.c: New file.
32290 2011-09-20  Bruno Haible  <bruno@clisp.org>
32292         fcntl tests: EBADF tests.
32293         * tests/test-fcntl.c (main): Add more tests for EBADF.
32295 2011-09-20  Bruno Haible  <bruno@clisp.org>
32297         utimensat tests: EBADF tests.
32298         * tests/test-utimensat.c (main): Add tests for EBADF.
32300         renameat tests: EBADF tests.
32301         * tests/test-renameat.c (main): Add tests for EBADF.
32303         mkfifoat tests: EBADF tests.
32304         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32306         readlinkat tests: EBADF tests.
32307         * tests/test-readlinkat.c (main): Add tests for EBADF.
32309         symlinkat tests: EBADF tests.
32310         * tests/test-symlinkat.c (main): Add tests for EBADF.
32312         linkat tests: EBADF tests.
32313         * tests/test-linkat.c (main): Add tests for EBADF.
32315         Tests for module 'faccessat'.
32316         * modules/faccessat-tests: New file.
32317         * tests/test-faccessat.c: New file.
32319         fdopendir tests: EBADF tests.
32320         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32322         openat tests: EBADF tests.
32323         * tests/test-fchownat.c (main): Add tests for EBADF.
32324         * tests/test-fstatat.c (main): Likewise.
32325         * tests/test-mkdirat.c (main): Likewise.
32326         * tests/test-openat.c (main): Likewise.
32327         * tests/test-unlinkat.c (main): Likewise.
32328         * tests/test-fchmodat.c: New file.
32329         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32330         (Makefile.am): Also run 'test-fchmodat'.
32332 2011-09-20  Bruno Haible  <bruno@clisp.org>
32334         utimens, futimens, fdutimensat tests: EBADF tests.
32335         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32337         Tests for function fstat().
32338         * modules/fstat-tests: New file.
32339         * tests/test-fstat.c: New file.
32340         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32342 2011-09-20  Bruno Haible  <bruno@clisp.org>
32344         test-ttyname_r tests: EBADF tests.
32345         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32347         Tests for module 'isatty'.
32348         * modules/isatty-tests: New file.
32349         * tests/test-isatty.c: New file.
32351         Tests for module 'write'.
32352         * modules/write-tests: New file.
32353         * tests/test-write.c: New file.
32355         Tests for module 'read'.
32356         * modules/read-tests: New file.
32357         * tests/test-read.c: New file.
32359         pwrite tests: EBADF tests.
32360         * tests/test-pwrite.c (main): Add tests for EBADF.
32362         pread tests: EBADF tests.
32363         * tests/test-pread.c (main): Add tests for EBADF.
32365         lseek tests: EBADF tests.
32366         * tests/test-lseek.c (main): Add more tests for EBADF.
32368         Tests for module 'ftruncate'.
32369         * modules/ftruncate-tests: New file.
32370         * tests/test-ftruncate.sh: New file.
32371         * tests/test-ftruncate.c: New file.
32373         fsync tests: EBADF tests.
32374         * tests/test-fsync.c (main): Add more tests for EBADF.
32376         fdatasync tests: EBADF tests.
32377         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32379         Tests for module 'fchown'.
32380         * modules/fchown-tests: New file.
32381         * tests/test-fchown.c: New file.
32383         Tests for module 'fchmod'.
32384         * modules/fchmod-tests: New file.
32385         * tests/test-fchmod.c: New file.
32387         fchdir tests: EBADF tests.
32388         * tests/test-fchdir.c (main): Add more tests for EBADF.
32390         dup2 tests: EBADF tests.
32391         * tests/test-dup2.c (main): Add more tests for EBADF.
32393         Tests for module 'dup'.
32394         * modules/dup-tests: New file.
32395         * tests/test-dup.c: New file.
32397         Tests for module 'close'.
32398         * modules/close-tests: New file.
32399         * tests/test-close.c: New file.
32401 2011-09-20  Bruno Haible  <bruno@clisp.org>
32403         Tests for module 'shutdown'.
32404         * modules/shutdown-tests: New file.
32405         * tests/test-shutdown.c: New file.
32407         Tests for module 'setsockopt'.
32408         * modules/setsockopt-tests: New file.
32409         * tests/test-setsockopt.c: New file.
32411         Tests for module 'sendto'.
32412         * modules/sendto-tests: New file.
32413         * tests/test-sendto.c: New file.
32415         Tests for module 'send'.
32416         * modules/send-tests: New file.
32417         * tests/test-send.c: New file.
32419         Tests for module 'recvfrom'.
32420         * modules/recvfrom-tests: New file.
32421         * tests/test-recvfrom.c: New file.
32423         Tests for module 'recv'.
32424         * modules/recv-tests: New file.
32425         * tests/test-recv.c: New file.
32427         Tests for module 'listen'.
32428         * modules/listen-tests: New file.
32429         * tests/test-listen.c: New file.
32431         Tests for module 'getsockopt'.
32432         * modules/getsockopt-tests: New file.
32433         * tests/test-getsockopt.c: New file.
32435         Tests for module 'getsockname'.
32436         * modules/getsockname-tests: New file.
32437         * tests/test-getsockname.c: New file.
32439         Tests for module 'getpeername'.
32440         * modules/getpeername-tests: New file.
32441         * tests/test-getpeername.c: New file.
32443         Tests for module 'connect'.
32444         * modules/connect-tests: New file.
32445         * tests/test-connect.c: New file.
32447         Tests for module 'bind'.
32448         * modules/bind-tests: New file.
32449         * tests/test-bind.c: New file.
32451         accept4 tests: Fix for native Windows.
32452         * tests/test-accept4.c: Include sockets.h.
32453         (main): Invoke gl_sockets_startup.
32454         * modules/accept4-tests (Depends-on): Add sockets.
32456         accept tests: Fix for native Windows.
32457         * tests/test-accept.c: Include sockets.h.
32458         (main): Invoke gl_sockets_startup.
32459         * modules/accept-tests (Depends-on): Add sockets.
32461 2011-09-19  Bruno Haible  <bruno@clisp.org>
32463         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32464         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32465         do...while(0).
32466         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32467         Suggested by Paul Eggert.
32469 2011-09-19  Bruno Haible  <bruno@clisp.org>
32471         sched: Ensure pid_t is defined.
32472         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32473         not define pid_t.
32474         * lib/sched.in.h: Include <sys/types.h>.
32475         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32478 2011-09-19  Bruno Haible  <bruno@clisp.org>
32480         msvc-inval: Ensure the entire expansion is a single statement.
32481         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32482         of braces.
32484 2011-09-19  Jim Meyering  <meyering@redhat.com>
32486         tests: use printf, not echo in init.sh's warn_ function
32487         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32488         misbehave when given strings containing a backslash or starting
32489         with e.g., -n.  James Youngman suggested setting IFS.
32491 2011-09-19  Eric Blake  <eblake@redhat.com>
32493         futimens: enhance test
32494         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32495         closed non-negative fd.
32497         date: accept 'hence' as opposite of 'ago'
32498         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32499         * tests/test-parse-datetime.c (main): Enhance test.
32500         Suggested by Jesse Wilson.
32502 2011-09-19  Jim Meyering  <meyering@redhat.com>
32504         getcwd: don't fail in a deep directory on a system without openat
32505         Before this change, getcwd would fail when called from a directory
32506         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32507         the non-openat implementation used "..", "../..", "../../..", etc.
32508         to access ancestor directories.  With too many, that string would
32509         be longer than PATH_MAX.
32510         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32511         using gnulib's openat replacement.
32512         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32513         we're using the replacement function.
32515 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32517         maint.mk: avoid warnings from perl about missing files
32518         * top/maint.mk (def_sym_regex): Ignore files listed in
32519         $(gl_other_headers_) that do not exist, say because a project
32520         does not use a corresponding module.
32522 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32524         stat: use pathmax.h only if needed
32525         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32526         This is better for Emacs, which does not have a mingw port and
32527         therefore can avoid the pathmax module.
32529         utimens: remove dependency on dup2
32530         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32531         to work around the Linux kernel bug.
32532         * modules/utimens (Depends-on): Remove dup2.
32534 2011-09-18  Bruno Haible  <bruno@clisp.org>
32536         inet_ntop, inet_pton: Look for it also in libresolv.
32537         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32538         libnsl, search for it in libresolv.
32539         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32540         Needed on Solaris 7.
32542 2011-09-18  Bruno Haible  <bruno@clisp.org>
32544         accept, accept4 tests: Avoid link error on Solaris.
32545         * modules/accept-tests (Makefile.am): Link test-accept against
32546         $(LIBSOCKET).
32547         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32548         $(LIBSOCKET).
32550         accept4: Avoid link error on Solaris.
32551         * modules/accept4 (Link): New section.
32553         socket functions: Avoid link errors on Solaris.
32554         * modules/accept (Depends-on): Add socketlib.
32555         (Link): New section.
32556         * modules/bind (Depends-on): Add socketlib.
32557         (Link): New section.
32558         * modules/connect (Depends-on): Add socketlib.
32559         (Link): New section.
32560         * modules/getpeername (Depends-on): Add socketlib.
32561         (Link): New section.
32562         * modules/getsockname (Depends-on): Add socketlib.
32563         (Link): New section.
32564         * modules/getsockopt (Depends-on): Add socketlib.
32565         (Link): New section.
32566         * modules/listen (Depends-on): Add socketlib.
32567         (Link): New section.
32568         * modules/recv (Depends-on): Add socketlib.
32569         (Link): New section.
32570         * modules/recvfrom (Depends-on): Add socketlib.
32571         (Link): New section.
32572         * modules/send (Depends-on): Add socketlib.
32573         (Link): New section.
32574         * modules/sendto (Depends-on): Add socketlib.
32575         (Link): New section.
32576         * modules/setsockopt (Depends-on): Add socketlib.
32577         (Link): New section.
32578         * modules/shutdown (Depends-on): Add socketlib.
32579         (Link): New section.
32580         * modules/socket (Depends-on): Add socketlib.
32581         (Link): New section.
32583 2011-09-18  Bruno Haible  <bruno@clisp.org>
32585         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32586         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32587         than 5 seconds.
32588         * modules/ptsname-tests (configure.ac): Test for alarm.
32590 2011-09-18  Bruno Haible  <bruno@clisp.org>
32592         posix_spawn_file_actions_add*: Fix module dependencies.
32593         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32594         posix_spawn_file_actions_init.
32595         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32596         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32598 2011-09-18  Bruno Haible  <bruno@clisp.org>
32600         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32601         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32602         * tests/test-renameat.c (main): Likewise.
32604 2011-09-18  Bruno Haible  <bruno@clisp.org>
32606         Tests for module 'accept4'.
32607         * modules/accept4-tests: New file.
32608         * tests/test-accept4.c: New file.
32610 2011-09-18  Bruno Haible  <bruno@clisp.org>
32612         Tests for module 'accept'.
32613         * modules/accept-tests: New file.
32614         * tests/test-accept.c: New file.
32616 2011-09-18  Bruno Haible  <bruno@clisp.org>
32618         dup2: Support for MSVC.
32619         * lib/dup2.c: Include msvc-inval.h.
32620         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32621         _get_osfhandle calls.
32622         * modules/dup2 (Depends-on): Add msvc-inval.
32623         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32625         New module 'msvc-inval'.
32626         * lib/msvc-inval.h: New file.
32627         * lib/msvc-inval.c: New file.
32628         * m4/msvc-inval.m4: New file.
32629         * modules/msvc-inval: New file.
32631 2011-09-17  Bruno Haible  <bruno@clisp.org>
32633         Tests for module 'pclose'.
32634         * modules/pclose-tests: New file.
32636         New module 'pclose'.
32637         * lib/stdio.in.h (pclose): New declaration.
32638         * lib/pclose.c: New file.
32639         * m4/pclose.m4: New file.
32640         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32641         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32642         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32643         * modules/pclose: New file.
32644         * modules/popen-tests (Depends-on): Add pclose.
32645         * modules/popen-safer-tests (Depends-on): Likewise.
32646         * doc/posix-functions/pclose.texi: Mention the new module.
32648 2011-09-17  Bruno Haible  <bruno@clisp.org>
32650         popen: Support for MSVC.
32651         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32652         * lib/popen.c (popen): Provide alternate definition for native Windows.
32653         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32655         * modules/popen (Depends-on, configure.ac): Update condition.
32656         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32657         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32658         fixed.
32660 2011-09-17  Bruno Haible  <bruno@clisp.org>
32662         isnanl, isnand, isnanf: Work around MSVC bug.
32663         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32665 2011-09-17  Bruno Haible  <bruno@clisp.org>
32667         sys_socket tests: Fix recent mistake.
32668         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32670 2011-09-17  Bruno Haible  <bruno@clisp.org>
32672         putenv: Support for MSVC.
32673         * modules/putenv (Depends-on): Add environ.
32674         * lib/putenv.c (environ): Disable declaration.
32675         * lib/unistd.in.h: Update comment.
32677 2011-09-17  Bruno Haible  <bruno@clisp.org>
32679         math: Avoid macro redefinition warnings on MSVC.
32680         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32681         Undefine before redefining.
32683 2011-09-17  Bruno Haible  <bruno@clisp.org>
32685         doc: Mention functions which are declared as macros.
32686         * doc/posix-functions/*[fl].texi: Mention that some functions are
32687         defined as macros with arguments only.
32689 2011-09-17  Bruno Haible  <bruno@clisp.org>
32691         Add dependencies to new dirent related modules.
32692         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32693         * modules/fts (Depends-on): Likewise.
32694         * modules/glob (Depends-on): Likewise.
32695         * modules/savedir (Depends-on): Likewise.
32696         * modules/scandir (Depends-on): Likewise.
32697         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32698         * modules/fdopendir (Depends-on): Add opendir.
32700 2011-09-17  Bruno Haible  <bruno@clisp.org>
32702         inet_pton: Support for MSVC on Windows Vista or newer.
32703         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32704         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32705         HAVE_DECL_INET_PTON is defined.
32706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32707         On platforms with <winsock2.h>, test whether inet_pton is declared in
32708         <ws2tcpip.h>. If so, arrange to replace it.
32709         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32710         REPLACE_INET_PTON.
32711         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32712         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32713         (Depends-on, configure.ac): Update condition.
32714         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32716 2011-09-17  Bruno Haible  <bruno@clisp.org>
32718         inet_ntop: Support for MSVC on Windows Vista or newer.
32719         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32720         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32721         HAVE_DECL_INET_NTOP is defined.
32722         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32723         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32724         <ws2tcpip.h>. If so, arrange to replace it.
32725         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32726         REPLACE_INET_NTOP.
32727         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32728         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32729         (Depends-on, configure.ac): Update condition.
32730         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32732 2011-09-16  Eric Blake  <eblake@redhat.com>
32734         test-fsync: yet another enhancement
32735         * tests/test-fsync.c (main): Also test behavior on read-only text
32736         file.
32738 2011-09-16  Bruno Haible  <bruno@clisp.org>
32740         Enhance fsync, fdatasync tests.
32741         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32742         * tests/test-fdatasync.c (main): Likewise.
32744 2011-09-16  Bruno Haible  <bruno@clisp.org>
32746         Support for MSVC compiler: Ensure mode_t gets defined.
32747         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32748         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32750         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32751         * tests/test-fcntl-h.c: Check that mode_t is defined.
32752         * tests/test-sys_stat.c: Likewise.
32753         * tests/test-sys_types.c: Likewise.
32754         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32755         * doc/posix-headers/sys_stat.texi: Likewise.
32756         * doc/posix-headers/sys_types.texi: Likewise.
32758 2011-09-16  Bruno Haible  <bruno@clisp.org>
32760         sys_stat: Support for MSVC.
32761         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32762         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32763         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32764         MSVC.
32766 2011-09-16  Bruno Haible  <bruno@clisp.org>
32768         Support for MSVC compiler: Ensure off_t gets defined.
32769         * lib/unistd.in.h: Include <sys/types.h>.
32770         * tests/test-fcntl-h.c: Check that off_t is defined.
32771         * tests/test-sys_stat.c: Likewise.
32772         * tests/test-sys_types.c: Likewise.
32774 2011-09-16  Eric Blake  <eblake@redhat.com>
32776         fdatasync: port to Solaris
32777         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32778         * modules/fdatasync (Link): Document it.
32779         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32781         fdatasync: port to MacOS X 10.7
32782         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32783         declared.
32784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32785         * modules/unistd (Makefile.am): Substitute it.
32786         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32787         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32789         fdatasync: minor improvements
32790         * modules/fdatasync (Depends-on): Add condition for fsync.
32791         * lib/fdatasync.c (fdatasync): Add comment.
32792         * tests/test-unistd-c++.cc: Test fdatasync.
32794         unistd: update refs to newer POSIX
32795         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32796         Suggested by Bruno Haible.
32798         fdatasync: new module
32799         * modules/fsync (Description): Document difference to fdatasync.
32800         * modules/fdatasync: New module.
32801         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32802         * lib/fdatasync.c (fdatasync): Likewise.
32803         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32804         defaults.
32805         * modules/unistd (Makefile.am): Set witnesses.
32806         * lib/unistd.in.h (fdatasync): Declare.
32807         * MODULES.html.sh: Document it.
32808         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32809         * modules/fdatasync-tests: New test.
32810         * tests/test-fdatasync.c: Likewise.
32812 2011-09-16  Eric Blake  <eblake@redhat.com>
32814         test-fsync: enhance tests
32815         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32816         * tests/test-fsync.c (main): Enhance test.
32818 2011-09-15  Bruno Haible  <bruno@clisp.org>
32820         Support for MSVC compiler: Ensure ssize_t gets defined.
32821         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32822         * doc/posix-headers/stdio.texi: Likewise.
32823         * modules/stdio (Depends-on): Add ssize_t.
32824         * modules/sys_socket (Depends-on): Likewise.
32825         * modules/sys_types (Depends-on): Likewise.
32826         * modules/sys_uio (Depends-on): Likewise.
32827         * modules/unistd (Depends-on): Likewise.
32828         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32829         * tests/test-sys_types.c: Check that ssize_t is defined.
32831 2011-09-14  Bruno Haible  <bruno@clisp.org>
32833         Avoid using #, the m4 comment starter character, near brackets.
32834         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32835         delimiter character in sed expressions.
32836         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32837         Suggested by Eric Blake.
32839         Properly quote AC_CHECK_DECLS' 4th argument.
32840         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32841         argument.
32842         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32843         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32844         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32845         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32846         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32847         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32849         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32850         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32851         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32852         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32853         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32854         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32855         * m4/isinf.m4 (gl_ISINF): Likewise.
32856         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32857         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32858         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32859         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32860         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32861         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32862         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32863         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32864         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32865         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32866         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32869         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32871         Reported by Eric Blake.
32873         Properly quote AC_CHECK_DECL's 4th argument.
32874         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32875         argument.
32876         * m4/argp.m4 (gl_ARGP): Likewise.
32877         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32878         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32879         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32880         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32881         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32882         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32884         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32886         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32887         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32888         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32889         Reported by Eric Blake.
32891 2011-09-14  Eric Blake  <eblake@redhat.com>
32893         opendir: avoid compile warning
32894         * lib/opendir.c (includes): Always include errno.h.
32895         Reported by Tatsuro MATSUOKA.
32897 2011-09-14  Jim Meyering  <meyering@redhat.com>
32899         maint.mk: sc_tight_scope: propagate failure from sub-make
32900         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
32901         Reported by Martin von Gagern.
32903 2011-09-13  Bruno Haible  <bruno@clisp.org>
32905         tempname: Support for MSVC.
32906         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
32907         MSVC.
32908         * modules/tempname (Depends-on): Add fcntl-h.
32910 2011-09-13  Bruno Haible  <bruno@clisp.org>
32912         sys_time: Support for MSVC.
32913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
32914         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
32915         include <winsock2.h>.
32916         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
32917         function declarations that collide with POSIX.
32918         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
32919         (Makefile.am): Substitute HAVE_WINSOCK2_H.
32921 2011-09-13  Bruno Haible  <bruno@clisp.org>
32923         stat: Support for MSVC.
32924         * lib/stat.c: Include pathmax.h.
32925         * modules/stat (Depends-on): Add pathmax.
32927         pathmax: Support for native Windows.
32928         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
32930 2011-09-12  Bruno Haible  <bruno@clisp.org>
32932         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
32933         * lib/dirent.in.h (struct dirent): New type.
32934         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
32935         DT_WHT): New macros.
32936         (DIR): New type.
32937         (opendir, closedir): Declare only if the module 'opendir' is enabled.
32938         (readdir, rewinddir): New declarations.
32939         * lib/dirent-private.h: New file.
32940         * lib/opendir.c: New file.
32941         * lib/readdir.c: New file.
32942         * lib/rewinddir.c: New file.
32943         * lib/closedir.c: New file.
32944         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
32945         * m4/opendir.m4: New file.
32946         * m4/readdir.m4: New file.
32947         * m4/rewinddir.m4: New file.
32948         * m4/closedir.m4: New file.
32949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
32950         REPLACE_CLOSEDIR here.
32951         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
32952         readdir, rewinddir are declared.
32953         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
32954         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
32955         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32956         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
32957         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
32958         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
32959         * modules/opendir: New file.
32960         * modules/readdir: New file.
32961         * modules/rewinddir: New file.
32962         * modules/closedir: New file.
32963         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
32964         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
32965         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
32966         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
32967         * NEWS: Mention the 'fchdir' change.
32969 2011-09-11  Bruno Haible  <bruno@clisp.org>
32971         asm-underscore.m4: Support for MSVC.
32972         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
32973         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
32975 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
32977         Doc about crypt functions.
32978         * doc/posix-functions/crypt.texi: Expand range of glibc versions
32979         needing for _GNU_SOURCE to get crypt.
32980         * doc/posix-functions/encrypt.texi: Likewise.
32981         * doc/posix-functions/setkey.texi: Likewise.
32983 2011-09-11  Bruno Haible  <bruno@clisp.org>
32985         doc: Update regarding MSVC 9.
32986         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
32987         tested".
32988         * doc/posix-functions/*.texi: Update with info about MSVC 9.
32989         * doc/posix-headers/*.texi: Likewise.
32990         * doc/pastposix-functions/*.texi: Likewise.
32991         * doc/glibc-functions/*.texi: Likewise.
32992         * doc/glibc-headers/*.texi: Likewise.
32994 2011-09-11  Bruno Haible  <bruno@clisp.org>
32996         unistd et al.: Don't assume <unistd.h> exists.
32997         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
32998         does not exist.
32999         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33000         exist. But include <stdlib.h>.
33001         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33002         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33003         symlink() does not exist.
33004         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33005         include <io.h> instead.
33006         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33007         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33008         include <direct.h> instead.
33009         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33011         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33012         <io.h> instead.
33013         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33014         correctly if the system does not have hard links.
33015         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33016         <direct.h> instead.
33017         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33018         it when looking for function declarations.
33019         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33020         <direct.h> and <io.h> instead.
33021         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33023 2011-09-11  Bruno Haible  <bruno@clisp.org>
33025         strcase: Support for MSVC.
33026         * modules/strcase (Status, Notice): Remove obsoletion mark.
33027         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33028         * doc/posix-functions/strncasecmp.texi: Likewise.
33030         strings: Don't assume <strings.h> exists.
33031         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33032         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33033         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33034         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33036 2011-09-11  Bruno Haible  <bruno@clisp.org>
33038         dirent: Don't assume <dirent.h> exists.
33039         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33040         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33041         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33042         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33044 2011-09-11  Bruno Haible  <bruno@clisp.org>
33046         Fix wint_t on MSVC.
33047         * lib/wchar.in.h (wint_t): On MSVC, override it.
33048         * lib/wctype.in.h (wint_t): Likewise.
33049         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33050         MSVC.
33051         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33052         * doc/posix-headers/wctype.texi: Likewise.
33054 2011-09-11  Bruno Haible  <bruno@clisp.org>
33056         sys_types: Fix typo.
33057         * lib/sys_types.in.h: Fix typo in comment.
33058         Reported by Paul Eggert.
33060         Support for MSVC compiler: Ensure size_t gets defined.
33061         * modules/strings (Depends-on): Add 'sys_types'.
33062         * modules/sys_uio (Depends-on): Likewise.
33063         * lib/sys_uio.in.h: Update comment.
33065         C++ tests for module 'sys_types'.
33066         * modules/sys_types-c++-tests: New file.
33067         * tests/test-sys_types-c++.cc: New file.
33069         Tests for module 'sys_types'.
33070         * modules/sys_types-tests: New file.
33071         * tests/test-sys_types.c: New file.
33073         New module 'sys_types'.
33074         * lib/sys_types.in.h: New file.
33075         * m4/sys_types_h.m4: New file.
33076         * modules/sys_types: New file.
33077         * doc/posix-headers/sys_types.texi: Mention the new module and the
33078         size_t problem on MSVC 9.
33080 2011-09-11  Bruno Haible  <bruno@clisp.org>
33082         Support for MSVC compiler: Avoid division by a literal 0.
33083         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33085         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33086         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33087         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33088         * tests/infinity.h: New file.
33089         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33090         on MSVC.
33091         * tests/test-ceilf1.c: Include infinity.h.
33092         (main): Use Infinityf.
33093         * tests/test-ceil1.c: Include infinity.h.
33094         (main): Use Infinityd.
33095         * tests/test-ceill.c: Include infinity.h.
33096         (main): Use Infinityl.
33097         * tests/test-dprintf-posix.c: Include infinity.h.
33098         (test_function): Use Infinityd.
33099         * tests/test-floorf1.c: Include infinity.h.
33100         (main): Use Infinityf.
33101         * tests/test-floor1.c: Include infinity.h.
33102         (main): Use Infinityd.
33103         * tests/test-floorl.c: Include infinity.h.
33104         (main): Use Infinityl.
33105         * tests/test-fprintf-posix.c: Include infinity.h.
33106         (test_function): Use Infinityd.
33107         * tests/test-frexp.c: Include infinity.h.
33108         (main): Use Infinityd.
33109         * tests/test-frexpl.c: Include infinity.h.
33110         (main): Use Infinityl.
33111         * tests/test-isfinite.c: Include infinity.h.
33112         (test_isfinitef): Use Infinityf.
33113         (test_isfinited): Use Infinityd.
33114         (test_isfinitel): Use Infinityl.
33115         * tests/test-isinf.c: Include infinity.h.
33116         (test_isinff): Use Infinityf.
33117         (test_isinfd): Use Infinityd.
33118         (test_isinfl): Use Infinityl.
33119         * tests/test-isnan.c: Include infinity.h.
33120         (test_float): Use Infinityf.
33121         (test_double): Use Infinityd.
33122         (test_long_double): Use Infinityl.
33123         * tests/test-isnanf.h: Include infinity.h.
33124         (main): Use Infinityf.
33125         * tests/test-isnand.h: Include infinity.h.
33126         (main): Use Infinityd.
33127         * tests/test-isnanl.h: Include infinity.h.
33128         (main): Use Infinityl.
33129         * tests/test-ldexpl.c: Include infinity.h.
33130         (main): Use Infinityl.
33131         * tests/test-printf-posix.h: Include infinity.h.
33132         (test_function): Use Infinityd.
33133         * tests/test-roundf1.c: Include infinity.h.
33134         (main): Use Infinityf.
33135         * tests/test-round1.c: Include infinity.h.
33136         (main): Use Infinityd.
33137         * tests/test-roundl.c: Include infinity.h.
33138         (main): Use Infinityl.
33139         * tests/test-signbit.c: Include infinity.h.
33140         (test_signbitf): Use Infinityf.
33141         (test_signbitd): Use Infinityd.
33142         (test_signbitl): Use Infinityl.
33143         * tests/test-snprintf-posix.h: Include infinity.h.
33144         (test_function): Use Infinityd, Infinityl.
33145         * tests/test-sprintf-posix.h: Include infinity.h.
33146         (test_function): Use Infinityd, Infinityl.
33147         * tests/test-truncf1.c: Include infinity.h.
33148         (main): Use Infinityf.
33149         * tests/test-trunc1.c: Include infinity.h.
33150         (main): Use Infinityd.
33151         * tests/test-truncl.c: Include infinity.h.
33152         (main): Use Infinityl.
33153         * tests/test-vasnprintf-posix.c: Include infinity.h.
33154         (test_function): Use Infinityd, Infinityl.
33155         * tests/test-vasprintf-posix.c: Include infinity.h.
33156         (test_function): Use Infinityd, Infinityl.
33157         * modules/ceilf-tests (Files): Add tests/infinity.h.
33158         * modules/ceil-tests (Files): Likewise.
33159         * modules/ceill-tests (Files): Likewise.
33160         * modules/dprintf-posix-tests (Files): Likewise.
33161         * modules/floorf-tests (Files): Likewise.
33162         * modules/floor-tests (Files): Likewise.
33163         * modules/floorl-tests (Files): Likewise.
33164         * modules/fprintf-posix-tests (Files): Likewise.
33165         * modules/frexp-tests (Files): Likewise.
33166         * modules/frexp-nolibm-tests (Files): Likewise.
33167         * modules/frexpl-tests (Files): Likewise.
33168         * modules/frexpl-nolibm-tests (Files): Likewise.
33169         * modules/isfinite-tests (Files): Likewise.
33170         * modules/isinf-tests (Files): Likewise.
33171         * modules/isnan-tests (Files): Likewise.
33172         * modules/isnanf-tests (Files): Likewise.
33173         * modules/isnanf-nolibm-tests (Files): Likewise.
33174         * modules/isnand-tests (Files): Likewise.
33175         * modules/isnand-nolibm-tests (Files): Likewise.
33176         * modules/isnanl-tests (Files): Likewise.
33177         * modules/isnanl-nolibm-tests (Files): Likewise.
33178         * modules/ldexpl-tests (Files): Likewise.
33179         * modules/printf-posix-tests (Files): Likewise.
33180         * modules/roundf-tests (Files): Likewise.
33181         * modules/round-tests (Files): Likewise.
33182         * modules/roundl-tests (Files): Likewise.
33183         * modules/signbit-tests (Files): Likewise.
33184         * modules/snprintf-posix-tests (Files): Likewise.
33185         * modules/sprintf-posix-tests (Files): Likewise.
33186         * modules/truncf-tests (Files): Likewise.
33187         * modules/trunc-tests (Files): Likewise.
33188         * modules/truncl-tests (Files): Likewise.
33189         * modules/vasnprintf-posix-tests (Files): Likewise.
33190         * modules/vasprintf-posix-tests (Files): Likewise.
33191         * modules/vdprintf-posix-tests (Files): Likewise.
33192         * modules/vfprintf-posix-tests (Files): Likewise.
33193         * modules/vprintf-posix-tests (Files): Likewise.
33194         * modules/vsnprintf-posix-tests (Files): Likewise.
33195         * modules/vsprintf-posix-tests (Files): Likewise.
33196         * modules/xprintf-posix-tests (Files): Likewise.
33198 2011-09-11  Bruno Haible  <bruno@clisp.org>
33200         Ensure pid_t gets defined.
33201         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33202         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33203         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33204         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33205         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33206         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33207         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33208         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33209         * tests/test-fcntl-h.c: Check that pid_t is defined.
33210         * tests/test-sched.c: Likewise.
33211         * tests/test-termios.c: Likewise.
33212         * tests/test-time.c: Likewise.
33213         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33214         * doc/posix-headers/signal.texi: Likewise.
33215         * doc/posix-headers/sys_types.texi: Likewise.
33216         * doc/posix-headers/time.texi: Likewise.
33218 2011-09-11  Bruno Haible  <bruno@clisp.org>
33220         acl: Fix compilation on Solaris 10 (older version).
33221         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33222         of ACE_EVERYONE.
33223         * lib/set-mode-acl.c (qset_acl): Likewise.
33224         Reported by Christian Jullien <eligis@orange.fr>.
33226 2011-09-10  Bruno Haible  <bruno@clisp.org>
33228         iconv, unsetenv: Add support for MSVC compiler.
33229         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33230         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33232 2011-09-10  Bruno Haible  <bruno@clisp.org>
33234         *printf: Add support for MSVC compiler.
33235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33236         handles the exception caused by the %n directive. When cross-compiling,
33237         guess no on native Windows.
33238         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33239         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33240         emulate it through vsnprintf.
33241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33242         * doc/posix-functions/dprintf.texi: Update documentation regarding
33243         MSVC 9.
33244         * doc/posix-functions/fprintf.texi: Likewise.
33245         * doc/posix-functions/printf.texi: Likewise.
33246         * doc/posix-functions/snprintf.texi: Likewise.
33247         * doc/posix-functions/sprintf.texi: Likewise.
33248         * doc/posix-functions/swprintf.texi: Likewise.
33249         * doc/posix-functions/vdprintf.texi: Likewise.
33250         * doc/posix-functions/vfprintf.texi: Likewise.
33251         * doc/posix-functions/vprintf.texi: Likewise.
33252         * doc/posix-functions/vsnprintf.texi: Likewise.
33253         * doc/posix-functions/vsprintf.texi: Likewise.
33254         * doc/glibc-functions/asprintf.texi: Likewise.
33255         * doc/glibc-functions/obstack_printf.texi: Likewise.
33256         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33257         * doc/glibc-functions/vasprintf.texi: Likewise.
33259 2011-09-10  Bruno Haible  <bruno@clisp.org>
33261         nocrash: Add support for native Windows.
33262         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33264 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33265             Bruno Haible  <bruno@clisp.org>
33267         absolute-header, include-next: Add support for MSVC compiler.
33268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33269         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33270         directory separator in #line directives.
33271         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33272         recognize also backslash as directory separator in #line directives.
33274 2011-09-08  Jim Meyering  <meyering@redhat.com>
33276         maint.mk: mark the post-release commit log with "maint: " prefix
33277         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33278         one-line commit-log summary.
33280 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33281             Bruno Haible  <bruno@clisp.org>
33283         Doc about crypt functions.
33284         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33285         systems.
33286         * doc/posix-functions/encrypt.texi: Likewise.
33287         * doc/posix-functions/setkey.texi: Likewise.
33289 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33291         * lib/gc.h: Fix copyright header.
33293 2011-09-07  Bruno Haible  <bruno@clisp.org>
33295         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33296         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33297         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33299 2011-09-07  Bruno Haible  <bruno@clisp.org>
33301         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33302         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33303         * lib/freopen.c: Likewise.
33304         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33305         * lib/lstat.c: Likewise.
33306         * lib/stat.c: Likewise.
33307         * lib/open.c: Use different syntax for include of <fcntl.h>.
33308         * lib/openat.c: Include fcntl.h again, explicitly.
33310 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33312         parse-datetime: document the newly accepted format
33313         * doc/parse-datetime.texi (Combined date and time of day items):
33314         New section.
33316 2011-09-06  Bruno Haible  <bruno@clisp.org>
33318         acl: Fix a test failure on newer Solaris 10 with ZFS.
33319         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33320         ENOSYS as no ACL.
33321         Reported by Jim Meyering.
33323 2011-09-06  Bruno Haible  <bruno@clisp.org>
33325         acl: Update for AIX >= 5.3 with NFS.
33326         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33327         ENOSYS as no ACL.
33329         acl: Fix a test failure on AIX >= 5.3 with NFS.
33330         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33331         as no ACL.
33333 2011-09-06  Bruno Haible  <bruno@clisp.org>
33335         acl: Fix a test failure on IRIX 6.5 with NFS.
33336         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33337         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33338         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33339         * lib/copy-acl.c (qcopy_acl): Likewise.
33341 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33343         openat: port to AIX 7.1 with large files
33344         AIX 7.1 does a "#define openat open64at" if large files are in use,
33345         so we can't simply #undef openat.  Use the orig_openat trick (similar
33346         to orig_open in lib/open.c) to work around the problem.  Problem
33347         reported by Kevin Brott for GNU tar, in the thread containing
33348         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33349         * lib/openat.c (__need_system_fcntl_h): Define first.
33350         Include <fcntl.h> and <sys/types.h> before undefining.
33351         (orig_openat) [HAVE_OPENAT]: New inline function.
33352         (openat) [HAVE_OPENAT]: Do not undef.
33353         (rpl_openat): Use orig_openat, not openat.
33355 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33356             Bruno Haible  <bruno@clisp.org>
33358         acl: Avoid errors on NonStop Kernel.
33359         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33360         ENOTSUP errors.
33362 2011-09-05  Bruno Haible  <bruno@clisp.org>
33364         acl: Clean up Solaris code.
33365         * lib/acl-internal.h: Remove no-op #if.
33366         * lib/file-has-acl.c: Likewise.
33367         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33368         * lib/copy-acl.c (qcopy_acl): Likewise.
33370 2011-09-05  Bruno Haible  <bruno@clisp.org>
33372         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33373         binaries built on the original Solaris 10.
33374         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33375         trivial.
33377 2011-09-05  Bruno Haible  <bruno@clisp.org>
33379         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33380         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33381         10.
33382         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33383         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33384         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33385         instead of acl_get, facl_get, acl_set, facl_set.
33387 2011-09-05  Bruno Haible  <bruno@clisp.org>
33389         copy-file: Try unit tests on more file systems.
33390         * tests/test-copy-file-1.sh: New file.
33391         * tests/test-copy-file-2.sh: New file.
33392         * modules/copy-file-tests (Files): Add them.
33393         (Makefile.am): Add them to TESTS.
33395         acl: Try unit tests on more file systems.
33396         * tests/test-file-has-acl-1.sh: New file.
33397         * tests/test-file-has-acl-2.sh: New file.
33398         * tests/test-set-mode-acl-1.sh: New file.
33399         * tests/test-set-mode-acl-2.sh: New file.
33400         * tests/test-copy-acl-1.sh: New file.
33401         * tests/test-copy-acl-2.sh: New file.
33402         * modules/acl-tests (Files): Add them.
33403         (Makefile.am): Add them to TESTS.
33405 2011-09-04  Bruno Haible  <bruno@clisp.org>
33407         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33408         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33409         10.
33410         (OLD_ALLOW, OLD_DENY): New macros.
33411         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33412         ACE_ACCESS_ALLOWED_ACE_TYPE.
33413         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33414         ACE_ACCESS_DENIED_ACE_TYPE.
33415         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33416         (NEW_ACE_EXECUTE): Fix value.
33417         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33418         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33419         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33420         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33421         NEW_ACE_SYNCHRONIZE): New macros.
33422         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33423         instead of acl_fromtext, acl_set, facl_set.
33424         Fixes a coreutils/tests/cp/perm failure.
33426 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33428         openat: test for fstatat (..., 0) bug
33429         Further testing with tar suggests that fstatat (..., 0)
33430         does not work in general, on AIX 7.1; see
33431         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33432         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33433         replacement fstatat (which is what older AIX releases were using
33434         anyway).
33435         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33436         use is now changed to orig_fstatat.  This was probably the right
33437         thing to do anyway.
33438         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33439         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33440         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33441         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33442         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33443         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33444         if the bug is found.
33446         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33447         This tests for another fstatat bug on AIX 7.1:
33448         fstatat (AT_FDCWD, ..., 0) does not work.  See
33449         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33450         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33451         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33452         (rpl_fstatat): Adjust so that it works around either (or both)
33453         bugs if present.
33454         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33456 2011-09-03  Karl Berry  <karl@gnu.org>
33458         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33459         in index entries.
33461 2011-09-02  Bruno Haible  <bruno@clisp.org>
33463         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33464         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33465         values of AR, ARFLAGS, RANLIB.
33466         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33468 2011-09-02  Bruno Haible  <bruno@clisp.org>
33470         Find 'ar' program that fits with --host argument.
33471         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33473 2011-09-02  Bruno Haible  <bruno@clisp.org>
33475         tests: init.sh: Support any non-GNU diff.
33476         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33477         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33478         Solaris 8.
33480 2011-09-02  Bruno Haible  <bruno@clisp.org>
33482         tests: init.sh: work also with any non-GNU diff that supports -u
33483         * tests/init.sh: Relax check for diff -u support.
33484         Rather than checking for GNU diff via --version, simply check
33485         for support for -u itself.  Useful at least on OpenBSD 4.9,
33486         AIX 7.1, IRIX 6.5, and Solaris 10.
33488 2011-09-01  Bruno Haible  <bruno@clisp.org>
33490         strtoimax, strtoumax: Document problem on HP-UX 11.
33491         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33492         * doc/posix-functions/strtoumax.texi: Likewise.
33494 2011-09-01  Bruno Haible  <bruno@clisp.org>
33496         strtoumax: Avoid link error on OSF/1 with DTK cc.
33497         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33498         defined as a function.
33499         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33500         strtoumax is defined, not whether it is declared.
33502 2011-09-01  Bruno Haible  <bruno@clisp.org>
33504         strtoimax: Avoid link error on OSF/1 with DTK cc.
33505         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33506         defined as a function.
33507         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33508         strtoimax is defined, not whether it is declared.
33510 2011-09-01  Bruno Haible  <bruno@clisp.org>
33512         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33513         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33514         as a function.
33515         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33516         whether it is declared.
33518 2011-09-01  Bruno Haible  <bruno@clisp.org>
33520         imaxabs: Avoid link error on OSF/1 with DTK cc.
33521         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33522         as a function.
33523         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33524         whether it is declared.
33526 2011-09-01  Bruno Haible  <bruno@clisp.org>
33528         Tests for module 'strtoumax'.
33529         * modules/strtoumax-tests: New file.
33530         * tests/test-strtoumax.c: New file.
33532         Tests for module 'strtoimax'.
33533         * modules/strtoimax-tests: New file.
33534         * tests/test-strtoimax.c: New file.
33536         Tests for module 'imaxdiv'.
33537         * modules/imaxdiv-tests: New file.
33538         * tests/test-imaxdiv.c: New file.
33540         Tests for module 'imaxabs'.
33541         * modules/imaxabs-tests: New file.
33542         * tests/test-imaxabs.c: New file.
33544 2011-09-01  Bruno Haible  <bruno@clisp.org>
33546         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33547         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33548         pthread_create.
33550 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33552         openat: work around AIX 7.1 fstatat issue
33553         This should fix the problem that was not properly fixed
33554         in the previous change, dated 2011-08-30.
33555         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33556         __need_system_stat_h defined.
33557         (orig_fstatat) [HAVE_FSTATAT]: New function.
33558         (rpl_fstatat): Go back to the old way of doing things,
33559         except call orig_fstatat instead of fstatat.
33560         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33561         Remove unnecessary check whether fstatat fills in st_size etc.
33563 2011-09-01  Bruno Haible  <bruno@clisp.org>
33565         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33566         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33567         just include the system's header.
33569 2011-08-31  Jim Meyering  <meyering@redhat.com>
33571         tests: avoid spurious assertion failure in test-float.c on ppc64
33572         * tests/test-float.c (test_long_double): Comment out an assertion,
33573         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33574         with gcc-4.4.4.
33576         maint: indent with spaces, not TABs
33577         I need to get in the habit of running gnulib's "make check".
33578         Both of these would have been caught.
33579         * m4/largefile.m4: Indent with spaces, not TABs.
33580         * lib/parse-datetime.y (iso_8601_time): Likewise.
33581         Spotted by Pádraig Brady.
33583         test-parse-datetime.c: accommodate a relatively strict gcc warning
33584         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33585         to avoid a warning from gcc's -Werror=missing-declarations.
33586         Insert a few spaces-before-funcall-parenthesis.
33588 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33590         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33591         The parser now accepts ISO 8601 date-time strings with "T" as the
33592         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33593         with a space between the date and time strings.  Now it also parses
33594         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33595         variants like "2004-02-29T16:21:42.333-07:00"
33596         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33597         of day representation using the 'T' separator character.
33598         * doc/parse-datetime.texi (General date syntax): replace use of
33599         deprecated --iso-8601 option with --rfc-3339 in example of date
33600         command output formats that can be parsed.
33601         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33602         lib/parse-datetime.y.
33603         (gmt_offset): New function.
33604         (main): Add additional test cases to validate ISO8601 extended
33605         date and time of day parsing.
33607 2011-08-31  Bruno Haible  <bruno@clisp.org>
33609         freopen: Documentation.
33610         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33611         name.
33612         Reported by Claudio Bley <claudio.bley@gmail.com>.
33614 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33616         freopen: Don't crash if the filename argument is NULL.
33617         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33618         NULL.
33620 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33622         openat: work around AIX 7.1 fstatat bug
33623         Problem reported by Kevin Brott for GNU tar, in the thread containing
33624         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33625         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33626         FSTATAT_ST_SIZE_ETC_BROKEN.
33627         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33628         rpl_fstatat.
33629         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33630         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33631         AC_CHECK_FUNCS_ONCE for fstatat.
33632         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33633         fchmodat, mkdirat, openat and unlinkat.
33635 2011-08-30  Bruno Haible  <bruno@clisp.org>
33637         Avoid endless recursions if config.h includes some header files.
33638         * lib/fopen.c (__need_FILE): Define already before including config.h.
33639         * lib/freopen.c (__need_FILE): Likewise.
33640         * lib/open.c (__need_system_fcntl_h): Likewise.
33641         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33642         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33643         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33645 2011-08-25  Karl Berry  <karl@gnu.org>
33647         * config/srclist.txt (ylwrap): new try.
33648         * build-aux/ylwrap: new file.
33650 2011-08-23  Bruno Haible  <bruno@clisp.org>
33652         tmpdir: Use a good default directory on native Windows.
33653         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33654         (P_tmpdir): Default to _P_tmpdir on native Windows.
33655         (path_search): On native Windows, try the value returned by GetTempPath
33656         before trying P_tmpdir.
33657         * modules/tmpdir (Depends-on): Add pathmax.
33658         Suggested by John Darrington <john@darrington.wattle.id.au>.
33660 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33662         doc: fix typo in README-release
33663         * top/README-release: Capitalize first word of a sentence.
33665 2011-08-19  Jim Meyering  <meyering@redhat.com>
33667         fts: do not exhaust memory when processing million-entry directories
33668         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33669         directory would require about 256*N bytes of memory.  Thus, it was
33670         easy to construct a directory too large to be processed by any of
33671         those tools.  With this change, fts' maximum memory utilization is
33672         now limited to around 30MB.
33673         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33674         (fts_read): When we've processed the final entry (i.e., when
33675         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33676         using the parent entry to read any remaining entries.  Dispatch
33677         depending on what fts_build returns:
33678         - NULL+stop, aka failure: stop
33679         - NULL otherwise: move up in the dir hierarchy
33680         - non-NULL: handle this new entry
33681         (fts_build): Declare and use new local, continue_readdir.
33682         Prepare to be called from fts_read, when the entries
33683         from a partially-read directory have just been exhausted.
33684         In that case, we'll skip the opendir and instead use the parent's
33685         fts_dirp and derive dir_fd from that.
33686         Finally, in the readdir loop, if we read max_entries entries,
33687         exit the loop ensuring *not* to call closedir.  This is required
33688         so that fts_dirp can be reused on a subsequent call.
33689         Prompted by Ben England's report of memory exhaustion in find
33690         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33692         maint: fts: move decl of `dp' down into while loop; split a long line
33693         * lib/fts.c (fts_build): No semantic change.
33695         fts: add/use new struct member, fts_dirp
33696         We are about to use this to manage any directory with
33697         too many entries to read all of them into memory at once.
33698         To do that, we'll need to save the DIR* pointer in each
33699         affected FTSENT struct.
33700         * lib/fts_.h: Include <dirent.h>.
33701         (struct FTSENT) [fts_dirp]: New member.
33702         * lib/fts.c (closedir_and_clear): Define.
33703         Use it in place of closedir so that we are sure to
33704         clear the new fts_dirp member when done with it.
33705         (fts_alloc): Initialize the new member.
33706         (fts_lfree): Free, if needed.
33708         maint: fts: give __opendir2 a new parameter and rename
33709         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33710         than surreptitiously using sole caller's "dir_fd".
33711         (fts_opendir): Rename from __opendir2.
33713         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33714         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33716         maint: fts.c: correct off-by-one indentation
33717         * lib/fts.c (fts_build): Correct indentation, change style
33718         of a couple of block comments, and bracing style.
33720         maint: fts.c: move __opendir2 #define "up" out of function body
33721         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33723         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33724         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33725         out for a long time and besides was useful only on BSD systems.
33727 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33729         regex: port to Stratus OpenVOS
33730         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33731         define to empty, rather than attempting nonportable optimizations.
33732         Problem reported by Paul Green in:
33733         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33734         and fix suggested by Eric Blake in:
33735         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33737 2011-08-17  Eric Blake  <eblake@redhat.com>
33739         getcwd: fix test failures on mingw
33740         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33741         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33742         test if long directory cannot be created, and allow mingw errno.
33744         getcwd-lgpl: fix m4 to match relaxed test for BSD
33745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33746         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33747         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33748         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33749         signature problem.
33751         getcwd: fix compilation on mingw64
33752         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33753         getcwd.
33754         Reported by Marc-André Lureau.
33756         pipe2: silence compiler warning
33757         * lib/pipe2.c (pipe2): Hide label if it is not used.
33759 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33761         relocatable-prog: fix link error
33762         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33763         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33764         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33765         into modules/relocatable-lib without noticing that
33766         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33767         also needs to build relocatable.c.
33769 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33771         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33773         shell code: it contained a 'break' that was not in a loop.
33774         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33775         via a shell-language loop; this may have been true in old Autoconf
33776         versions, but it's not true in Autoconf 2.68.  I found this bug
33777         when testing coreutils git on Solaris 8, whose shell complains
33778         about the syntax error.
33780 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33782         * lib/base64.c: Fix comment to reference RFC 4648.
33783         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33784         <gvtulder@gmail.com>.
33786 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33788         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33790         po/Makefile.in.in: fix make -q problem
33791         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33792         rule, since there's no file named 'check-macro-version' and its
33793         use as a file breaks make -q.
33794         (all): Don't depend on check-macro-version.
33795         (CHECK_MACRO_VERSION): New macro.
33796         (stamp-po): Use it.
33798         configmake: fix make -q problem
33799         * modules/configmake (configmake.h): Update configmake.h's time stamp
33800         even if the file does not change.  Otherwise, 'make -q' fails.
33801         Problem reported by Simon Josefsson in
33802         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33804 2011-08-11  Jim Meyering  <meyering@redhat.com>
33806         git-version-gen: correct the advice in a comment
33807         * build-aux/git-version-gen: Correct comment.
33808         Don't recommend to list .tarball-version in .gitignore.
33810 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33812         base64: fix off-by-one buffer size bug
33813         Problem and (trivial) fix reported by Gijs van Tulder in
33814         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33815         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33816         * tests/test-base64.c (main): Catch the bug.
33818 2011-08-10  Eric Blake  <eblake@redhat.com>
33820         closein: correct comments
33821         * lib/closein.c (close_stdin): Improve comments.
33823 2011-08-09  Bruno Haible  <bruno@clisp.org>
33825         More tests for 'fseeko'.
33826         * tests/test-fseeko3.c: New file, from Eric Blake.
33827         * tests/test-fseeko3.sh: New file.
33828         * modules/fseeko-tests (Files): Add them.
33829         (TESTS): Add test-fseeko3.sh.
33830         (check_PROGRAMS): Add test-fseeko3.
33832 2011-08-09  Eric Blake  <eblake@redhat.com>
33834         fseeko: remove unneeded hack
33835         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33837         fseeko: fix bug on glibc
33838         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33839         Reported by John W. Eaton.
33841 2011-08-08  Bruno Haible  <bruno@clisp.org>
33843         unictype/base: Fix interoperability with preinstalled libunistring.
33844         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33845         Reported by Simon Josefsson.
33847 2011-08-08  Bruno Haible  <bruno@clisp.org>
33849         iswblank: Detect declaration correctly.
33850         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33851         AC_CHECK_DECLS invocation.
33853 2011-08-08  Bruno Haible  <bruno@clisp.org>
33855         tcgetsid: Detect declaration correctly.
33856         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33857         AC_CHECK_DECLS invocation.
33858         Reported by Simon Josefsson.
33860 2011-08-08  Eric Blake  <eblake@redhat.com>
33862         largefile: fix typo that regressed large file support
33863         * modules/largefile (configure.ac-early): Fix section name.
33865 2011-08-06  Karl Berry  <karl@gnu.org>
33867         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33868         a separate module.
33870 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33872         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33873         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33874         get prototype for free.
33876 2011-08-04  Bruno Haible  <bruno@clisp.org>
33878         Tests for module 'pathmax'.
33879         * modules/pathmax-tests: New file.
33880         * tests/test-pathmax.c: New file.
33882         canonicalize-lgpl: Support larger filenames on the Hurd.
33883         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33884         Reported by Paul Eggert.
33886         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33887         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33888         * lib/chdir-long.h: Include pathmax.h.
33889         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33890         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33891         (PATH_MAX): Remove code that is done by pathmax.h.
33892         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33893         * lib/tmpfile.c: Add a comment.
33894         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
33895         * modules/chdir-long (Depends-on): Add pathmax.
33896         * modules/getcwd (Depends-on): Add pathmax.
33897         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
33898         is not defined.
33899         * doc/posix-headers/limits.texi: Mention the pathmax module.
33900         * NEWS: Mention the change.
33902 2011-08-02  Bruno Haible  <bruno@clisp.org>
33904         pthread_sigmask: Actually use results of gl_THREADLIB.
33905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
33906         gl_THREADLIB, not gl_[]THREADLIB.
33907         Reported by Eric Blake.
33909 2011-08-02  Jim Meyering  <meyering@redhat.com>
33911         maint.mk: relax the default _gl_TS_function_match regexp
33912         * top/maint.mk (_gl_TS_function_match): Don't require at least one
33913         space between function name and "(" in an "extern" declaration.
33914         That would fail to match a decl with no space there: extern void foo();
33916 2011-07-31  Iain Nicol  <iain@thenicols.net>
33918         git-version-gen: document that EXTRA_DIST must include .version
33919         * build-aux/git-version-gen: In the how-to-use comment, document
33920         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
33921         will fail when run from an unpacked distribution tarball.
33923 2011-08-01  Bruno Haible  <bruno@clisp.org>
33925         wctype-h: Fix last change.
33926         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
33927         REPLACE_TOWLOWER to 0.
33928         Reported by Sam Steingold <sds@gnu.org>.
33930 2011-07-31  Bruno Haible  <bruno@clisp.org>
33932         frexpl: Update autoconf test.
33933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
33934         according to changes of 2011-06-20.
33936 2011-07-31  Bruno Haible  <bruno@clisp.org>
33938         sys_utsname: Add support for Minix.
33939         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
33940         <sys/utsname.h>.
33941         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33942         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
33944 2011-07-31  Bruno Haible  <bruno@clisp.org>
33946         strings: Add support for Minix.
33947         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
33948         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33949         * doc/posix-headers/strings.texi: Document the Minix problem.
33951 2011-07-31  Bruno Haible  <bruno@clisp.org>
33953         wctype-h: Add support for Minix.
33954         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33955         REPLACE_TOWLOWER.
33956         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
33957         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
33958         REPLACE_ISWCNTRL.
33960 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
33962         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
33963         This is a performance improvement for 64-bit hosts: it causes the
33964         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
33966 2011-07-31  Bruno Haible  <bruno@clisp.org>
33968         stdioext: Add support for Minix.
33969         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
33970         * lib/fpurge.c (fpurge): Likewise.
33971         * lib/freadahead.c (freadahead): Likewise.
33972         * lib/freadable.c (freadable): Likewise.
33973         * lib/freading.c (freading): Likewise.
33974         * lib/freadptr.c (freadptr): Likewise.
33975         * lib/freadseek.c (freadptrinc): Likewise.
33976         * lib/fseeko.c (rpl_fseeko): Likewise.
33977         * lib/fseterr.c (fseterr): Likewise.
33978         * lib/fwritable.c (fwritable): Likewise.
33979         * lib/fwriting.c (fwriting): Likewise.
33980         * lib/fflush.c (clear_ungetc_buffer): Update comment.
33981         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
33983 2011-07-31  Bruno Haible  <bruno@clisp.org>
33985         errno: Port to Minix.
33986         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
33987         ECONNABORTED are defined.
33988         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
33989         GNULIB_defined_ECONNABORTED): New macros.
33990         * lib/strerror-override.h (strerror_override): Test also
33991         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
33992         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
33993         ECONNABORTED.
33994         * doc/posix-headers/errno.texi: Mention the Minix problem.
33996 2011-07-31  Bruno Haible  <bruno@clisp.org>
33998         Work around declaration collisions on Minix.
33999         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34000         defined, set REPLACE_MBSINIT.
34001         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34002         defined, set REPLACE_MBRTOWC.
34003         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34004         set REPLACE_MBRLEN.
34005         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34006         defined, set REPLACE_MBSRTOWCS.
34007         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34008         defined, set REPLACE_WCRTOMB.
34009         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34010         defined, set REPLACE_WCSRTOMBS.
34012 2011-07-31  Bruno Haible  <bruno@clisp.org>
34014         Add support for Minix with ACK compiler.
34015         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34016         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34017         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34019 2011-07-31  Bruno Haible  <bruno@clisp.org>
34021         Documentation about Minix.
34022         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34023         * doc/glibc-headers/*.texi: Likewise.
34024         * doc/posix-functions/*.texi: Likewise.
34025         * doc/glibc-functions/*.texi: Likewise.
34027 2011-07-31  Bruno Haible  <bruno@clisp.org>
34029         snippet/warn-on-use: Fix indentation.
34030         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34032 2011-07-25  Jim Meyering  <meyering@redhat.com>
34034         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34035         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34036         commands.
34038 2011-07-27  Jim Meyering  <meyering@redhat.com>
34040         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34041         * top/maint.mk (gl_extract_significant_defines_): Now that
34042         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34043         gnulib/lib/signal.in.h, and now that we recommend to
34044         define-if-undefined those two symbols in application code,
34045         we must filter them out of the "significant" list.
34046         This avoids a "make syntax-check" failure in coreutils.
34048 2011-07-26  Eric Blake  <eblake@redhat.com>
34050         warnings: add comments about previous patch
34051         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34052         * m4/include_next.m4: Likewise.
34053         * m4/warn-on-use.m4: Likewise.
34054         * m4/warnings.m4: Likewise, and simplify use.
34055         Suggested by Stefano Lattarini.
34057         include-next, warnings: support older autoconf
34058         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34059         AS_VAR_PUSHDEF in a way that works with older autoconf.
34060         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34061         Reported by Daniel P. Berrange.
34063 2011-07-25  Bruno Haible  <bruno@clisp.org>
34065         fseek, ftell: Fix doc.
34066         * doc/posix-functions/fseek.texi: Reword statement about
34067         AC_SYS_LARGEFILE.
34068         * doc/posix-functions/ftell.texi: Likewise.
34070 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34071             Bruno Haible  <bruno@clisp.org>
34073         Add dependencies to the 'largefile' module.
34074         * modules/fopen (Depends-on): Add 'largefile'.
34075         * modules/freopen (Depends-on): Likewise.
34076         * modules/fseeko (Depends-on): Likewise.
34077         * modules/ftello (Depends-on): Likewise.
34078         * modules/glob (Depends-on): Likewise.
34079         * modules/lseek (Depends-on): Likewise.
34080         * modules/lstat (Depends-on): Likewise.
34081         * modules/mkostemp (Depends-on): Likewise.
34082         * modules/mkostemps (Depends-on): Likewise.
34083         * modules/mkstemp (Depends-on): Likewise.
34084         * modules/mkstemps (Depends-on): Likewise.
34085         * modules/open (Depends-on): Likewise.
34086         * modules/openat (Depends-on): Likewise.
34087         * modules/pread (Depends-on): Likewise.
34088         * modules/pwrite (Depends-on): Likewise.
34089         * modules/scandir (Depends-on): Likewise.
34090         * modules/stat (Depends-on): Likewise.
34091         * modules/tmpfile (Depends-on): Likewise.
34092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34093         since the containing module now depends on the largefile module.
34094         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34095         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34096         off_t is fixed by gnulib.
34097         * doc/posix-functions/freopen.texi: Likewise.
34098         * doc/posix-functions/fseeko.texi: Likewise.
34099         * doc/posix-functions/fstatat.texi: Likewise.
34100         * doc/posix-functions/ftello.texi: Likewise.
34101         * doc/posix-functions/glob.texi: Likewise.
34102         * doc/posix-functions/lseek.texi: Likewise.
34103         * doc/posix-functions/lstat.texi: Likewise.
34104         * doc/posix-functions/mkstemp.texi: Likewise.
34105         * doc/posix-functions/open.texi: Likewise.
34106         * doc/posix-functions/openat.texi: Likewise.
34107         * doc/posix-functions/pread.texi: Likewise.
34108         * doc/posix-functions/pwrite.texi: Likewise.
34109         * doc/posix-functions/scandir.texi: Likewise.
34110         * doc/posix-functions/stat.texi: Likewise.
34111         * doc/posix-functions/tmpfile.texi: Likewise.
34112         * doc/glibc-functions/mkostemp.texi: Likewise.
34113         * doc/glibc-functions/mkostemps.texi: Likewise.
34114         * doc/glibc-functions/mkstemps.texi: Likewise.
34116 2011-07-25  Bruno Haible  <bruno@clisp.org>
34118         fcntl: Move AC_LIBOBJ invocation to module description.
34119         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34120         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34122         fcntl: Remove call-in from fchdir.m4.
34123         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34126         dup3: Remove potential call-in from fchdir.m4.
34127         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34130         dup2: Move AC_LIBOBJ invocation to module description.
34131         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34132         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34133         Don't invoke AC_LIBOBJ.
34134         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34136         dup2: Remove call-in from fchdir.m4.
34137         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34140         fclose: Move AC_LIBOBJ invocation to module description.
34141         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34142         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34143         to 1.
34144         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34146         fclose: Remove call-in from close.m4.
34147         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34148         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34150         close: Move AC_LIBOBJ invocation to module description.
34151         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34152         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34153         1.
34154         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34156         close: Remove call-in from fchdir.m4.
34157         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34160         open: Move AC_LIBOBJ invocation to module description.
34161         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34162         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34163         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34165         open: Remove call-in from fchdir.m4.
34166         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34169         fchdir: Start to remove gl_REPLACE_* idiom.
34170         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34171         (gl_FUNC_FCHDIR): Invoke it.
34173 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34175         * lib/ftell.c (ftell): Comment out cast.
34177         close: use gl_REPLACE_FCLOSE only if defined
34178         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34179         is defined.  The close module doesn't depend on the fclose module
34180         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34181         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34182         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34184 2011-07-24  Jim Meyering  <meyering@redhat.com>
34186         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34187         * tests/test-select.h (test_function): Declare as "static".
34189 2011-07-24  Bruno Haible  <bruno@clisp.org>
34191         doc: Mention the effects of AC_SYS_LARGEFILE.
34192         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34193         on this function.
34194         * doc/posix-functions/aio_error.texi: Likewise.
34195         * doc/posix-functions/aio_fsync.texi: Likewise.
34196         * doc/posix-functions/aio_read.texi: Likewise.
34197         * doc/posix-functions/aio_return.texi: Likewise.
34198         * doc/posix-functions/aio_suspend.texi: Likewise.
34199         * doc/posix-functions/aio_write.texi: Likewise.
34200         * doc/posix-functions/fgetpos.texi: Likewise.
34201         * doc/posix-functions/fopen.texi: Likewise.
34202         * doc/posix-functions/freopen.texi: Likewise.
34203         * doc/posix-functions/fsetpos.texi: Likewise.
34204         * doc/posix-functions/fstatvfs.texi: Likewise.
34205         * doc/posix-functions/ftruncate.texi: Likewise.
34206         * doc/posix-functions/ftw.texi: Likewise.
34207         * doc/posix-functions/getrlimit.texi: Likewise.
34208         * doc/posix-functions/glob.texi: Likewise.
34209         * doc/posix-functions/lio_listio.texi: Likewise.
34210         * doc/posix-functions/lockf.texi: Likewise.
34211         * doc/posix-functions/mkstemp.texi: Likewise.
34212         * doc/posix-functions/mmap.texi: Likewise.
34213         * doc/posix-functions/nftw.texi: Likewise.
34214         * doc/posix-functions/openat.texi: Likewise.
34215         * doc/posix-functions/opendir.texi: Likewise.
34216         * doc/posix-functions/posix_fadvise.texi: Likewise.
34217         * doc/posix-functions/posix_fallocate.texi: Likewise.
34218         * doc/posix-functions/pread.texi: Likewise.
34219         * doc/posix-functions/pwrite.texi: Likewise.
34220         * doc/posix-functions/readdir.texi: Likewise.
34221         * doc/posix-functions/readdir_r.texi: Likewise.
34222         * doc/posix-functions/rewinddir.texi: Likewise.
34223         * doc/posix-functions/scandir.texi: Likewise.
34224         * doc/posix-functions/seekdir.texi: Likewise.
34225         * doc/posix-functions/setrlimit.texi: Likewise.
34226         * doc/posix-functions/statvfs.texi: Likewise.
34227         * doc/posix-functions/telldir.texi: Likewise.
34228         * doc/posix-functions/tmpfile.texi: Likewise.
34229         * doc/posix-functions/truncate.texi: Likewise.
34230         * doc/glibc-functions/fallocate.texi: Likewise.
34231         * doc/glibc-functions/fstatfs.texi: Likewise.
34232         * doc/glibc-functions/fts_children.texi: Likewise.
34233         * doc/glibc-functions/fts_read.texi: Likewise.
34234         * doc/glibc-functions/getdirentries.texi: Likewise.
34235         * doc/glibc-functions/mkostemp.texi: Likewise.
34236         * doc/glibc-functions/mkostemps.texi: Likewise.
34237         * doc/glibc-functions/mkstemps.texi: Likewise.
34238         * doc/glibc-functions/preadv.texi: Likewise.
34239         * doc/glibc-functions/pwritev.texi: Likewise.
34240         * doc/glibc-functions/sendfile.texi: Likewise.
34241         * doc/glibc-functions/statfs.texi: Likewise.
34243 2011-07-24  Bruno Haible  <bruno@clisp.org>
34245         doc: Fix typo.
34246         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34248 2011-07-24  Bruno Haible  <bruno@clisp.org>
34250         doc: Mention fsusage.
34251         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34253 2011-07-24  Bruno Haible  <bruno@clisp.org>
34255         doc: Mention new glibc headers and functions.
34256         * doc/glibc-headers/gshadow.texi: New file.
34257         * doc/glibc-functions/endsgent.texi: New file.
34258         * doc/glibc-functions/fgetsgent.texi: New file.
34259         * doc/glibc-functions/fgetsgent_r.texi: New file.
34260         * doc/glibc-functions/getsgent.texi: New file.
34261         * doc/glibc-functions/getsgent_r.texi: New file.
34262         * doc/glibc-functions/getsgnam.texi: New file.
34263         * doc/glibc-functions/getsgnam_r.texi: New file.
34264         * doc/glibc-functions/putsgent.texi: New file.
34265         * doc/glibc-functions/setsgent.texi: New file.
34266         * doc/glibc-functions/sgetsgent.texi: New file.
34267         * doc/glibc-functions/sgetsgent_r.texi: New file.
34268         * doc/glibc-functions/malloc_info.texi: New file.
34269         * doc/glibc-functions/preadv.texi: New file.
34270         * doc/glibc-functions/pwritev.texi: New file.
34271         * doc/glibc-functions/register_printf_modifier.texi: New file.
34272         * doc/glibc-functions/register_printf_specifier.texi: New file.
34273         * doc/glibc-functions/register_printf_type.texi: New file.
34274         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34275         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34276         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34277         * doc/glibc-functions/pthread_getname_np.texi: New file.
34278         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34279         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34280         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34281         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34282         * doc/glibc-functions/pthread_setname_np.texi: New file.
34283         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34284         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34285         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34286         * doc/glibc-functions/qsort_r.texi: New file.
34287         * doc/glibc-functions/quick_exit.texi: New file.
34288         * doc/glibc-functions/syncfs.texi: New file.
34289         * doc/gnulib.texi: Include them.
34290         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34291         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34292         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34293         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34294         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34295         * doc/glibc-functions/execvpe.texi: Likewise.
34297 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34299         ftell: don't include <unistd.h>
34300         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34301         guaranteed to define off_t, and the ftell module depends on the
34302         stdio module.
34304         ftell: do not assume wraparound signed arithmetic
34305         * lib/ftell.c: Include <limits.h>.
34306         (ftell): Don't assume wraparound signed arithmetic.
34308 2011-07-24  Bruno Haible  <bruno@clisp.org>
34310         close: No longer depend on module 'fclose'.
34311         * modules/close (Depends-on): Remove fclose.
34312         * NEWS: Mention the change.
34313         Suggested by Sam Steingold <sds@gnu.org>.
34315 2011-07-24  Bruno Haible  <bruno@clisp.org>
34317         fsusage: Enable large volume support on AIX >= 5.2.
34318         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34319         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34320         instead of STAT_STATVFS.
34321         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34323         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34325         f_blocks field only on MacOS X.
34327         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34329         * modules/fsusage (Depends-on): Add largefile.
34331 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34333         * README: Modernize discussion of signed integers.
34334         Assuming overflow wraparound is no longer safe.
34335         Mention ones' complement and signed magnitude.
34337 2011-07-22  Bruno Haible  <bruno@clisp.org>
34339         select tests, pselect tests: Refactor.
34340         * tests/test-select.h: New file, extracted from tests/test-select.c.
34341         (select_fn): New type.
34342         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34343         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34344         test_pipe): Add my_select argument.
34345         (test_function): Renamed from main. Add my_select argument.
34346         * tests/test-select.c: Move most code to tests/test-select.h. Include
34347         test-select.h.
34348         * modules/select-tests (Files): Add tests/test-select.h.
34349         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34350         (my_select, main): New functions.
34351         * modules/pselect-tests (Files): Add tests/test-select.h,
34352         tests/macros.h, tests/signature.h.
34353         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34354         (configure.ac): Check for <sys/wait.h>.
34356 2011-07-22  Bruno Haible  <bruno@clisp.org>
34358         sys_select tests: Check the signature of FD_*.
34359         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34360         signature tests from here...
34361         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34362         here.
34363         * modules/sys_select-tests (Files): Add tests/signature.h.
34365 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34367         largefile: new module, replacing large-inode
34368         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34369         * MODULES.html.sh: Add largefile, remove large-inode.
34370         * modules/largefile, m4/largefile.m4: New files.
34371         * modules/large-inode, m4/large-inode.m4: Remove.
34373         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34375         implementations that use only 32 bits to count blocks.
34376         On typical hosts with 1024-byte blocks, this fails with file
34377         systems as small as 4 TiB.  Problem reported by Herb Wartens
34378         <http://debbugs.gnu.org/9140> and this should also fix a similar
34379         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34381         large-inode: New module
34382         * MODULES.html.sh: Add it.
34383         * modules/large-inode, m4/large-inode.m4: New files.
34385         extensions: Enable extensions on MacOS X 10.5 and later.
34386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34388 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34390         file-has-acl: use acl_extended_file_nofollow if available
34391         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34392         (acl_extended_file): New macro.
34393         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34394         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34396 2011-07-21  Bruno Haible  <bruno@clisp.org>
34398         Declare system functions in a way that works with C++.
34399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34400         declare fdopendir as extern "C".
34401         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34402         declare frexpl as extern "C".
34403         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34404         declare gai_strerror as extern "C".
34405         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34406         programs, declare gai_strerror as extern "C".
34407         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34408         declare getlogin_r as extern "C".
34409         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34410         as extern "C".
34411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34412         declare ldexpl as extern "C".
34413         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34414         as extern "C".
34415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34416         program, declare getmntinfo as extern "C".
34417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34418         stpncpy as extern "C".
34419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34420         program, declare __xpg_strerror_r as extern "C".
34421         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34422         strndup as extern "C".
34423         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34424         declare memset and bzero as extern "C".
34425         Reported by Sam Steingold <sds@gnu.org>.
34427 2011-07-12  Jim Meyering  <meyering@redhat.com>
34429         maint.mk: prohibit inclusion of "verify.h" without use
34430         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34432 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34434         timer-time: A new module to check for timer_settime()
34435         * m4/timer_time.m4: Check for the posix function.
34436         * modules/timer-time: Add the new module.
34437         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34438         Mention it.
34440 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34441             Bruno Haible  <bruno@clisp.org>
34443         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34445         not defined, assume POSIX threads and look for pthread_sigmask in
34446         $LIBS, without changing $CPPFLAGS.
34448 2011-07-19  Bruno Haible  <bruno@clisp.org>
34450         strstr: Update cross-compilation guess.
34451         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34452         CPUs, guess no, in view of glibc
34453         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34454         Suggested by Eric Blake. Reported by Reuben Thomas.
34456 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34458         getopt-gnu: suppress core dumps from detection code
34459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34460         to suppress core dumps that may well occur on glibc systems.
34461         * modules/getopt-gnu: Depend on nocrash.
34463 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34465         pthread_sigmask: ensure usleep is declared
34466         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34467         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34469 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34471         doc: Document NonStop portability issues.
34472         * doc/posix-functions/sigaction.texi (sigaction):
34473         * doc/posix-headers/signal.texi (signal.h):
34474         Document NonStop.  See Joachim Schmitz in
34475         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34477 2011-07-15  Bruno Haible  <bruno@clisp.org>
34479         ffsl, ffsll: Avoid unportable behaviour.
34480         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34482 2011-07-15  Bruno Haible  <bruno@clisp.org>
34484         ffs: More tests.
34485         * tests/test-ffs.c (NBITS): New macro.
34486         (main): Add more tests.
34487         * tests/test-ffsl.c (NBITS): New macro.
34488         (main): Add more tests.
34489         * tests/test-ffsll.c (NBITS): New macro.
34490         (main): Add more tests.
34492 2011-07-15  Eric Blake  <eblake@redhat.com>
34494         ffsl, ffsll: new modules
34495         * modules/ffsl: New file.
34496         * modules/ffsll: Likewise.
34497         * m4/ffsl.m4: Likewise.
34498         * m4/ffsll.m4: Likewise.
34499         * lib/ffsl.c: Likewise.
34500         * lib/ffsl.h: Likewise.
34501         * lib/ffsll.c: Likewise.
34502         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34503         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34504         * modules/string (Makefile.am): Substitute witnesses.
34505         * lib/strings.in.h (ffsl, ffsll): Declare.
34506         * modules/ffsl-tests: New test file.
34507         * modules/ffsll-tests: Likewise.
34508         * tests/test-ffsl.c: Likewise.
34509         * tests/test-ffsll.c: Likewise.
34510         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34511         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34512         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34514         ffs: fix m4 prerequisite
34515         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34517         ffs: avoid undefined behavior
34518         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34519         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34520         Reported by Bruno Haible.
34522 2011-07-12  Bruno Haible  <bruno@clisp.org>
34524         pthread_sigmask: Rely on module 'threadlib'.
34525         * modules/pthread_sigmask (Depends-on): Add threadlib.
34526         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34527         is defined.
34529 2011-07-12  Bruno Haible  <bruno@clisp.org>
34531         regex: Depend on module 'strcase'.
34532         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34534 2011-07-12  Jim Meyering  <meyering@redhat.com>
34536         warn-on-use: fix typo in file name
34537         * modules/snippet/warn-on-use (Files): Correct file name:
34538         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34540 2011-07-12  Bruno Haible  <bruno@clisp.org>
34542         strings: Document module.
34543         * doc/posix-headers/strings.texi: Mention module 'strings'.
34545 2011-07-12  Bruno Haible  <bruno@clisp.org>
34547         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34548         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34549         (Files, Makefile.am): Update.
34550         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34551         * modules/stdlib (Depends-on): Update.
34553 2011-07-12  Bruno Haible  <bruno@clisp.org>
34555         * NEWS: Mention the changes.
34557         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34558         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34559         (Files, Makefile.am): Update.
34560         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34561         * modules/arpa_inet (Depends-on): Update.
34562         * modules/ctype (Depends-on): Update.
34563         * modules/dirent (Depends-on): Update.
34564         * modules/fcntl-h (Depends-on): Update.
34565         * modules/glob (Depends-on): Update.
34566         * modules/iconv-h (Depends-on): Update.
34567         * modules/inttypes-incomplete (Depends-on): Update.
34568         * modules/langinfo (Depends-on): Update.
34569         * modules/locale (Depends-on): Update.
34570         * modules/math (Depends-on): Update.
34571         * modules/netdb (Depends-on): Update.
34572         * modules/poll-h (Depends-on): Update.
34573         * modules/pty (Depends-on): Update.
34574         * modules/search (Depends-on): Update.
34575         * modules/signal (Depends-on): Update.
34576         * modules/spawn (Depends-on): Update.
34577         * modules/stdio (Depends-on): Update.
34578         * modules/stdlib (Depends-on): Update.
34579         * modules/string (Depends-on): Update.
34580         * modules/strings (Depends-on): Update.
34581         * modules/sys_file (Depends-on): Update.
34582         * modules/sys_ioctl (Depends-on): Update.
34583         * modules/sys_select (Depends-on): Update.
34584         * modules/sys_socket (Depends-on): Update.
34585         * modules/sys_stat (Depends-on): Update.
34586         * modules/sys_time (Depends-on): Update.
34587         * modules/sys_times (Depends-on): Update.
34588         * modules/sys_utsname (Depends-on): Update.
34589         * modules/sys_wait (Depends-on): Update.
34590         * modules/termios (Depends-on): Update.
34591         * modules/time (Depends-on): Update.
34592         * modules/unistd (Depends-on): Update.
34593         * modules/wchar (Depends-on): Update.
34594         * modules/wctype-h (Depends-on): Update.
34595         * MODULES.html.sh (Support for building libraries and executables):
34596         Update.
34598         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34599         * modules/snippet/unused-parameter: Renamed from
34600         modules/unused-parameter.
34601         (Files, Makefile.am): Update.
34602         * build-aux/snippet/unused-parameter.h: Renamed from
34603         build-aux/unused-parameter.h.
34604         * modules/selinux-h (Depends-on): Update.
34605         * modules/unistr/base (Depends-on): Update.
34606         * MODULES.html.sh (Core language properties): Update.
34608         Rename module 'link-warning' to 'snippet/link-warning'.
34609         * modules/snippet/link-warning: Renamed from modules/link-warning.
34610         (Files, Makefile.am): Update.
34611         * build-aux/snippet/link-warning.h: Renamed from
34612         build-aux/link-warning.h.
34613         * MODULES.html.sh (Support for building libraries and executables):
34614         Update.
34616         Rename module 'c++defs' to 'snippet/c++defs'.
34617         * modules/snippet/c++defs: Renamed from modules/c++defs.
34618         (Files, Makefile.am): Update.
34619         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34620         * modules/arpa_inet (Depends-on): Update.
34621         * modules/ctype (Depends-on): Update.
34622         * modules/dirent (Depends-on): Update.
34623         * modules/fcntl-h (Depends-on): Update.
34624         * modules/glob (Depends-on): Update.
34625         * modules/iconv-h (Depends-on): Update.
34626         * modules/langinfo (Depends-on): Update.
34627         * modules/locale (Depends-on): Update.
34628         * modules/math (Depends-on): Update.
34629         * modules/netdb (Depends-on): Update.
34630         * modules/poll-h (Depends-on): Update.
34631         * modules/pty (Depends-on): Update.
34632         * modules/search (Depends-on): Update.
34633         * modules/signal (Depends-on): Update.
34634         * modules/spawn (Depends-on): Update.
34635         * modules/stdio (Depends-on): Update.
34636         * modules/stdlib (Depends-on): Update.
34637         * modules/string (Depends-on): Update.
34638         * modules/strings (Depends-on): Update.
34639         * modules/sys_ioctl (Depends-on): Update.
34640         * modules/sys_select (Depends-on): Update.
34641         * modules/sys_socket (Depends-on): Update.
34642         * modules/sys_stat (Depends-on): Update.
34643         * modules/sys_time (Depends-on): Update.
34644         * modules/sys_wait (Depends-on): Update.
34645         * modules/termios (Depends-on): Update.
34646         * modules/time (Depends-on): Update.
34647         * modules/unistd (Depends-on): Update.
34648         * modules/wchar (Depends-on): Update.
34649         * modules/wctype-h (Depends-on): Update.
34651         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34652         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34653         (Files, Makefile.am): Update.
34654         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34655         * modules/argv-iter (Depends-on): Update.
34656         * modules/arpa_inet (Depends-on): Update.
34657         * modules/dirent (Depends-on): Update.
34658         * modules/fcntl-h (Depends-on): Update.
34659         * modules/fnmatch (Depends-on): Update.
34660         * modules/getopt-posix (Depends-on): Update.
34661         * modules/glob (Depends-on): Update.
34662         * modules/iconv-h (Depends-on): Update.
34663         * modules/inttypes-incomplete (Depends-on): Update.
34664         * modules/locale (Depends-on): Update.
34665         * modules/math (Depends-on): Update.
34666         * modules/netdb (Depends-on): Update.
34667         * modules/search (Depends-on): Update.
34668         * modules/signal (Depends-on): Update.
34669         * modules/spawn (Depends-on): Update.
34670         * modules/stdio (Depends-on): Update.
34671         * modules/stdlib (Depends-on): Update.
34672         * modules/string (Depends-on): Update.
34673         * modules/strings (Depends-on): Update.
34674         * modules/sys_socket (Depends-on): Update.
34675         * modules/sys_stat (Depends-on): Update.
34676         * modules/sys_time (Depends-on): Update.
34677         * modules/sys_times (Depends-on): Update.
34678         * modules/sys_utsname (Depends-on): Update.
34679         * modules/time (Depends-on): Update.
34680         * modules/unistd (Depends-on): Update.
34681         * modules/wchar (Depends-on): Update.
34682         * MODULES.html.sh (Support for building libraries and executables):
34683         Update.
34685 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34687         Improvements on _Noreturn and related modules.
34689         modules/_Exit-tests: test _Noreturn too
34690         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34691         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34692         (main): Use them.
34694         stdnoreturn, stdnoreturn-tests: remove modules
34695         They're not needed here and a bit premature for use elsewhere.  See
34696         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34697         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34698         * tests/test-stdnoreturn.c: Remove files.
34699         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34700         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34701         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34702         and using noreturn.
34703         * modules/openat, modules/sigpipe-die, modules/xalloc:
34704         * modules/xmemdup0, modules/xstrtol:
34705         Remove dependency on stdnoreturn.
34707         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34708         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34709         Reparenthesize to avoid GCC warning.
34710         Support Microsoft's syntax.
34711         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34713         _Noreturn-tests: remove module
34714         * modules/_Noreturn-tests: Remove.
34715         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34716         * tests/test-_Noreturn.c: Remove.
34717         * tests/test-stdnoreturn.c: Merge from the old
34718         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34720 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34722         _Noreturn, stdnoreturn, and related modules.
34724         * top/maint.mk: Adjust to new noreturn support.
34725         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34726         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34728         xalloc: use stdnoreturn.h
34729         * lib/xalloc.h: Include <stdnoreturn.h>.
34730         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34731         * modules/xalloc (Depends-on): Add stdnoreturn.
34733         xstrtol: use stdnoreturn.h
34734         * lib/xstrtol.h: Include <stdnoreturn.h>.
34735         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34736         * modules/xstrtol (Depends-on): Add stdnoreturn.
34738         xmemdup0: use stdnoreturn.h
34739         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34740         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34741         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34743         sigpipe-die: use stdnoreturn.h
34744         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34745         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34746         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34748         openat: use stdnoreturn.h
34749         * lib/openat.h: Include <stdnoreturn.h>.
34750         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34751         * modules/openat (Depends-on): Add stdnoreturn.
34753         * lib/openat-die.c (openat_save_fail): Modernize comment.
34755         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34757         * lib/glthread/thread.h: Modernize comment.
34759         obstack: use _Noreturn
34760         * lib/obstack.c (__attribute__): Remove macro.
34761         (print_and_abort): Use _Noreturn.
34763         c-stack: use _Noreturn
34764         * lib/c-stack.c (die, overflow_handler, segv_handler):
34765         Use _Noreturn rather than __attribute__((noreturn)).
34767         argmatch-tests, exclude_tests: use _Noreturn
34768         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34769         Remove.
34770         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34772         stdlib: use _Noreturn
34773         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34774         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34775         * modules/stdlib (Depends-on): Add _Noreturn.
34776         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34778         stdnoreturn-tests: new module
34779         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34781         stdnoreturn: new module
34782         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34783         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34785         _Noreturn-tests: new module
34786         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34788         _Noreturn: new module
34789         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34790         New section, mentioning it.
34791         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34793         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34795 2011-07-11  Eric Blake  <eblake@redhat.com>
34797         ffs: new module
34798         * modules/ffs: New file.
34799         * m4/ffs.m4: Likewise.
34800         * lib/ffs.c: Likewise.
34801         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34802         * modules/strings (Makefile.am): Substitute witness.
34803         (Depends-on): Add c++defs.
34804         * lib/strings.in.h (ffs): Declare.
34805         * modules/ffs-tests: New test file.
34806         * tests/test-ffs.c: Test new module.
34807         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34808         * doc/posix-functions/ffs.texi (ffs): Likewise.
34810         regex: avoid compiler warning
34811         * lib/regex.c (includes): Include <strings.h>, for use of
34812         strcasecmp in regcomp.c.
34813         Reported by Joachim Schmitz.
34815 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34817         stdint: respect system's intmax_t if INTMAX_MAX
34818         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34819         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34820         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34821         long but int64_t is long long, and where we will clash with the
34822         system intmax_t if we override it.  See
34823         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34824         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34825         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34826         similarly for UINTMAX_C.
34828 2011-07-08  Bruno Haible  <bruno@clisp.org>
34830         pthread_sigmask tests: Avoid a compiler warning.
34831         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34832         non-zero.
34834         sigprocmask tests: A better way to avoid a compiler warning.
34835         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34836         (main): Complain if system() returns non-zero.
34837         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34839 2011-07-08  Bruno Haible  <bruno@clisp.org>
34841         pthread_sigmask: Work around IRIX bug.
34842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34843         bug.
34844         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34845         there may be unblocked pending signals.
34846         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34848 2011-07-08  Bruno Haible  <bruno@clisp.org>
34850         pthread_sigmask: Work around Cygwin bug.
34851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34852         bug.
34853         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34854         the system's pthread_sigmask function.
34855         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34857 2011-07-08  Bruno Haible  <bruno@clisp.org>
34859         pthread_sigmask: Work around bug in single-threaded implementation.
34860         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34861         FreeBSD, HP-UX, Solaris bug.
34862         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34863         * lib/pthread_sigmask.c: Include <stddef.h>.
34864         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34865         the system's pthread_sigmask function.
34866         * modules/pthread_sigmask (configure.ac): Invoke
34867         gl_PREREQ_PTHREAD_SIGMASK.
34868         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34869         HP-UX, Solaris.
34871 2011-07-08  Eric Blake  <eblake@redhat.com>
34873         test-sigprocmask: avoid compiler warning
34874         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34875         * tests/test-sigprocmask.c (main): Use it to silence warning.
34876         Reported by Jim Meyering.
34878         test-snprintf: avoid compiler warning
34879         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34880         * tests/test-vsnprintf.c (main): Likewise.
34881         Reported by Jim Meyering.
34883 2011-07-08  Bruno Haible  <bruno@clisp.org>
34885         Tests for module 'pthread_sigmask'.
34886         * modules/pthread_sigmask-tests: New file.
34887         * tests/test-pthread_sigmask1.c: New file, based on
34888         tests/test-sigprocmask.c.
34889         * tests/test-pthread_sigmask2.c: New file.
34891 2011-07-08  Jim Meyering  <meyering@redhat.com>
34893         test-getopt.h: avoid warning about an unused variable
34894         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
34896 2011-07-07  Jim Meyering  <meyering@redhat.com>
34898         maint: reduce list of files exempt from sc_prohibit_leading_TABs
34899         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
34900         now that it no longer contains leading TABs.
34901         Remove unused "url=FIXME" statement.
34903 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34905         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
34906         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34907         When gl_THREADLIB is not in use, assume that the POSIX sematics
34908         are desired.  This is better for Emacs, which uses POSIX semantics
34909         on GNUish and/or POSIXish platforms, and does not use threads at
34910         all otherwise.
34912         pthread_sigmask: fix typo when testing for libraries
34913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34914         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
34916 2011-07-08  Eric Blake  <eblake@redhat.com>
34918         fts: introduce FTS_NOATIME
34919         * lib/fts_.h (FTS_NOATIME): New bit flag.
34920         (FTS_OPTIONMASK): Adjust.
34921         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
34922         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
34924 2011-07-08  Bruno Haible  <bruno@clisp.org>
34926         Tests for module 'thread'.
34927         * modules/thread-tests: New file.
34928         * tests/test-thread_self.c: New file.
34929         * tests/test-thread_create.cc: New file.
34931 2011-07-08  Bruno Haible  <bruno@clisp.org>
34933         thread: Avoid gcc warnings when using gl_thread_self().
34934         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
34935         'void *'.
34936         (gl_thread_self_pointer): Update.
34938 2011-07-07  Bruno Haible  <bruno@clisp.org>
34940         signal-c++-tests: Check declaration of pthread_sigmask.
34941         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
34942         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
34943         $(LIB_PTHREAD_SIGMASK).
34945 2011-07-07  Bruno Haible  <bruno@clisp.org>
34947         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
34948         * lib/signal.in.h (pthread_sigmask): Override if
34949         REPLACE_PTHREAD_SIGMASK is 1.
34950         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34951         REPLACE_PTHREAD_SIGMASK.
34952         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
34953         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
34954         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
34955         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34956         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34958 2011-07-07  Bruno Haible  <bruno@clisp.org>
34960         pthread_sigmask: Ensure declaration in <signal.h>.
34961         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
34962         include <pthread.h>.
34963         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
34964         problem.
34966 2011-07-07  Bruno Haible  <bruno@clisp.org>
34968         pthread_sigmask: Document the module.
34969         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
34971 2011-07-07  Bruno Haible  <bruno@clisp.org>
34973         pthread_sigmask: Follow gnulib conventions.
34974         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
34975         gl_PTHREAD_SIGMASK.
34976         * modules/pthread_sigmask (configure.ac): Update.
34978 2011-07-07  Bruno Haible  <bruno@clisp.org>
34980         pthread_sigmask: Make declaration C++ safe.
34981         * lib/signal.in.h: In two special conditions, just do an #include_next.
34982         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34983         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
34984         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34985         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34986         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
34987         not REPLACE_PTHREAD_MASK.
34988         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
34989         not REPLACE_PTHREAD_MASK.
34990         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34992 2011-07-07  Bruno Haible  <bruno@clisp.org>
34994         pthread_sigmask: Fix return value.
34995         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
34996         * lib/pthread_sigmask.c: New file.
34997         * modules/pthread_sigmask (Files): Add it.
34998         (configure.ac): Invoke AC_LIBOBJ.
35000 2011-07-07  Eric Blake  <eblake@redhat.com>
35002         getopt: more portable argv creation
35003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35004         const, use char arrays rather than strings.
35005         Suggested by Paul Eggert.
35007 2011-07-07  Bruno Haible  <bruno@clisp.org>
35009         Tests for module 'sigprocmask'.
35010         * modules/sigprocmask-tests: New file.
35011         * tests/test-sigprocmask.c: New file.
35013 2011-07-07  Bruno Haible  <bruno@clisp.org>
35015         float tests: Tweak.
35016         * tests/test-float.c (main): Tweak skip message.
35018 2011-07-07  Eric Blake  <eblake@redhat.com>
35020         getopt: avoid compiler warning during configure
35021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35022         assigning string literals to non-const pointer.
35024         getopt-gnu: avoid crash in glibc getopt
35025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35026         * tests/test-getopt.h (test_getopt): Enhance test.
35027         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35028         * doc/posix-functions/getopt.texi (getopt): Document it.
35029         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35030         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35031         Likewise.
35033 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35035         getopt: handle W; without long options in getopt [BZ #12922]
35036         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35037         but no long options are defined, just return 'W'.
35039 2011-07-07  Bruno Haible  <bruno@clisp.org>
35041         Avoid literal tabs.
35042         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35043         variable containing a tab instead of a literal tab.
35044         Reported by Jim Meyering.
35046 2011-07-07  Bruno Haible  <bruno@clisp.org>
35048         Comments.
35049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35051 2011-07-06  Bruno Haible  <bruno@clisp.org>
35053         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35054         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35055         <winsock2.h>.
35056         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35057         lib/sys_socket.in.h.
35058         (close, gethostname): Hide declarations from <winsock2.h>.
35059         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35060         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35061         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35062         (select): Don't override if gnulib's <sys/select.h> was already
35063         included.
35064         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35065         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35066         setsockopt, shutdown, select): Tweak indentation.
35068 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35070         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35071         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35072         in an application that does not use the sys_select module.
35074 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35076         poll: do not return 0 on timeout=-1
35077         * lib/poll.c: Loop with yield if no events occurred.
35079 2011-07-06  Eric Blake  <eblake@redhat.com>
35081         pthread_sigmask: always replace when not using pthread
35082         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35083         replacement when using some threading other than pthread.  Fix
35084         logic bug.
35086 2011-07-06  Bruno Haible  <bruno@clisp.org>
35088         Comments.
35089         * m4/printf.m4: Update comments about mingw.
35091 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35093         sys_select: define sigset_t more portably
35094         * lib/sys_select.in.h: Always include <sys/types.h>, since
35095         we now need sigset_t and mingw defines it there.
35096         Include <signal.h> before split inclusion guard, to avoid
35097         mishaps on Solaris, whose <signal.h> eventually includes us.
35098         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35099         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35100         which come from ...
35101         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35102         gl_CHECK_TYPE_SIGSET_T.
35103         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35104         does the real work.
35105         * modules/sys_select (Depends-on): Add 'signal'.
35107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35108         Suggested by Bruno Haible.
35110         pselect: Use pthread_sigmask, not sigprocmask.
35111         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35112         multithreaded apps better than sigprocmask does.
35113         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35114         sigprocmask directly.
35116 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35118         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35119         Don't #undef,  since we don't need any underlying pselect.
35120         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35121         (Depends-on): Add select.
35122         (Link): Add $(LIBSOCKET).
35123         These changes suggested by Bruno Haible.
35125         pselect: document better
35126         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35127         * doc/posix-functions/pselect.texi (pselect): Document new module.
35129         pthread_sigmask: new module
35130         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35131         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35132         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35133         This is done only as a macro; I don't know how well that'll
35134         work for C++.  Move <sys/types.h> include before the include_next,
35135         to avoid mishap on Solaris.
35136         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35137         * modules/signal (Makefile.am): Substitute the check's results.
35138         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35140         test-pselect: new module
35141         * modules/pselect-tests, tests/test-pselect.c: New files.
35142         * tests/test-select.c, tests/test-sys_select-c++.cc:
35143         If TEST_PSELECT is defined, test pselect instead of testing select.
35145         * tests/test-sys_select.c (sigset_t): Test for it, too.
35146         Suggested by Bruno Haible.
35148 2011-07-05  Eric Blake  <eblake@redhat.com>
35150         snprintf: guarantee %1$d, for libintl
35151         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35153         * doc/posix-functions/snprintf.texi (snprintf): Update.
35154         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35155         * tests/test-snprintf.c (main): Enhance test.
35156         * tests/test-vsnprintf.c (main): Likewise.
35158 2011-07-05  Jim Meyering  <meyering@redhat.com>
35160         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35161         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35162         per Bruno's request, to accommodate this idiom (no space after "#")
35163         even when the function is inside an #if block:
35164         char *
35165         gets (char *s)
35166         #undef gets
35167         {
35168           ...
35169         }
35171 2011-07-04  Jim Meyering  <meyering@redhat.com>
35173         maint: indent with spaces, not TABs, and add a rule to check this
35174         * tests/test-userspec.c: Indent with spaces, not TABs.
35175         * tests/test-argp.c: Likewise.
35176         * tests/test-c-stack2.sh: Likewise.
35177         * tests/test-parse-duration.sh: Likewise
35178         * m4/strtod.m4: Likewise.
35179         * m4/alloca.m4: Likewise.
35180         * m4/pselect.m4: Likewise.
35181         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35183 2011-07-03  Jim Meyering  <meyering@redhat.com>
35185         maint.mk: correct omissions in prohibit_argmatch_without_use check
35186         This rule would mistakenly report that argmatch.h is included without
35187         use even when both the argmatch and invalid_arg macro were used.
35188         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35189         of argmatch and invalid_arg.
35191 2011-07-03  Bruno Haible  <bruno@clisp.org>
35193         Comments about EINTR.
35194         * lib/safe-read.h: Explain the purpose of this module.
35195         * lib/safe-write.h: Likewise.
35196         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35197         module.
35198         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35199         module.
35200         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35202 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35204         xnanosleep: Rewrite to use new dtotimespec module.
35205         It has the conversion code that used to be in xnanosleep.
35206         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35207         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35208         (TIME_T_MAX): Remove.
35209         (xnanosleep): Rewrite in terms of dtotimespec.
35210         * modules/xnanosleep (Depends-on): Add dtotimespec.
35211         Remove intprops, stdbool.
35213         timespec-add, timespec-sub: new modules
35214         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35215         * lib/timespec-add.c, lib/timespec-sub.c:
35216         * modules/timespec-add, modules/timespec-sub: New files.
35218         dtotimespec: new module
35219         * lib/timespec.h (dtotimespec): New decl.
35220         * lib/dtotimespec.c, modules/dtotimespec: New files.
35222         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35224         pselect: new module
35225         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35226         (pselect): New decls.
35227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35228         since the standard pselect decl uses 'restrict'.
35229         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35230         HAVE_PSELECT, REPLACE_PSELECT.
35231         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35232         HAVE_PSELECT, REPLACE_PSELECT.
35233         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35235         sys_select: don't depend on sys_socket
35236         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35237         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35238         This fix works on GNU and GNU-like platforms, but has not been tested
35239         on native Windows.
35240         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35242         gl_HEADER_SYS_SOCKET.
35243         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35244         gl_PREREQ_SYS_H_WINSOCK2.
35246 2011-06-29  Eric Blake  <eblake@redhat.com>
35248         pipe2: fix C89 compile problem
35249         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35250         Reported by Bruno Haible.
35252         pipe, pipe2: don't corrupt fd on error
35253         * lib/pipe.c (pipe): Leave fd unchanged on error.
35254         * lib/pipe2.c (pipe2): Likewise.
35255         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35256         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35258 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35260         mmap-anon: do not use regular expressions inadvertently
35261         * m4/mmap-anon.m4: Remove trailing period from strings sought
35262         in the output.
35264 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35266         nanosleep: fix integer overflow problem
35267         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35268         arithmetic wraps around on overflow.
35270         nanosleep: simplify carrying
35271         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35272         first call to the underyling nanosleep, not for the last one.
35273         This doesn't fix any bugs, but it simplifies the computation of
35274         the remaining delay.  Found while auditing integer overflow issues.
35276         dup2: remove test for existence of fcntl
35277         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35278         "#if HAVE_FCNTL", in the configure-time test program.
35279         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35280         and therefore speeds up "configure" a bit.  Found while
35281         adding the dup2 module to Emacs.
35283 2011-06-24  Eric Blake  <eblake@redhat.com>
35285         maint.mk: enhance useless header checks
35286         * top/maint.mk (_sc_header_without_use): Check both include
35287         styles.
35288         (sc_prohibit_assert_without_use)
35289         (sc_prohibit_close_stream_without_use)
35290         (sc_prohibit_getopt_without_use)
35291         (sc_prohibit_quotearg_without_use)
35292         (sc_prohibit_quote_without_use)
35293         (sc_prohibit_long_options_without_use)
35294         (sc_prohibit_inttostr_without_use)
35295         (sc_prohibit_ignore_value_without_use)
35296         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35297         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35298         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35299         (sc_prohibit_hash_pjw_without_use)
35300         (sc_prohibit_safe_read_without_use)
35301         (sc_prohibit_argmatch_without_use)
35302         (sc_prohibit_canonicalize_without_use)
35303         (sc_prohibit_root_dev_ino_without_use)
35304         (sc_prohibit_openat_without_use)
35305         (sc_prohibit_c_ctype_without_use)
35306         (sc_prohibit_signal_without_use)
35307         (sc_prohibit_stdio--_without_use)
35308         (sc_prohibit_stdio-safer_without_use)
35309         (sc_prohibit_strings_without_use)
35310         (sc_prohibit_intprops_without_use)
35311         (sc_prohibit_stddef_without_use)
35312         (sc_prohibit_xfreopen_without_use): Update clients.
35314 2011-06-24  Jim Meyering  <meyering@redhat.com>
35316         syntax-check: keep one maint.mk rule in sync with its header
35317         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35318         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35319         I prefer to avoid temporary files here, so use <(...), but that
35320         is not supported by /bin/sh, so...
35321         (SHELL): Define to /bin/bash.
35323 2011-06-24  Eric Blake  <eblake@redhat.com>
35325         maint.mk: update sc_prohibit_intprops_without_use
35326         * top/maint.mk (_intprops_names): Match recent changes.
35328 2011-06-24  Bruno Haible  <bruno@clisp.org>
35330         strerror-override: No-op tweak.
35331         * lib/strerror-override.h (strerror_override): Reorder conditions,
35332         for consistency with lib/strerror-override.c.
35334 2011-06-23  Eric Blake  <eblake@redhat.com>
35336         maint.mk: test further PATH_MAX issues
35337         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35338         (sc_prohibit_path_max_allocation): ...and also test alloca.
35339         Suggested by Jim Meyering.
35341 2011-06-22  Eric Blake  <eblake@redhat.com>
35343         maint.mk: add syntax-check to avoid char[PATH_MAX]
35344         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35346         stat: be robust to PATH_MAX definition
35347         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35348         * modules/stat (Depends-on): Add verify.
35350         link: work around IRIX bug
35351         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35352         * lib/link.c (rpl_link): Work around it.
35353         * tests/test-link.h (test_link): Enhance test.
35354         * doc/posix-functions/link.texi (link): Document the bug.
35356         getopt: silence clang warning
35357         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35358         dereference.
35359         Reported by Gustavo Martin Domato.
35361 2011-06-22  Jim Meyering  <meyering@redhat.com>
35363         bootstrap: do not insert a blank line into each .gitignore file
35364         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35366 2011-06-21  Eric Blake  <eblake@redhat.com>
35368         perror: test for output mismatch
35369         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35370         perror on IRIX.
35372         strerror_r: fix OpenBSD behavior on out-of-range
35373         * lib/strerror_r.c (strerror_r): Always use maximal string.
35374         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35376         strerror_r: fix OpenBSD behavior on 0
35377         * lib/strerror-override.c (strerror_override): Also override 0
35378         when needed.
35379         * lib/strerror-override.h (strerror_override): Likewise.
35380         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35381         earlier.
35382         * lib/strerror_r.c (strerror_r): Likewise.
35383         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35384         behavior...
35385         (gl_FUNC_STRERROR_0): ...into new macro.
35386         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35387         is overridden.
35388         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35389         * modules/strerror-override (Files): Add strerror.m4.
35390         (configure.ac): Also provide override for 0 when needed.
35391         * doc/posix-functions/strerror.texi (strerror): Document this.
35392         * doc/posix-functions/perror.texi (perror): Likewise.
35394         perror: adjust array size
35395         * modules/perror (Depends-on): Add strerror-override.
35396         * lib/perror.c (perror): Use it to avoid magic number.
35398         strerror-override: reduce size
35399         * lib/strerror-override.c (strerror_override): Use fewer lines.
35401 2011-06-20  Bruno Haible  <bruno@clisp.org>
35403         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35404         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35406 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35408         alloca: port to compilers that can optimize like GCC 4.6.0
35409         * lib/alloca.c (find_stack_direction): New signature, taken from
35410         Autoconf git.  This works with GCC 4.6.0.  This code should never
35411         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35412         be used with other compilers that optimize as well as GCC 4.6.0 does.
35413         (alloca): Adjust to new signature.
35414         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35415         New macro, which patches Autoconf in a similar way.
35417         c-stack: stop worrying about stack direction
35418         * lib/c-stack.c (find_stack_direction): Remove.
35419         (segv_handler): Don't worry about stack direction growth, as it's
35420         too much of a pain to configure this correctly, given how compilers
35421         are optimizing-away our stack-growth detection code.  Instead, assume
35422         that any access to just before or just after the stack is OK.
35423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35424         Don't require AC_FUNC_ALLOCA; no longer needed.
35426 2011-06-20  Eric Blake  <eblake@redhat.com>
35428         test-stat: don't allocate PATH_MAX bytes
35429         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35430         PATH_MAX-sized buffer.
35431         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35432         * modules/stat-tests (Depends-on): Likewise.
35433         * tests/test-fstatat.c (includes): Drop pathmax.h.
35434         * tests/test-stat.c (includes): Likewise.
35435         Reported by Bruno Haible.
35437 2011-06-20  Bruno Haible  <bruno@clisp.org>
35439         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35440         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35441         * lib/float.c: New file.
35442         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35443         REPLACE_FLOAT_LDBL.
35444         * modules/float (Files): Add lib/float.c.
35445         (configure.ac): Invoke AC_LIBOBJ.
35446         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35448 2011-06-20  Bruno Haible  <bruno@clisp.org>
35450         Tests for module 'float'.
35451         * modules/float-tests: New file.
35452         * tests/test-float.c: New file.
35454 2011-06-19  Bruno Haible  <bruno@clisp.org>
35456         isinf: Coding style.
35457         * lib/isinf.c: Use GNU coding style.
35459 2011-06-19  Bruno Haible  <bruno@clisp.org>
35461         linkat test: Avoid test failure on AIX 7.1.
35462         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35463         * tests/test-link.h (test_link): Likewise.
35465 2011-06-19  Bruno Haible  <bruno@clisp.org>
35467         pread test: Avoid test failure on OpenBSD 4.9.
35468         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35470 2011-06-19  Bruno Haible  <bruno@clisp.org>
35472         sprintf-posix: Fix test failure on AIX 7.1.
35473         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35474         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35475         on AIX.
35476         * doc/posix-functions/fprintf.texi: Likewise.
35477         * doc/posix-functions/printf.texi: Likewise.
35478         * doc/posix-functions/snprintf.texi: Likewise.
35479         * doc/posix-functions/sprintf.texi: Likewise.
35480         * doc/posix-functions/vdprintf.texi: Likewise.
35481         * doc/posix-functions/vfprintf.texi: Likewise.
35482         * doc/posix-functions/vprintf.texi: Likewise.
35483         * doc/posix-functions/vsnprintf.texi: Likewise.
35484         * doc/posix-functions/vsprintf.texi: Likewise.
35486 2011-06-19  Bruno Haible  <bruno@clisp.org>
35488         roundl-ieee: Fix test failure on AIX 7.1.
35489         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35490         * doc/posix-functions/roundl.texi: Mention problem with negative
35491         arguments.
35493 2011-06-19  Bruno Haible  <bruno@clisp.org>
35495         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35496         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35497         * doc/posix-functions/round.texi: Mention problem with negative
35498         arguments.
35499         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35501 2011-06-19  Bruno Haible  <bruno@clisp.org>
35503         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35504         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35505         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35506         * doc/posix-functions/roundf.texi: Mention problem with negative
35507         arguments.
35508         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35510 2011-06-19  Bruno Haible  <bruno@clisp.org>
35512         ceilf-ieee: Work around bug on MacOS X 10.5.
35513         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35515         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35516         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35517         IEEE compliant, avoid compiler optimizations.
35518         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35519         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35520         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35521         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35522         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35523         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35524         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35526         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35527         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35529 2011-06-19  Bruno Haible  <bruno@clisp.org>
35531         ceilf-ieee: Work around bug on AIX 7.1.
35532         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35533         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35535 2011-06-19  Bruno Haible  <bruno@clisp.org>
35537         ceil-ieee: Work around bug on AIX 7.1.
35538         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35539         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35541 2011-06-18  Bruno Haible  <bruno@clisp.org>
35543         fsync test: Avoid test failure on MacOS X and AIX.
35544         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35545         EINVAL.
35547 2011-06-18  Bruno Haible  <bruno@clisp.org>
35549         openat, fdopendir tests: Fix link errors.
35550         * modules/openat-tests (Depends-on): Add progname.
35551         * modules/fdopendir-tests (Depends-on): Likewise.
35552         * tests/test-fchownat.c: Include progname.h.
35553         (main): Call set_program_name.
35554         * tests/test-fstatat.c: Include progname.h.
35555         (main): Call set_program_name.
35556         * tests/test-mkdirat.c: Include progname.h.
35557         (main): Call set_program_name.
35558         * tests/test-openat.c: Include progname.h.
35559         (main): Call set_program_name.
35560         * tests/test-unlinkat.c: Include progname.h.
35561         (main): Call set_program_name.
35562         * tests/test-fdopendir.c: Include progname.h.
35563         (main): Call set_program_name.
35565 2011-06-18  Bruno Haible  <bruno@clisp.org>
35567         Doc update.
35568         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35569         HP-UX.
35570         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35572 2011-06-18  Bruno Haible  <bruno@clisp.org>
35574         getcwd tests: Avoid compilation error on HP-UX 11.31.
35575         * modules/getcwd-tests (Depends-on): Add pathmax.
35576         * tests/test-getcwd.c: Include pathmax.h.
35578 2011-06-18  Bruno Haible  <bruno@clisp.org>
35580         isfinite, isinf: Fix link error on AIX 6 and 7.
35581         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35582         needed, also test the macro with a 'float' argument.
35583         * m4/isinf.m4 (gl_ISINF): Likewise.
35585 2011-06-18  Bruno Haible  <bruno@clisp.org>
35587         getloadavg: Don't clobber LIBS. Regression from previous commit.
35588         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35589         AC_CHECK_LIB from here...
35590         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35591         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35592         gl_func_getloadavg_done.
35593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35595 2011-06-18  Bruno Haible  <bruno@clisp.org>
35597         clean-temp: Improve documentation.
35598         * lib/clean-temp.h: Explain better how to use this module.
35599         Reported by John Darrington <john@darrington.wattle.id.au>.
35601 2011-06-17  Bruno Haible  <bruno@clisp.org>
35603         pread, pwrite: Avoid cc warning on AIX.
35604         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35605         (pwrite): Likewise.
35607 2011-06-17  Bruno Haible  <bruno@clisp.org>
35609         spawn-pipe tests: Fix link error.
35610         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35613 2011-06-17  Bruno Haible  <bruno@clisp.org>
35615         Tests: Remove unnecessary dependency.
35616         * modules/canonicalize-tests (Depends-on): Remove progname.
35617         * modules/chown-tests (Depends-on): Likewise.
35618         * modules/dirname-tests (Depends-on): Likewise.
35619         * modules/fdopendir-tests (Depends-on): Likewise.
35620         * modules/fdutimensat-tests (Depends-on): Likewise.
35621         * modules/hash-tests (Depends-on): Likewise.
35622         * modules/lchown-tests (Depends-on): Likewise.
35623         * modules/linkat-tests (Depends-on): Likewise.
35624         * modules/renameat-tests (Depends-on): Likewise.
35625         * modules/spawn-pipe-tests (Depends-on): Likewise.
35626         * modules/utimensat-tests (Depends-on): Likewise.
35628 2011-06-17  Bruno Haible  <bruno@clisp.org>
35630         spawn-pipe tests: Fix link error.
35631         * tests/test-spawn-pipe-child.c: Undefine fflush.
35633 2011-06-17  Bruno Haible  <bruno@clisp.org>
35635         Fix tests link errors.
35636         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35637         * modules/chown-tests (Makefile.am): Don't link test-chown with
35638         LIBINTL.
35639         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35640         LIBINTL.
35641         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35642         LIBINTL.
35643         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35644         LIBINTL.
35646 2011-06-16  Bruno Haible  <bruno@clisp.org>
35648         crypto/gc-sha1: Fix recent regression.
35649         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35650         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35652         crypto/gc-md5: Fix recent regression.
35653         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35655         crypto/gc-md4: Fix recent regression.
35656         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35657         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35659         crypto/gc-arctwo: Fix recent regression.
35660         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35661         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35663         crypto/gc-rijndael: Fix recent regression.
35664         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35665         (configure.ac): Invoke AC_LIBOBJ here.
35666         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35669         crypto/gc-hmac-sha1: Fix recent regression.
35670         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35671         (configure.ac): Invoke AC_LIBOBJ here.
35672         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35675         crypto/gc-hmac-md5: Fix recent regression.
35676         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35677         (configure.ac): Invoke AC_LIBOBJ here.
35678         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35679         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35681         crypto/gc-des: Fix recent regression.
35682         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35683         (configure.ac): Invoke AC_LIBOBJ here.
35684         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35687         crypto/gc-arcfour: Fix recent regression.
35688         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35689         (configure.ac): Invoke AC_LIBOBJ here.
35690         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35693 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35695         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35696         After the 2011-05-21 change, this macro requires
35697         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35698         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35700 2011-06-16  Bruno Haible  <bruno@clisp.org>
35702         fprintftime: Move AC_LIBOBJ invocations to module description.
35703         * m4/fprintftime.m4: Remove file.
35704         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35705         (configure.ac): Remove gl_FPRINTFTIME call.
35706         (Makefile.am): Augment lib_SOURCES.
35707         Reported by Jim Meyering.
35709 2011-06-16  Bruno Haible  <bruno@clisp.org>
35711         tmpfile-safer: Finish 2011-05-23 commit.
35712         * m4/stdio-safer.m4: Really remove file.
35713         Reported by Jim Meyering.
35715 2011-06-16  Bruno Haible  <bruno@clisp.org>
35717         syntax-check: Fix typo.
35718         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35719         printf-posix.m4.
35720         Reported by Jim Meyering.
35722 2011-06-13  Jim Meyering  <meyering@redhat.com>
35724         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35725         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35727 2011-05-23  Bruno Haible  <bruno@clisp.org>
35729         yesno: Move AC_LIBOBJ invocations to module description.
35730         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35731         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35733 2011-05-23  Bruno Haible  <bruno@clisp.org>
35735         xstrtol: Move AC_LIBOBJ invocations to module description.
35736         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35737         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35739 2011-05-23  Bruno Haible  <bruno@clisp.org>
35741         xstrtold: Move AC_LIBOBJ invocations to module description.
35742         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35743         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35745 2011-05-23  Bruno Haible  <bruno@clisp.org>
35747         xstrtod: Move AC_LIBOBJ invocations to module description.
35748         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35749         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35751 2011-05-23  Bruno Haible  <bruno@clisp.org>
35753         xnanosleep: Move AC_LIBOBJ invocations to module description.
35754         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35755         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35757 2011-05-23  Bruno Haible  <bruno@clisp.org>
35759         xgetcwd: Move AC_LIBOBJ invocations to module description.
35760         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35761         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35763 2011-05-23  Bruno Haible  <bruno@clisp.org>
35765         xalloc: Move AC_LIBOBJ invocations to module description.
35766         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35767         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35769 2011-05-23  Bruno Haible  <bruno@clisp.org>
35771         write-any-file: Move AC_LIBOBJ invocations to module description.
35772         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35773         invocation.
35774         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35776 2011-05-23  Bruno Haible  <bruno@clisp.org>
35778         utimens: Move AC_LIBOBJ invocations to module description.
35779         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35780         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35782 2011-05-23  Bruno Haible  <bruno@clisp.org>
35784         utimecmp: Move AC_LIBOBJ invocations to module description.
35785         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35786         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35788 2011-05-23  Bruno Haible  <bruno@clisp.org>
35790         userspec: Move AC_LIBOBJ invocations to module description.
35791         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35792         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35794 2011-05-23  Bruno Haible  <bruno@clisp.org>
35796         unlinkdir: Move AC_LIBOBJ invocations to module description.
35797         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35798         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35800 2011-05-23  Bruno Haible  <bruno@clisp.org>
35802         unistd-safer: Move AC_LIBOBJ invocations to module description.
35803         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35804         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35806 2011-05-23  Bruno Haible  <bruno@clisp.org>
35808         tempname: Move AC_LIBOBJ invocations to module description.
35809         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35810         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35812 2011-05-23  Bruno Haible  <bruno@clisp.org>
35814         strftime: Move AC_LIBOBJ invocations to module description.
35815         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35816         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35818 2011-05-23  Bruno Haible  <bruno@clisp.org>
35820         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35821         * m4/stdlib-safer.m4: Remove file.
35822         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35823         (configure.ac): Remove gl_STDLIB_SAFER call.
35824         (Makefile.am): Augment lib_SOURCES.
35826 2011-05-23  Bruno Haible  <bruno@clisp.org>
35828         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35829         * m4/stdio-safer.m4: Remove file.
35830         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35831         (configure.ac): Remove gl_TMPFILE_SAFER call.
35832         (Makefile.am): Augment lib_SOURCES.
35834 2011-05-23  Bruno Haible  <bruno@clisp.org>
35836         popen-safer: Move AC_LIBOBJ invocations to module description.
35837         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35838         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35839         (configure.ac): Remove gl_POPEN_SAFER call.
35840         (Makefile.am): Augment lib_SOURCES.
35842 2011-05-23  Bruno Haible  <bruno@clisp.org>
35844         freopen-safer: Move AC_LIBOBJ invocations to module description.
35845         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35846         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35847         (configure.ac): Remove gl_FREOPEN_SAFER call.
35848         (Makefile.am): Augment lib_SOURCES.
35850 2011-05-23  Bruno Haible  <bruno@clisp.org>
35852         fopen-safer: Move AC_LIBOBJ invocations to module description.
35853         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35854         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35855         (configure.ac): Remove gl_FOPEN_SAFER call.
35856         (Makefile.am): Augment lib_SOURCES.
35858 2011-05-23  Bruno Haible  <bruno@clisp.org>
35860         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35861         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35862         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35864 2011-05-23  Bruno Haible  <bruno@clisp.org>
35866         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35867         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35868         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35870 2011-05-23  Bruno Haible  <bruno@clisp.org>
35872         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35873         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35874         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35876 2011-05-23  Bruno Haible  <bruno@clisp.org>
35878         settime: Move AC_LIBOBJ invocations to module description.
35879         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35880         * modules/settime (Makefile.am): Augment lib_SOURCES.
35882 2011-05-23  Bruno Haible  <bruno@clisp.org>
35884         savedir: Move AC_LIBOBJ invocations to module description.
35885         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35886         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35888 2011-05-23  Bruno Haible  <bruno@clisp.org>
35890         save-cwd: Move AC_LIBOBJ invocations to module description.
35891         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35892         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
35894 2011-05-23  Bruno Haible  <bruno@clisp.org>
35896         same: Move AC_LIBOBJ invocations to module description.
35897         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
35898         * modules/same (Makefile.am): Augment lib_SOURCES.
35900 2011-05-23  Bruno Haible  <bruno@clisp.org>
35902         safe-write: Move AC_LIBOBJ invocations to module description.
35903         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
35904         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
35905         instead of gl_SAFE_WRITE.
35906         (Makefile.am): Augment lib_SOURCES.
35908 2011-05-23  Bruno Haible  <bruno@clisp.org>
35910         safe-read: Move AC_LIBOBJ invocations to module description.
35911         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
35912         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
35913         of gl_SAFE_READ.
35914         (Makefile.am): Augment lib_SOURCES.
35916 2011-05-23  Bruno Haible  <bruno@clisp.org>
35918         safe-alloc: Move AC_LIBOBJ invocations to module description.
35919         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
35920         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
35922 2011-05-23  Bruno Haible  <bruno@clisp.org>
35924         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
35925         * m4/rijndael.m4: Remove file.
35926         * modules/crypto/rijndael (Files): Remove it.
35927         (configure.ac): Remove gl_RIJNDAEL call.
35928         (Makefile.am): Augment lib_SOURCES.
35930 2011-05-23  Bruno Haible  <bruno@clisp.org>
35932         readtokens: Move AC_LIBOBJ invocations to module description.
35933         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
35934         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
35936 2011-05-23  Bruno Haible  <bruno@clisp.org>
35938         read-file: Move AC_LIBOBJ invocations to module description.
35939         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
35940         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
35941         of gl_FUNC_READ_FILE.
35942         (Makefile.am): Augment lib_SOURCES.
35944 2011-05-23  Bruno Haible  <bruno@clisp.org>
35946         quotearg: Move AC_LIBOBJ invocations to module description.
35947         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
35948         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
35950 2011-05-23  Bruno Haible  <bruno@clisp.org>
35952         quote: Move AC_LIBOBJ invocations to module description.
35953         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
35954         * modules/quote (Makefile.am): Augment lib_SOURCES.
35956 2011-05-23  Bruno Haible  <bruno@clisp.org>
35958         posixver: Move AC_LIBOBJ invocations to module description.
35959         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
35960         * modules/posixver (Makefile.am): Augment lib_SOURCES.
35962 2011-05-23  Bruno Haible  <bruno@clisp.org>
35964         posixtm: Move AC_LIBOBJ invocations to module description.
35965         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
35966         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
35968 2011-05-23  Bruno Haible  <bruno@clisp.org>
35970         physmem: Move AC_LIBOBJ invocations to module description.
35971         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
35972         * modules/physmem (Makefile.am): Augment lib_SOURCES.
35974 2011-05-23  Bruno Haible  <bruno@clisp.org>
35976         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
35977         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
35978         invocation.
35979         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
35981 2011-05-23  Bruno Haible  <bruno@clisp.org>
35983         mpsort: Move AC_LIBOBJ invocations to module description.
35984         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
35985         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
35987 2011-05-23  Bruno Haible  <bruno@clisp.org>
35989         modechange: Move AC_LIBOBJ invocations to module description.
35990         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
35991         * modules/modechange (Makefile.am): Augment lib_SOURCES.
35993 2011-05-23  Bruno Haible  <bruno@clisp.org>
35995         mkdir-p: Move AC_LIBOBJ invocations to module description.
35996         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
35997         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
35999 2011-05-23  Bruno Haible  <bruno@clisp.org>
36001         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36002         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36003         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36005 2011-05-23  Bruno Haible  <bruno@clisp.org>
36007         mgetgroups: Move AC_LIBOBJ invocations to module description.
36008         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36009         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36011 2011-05-23  Bruno Haible  <bruno@clisp.org>
36013         memxor: Move AC_LIBOBJ invocations to module description.
36014         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36015         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36017 2011-05-23  Bruno Haible  <bruno@clisp.org>
36019         memcoll: Move AC_LIBOBJ invocations to module description.
36020         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36021         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36023 2011-05-23  Bruno Haible  <bruno@clisp.org>
36025         memcasecmp: Move AC_LIBOBJ invocations to module description.
36026         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36027         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36029 2011-05-23  Bruno Haible  <bruno@clisp.org>
36031         crypto/md5: Move AC_LIBOBJ invocations to module description.
36032         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36033         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36035 2011-05-23  Bruno Haible  <bruno@clisp.org>
36037         crypto/md4: Move AC_LIBOBJ invocations to module description.
36038         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36039         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36041 2011-05-23  Bruno Haible  <bruno@clisp.org>
36043         crypto/md2: Move AC_LIBOBJ invocations to module description.
36044         * m4/md2.m4: Remove file.
36045         * modules/crypto/md2 (Files): Remove it.
36046         (configure.ac): Remove gl_MD2 call.
36047         (Makefile.am): Augment lib_SOURCES.
36049 2011-05-23  Bruno Haible  <bruno@clisp.org>
36051         long-options: Move AC_LIBOBJ invocations to module description.
36052         * m4/long-options.m4: Remove file.
36053         * modules/long-options (Files): Remove it.
36054         (configure.ac): Remove gl_LONG_OPTIONS call.
36055         (Makefile.am): Augment lib_SOURCES.
36057 2011-05-23  Bruno Haible  <bruno@clisp.org>
36059         i-ring: Move AC_LIBOBJ invocations to module description.
36060         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36061         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36063 2011-05-23  Bruno Haible  <bruno@clisp.org>
36065         idcache: Move AC_LIBOBJ invocations to module description.
36066         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36067         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36069 2011-05-23  Bruno Haible  <bruno@clisp.org>
36071         human: Move AC_LIBOBJ invocations to module description.
36072         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36073         * modules/human (Makefile.am): Augment lib_SOURCES.
36075 2011-05-23  Bruno Haible  <bruno@clisp.org>
36077         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36078         * m4/hmac-sha1.m4: Remove file.
36079         * modules/crypto/hmac-sha1 (Files): Remove it.
36080         (configure.ac): Remove gl_HMAC_SHA1 call.
36081         (Makefile.am): Augment lib_SOURCES.
36083 2011-05-23  Bruno Haible  <bruno@clisp.org>
36085         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36086         * m4/hmac-md5.m4: Remove file.
36087         * modules/crypto/hmac-md5 (Files): Remove it.
36088         (configure.ac): Remove gl_HMAC_MD5 call.
36089         (Makefile.am): Augment lib_SOURCES.
36091 2011-05-23  Bruno Haible  <bruno@clisp.org>
36093         hash: Move AC_LIBOBJ invocations to module description.
36094         * m4/hash.m4: Remove file.
36095         * modules/hash (Files): Remove it.
36096         (configure.ac): Remove gl_HASH call.
36097         (Makefile.am): Augment lib_SOURCES.
36099 2011-05-23  Bruno Haible  <bruno@clisp.org>
36101         hard-locale: Move AC_LIBOBJ invocations to module description.
36102         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36103         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36105 2011-05-23  Bruno Haible  <bruno@clisp.org>
36107         getugroups: Move AC_LIBOBJ invocations to module description.
36108         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36109         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36111 2011-05-23  Bruno Haible  <bruno@clisp.org>
36113         gettime: Move AC_LIBOBJ invocations to module description.
36114         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36115         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36117 2011-05-23  Bruno Haible  <bruno@clisp.org>
36119         getndelim2: Move AC_LIBOBJ invocations to module description.
36120         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36121         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36123 2011-05-23  Bruno Haible  <bruno@clisp.org>
36125         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36126         * m4/gc-pbkdf2-sha1.m4: Remove file.
36127         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36128         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36129         (Makefile.am): Augment lib_SOURCES.
36131 2011-05-23  Bruno Haible  <bruno@clisp.org>
36133         fts: Move AC_LIBOBJ invocations to module description.
36134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36135         * modules/fts (configure.ac): ... to here.
36137 2011-05-23  Bruno Haible  <bruno@clisp.org>
36139         file-type: Move AC_LIBOBJ invocations to module description.
36140         * m4/file-type.m4: Remove file.
36141         * modules/file-type (Files): Remove it.
36142         (configure.ac): Remove gl_FILE_TYPE call.
36143         (Makefile.am): Augment lib_SOURCES.
36145 2011-05-23  Bruno Haible  <bruno@clisp.org>
36147         filenamecat*: Respect rules for use of AC_LIBOBJ.
36148         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36149         Remove AC_LIBOBJ invocation.
36150         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36151         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36153 2011-05-23  Bruno Haible  <bruno@clisp.org>
36155         filemode: Move AC_LIBOBJ invocations to module description.
36156         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36157         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36159 2011-05-23  Bruno Haible  <bruno@clisp.org>
36161         openat-safer: Move AC_LIBOBJ invocations to module description.
36162         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36163         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36165 2011-05-23  Bruno Haible  <bruno@clisp.org>
36167         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36168         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36169         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36171 2011-05-23  Bruno Haible  <bruno@clisp.org>
36173         exclude: Move AC_LIBOBJ invocations to module description.
36174         * m4/exclude.m4: Remove file.
36175         * modules/exclude (Files): Remove it.
36176         (configure.ac): Remove gl_EXCLUDE call.
36177         (Makefile.am): Augment lib_SOURCES.
36179 2011-05-23  Bruno Haible  <bruno@clisp.org>
36181         dirname*: Respect rules for use of AC_LIBOBJ.
36182         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36183         invocations.
36184         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36185         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36187 2011-05-23  Bruno Haible  <bruno@clisp.org>
36189         dirent-safer: Move AC_LIBOBJ invocations to module description.
36190         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36191         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36193 2011-05-23  Bruno Haible  <bruno@clisp.org>
36195         crypto/des: Move AC_LIBOBJ invocations to module description.
36196         * m4/des.m4: Remove file.
36197         * modules/crypto/des (Files): Remove it.
36198         (configure.ac): Remove gl_DES call.
36199         (Makefile.am): Augment lib_SOURCES.
36201 2011-05-23  Bruno Haible  <bruno@clisp.org>
36203         cycle-check: Move AC_LIBOBJ invocations to module description.
36204         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36205         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36207 2011-05-23  Bruno Haible  <bruno@clisp.org>
36209         c-strtold: Move AC_LIBOBJ invocations to module description.
36210         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36211         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36213 2011-05-23  Bruno Haible  <bruno@clisp.org>
36215         c-strtod: Move AC_LIBOBJ invocations to module description.
36216         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36217         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36219 2011-05-23  Bruno Haible  <bruno@clisp.org>
36221         crc: Move AC_LIBOBJ invocations to module description.
36222         * m4/crc.m4: Remove file.
36223         * modules/crc (Files): Remove it.
36224         (configure.ac): Remove gl_CRC call.
36225         (Makefile.am): Augment lib_SOURCES.
36227 2011-05-23  Bruno Haible  <bruno@clisp.org>
36229         close-stream: Move AC_LIBOBJ invocations to module description.
36230         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36231         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36233 2011-05-23  Bruno Haible  <bruno@clisp.org>
36235         closeout: Move AC_LIBOBJ invocations to module description.
36236         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36237         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36239 2011-05-23  Bruno Haible  <bruno@clisp.org>
36241         closein: Move AC_LIBOBJ invocations to module description.
36242         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36243         * modules/closein (Makefile.am): Augment lib_SOURCES.
36245 2011-05-23  Bruno Haible  <bruno@clisp.org>
36247         cloexec: Move AC_LIBOBJ invocations to module description.
36248         * m4/cloexec.m4: Remove file.
36249         * modules/cloexec (Files): Remove it.
36250         (configure.ac): Remove gl_CLOEXEC call.
36251         (Makefile.am): Augment lib_SOURCES.
36253 2011-05-23  Bruno Haible  <bruno@clisp.org>
36255         check-version: Move AC_LIBOBJ invocations to module description.
36256         * m4/check-version.m4: Remove file.
36257         * modules/check-version (Files): Remove it.
36258         (configure.ac): Remove gl_CHECK_VERSION call.
36259         (Makefile.am): Augment lib_SOURCES.
36261 2011-05-23  Bruno Haible  <bruno@clisp.org>
36263         chdir-safer: Move AC_LIBOBJ invocations to module description.
36264         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36265         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36267 2011-05-23  Bruno Haible  <bruno@clisp.org>
36269         canonicalize: Move AC_LIBOBJ invocations to module description.
36270         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36271         AC_LIBOBJ invocation.
36272         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36274 2011-05-23  Bruno Haible  <bruno@clisp.org>
36276         canon-host: Move AC_LIBOBJ invocations to module description.
36277         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36278         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36279         instead of gl_CANON_HOST.
36280         (Makefile.am): Augment lib_SOURCES.
36282 2011-05-23  Bruno Haible  <bruno@clisp.org>
36284         backupfile: Move AC_LIBOBJ invocations to module description.
36285         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36286         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36288 2011-05-23  Bruno Haible  <bruno@clisp.org>
36290         argmatch: Move AC_LIBOBJ invocations to module description.
36291         * m4/argmatch.m4: Remove file.
36292         * modules/argmatch (Files): Remove it.
36293         (configure.ac): Remove gl_ARGMATCH call.
36294         (Makefile.am): Augment lib_SOURCES.
36296 2011-05-23  Bruno Haible  <bruno@clisp.org>
36298         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36299         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36300         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36302 2011-05-23  Bruno Haible  <bruno@clisp.org>
36304         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36305         * m4/arcfour.m4: Remove file.
36306         * modules/crypto/arcfour (Files): Remove it.
36307         (configure.ac): Remove gl_ARCFOUR call.
36308         (Makefile.am): Augment lib_SOURCES.
36310 2011-05-22  Bruno Haible  <bruno@clisp.org>
36312         write: Move AC_LIBOBJ invocations to module description.
36313         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36314         * modules/write (configure.ac): ... to here.
36316 2011-05-22  Bruno Haible  <bruno@clisp.org>
36318         wmemset: Move AC_LIBOBJ invocations to module description.
36319         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36320         here...
36321         * modules/wmemset (configure.ac): ... to here.
36323 2011-05-22  Bruno Haible  <bruno@clisp.org>
36325         wmemmove: Move AC_LIBOBJ invocations to module description.
36326         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36327         here...
36328         * modules/wmemmove (configure.ac): ... to here.
36330 2011-05-22  Bruno Haible  <bruno@clisp.org>
36332         wmemcpy: Move AC_LIBOBJ invocations to module description.
36333         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36334         here...
36335         * modules/wmemcpy (configure.ac): ... to here.
36337 2011-05-22  Bruno Haible  <bruno@clisp.org>
36339         wmemcmp: Move AC_LIBOBJ invocations to module description.
36340         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36341         here...
36342         * modules/wmemcmp (configure.ac): ... to here.
36344 2011-05-22  Bruno Haible  <bruno@clisp.org>
36346         wmemchr: Move AC_LIBOBJ invocations to module description.
36347         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36348         here...
36349         * modules/wmemchr (configure.ac): ... to here.
36351 2011-05-22  Bruno Haible  <bruno@clisp.org>
36353         wcswidth: Move AC_LIBOBJ invocations to module description.
36354         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36355         here...
36356         * modules/wcswidth (configure.ac): ... to here.
36358 2011-05-22  Bruno Haible  <bruno@clisp.org>
36360         wcwidth: Respect rules for use of AC_LIBOBJ.
36361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36362         invocation from here...
36363         * modules/wcwidth (configure.ac): ... to here.
36364         (Depends-on): Update conditions.
36366 2011-05-22  Bruno Haible  <bruno@clisp.org>
36368         wctype: Move AC_LIBOBJ invocations to module description.
36369         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36370         invocation from here...
36371         * modules/wctype (configure.ac): ... to here.
36372         (Depends-on): Update conditions.
36374 2011-05-22  Bruno Haible  <bruno@clisp.org>
36376         wctrans: Move AC_LIBOBJ invocations to module description.
36377         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36378         invocation from here...
36379         * modules/wctrans (configure.ac): ... to here.
36381 2011-05-22  Bruno Haible  <bruno@clisp.org>
36383         wctomb: Move AC_LIBOBJ invocations to module description.
36384         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36385         invocations from here...
36386         * modules/wctomb (configure.ac): ... to here.
36388 2011-05-22  Bruno Haible  <bruno@clisp.org>
36390         wctob: Move AC_LIBOBJ invocations to module description.
36391         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36392         gl_PREREQ_WCTOB invocations from here...
36393         * modules/wctob (configure.ac): ... to here.
36394         (Depends-on): Update conditions.
36396 2011-05-22  Bruno Haible  <bruno@clisp.org>
36398         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36399         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36400         here...
36401         * modules/wcsxfrm (configure.ac): ... to here.
36403 2011-05-22  Bruno Haible  <bruno@clisp.org>
36405         wcstok: Move AC_LIBOBJ invocations to module description.
36406         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36407         * modules/wcstok (configure.ac): ... to here.
36409 2011-05-22  Bruno Haible  <bruno@clisp.org>
36411         wcsstr: Move AC_LIBOBJ invocations to module description.
36412         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36413         * modules/wcsstr (configure.ac): ... to here.
36415 2011-05-22  Bruno Haible  <bruno@clisp.org>
36417         wcsspn: Move AC_LIBOBJ invocations to module description.
36418         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36419         * modules/wcsspn (configure.ac): ... to here.
36421 2011-05-22  Bruno Haible  <bruno@clisp.org>
36423         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36424         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36425         gl_PREREQ_WCSRTOMBS invocations from here...
36426         * modules/wcsrtombs (configure.ac): ... to here.
36428 2011-05-22  Bruno Haible  <bruno@clisp.org>
36430         wcsrchr: Move AC_LIBOBJ invocations to module description.
36431         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36432         here...
36433         * modules/wcsrchr (configure.ac): ... to here.
36435 2011-05-22  Bruno Haible  <bruno@clisp.org>
36437         wcspbrk: Move AC_LIBOBJ invocations to module description.
36438         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36439         here...
36440         * modules/wcspbrk (configure.ac): ... to here.
36442 2011-05-22  Bruno Haible  <bruno@clisp.org>
36444         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36445         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36446         gl_PREREQ_WCSNRTOMBS invocations from here...
36447         * modules/wcsnrtombs (configure.ac): ... to here.
36449 2011-05-22  Bruno Haible  <bruno@clisp.org>
36451         wcsnlen: Move AC_LIBOBJ invocations to module description.
36452         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36453         here...
36454         * modules/wcsnlen (configure.ac): ... to here.
36456 2011-05-22  Bruno Haible  <bruno@clisp.org>
36458         wcsncpy: Move AC_LIBOBJ invocations to module description.
36459         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36460         here...
36461         * modules/wcsncpy (configure.ac): ... to here.
36463 2011-05-22  Bruno Haible  <bruno@clisp.org>
36465         wcsncmp: Move AC_LIBOBJ invocations to module description.
36466         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36467         here...
36468         * modules/wcsncmp (configure.ac): ... to here.
36470 2011-05-22  Bruno Haible  <bruno@clisp.org>
36472         wcsncat: Move AC_LIBOBJ invocations to module description.
36473         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36474         here...
36475         * modules/wcsncat (configure.ac): ... to here.
36477 2011-05-22  Bruno Haible  <bruno@clisp.org>
36479         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36480         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36481         from here...
36482         * modules/wcsncasecmp (configure.ac): ... to here.
36484 2011-05-22  Bruno Haible  <bruno@clisp.org>
36486         wcslen: Move AC_LIBOBJ invocations to module description.
36487         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36488         * modules/wcslen (configure.ac): ... to here.
36490 2011-05-22  Bruno Haible  <bruno@clisp.org>
36492         wcsdup: Move AC_LIBOBJ invocations to module description.
36493         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36494         * modules/wcsdup (configure.ac): ... to here.
36496 2011-05-22  Bruno Haible  <bruno@clisp.org>
36498         wcscspn: Move AC_LIBOBJ invocations to module description.
36499         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36500         here...
36501         * modules/wcscspn (configure.ac): ... to here.
36503 2011-05-22  Bruno Haible  <bruno@clisp.org>
36505         wcscpy: Move AC_LIBOBJ invocations to module description.
36506         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36507         * modules/wcscpy (configure.ac): ... to here.
36509 2011-05-22  Bruno Haible  <bruno@clisp.org>
36511         wcscoll: Move AC_LIBOBJ invocations to module description.
36512         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36513         here...
36514         * modules/wcscoll (configure.ac): ... to here.
36516 2011-05-22  Bruno Haible  <bruno@clisp.org>
36518         wcscmp: Move AC_LIBOBJ invocations to module description.
36519         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36520         * modules/wcscmp (configure.ac): ... to here.
36522 2011-05-22  Bruno Haible  <bruno@clisp.org>
36524         wcschr: Move AC_LIBOBJ invocations to module description.
36525         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36526         * modules/wcschr (configure.ac): ... to here.
36528 2011-05-22  Bruno Haible  <bruno@clisp.org>
36530         wcscat: Move AC_LIBOBJ invocations to module description.
36531         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36532         * modules/wcscat (configure.ac): ... to here.
36534 2011-05-22  Bruno Haible  <bruno@clisp.org>
36536         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36537         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36538         here...
36539         * modules/wcscasecmp (configure.ac): ... to here.
36541 2011-05-22  Bruno Haible  <bruno@clisp.org>
36543         wcrtomb: Move AC_LIBOBJ invocations to module description.
36544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36545         invocations from here...
36546         * modules/wcrtomb (configure.ac): ... to here.
36548 2011-05-22  Bruno Haible  <bruno@clisp.org>
36550         wcpncpy: Move AC_LIBOBJ invocations to module description.
36551         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36552         here...
36553         * modules/wcpncpy (configure.ac): ... to here.
36555 2011-05-22  Bruno Haible  <bruno@clisp.org>
36557         wcpcpy: Move AC_LIBOBJ invocations to module description.
36558         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36559         * modules/wcpcpy (configure.ac): ... to here.
36561 2011-05-22  Bruno Haible  <bruno@clisp.org>
36563         waitpid: Move AC_LIBOBJ invocations to module description.
36564         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36565         invocation from here...
36566         * modules/waitpid (configure.ac): ... to here.
36568 2011-05-22  Bruno Haible  <bruno@clisp.org>
36570         utimensat: Move AC_LIBOBJ invocations to module description.
36571         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36572         here...
36573         * modules/utimensat (configure.ac): ... to here.
36575 2011-05-22  Bruno Haible  <bruno@clisp.org>
36577         usleep: Move AC_LIBOBJ invocations to module description.
36578         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36579         here...
36580         * modules/usleep (configure.ac): ... to here.
36582 2011-05-22  Bruno Haible  <bruno@clisp.org>
36584         unlockpt: Move AC_LIBOBJ invocations to module description.
36585         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36586         gl_PREREQ_UNLOCKPT invocations from here...
36587         * modules/unlockpt (configure.ac): ... to here.
36589 2011-05-22  Bruno Haible  <bruno@clisp.org>
36591         unlink: Respect rules for use of AC_LIBOBJ.
36592         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36593         * modules/unlink (configure.ac): ... to here.
36595 2011-05-22  Bruno Haible  <bruno@clisp.org>
36597         uname: Move AC_LIBOBJ invocations to module description.
36598         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36600         here...
36601         * modules/uname (configure.ac): ... to here.
36603 2011-05-22  Bruno Haible  <bruno@clisp.org>
36605         ttyname_r: Move AC_LIBOBJ invocations to module description.
36606         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36607         gl_PREREQ_TTYNAME_R invocations from here...
36608         * modules/ttyname_r (configure.ac): ... to here.
36610 2011-05-22  Bruno Haible  <bruno@clisp.org>
36612         tsearch: Move AC_LIBOBJ invocations to module description.
36613         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36614         invocations from here...
36615         * modules/tsearch (configure.ac): ... to here.
36617 2011-05-22  Bruno Haible  <bruno@clisp.org>
36619         towctrans: Move AC_LIBOBJ invocations to module description.
36620         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36621         AC_LIBOBJ invocation from here...
36622         * modules/towctrans (configure.ac): ... to here.
36624 2011-05-22  Bruno Haible  <bruno@clisp.org>
36626         tmpfile: Move AC_LIBOBJ invocations to module description.
36627         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36628         invocations from here...
36629         * modules/tmpfile (configure.ac): ... to here.
36631 2011-05-22  Bruno Haible  <bruno@clisp.org>
36633         times: Move AC_LIBOBJ invocations to module description.
36634         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36635         * modules/times (configure.ac): ... to here.
36637 2011-05-22  Bruno Haible  <bruno@clisp.org>
36639         time_r: Move AC_LIBOBJ invocations to module description.
36640         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36641         invocations from here...
36642         * modules/time_r (configure.ac): ... to here.
36644 2011-05-22  Bruno Haible  <bruno@clisp.org>
36646         timegm: Move AC_LIBOBJ invocations to module description.
36647         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36648         invocations from here...
36649         * modules/timegm (configure.ac): ... to here.
36651 2011-05-22  Bruno Haible  <bruno@clisp.org>
36653         tcgetsid: Move AC_LIBOBJ invocations to module description.
36654         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36655         and gl_PREREQ_TCGETSID invocations from here...
36656         * modules/tcgetsid (configure.ac): ... to here.
36657         (Depends-on): Update conditions.
36659 2011-05-22  Bruno Haible  <bruno@clisp.org>
36661         symlinkat: Move AC_LIBOBJ invocations to module description.
36662         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36663         here...
36664         * modules/symlinkat (configure.ac): ... to here.
36666 2011-05-22  Bruno Haible  <bruno@clisp.org>
36668         symlink: Move AC_LIBOBJ invocations to module description.
36669         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36670         here...
36671         * modules/symlink (configure.ac): ... to here.
36673 2011-05-22  Bruno Haible  <bruno@clisp.org>
36675         strverscmp: Move AC_LIBOBJ invocations to module description.
36676         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36678         from here...
36679         * modules/strverscmp (configure.ac): ... to here.
36681 2011-05-22  Bruno Haible  <bruno@clisp.org>
36683         strtok_r: Move AC_LIBOBJ invocations to module description.
36684         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36685         and gl_PREREQ_STRTOK_R invocations from here...
36686         * modules/strtok_r (configure.ac): ... to here.
36687         (Depends-on): Update conditions.
36689 2011-05-22  Bruno Haible  <bruno@clisp.org>
36691         strtoumax: Move AC_LIBOBJ invocations to module description.
36692         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36694         from here...
36695         * modules/strtoumax (configure.ac): ... to here.
36697 2011-05-22  Bruno Haible  <bruno@clisp.org>
36699         strtoimax: Move AC_LIBOBJ invocations to module description.
36700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36702         from here...
36703         * modules/strtoimax (configure.ac): ... to here.
36705 2011-05-22  Bruno Haible  <bruno@clisp.org>
36707         strtoull: Move AC_LIBOBJ invocations to module description.
36708         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36709         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36710         from here...
36711         * modules/strtoull (configure.ac): ... to here.
36713 2011-05-22  Bruno Haible  <bruno@clisp.org>
36715         strtoll: Move AC_LIBOBJ invocations to module description.
36716         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36718         here...
36719         * modules/strtoll (configure.ac): ... to here.
36721 2011-05-22  Bruno Haible  <bruno@clisp.org>
36723         strtoul: Move AC_LIBOBJ invocations to module description.
36724         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36725         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36726         * modules/strtoul (configure.ac): ... to here.
36728 2011-05-22  Bruno Haible  <bruno@clisp.org>
36730         strtol: Move AC_LIBOBJ invocations to module description.
36731         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36732         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36733         * modules/strtol (configure.ac): ... to here.
36735 2011-05-22  Bruno Haible  <bruno@clisp.org>
36737         strtod: Move AC_LIBOBJ invocations to module description.
36738         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36739         invocations from here...
36740         * modules/strtod (configure.ac): ... to here.
36742 2011-05-22  Bruno Haible  <bruno@clisp.org>
36744         strstr*: Move AC_LIBOBJ invocations to module description.
36745         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36746         invocations from here...
36747         * modules/strstr-simple (configure.ac): ... to here.
36748         * modules/strstr (configure.ac): ... and here.
36750 2011-05-22  Bruno Haible  <bruno@clisp.org>
36752         strsignal: Move AC_LIBOBJ invocations to module description.
36753         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36754         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36755         * modules/strsignal (configure.ac): ... to here.
36756         (Depends-on): Update conditions.
36758 2011-05-22  Bruno Haible  <bruno@clisp.org>
36760         strsep: Move AC_LIBOBJ invocations to module description.
36761         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36763         here...
36764         * modules/strsep (configure.ac): ... to here.
36766 2011-05-22  Bruno Haible  <bruno@clisp.org>
36768         strptime: Move AC_LIBOBJ invocations to module description.
36769         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36770         gl_PREREQ_STRPTIME invocations from here...
36771         * modules/strptime (configure.ac): ... to here.
36773 2011-05-22  Bruno Haible  <bruno@clisp.org>
36775         strpbrk: Move AC_LIBOBJ invocations to module description.
36776         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36777         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36778         here...
36779         * modules/strpbrk (configure.ac): ... to here.
36781 2011-05-22  Bruno Haible  <bruno@clisp.org>
36783         strnlen: Move AC_LIBOBJ invocations to module description.
36784         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36785         invocations from here...
36786         * modules/strnlen (configure.ac): ... to here.
36788 2011-05-22  Bruno Haible  <bruno@clisp.org>
36790         strndup: Move AC_LIBOBJ invocations to module description.
36791         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36792         invocations from here...
36793         * modules/strndup (configure.ac): ... to here.
36794         (Depends-on): Update conditions.
36796 2011-05-22  Bruno Haible  <bruno@clisp.org>
36798         strncat: Move AC_LIBOBJ invocations to module description.
36799         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36800         invocations from here...
36801         * modules/strncat (configure.ac): ... to here.
36803 2011-05-22  Bruno Haible  <bruno@clisp.org>
36805         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36806         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36807         invocations from here...
36808         * modules/strdup (configure.ac): ... to here.
36809         * modules/strdup-posix (configure.ac): ... and here.
36811 2011-05-22  Bruno Haible  <bruno@clisp.org>
36813         strcspn: Move AC_LIBOBJ invocations to module description.
36814         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36816         here...
36817         * modules/strcspn (configure.ac): ... to here.
36819 2011-05-22  Bruno Haible  <bruno@clisp.org>
36821         strchrnul: Move AC_LIBOBJ invocations to module description.
36822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36823         gl_PREREQ_STRCHRNUL invocations from here...
36824         * modules/strchrnul (configure.ac): ... to here.
36826 2011-05-22  Bruno Haible  <bruno@clisp.org>
36828         strcasestr*: Move AC_LIBOBJ invocations to module description.
36829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36830         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36831         * modules/strcasestr-simple (configure.ac): ... to here.
36832         * modules/strcasestr (configure.ac): ... and here.
36834 2011-05-22  Bruno Haible  <bruno@clisp.org>
36836         strcase: Move AC_LIBOBJ invocations to module description.
36837         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36838         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36839         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36840         gl_PREREQ_STRNCASECMP invocations from here...
36841         * modules/strcase (configure.ac): ... to here.
36843 2011-05-22  Bruno Haible  <bruno@clisp.org>
36845         stpncpy: Move AC_LIBOBJ invocations to module description.
36846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36847         here...
36848         * modules/stpncpy (configure.ac): ... to here.
36850 2011-05-22  Bruno Haible  <bruno@clisp.org>
36852         stpcpy: Move AC_LIBOBJ invocations to module description.
36853         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36855         here...
36856         * modules/stpcpy (configure.ac): ... to here.
36858 2011-05-21  Bruno Haible  <bruno@clisp.org>
36860         stat: Move AC_LIBOBJ invocations to module description.
36861         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36862         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36863         here...
36864         * modules/stat (configure.ac): ... to here.
36866 2011-05-21  Bruno Haible  <bruno@clisp.org>
36868         sleep: Move AC_LIBOBJ invocations to module description.
36869         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36870         * modules/sleep (configure.ac): ... to here.
36872 2011-05-21  Bruno Haible  <bruno@clisp.org>
36874         signbit: Move AC_LIBOBJ invocations to module description.
36875         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36876         * modules/signbit (configure.ac): ... to here.
36878 2011-05-21  Bruno Haible  <bruno@clisp.org>
36880         sigprocmask: Move AC_LIBOBJ invocations to module description.
36881         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36882         gl_PREREQ_SIGPROMASK invocations from here...
36883         * modules/sigprocmask (configure.ac): ... to here.
36885 2011-05-21  Bruno Haible  <bruno@clisp.org>
36887         sigaction: Move AC_LIBOBJ invocations to module description.
36888         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36889         gl_PREREQ_SIGACTION invocations from here...
36890         * modules/sigaction (configure.ac): ... to here.
36892 2011-05-21  Bruno Haible  <bruno@clisp.org>
36894         sig2str: Move AC_LIBOBJ invocations to module description.
36895         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
36896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
36897         here...
36898         * modules/sig2str (configure.ac): ... to here.
36900 2011-05-21  Bruno Haible  <bruno@clisp.org>
36902         setlocale: Move AC_LIBOBJ invocations to module description.
36903         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
36904         gl_PREREQ_SETLOCALE invocations from here...
36905         * modules/setlocale (configure.ac): ... to here.
36907 2011-05-21  Bruno Haible  <bruno@clisp.org>
36909         unsetenv: Move AC_LIBOBJ invocations to module description.
36910         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
36911         and gl_PREREQ_UNSETENV invocations from here...
36912         * modules/unsetenv (configure.ac): ... to here.
36913         (Depends-on): Update.
36915 2011-05-21  Bruno Haible  <bruno@clisp.org>
36917         setenv: Move AC_LIBOBJ invocations to module description.
36918         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
36919         here...
36920         * modules/setenv (configure.ac): ... to here.
36922 2011-05-21  Bruno Haible  <bruno@clisp.org>
36924         selinux-h: Move AC_LIBOBJ invocations to module description.
36925         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
36926         AC_LIBOBJ invocation from here...
36927         * modules/selinux-h (configure.ac): ... to here.
36929 2011-05-21  Bruno Haible  <bruno@clisp.org>
36931         select: Respect rules for use of AC_LIBOBJ.
36932         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
36933         here...
36934         * modules/select (configure.ac): ... to here.
36936 2011-05-21  Bruno Haible  <bruno@clisp.org>
36938         scandir: Move AC_LIBOBJ invocations to module description.
36939         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
36940         invocations from here...
36941         * modules/scandir (configure.ac): ... to here.
36943 2011-05-21  Bruno Haible  <bruno@clisp.org>
36945         rpmatch: Move AC_LIBOBJ invocations to module description.
36946         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
36947         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
36948         here...
36949         * modules/rpmatch (configure.ac): ... to here.
36951 2011-05-21  Bruno Haible  <bruno@clisp.org>
36953         rmdir: Respect rules for use of AC_LIBOBJ.
36954         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
36955         * modules/rmdir (configure.ac): ... to here.
36957 2011-05-21  Bruno Haible  <bruno@clisp.org>
36959         renameat: Move AC_LIBOBJ invocations to module description.
36960         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
36961         here...
36962         * modules/renameat (configure.ac): ... to here.
36964 2011-05-21  Bruno Haible  <bruno@clisp.org>
36966         rename: Respect rules for use of AC_LIBOBJ.
36967         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
36968         here...
36969         * modules/rename (configure.ac): ... to here.
36971 2011-05-21  Bruno Haible  <bruno@clisp.org>
36973         remove: Move AC_LIBOBJ invocations to module description.
36974         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
36975         here...
36976         * modules/remove (configure.ac): ... to here.
36978 2011-05-21  Bruno Haible  <bruno@clisp.org>
36980         relocatable-lib: Move AC_LIBOBJ invocations to module description.
36981         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
36982         macro.
36983         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
36984         * modules/relocatable-lib (configure.ac): ... to here.
36985         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36986         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
36988 2011-05-21  Bruno Haible  <bruno@clisp.org>
36990         relocatable-prog: Move AC_LIBOBJ invocations to module description.
36991         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
36992         here...
36993         * modules/relocatable-prog (configure.ac): ... to here.
36995 2011-05-21  Bruno Haible  <bruno@clisp.org>
36997         regex: Move AC_LIBOBJ invocations to module description.
36998         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
36999         invocations from here...
37000         * modules/regex (configure.ac): ... to here.
37002 2011-05-21  Bruno Haible  <bruno@clisp.org>
37004         realloc-*: Move AC_LIBOBJ invocations to module description.
37005         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37006         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37007         AC_LIBOBJ invocations from here...
37008         * modules/realloc-gnu (configure.ac): ... to here.
37009         * modules/realloc-posix (configure.ac): ... and here.
37011 2011-05-21  Bruno Haible  <bruno@clisp.org>
37013         readutmp: Move AC_LIBOBJ invocations to module description.
37014         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37015         * modules/readutmp (configure.ac): ... to here.
37017 2011-05-21  Bruno Haible  <bruno@clisp.org>
37019         readlinkat: Move AC_LIBOBJ invocations to module description.
37020         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37021         here...
37022         * modules/readlinkat (configure.ac): ... to here.
37024 2011-05-21  Bruno Haible  <bruno@clisp.org>
37026         readlink: Move AC_LIBOBJ invocations to module description.
37027         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37028         gl_PREREQ_READLINK invocations from here...
37029         * modules/readlink (configure.ac): ... to here.
37031 2011-05-21  Bruno Haible  <bruno@clisp.org>
37033         readline: Move AC_LIBOBJ invocations to module description.
37034         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37035         gl_PREREQ_READLINE invocations from here...
37036         * modules/readline (configure.ac): ... to here.
37038 2011-05-21  Bruno Haible  <bruno@clisp.org>
37040         read: Move AC_LIBOBJ invocations to module description.
37041         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37042         * modules/read (configure.ac): ... to here.
37044 2011-05-21  Bruno Haible  <bruno@clisp.org>
37046         rawmemchr: Move AC_LIBOBJ invocations to module description.
37047         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37049         from here...
37050         * modules/rawmemchr (configure.ac): ... to here.
37052 2011-05-21  Bruno Haible  <bruno@clisp.org>
37054         random_r: Move AC_LIBOBJ invocations to module description.
37055         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37056         gl_PREREQ_RANDOM_R invocations from here...
37057         * modules/random_r (configure.ac): ... to here.
37059 2011-05-21  Bruno Haible  <bruno@clisp.org>
37061         pwrite: Move AC_LIBOBJ invocations to module description.
37062         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37063         * modules/pwrite (configure.ac): ... to here.
37065 2011-05-21  Bruno Haible  <bruno@clisp.org>
37067         putenv: Move AC_LIBOBJ invocations to module description.
37068         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37069         * modules/putenv (configure.ac): ... to here.
37071 2011-05-21  Bruno Haible  <bruno@clisp.org>
37073         login_tty: Move AC_LIBOBJ invocations to module description.
37074         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37075         * modules/login_tty (configure.ac): ... to here.
37077 2011-05-21  Bruno Haible  <bruno@clisp.org>
37079         openpty: Move AC_LIBOBJ invocations to module description.
37080         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37081         * modules/openpty (configure.ac): ... to here.
37083 2011-05-21  Bruno Haible  <bruno@clisp.org>
37085         forkpty: Move AC_LIBOBJ invocations to module description.
37086         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37087         * modules/forkpty (configure.ac): ... to here.
37089 2011-05-21  Bruno Haible  <bruno@clisp.org>
37091         ptsname: Move AC_LIBOBJ invocations to module description.
37092         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37093         invocations from here...
37094         * modules/ptsname (configure.ac): ... to here.
37096 2011-05-21  Bruno Haible  <bruno@clisp.org>
37098         pread: Move AC_LIBOBJ invocations to module description.
37099         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37100         * modules/pread (configure.ac): ... to here.
37102 2011-05-21  Bruno Haible  <bruno@clisp.org>
37104         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37105         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37106         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37107         * modules/posix_spawn (configure.ac): ... to here.
37108         * modules/posix_spawnp (configure.ac): ... and here.
37110 2011-05-21  Bruno Haible  <bruno@clisp.org>
37112         popen: Move AC_LIBOBJ invocations to module description.
37113         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37114         invocations from here...
37115         * modules/popen (configure.ac): ... to here.
37117 2011-05-21  Bruno Haible  <bruno@clisp.org>
37119         poll: Move AC_LIBOBJ invocations to module description.
37120         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37121         invocations from here...
37122         * modules/poll (configure.ac): ... to here.
37124 2011-05-21  Bruno Haible  <bruno@clisp.org>
37126         pipe-posix: Move AC_LIBOBJ invocations to module description.
37127         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37128         * modules/pipe-posix (configure.ac): ... to here.
37130 2011-05-21  Bruno Haible  <bruno@clisp.org>
37132         openat: Respect rules for use of AC_LIBOBJ.
37133         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37134         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37135         * modules/openat (configure.ac): ... to here.
37137 2011-05-21  Bruno Haible  <bruno@clisp.org>
37139         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37140         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37141         invocation from here...
37142         * modules/obstack-printf (configure.ac): ... to here.
37143         * modules/obstack-printf-posix (configure.ac): ... and here.
37145 2011-05-21  Bruno Haible  <bruno@clisp.org>
37147         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37148         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37149         from here...
37150         * modules/nl_langinfo (configure.ac): ... to here.
37152 2011-05-21  Bruno Haible  <bruno@clisp.org>
37154         nanosleep: Move AC_LIBOBJ invocations to module description.
37155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37156         gl_PREREQ_NANOSLEEP invocations from here...
37157         * modules/nanosleep (configure.ac): ... to here.
37159 2011-05-21  Bruno Haible  <bruno@clisp.org>
37161         mountlist: Move AC_LIBOBJ invocations to module description.
37162         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37163         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37164         * modules/mountlist (configure.ac): ... to here.
37166 2011-05-21  Bruno Haible  <bruno@clisp.org>
37168         mktime: Respect rules for use of AC_LIBOBJ.
37169         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37170         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37171         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37172         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37173         * modules/mktime (configure.ac): ... to here.
37174         * modules/mktime-internal (configure.ac): ... and here.
37175         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37177 2011-05-21  Bruno Haible  <bruno@clisp.org>
37179         mkstemps: Move AC_LIBOBJ invocations to module description.
37180         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37181         here...
37182         * modules/mkstemps (configure.ac): ... to here.
37184 2011-05-21  Bruno Haible  <bruno@clisp.org>
37186         mkstemp: Move AC_LIBOBJ invocations to module description.
37187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37188         gl_PREREQ_MKSTEMP invocations from here...
37189         * modules/mkstemp (configure.ac): ... to here.
37191 2011-05-21  Bruno Haible  <bruno@clisp.org>
37193         mkostemps: Move AC_LIBOBJ invocations to module description.
37194         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37195         here...
37196         * modules/mkostemps (configure.ac): ... to here.
37198 2011-05-21  Bruno Haible  <bruno@clisp.org>
37200         mkostemp: Move AC_LIBOBJ invocations to module description.
37201         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37202         gl_PREREQ_MKOSTEMP invocations from here...
37203         * modules/mkostemp (configure.ac): ... to here.
37205 2011-05-21  Bruno Haible  <bruno@clisp.org>
37207         mknod: Move AC_LIBOBJ invocations to module description.
37208         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37209         * modules/mknod (configure.ac): ... to here.
37211 2011-05-21  Bruno Haible  <bruno@clisp.org>
37213         mkfifoat: Move AC_LIBOBJ invocations to module description.
37214         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37215         here...
37216         * modules/mkfifoat (configure.ac): ... to here.
37218 2011-05-21  Bruno Haible  <bruno@clisp.org>
37220         mkfifo: Respect rules for use of AC_LIBOBJ.
37221         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37222         here...
37223         * modules/mkfifo (configure.ac): ... to here.
37225 2011-05-21  Bruno Haible  <bruno@clisp.org>
37227         mkdtemp: Move AC_LIBOBJ invocations to module description.
37228         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37229         invocations from here...
37230         * modules/mkdtemp (configure.ac): ... to here.
37232 2011-05-21  Bruno Haible  <bruno@clisp.org>
37234         mkdir: Move AC_LIBOBJ invocations to module description.
37235         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37236         * modules/mkdir (configure.ac): ... to here.
37238 2011-05-21  Bruno Haible  <bruno@clisp.org>
37240         memset: Move AC_LIBOBJ invocations to module description.
37241         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37243         here...
37244         * modules/memset (configure.ac): ... to here.
37246 2011-05-21  Bruno Haible  <bruno@clisp.org>
37248         memrchr: Move AC_LIBOBJ invocations to module description.
37249         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37251         here...
37252         * modules/memrchr (configure.ac): ... to here.
37254 2011-05-21  Bruno Haible  <bruno@clisp.org>
37256         mempcpy: Move AC_LIBOBJ invocations to module description.
37257         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37259         here...
37260         * modules/mempcpy (configure.ac): ... to here.
37262 2011-05-21  Bruno Haible  <bruno@clisp.org>
37264         memmove: Move AC_LIBOBJ invocations to module description.
37265         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37266         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37267         here...
37268         * modules/memmove (configure.ac): ... to here.
37270 2011-05-21  Bruno Haible  <bruno@clisp.org>
37272         memmem*: Move AC_LIBOBJ invocations to module description.
37273         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37274         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37275         here...
37276         (gl_FUNC_MEMMEM): ... and here...
37277         * modules/memmem-simple (configure.ac): ... to here.
37278         * modules/memmem (configure.ac): ... and here.
37280 2011-05-21  Bruno Haible  <bruno@clisp.org>
37282         memcpy: Move AC_LIBOBJ invocations to module description.
37283         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37285         here...
37286         * modules/memcpy (configure.ac): ... to here.
37288 2011-05-21  Bruno Haible  <bruno@clisp.org>
37290         memcmp: Simplify autoconf macro.
37291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37292         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37293         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37295 2011-05-21  Bruno Haible  <bruno@clisp.org>
37297         memcmp: Move AC_LIBOBJ invocations to module description.
37298         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37299         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37300         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37301         * modules/memcmp (configure.ac): ... to here.
37302         (Depends-on): Update conditions.
37304 2011-05-21  Bruno Haible  <bruno@clisp.org>
37306         memchr: Respect rules for use of AC_LIBOBJ.
37307         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37308         invocations from here...
37309         * modules/memchr (configure.ac): ... to here.
37311 2011-05-21  Bruno Haible  <bruno@clisp.org>
37313         mbtowc: Move AC_LIBOBJ invocations to module description.
37314         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37315         invocations from here...
37316         * modules/mbtowc (configure.ac): ... to here.
37318 2011-05-21  Bruno Haible  <bruno@clisp.org>
37320         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37321         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37322         gl_PREREQ_MBSRTOWCS invocations from here...
37323         * modules/mbsrtowcs (configure.ac): ... to here.
37325 2011-05-21  Bruno Haible  <bruno@clisp.org>
37327         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37328         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37329         gl_PREREQ_MBSNRTOWCS invocations from here...
37330         * modules/mbsnrtowcs (configure.ac): ... to here.
37332 2011-05-21  Bruno Haible  <bruno@clisp.org>
37334         mbsinit: Move AC_LIBOBJ invocations to module description.
37335         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37336         invocations from here...
37337         * modules/mbsinit (configure.ac): ... to here.
37339 2011-05-21  Bruno Haible  <bruno@clisp.org>
37341         mbrlen: Move AC_LIBOBJ invocations to module description.
37342         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37343         invocations from here...
37344         * modules/mbrlen (configure.ac): ... to here.
37346 2011-05-21  Bruno Haible  <bruno@clisp.org>
37348         mbrtowc: Respect rules for use of AC_LIBOBJ.
37349         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37350         invocations from here...
37351         * modules/mbrtowc (configure.ac): ... to here.
37353 2011-05-21  Bruno Haible  <bruno@clisp.org>
37355         malloc-*: Move AC_LIBOBJ invocations to module description.
37356         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37357         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37358         AC_LIBOBJ invocations from here...
37359         * modules/malloc-gnu (configure.ac): ... to here.
37360         * modules/malloc-posix (configure.ac): ... and here.
37362 2011-05-21  Bruno Haible  <bruno@clisp.org>
37364         lstat, openat: Respect rules for use of AC_LIBOBJ.
37365         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37366         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37367         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37368         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37369         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37370         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37371         here.
37372         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37374 2011-05-21  Bruno Haible  <bruno@clisp.org>
37376         lseek: Move AC_LIBOBJ invocations to module description.
37377         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37378         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37379         * modules/lseek (configure.ac): ... to here.
37381 2011-05-21  Bruno Haible  <bruno@clisp.org>
37383         linkat: Move AC_LIBOBJ invocations to module description.
37384         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37385         here...
37386         * modules/linkat (configure.ac): ... to here.
37388 2011-05-21  Bruno Haible  <bruno@clisp.org>
37390         link: Respect rules for use of AC_LIBOBJ.
37391         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37392         * modules/link (configure.ac): ... to here.
37394 2011-05-21  Bruno Haible  <bruno@clisp.org>
37396         lchown: Move AC_LIBOBJ invocations to module description.
37397         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37398         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37399         * modules/lchown (configure.ac): ... to here.
37401 2011-05-21  Bruno Haible  <bruno@clisp.org>
37403         iswctype: Move AC_LIBOBJ invocations to module description.
37404         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37405         here...
37406         * modules/iswctype (configure.ac): ... to here.
37408 2011-05-21  Bruno Haible  <bruno@clisp.org>
37410         iswblank: Move AC_LIBOBJ invocations to module description.
37411         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37412         here...
37413         * modules/iswblank (configure.ac): ... to here.
37415 2011-05-21  Bruno Haible  <bruno@clisp.org>
37417         atanl: Move AC_LIBOBJ invocations to module description.
37418         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37419         * modules/atanl (configure.ac): ... to here.
37421 2011-05-21  Bruno Haible  <bruno@clisp.org>
37423         acosl: Move AC_LIBOBJ invocations to module description.
37424         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37425         * modules/acosl (configure.ac): ... to here.
37427 2011-05-21  Bruno Haible  <bruno@clisp.org>
37429         asinl: Respect rules for use of AC_LIBOBJ.
37430         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37431         * modules/asinl (configure.ac): ... to here.
37433 2011-05-21  Bruno Haible  <bruno@clisp.org>
37435         tanl: Move AC_LIBOBJ invocations to module description.
37436         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37437         * modules/tanl (configure.ac): ... to here.
37439 2011-05-21  Bruno Haible  <bruno@clisp.org>
37441         cosl: Move AC_LIBOBJ invocations to module description.
37442         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37443         * modules/cosl (configure.ac): ... to here.
37445 2011-05-21  Bruno Haible  <bruno@clisp.org>
37447         sinl: Move AC_LIBOBJ invocations to module description.
37448         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37449         * modules/sinl (configure.ac): ... to here.
37451 2011-05-21  Bruno Haible  <bruno@clisp.org>
37453         logl: Move AC_LIBOBJ invocations to module description.
37454         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37455         * modules/logl (configure.ac): ... to here.
37457 2011-05-21  Bruno Haible  <bruno@clisp.org>
37459         expl: Move AC_LIBOBJ invocations to module description.
37460         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37461         * modules/expl (configure.ac): ... to here.
37463 2011-05-21  Bruno Haible  <bruno@clisp.org>
37465         roundl: Move AC_LIBOBJ invocations to module description.
37466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37467         * modules/roundl (configure.ac): ... to here.
37469 2011-05-21  Bruno Haible  <bruno@clisp.org>
37471         round: Move AC_LIBOBJ invocations to module description.
37472         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37473         * modules/round (configure.ac): ... to here.
37475 2011-05-21  Bruno Haible  <bruno@clisp.org>
37477         roundf: Move AC_LIBOBJ invocations to module description.
37478         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37479         * modules/roundf (configure.ac): ... to here.
37481 2011-05-21  Bruno Haible  <bruno@clisp.org>
37483         truncl: Move AC_LIBOBJ invocations to module description.
37484         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37485         * modules/truncl (configure.ac): ... to here.
37487 2011-05-21  Bruno Haible  <bruno@clisp.org>
37489         trunc: Move AC_LIBOBJ invocations to module description.
37490         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37491         * modules/trunc (configure.ac): ... to here.
37493 2011-05-21  Bruno Haible  <bruno@clisp.org>
37495         truncf: Move AC_LIBOBJ invocations to module description.
37496         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37497         * modules/truncf (configure.ac): ... to here.
37499 2011-05-21  Bruno Haible  <bruno@clisp.org>
37501         ceill: Move AC_LIBOBJ invocations to module description.
37502         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37503         * modules/ceill (configure.ac): ... to here.
37505 2011-05-21  Bruno Haible  <bruno@clisp.org>
37507         ceil: Move AC_LIBOBJ invocations to module description.
37508         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37509         * modules/ceil (configure.ac): ... to here.
37511 2011-05-21  Bruno Haible  <bruno@clisp.org>
37513         ceilf: Move AC_LIBOBJ invocations to module description.
37514         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37515         * modules/ceilf (configure.ac): ... to here.
37517 2011-05-21  Bruno Haible  <bruno@clisp.org>
37519         floorl: Respect rules for use of AC_LIBOBJ.
37520         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37521         * modules/floorl (configure.ac): ... to here.
37523 2011-05-21  Bruno Haible  <bruno@clisp.org>
37525         floor: Respect rules for use of AC_LIBOBJ.
37526         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37527         * modules/floor (configure.ac): ... to here.
37529 2011-05-21  Bruno Haible  <bruno@clisp.org>
37531         floorf: Move AC_LIBOBJ invocations to module description.
37532         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37533         * modules/floorf (configure.ac): ... to here.
37535 2011-05-20  Bruno Haible  <bruno@clisp.org>
37537         sqrtl: Respect rules for use of AC_LIBOBJ.
37538         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37539         * modules/sqrtl (configure.ac): ... to here.
37541 2011-05-20  Bruno Haible  <bruno@clisp.org>
37543         ldexpl: Respect rules for use of AC_LIBOBJ.
37544         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37545         * modules/ldexpl (configure.ac): ... to here.
37547 2011-05-20  Bruno Haible  <bruno@clisp.org>
37549         frexpl*: Respect rules for use of AC_LIBOBJ.
37550         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37551         invocation from here...
37552         * modules/frexpl (configure.ac): ... to here.
37553         * modules/frexpl-nolibm (configure.ac): ... and here.
37555 2011-05-20  Bruno Haible  <bruno@clisp.org>
37557         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37558         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37559         invocation from here...
37560         * modules/frexp (configure.ac): ... to here.
37561         * modules/frexp-nolibm (configure.ac): ... and here.
37563 2011-05-20  Bruno Haible  <bruno@clisp.org>
37565         isnan: Respect rules for use of AC_LIBOBJ.
37566         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37567         invocations here.
37568         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37569         REPLACE_ISNAN.
37570         * modules/isnand (configure.ac): Likewise.
37571         * modules/isnanl (configure.ac): Likewise.
37573 2011-05-20  Bruno Haible  <bruno@clisp.org>
37575         isnanl*: Respect rules for use of AC_LIBOBJ.
37576         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37577         invocation from here...
37578         * modules/isnanl (configure.ac): ... to here.
37579         * modules/isnanl-nolibm (configure.ac): ... and here.
37581 2011-05-20  Bruno Haible  <bruno@clisp.org>
37583         isnand*: Move AC_LIBOBJ invocations to module description.
37584         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37585         invocation from here...
37586         * modules/isnand (configure.ac): ... to here.
37587         * modules/isnand-nolibm (configure.ac): ... and here.
37589 2011-05-20  Bruno Haible  <bruno@clisp.org>
37591         isnanf*: Move AC_LIBOBJ invocations to module description.
37592         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37593         invocation from here...
37594         * modules/isnanf (configure.ac): ... to here.
37595         * modules/isnanf-nolibm (configure.ac): ... and here.
37597 2011-05-20  Bruno Haible  <bruno@clisp.org>
37599         isnan*: Separate the AC_LIBOBJ invocations.
37600         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37601         AC_LIBOBJ invocation.
37602         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37603         here.
37604         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37605         AC_LIBOBJ invocation.
37606         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37607         here.
37608         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37609         AC_LIBOBJ invocation.
37610         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37611         here.
37612         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37614 2011-05-08  Bruno Haible  <bruno@clisp.org>
37616         isinf: Move AC_LIBOBJ invocations to module description.
37617         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37618         * modules/isinf (configure.ac): ... to here.
37620 2011-05-08  Bruno Haible  <bruno@clisp.org>
37622         isfinite: Move AC_LIBOBJ invocations to module description.
37623         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37624         * modules/isfinite (configure.ac): ... to here.
37626 2011-05-08  Bruno Haible  <bruno@clisp.org>
37628         isblank: Move AC_LIBOBJ invocations to module description.
37629         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37630         here...
37631         * modules/isblank (configure.ac): ... to here.
37633 2011-05-08  Bruno Haible  <bruno@clisp.org>
37635         isapipe: Move AC_LIBOBJ invocations to module description.
37636         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37637         gl_PREREQ_ISAPIPE invocations from here...
37638         * modules/isapipe (configure.ac): ... to here.
37639         (Depends-on): Update condition.
37641 2011-05-08  Bruno Haible  <bruno@clisp.org>
37643         ioctl: Move AC_LIBOBJ invocations to module description.
37644         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37645         invocations from here...
37646         * modules/ioctl (configure.ac): ... to here.
37647         (Depends-on): Update condition.
37649 2011-05-08  Bruno Haible  <bruno@clisp.org>
37651         imaxdiv: Move AC_LIBOBJ invocations to module description.
37652         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37653         invocations from here...
37654         * modules/imaxdiv (configure.ac): ... to here.
37656 2011-05-08  Bruno Haible  <bruno@clisp.org>
37658         imaxabs: Move AC_LIBOBJ invocations to module description.
37659         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37660         invocations from here...
37661         * modules/imaxabs (configure.ac): ... to here.
37663 2011-05-08  Bruno Haible  <bruno@clisp.org>
37665         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37667         AC_LIBOBJ invocations from here...
37668         * modules/getaddrinfo (configure.ac): ... to here.
37669         (Depends-on): Add conditions.
37671 2011-05-08  Bruno Haible  <bruno@clisp.org>
37673         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37674         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37675         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37676         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37677         (gl_PREREQ_INET_PTON): ... from here.
37678         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37679         gl_PREREQ_INET_PTON here.
37680         (Depends-on): Update condition.
37682 2011-05-08  Bruno Haible  <bruno@clisp.org>
37684         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37685         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37686         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37687         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37688         (gl_PREREQ_INET_NTOP): ... from here.
37689         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37690         gl_PREREQ_INET_NTOP here.
37691         (Depends-on): Update condition.
37693 2011-05-08  Bruno Haible  <bruno@clisp.org>
37695         iconv_open: Move AC_LIBOBJ invocations to module description.
37696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37697         AC_LIBOBJ invocations from here...
37698         * modules/iconv_open (configure.ac): ... to here.
37700 2011-05-08  Bruno Haible  <bruno@clisp.org>
37702         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37703         If module 'iconv_open' is among the main modules and module
37704         'iconv_open-utf' is among the tests dependencies, then
37705         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37706         return the special iconv_t values. Therefore iconv() and iconv_close()
37707         must support these special iconv_t values, already in lib, not only in
37708         tests.
37709         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37710         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37711         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37712         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37713         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37714         (Depends-on): Add the dependencies of iconv_open-utf.
37715         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37716         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37717         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37719 2011-05-08  Bruno Haible  <bruno@clisp.org>
37721         group-member: Move AC_LIBOBJ invocations to module description.
37722         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37723         gl_PREREQ_GROUP_MEMBER invocations from here...
37724         * modules/group-member (configure.ac): ... to here.
37726 2011-05-08  Bruno Haible  <bruno@clisp.org>
37728         grantpt: Move AC_LIBOBJ invocations to module description.
37729         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37730         invocations from here...
37731         * modules/grantpt (configure.ac): ... to here.
37733 2011-05-08  Bruno Haible  <bruno@clisp.org>
37735         glob: Move AC_LIBOBJ invocations to module description.
37736         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37737         from here...
37738         * modules/glob (configure.ac): ... to here.
37740 2011-05-08  Bruno Haible  <bruno@clisp.org>
37742         getusershell: Move AC_LIBOBJ invocations to module description.
37743         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37744         Move AC_LIBOBJ invocation from here...
37745         * modules/getusershell (configure.ac): ... to here.
37746         (Depends-on): Update condition.
37748 2011-05-08  Bruno Haible  <bruno@clisp.org>
37750         gettimeofday: Move AC_LIBOBJ invocations to module description.
37751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37752         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37753         gl_PREREQ_GETTIMEOFDAY invocations from here...
37754         * modules/gettimeofday (configure.ac): ... to here.
37756 2011-05-08  Bruno Haible  <bruno@clisp.org>
37758         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37759         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37760         just gl_FUNC_TZSET.
37761         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37762         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37764         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37766 2011-05-08  Bruno Haible  <bruno@clisp.org>
37768         getsubopt: Move AC_LIBOBJ invocations to module description.
37769         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37770         gl_PREREQ_GETSUBOPT invocations from here...
37771         * modules/getsubopt (configure.ac): ... to here.
37773 2011-05-08  Bruno Haible  <bruno@clisp.org>
37775         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37776         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37777         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37778         * modules/getpass-gnu (configure.ac): ... to here.
37780 2011-05-08  Bruno Haible  <bruno@clisp.org>
37782         getpass: Move AC_LIBOBJ invocations to module description.
37783         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37784         gl_PREREQ_GETPASS invocations from here...
37785         * modules/getpass (configure.ac): ... to here.
37787 2011-05-08  Bruno Haible  <bruno@clisp.org>
37789         getpagesize: Move AC_LIBOBJ invocations to module description.
37790         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37791         from here...
37792         * modules/getpagesize (configure.ac): ... to here.
37794 2011-05-08  Bruno Haible  <bruno@clisp.org>
37796         getopt: Move AC_LIBOBJ invocations to module description.
37797         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37798         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37799         invocations from here...
37800         * modules/getopt-gnu (configure.ac): ... to here.
37801         * modules/getopt-posix (configure.ac): ... and here.
37802         (Depends-on): Update condition.
37804 2011-05-08  Bruno Haible  <bruno@clisp.org>
37806         getopt, argp: Respect rules for use of AC_LIBOBJ.
37807         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37808         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37809         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37810         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37812 2011-05-08  Bruno Haible  <bruno@clisp.org>
37814         getlogin_r: Move AC_LIBOBJ invocations to module description.
37815         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37816         gl_PREREQ_GETLOGIN_R invocations from here...
37817         * modules/getlogin_r (configure.ac): ... to here.
37819 2011-05-08  Bruno Haible  <bruno@clisp.org>
37821         getlogin: Move AC_LIBOBJ invocations to module description.
37822         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37823         here...
37824         * modules/getlogin (configure.ac): ... to here.
37826 2011-05-08  Bruno Haible  <bruno@clisp.org>
37828         getloadavg: Move AC_LIBOBJ invocations to module description.
37829         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37830         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37831         * modules/getloadavg (configure.ac): ... to here.
37833 2011-05-08  Bruno Haible  <bruno@clisp.org>
37835         gethrxtime: Move AC_LIBOBJ invocations to module description.
37836         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37837         LIB_GETHRXTIME from here...
37838         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37839         invocations from here...
37840         * modules/gethrxtime (configure.ac): ... to here.
37842 2011-05-08  Bruno Haible  <bruno@clisp.org>
37844         gethostname: Move AC_LIBOBJ invocations to module description.
37845         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37846         gl_PREREQ_GETHOSTNAME invocations from here...
37847         * modules/gethostname (configure.ac): ... to here.
37849 2011-05-08  Bruno Haible  <bruno@clisp.org>
37851         getgroups: Move AC_LIBOBJ invocations to module description.
37852         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37853         here...
37854         * modules/getgroups (configure.ac): ... to here.
37856 2011-05-08  Bruno Haible  <bruno@clisp.org>
37858         getdtablesize: Move AC_LIBOBJ invocations to module description.
37859         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37860         invocation from here...
37861         * modules/getdtablesize (configure.ac): ... to here.
37863 2011-05-08  Bruno Haible  <bruno@clisp.org>
37865         getdomainname: Move AC_LIBOBJ invocations to module description.
37866         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37867         gl_PREREQ_GETDOMAINNAME invocations from here...
37868         * modules/getdomainname (configure.ac): ... to here.
37870 2011-05-08  Bruno Haible  <bruno@clisp.org>
37872         getline: Move AC_LIBOBJ invocations to module description.
37873         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37874         invocations from here...
37875         * modules/getline (configure.ac): ... to here.
37877 2011-05-08  Bruno Haible  <bruno@clisp.org>
37879         getline: Simplify.
37880         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37881         It's already handled through the module dependency.
37883 2011-05-08  Bruno Haible  <bruno@clisp.org>
37885         getdelim: Move AC_LIBOBJ invocations to module description.
37886         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37887         and gl_PREREQ_GETDELIM invocations from here...
37888         * modules/getdelim (configure.ac): ... to here.
37889         (Depends-on): Fix condition.
37891 2011-05-08  Bruno Haible  <bruno@clisp.org>
37893         getcwd: Move AC_LIBOBJ invocations to module description.
37894         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
37895         invocations from here...
37896         * modules/getcwd (configure.ac): ... to here.
37898 2011-05-08  Bruno Haible  <bruno@clisp.org>
37900         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
37901         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
37902         here...
37903         * modules/getcwd-lgpl (configure.ac): ... to here.
37905 2011-05-07  Bruno Haible  <bruno@clisp.org>
37907         crypto/gc: Move AC_LIBOBJ invocations to module description.
37908         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
37909         * modules/crypto/gc (configure.ac): ... to here.
37911 2011-05-07  Bruno Haible  <bruno@clisp.org>
37913         fwriting: Move AC_LIBOBJ invocations to module description.
37914         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
37915         here...
37916         * modules/fwriting (configure.ac): ... to here.
37918 2011-05-07  Bruno Haible  <bruno@clisp.org>
37920         fwritable: Move AC_LIBOBJ invocations to module description.
37921         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
37922         here...
37923         * modules/fwritable (configure.ac): ... to here.
37925 2011-05-07  Bruno Haible  <bruno@clisp.org>
37927         futimens: Move AC_LIBOBJ invocations to module description.
37928         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
37929         here...
37930         * modules/futimens (configure.ac): ... to here.
37932 2011-05-07  Bruno Haible  <bruno@clisp.org>
37934         ftruncate: Move AC_LIBOBJ invocations to module description.
37935         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
37936         gl_PREREQ_FTRUNCATE invocations from here...
37937         * modules/ftruncate (configure.ac): ... to here.
37939 2011-05-07  Bruno Haible  <bruno@clisp.org>
37941         fsync: Move AC_LIBOBJ invocations to module description.
37942         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
37943         invocations from here...
37944         * modules/fsync (configure.ac): ... to here.
37946 2011-05-07  Bruno Haible  <bruno@clisp.org>
37948         fsusage: Move AC_LIBOBJ invocations to module description.
37949         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
37950         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
37951         * modules/fsusage (configure.ac): ... to here.
37953 2011-05-07  Bruno Haible  <bruno@clisp.org>
37955         freopen: Move AC_LIBOBJ invocations to module description.
37956         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
37957         invocations from here...
37958         * modules/freopen (configure.ac): ... to here.
37960 2011-05-07  Bruno Haible  <bruno@clisp.org>
37962         free: Move AC_LIBOBJ invocations to module description.
37963         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
37964         invocations from here...
37965         * modules/free (configure.ac): ... to here.
37967 2011-05-07  Bruno Haible  <bruno@clisp.org>
37969         freadable: Move AC_LIBOBJ invocations to module description.
37970         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
37971         here...
37972         * modules/freadable (configure.ac): ... to here.
37974 2011-05-07  Bruno Haible  <bruno@clisp.org>
37976         fpurge: Move AC_LIBOBJ invocations to module description.
37977         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
37978         invocations from here...
37979         * modules/fpurge (configure.ac): ... to here.
37981 2011-05-07  Bruno Haible  <bruno@clisp.org>
37983         fpending: Move AC_LIBOBJ invocations to module description.
37984         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
37985         gl_FUNC_FPENDING.
37986         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
37987         invocations from here...
37988         * modules/fpending (configure.ac): ... to here.
37990 2011-05-07  Bruno Haible  <bruno@clisp.org>
37992         fopen: Move AC_LIBOBJ invocations to module description.
37993         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
37994         invocations from here...
37995         * modules/fopen (configure.ac): ... to here.
37997 2011-05-07  Bruno Haible  <bruno@clisp.org>
37999         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38000         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38001         gl_FUNC_FNMATCH_POSIX.
38002         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38003         invocations from here...
38004         * modules/fnmatch (configure.ac): ... to here.
38005         * modules/fnmatch-gnu (configure.ac): ... and here.
38007 2011-05-07  Bruno Haible  <bruno@clisp.org>
38009         flock: Move AC_LIBOBJ invocations to module description.
38010         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38011         invocations from here...
38012         * modules/flock (configure.ac): ... to here.
38014 2011-05-07  Bruno Haible  <bruno@clisp.org>
38016         fileblocks: Move AC_LIBOBJ invocations to module description.
38017         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38018         gl_PREREQ_FILEBLOCKS invocations from here...
38019         * modules/fileblocks (configure.ac): ... to here.
38021 2011-05-06  Bruno Haible  <bruno@clisp.org>
38023         fflush: Move AC_LIBOBJ invocations to module description.
38024         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38025         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38026         invocations from here...
38027         * modules/fflush (configure.ac): ... to here.
38029 2011-05-06  Bruno Haible  <bruno@clisp.org>
38031         fdopendir: Move AC_LIBOBJ invocations to module description.
38032         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38033         here...
38034         * modules/fdopendir (configure.ac): ... to here.
38035         (Depends-on): Improve conditions.
38037 2011-05-06  Bruno Haible  <bruno@clisp.org>
38039         _Exit: Move AC_LIBOBJ invocations to module description.
38040         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38041         invocations from here...
38042         * modules/_Exit (configure.ac): ... to here.
38044 2011-05-21  Bruno Haible  <bruno@clisp.org>
38046         euidaccess: Respect rules for use of AC_LIBOBJ.
38047         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38049         from here...
38050         * modules/euidaccess (configure.ac): ... to here.
38052 2011-05-06  Bruno Haible  <bruno@clisp.org>
38054         error: Move AC_LIBOBJ invocations to module description.
38055         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38056         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38057         invocations from here...
38058         * modules/error (configure.ac): ... to here.
38060 2011-05-06  Bruno Haible  <bruno@clisp.org>
38062         duplocale: Move AC_LIBOBJ invocations to module description.
38063         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38064         gl_PREREQ_DUPLOCALE invocations from here...
38065         * modules/duplocale (configure.ac): ... to here.
38067 2011-05-05  Bruno Haible  <bruno@clisp.org>
38069         dirfd: Move AC_LIBOBJ invocations to module description.
38070         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38071         gl_FUNC_DIRFD.
38072         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38073         here...
38074         * modules/dirfd (configure.ac): ... to here.
38075         (Depends-on): Fix condition.
38077 2011-05-05  Bruno Haible  <bruno@clisp.org>
38079         chown: Respect rules for use of AC_LIBOBJ.
38080         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38081         * modules/chown (configure.ac): ... to here.
38083 2011-05-05  Bruno Haible  <bruno@clisp.org>
38085         chdir-long: Move AC_LIBOBJ invocations to module description.
38086         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38087         gl_PREREQ_CHDIR_LONG invocations from here...
38088         * modules/chdir-long (configure.ac): ... to here.
38090 2011-05-05  Bruno Haible  <bruno@clisp.org>
38092         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38093         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38094         from here...
38095         * modules/canonicalize-lgpl (configure.ac): ... to here.
38097 2011-05-05  Bruno Haible  <bruno@clisp.org>
38099         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38100         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38101         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38102         REPLACE_CALLOC.
38103         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38104         * modules/calloc-gnu (configure.ac): Likewise.
38106 2011-05-05  Bruno Haible  <bruno@clisp.org>
38108         btowc: Move AC_LIBOBJ invocations to module description.
38109         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38110         invocations from here...
38111         * modules/btowc (configure.ac): ... to here.
38113 2011-05-21  Bruno Haible  <bruno@clisp.org>
38115         atexit: Move AC_LIBOBJ invocations to module description.
38116         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38118         here...
38119         * modules/atexit (configure.ac): ... to here.
38121 2011-05-05  Bruno Haible  <bruno@clisp.org>
38123         atoll: Move AC_LIBOBJ invocations to module description.
38124         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38125         invocations from here...
38126         * modules/atoll (configure.ac): ... to here.
38128 2011-05-05  Bruno Haible  <bruno@clisp.org>
38130         argz: Move AC_LIBOBJ invocations to module description.
38131         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38132         * modules/argz (configure.ac): ... to here.
38134 2011-05-05  Bruno Haible  <bruno@clisp.org>
38136         alphasort: Move AC_LIBOBJ invocations to module description.
38137         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38138         gl_PREREQ_ALPHASORT invocations from here...
38139         * modules/alphasort (configure.ac): ... to here.
38141 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38143         verify: new macro verify_expr; verify_true deprecated
38144         * NEWS: Mention this.
38145         * doc/verify.texi (Compile-time Assertions): Document this.
38146         * lib/verify.h (verify_true): Deprecate.
38147         (verify_expr): New macro.
38148         * tests/test-verify.c (function): Test verify_expr.
38150 2011-06-14  Jim Meyering  <meyering@redhat.com>
38152         init.sh: give more portable redirection-related advice in a comment
38153         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38154         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38155         for lots of discussion.  Stefano Lattarini suggested the solution
38156         of putting "9>&2" after the command.  Reported by Bruno Haible.
38158 2011-06-13  Bruno Haible  <bruno@clisp.org>
38160         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38161         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38162         'none'.
38164 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38166         ftoastr: use strtof only if HAVE_STRTOF
38167         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38168         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38169         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38170         * modules/ftoastr (configure.ac): Check for strtof.
38172 2011-06-13  Bruno Haible  <bruno@clisp.org>
38174         gnulib-tool: Addendum to 2011-06-08 commit.
38175         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38176         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38178 2011-06-13  Bruno Haible  <bruno@clisp.org>
38180         fseeko: Provide a non-inline replacement of fseek().
38181         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38182         * modules/fseeko (Depends-on): Add fseek.
38183         * modules/fseek (License): Change to LGPLv2+.
38185 2011-06-13  Bruno Haible  <bruno@clisp.org>
38187         ftello: Provide a non-inline replacement of ftell().
38188         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38189         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38190         not have ftello() (such as on mingw).
38191         * modules/ftello (Depends-on): Add ftell.
38192         * modules/ftell (License): Change to LGPLv2+.
38194 2011-05-07  Bruno Haible  <bruno@clisp.org>
38196         ftell: Move AC_LIBOBJ invocations to module description.
38197         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38198         * modules/ftell (configure.ac): ... to here.
38200 2011-05-07  Bruno Haible  <bruno@clisp.org>
38202         ftello: Respect rules for use of AC_LIBOBJ.
38203         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38204         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38205         here...
38206         * modules/ftello (configure.ac): ... to here.
38208 2011-05-07  Bruno Haible  <bruno@clisp.org>
38210         fseeko: Simplify.
38211         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38212         (gl_FUNC_FSEEKO): Inline it here.
38214 2011-05-07  Bruno Haible  <bruno@clisp.org>
38216         fseek: Move AC_LIBOBJ invocations to module description.
38217         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38218         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38219         * modules/fseek (configure.ac): ... to here.
38221 2011-05-07  Bruno Haible  <bruno@clisp.org>
38223         fseek: Respect rules for use of AC_LIBOBJ.
38224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38225         here...
38226         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38228 2011-05-07  Bruno Haible  <bruno@clisp.org>
38230         fseeko: Respect rules for use of AC_LIBOBJ.
38231         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38232         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38233         here...
38234         * modules/fseeko (configure.ac): ... to here.
38236 2011-06-13  Bruno Haible  <bruno@clisp.org>
38238         gnulib-tool: Allow comments in the 'Depends-on' section.
38239         * doc/gnulib.texi (Module description): Mention comment syntax in the
38240         Depends-on section.
38241         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38243 2011-06-13  Bruno Haible  <bruno@clisp.org>
38245         file-set.h: guard __attibute__ use, now that it's not always defined
38246         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38247         versions that support it.  This fixes a coreutils build failure with
38248         the vendor cc on HP-UX 11.31.
38250 2011-06-12  Bruno Haible  <bruno@clisp.org>
38252         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38253         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38254         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38255         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38256         (acl, aclsort): New declarations.
38257         (aclv_nontrivial): New declaration.
38258         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38259         (file_has_acl): Read also the second kind of HP-UX ACLs.
38260         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38261         kind of HP-UX ACLs if the first kind fails.
38262         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38263         second kind of HP-UX ACLs.
38264         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38265         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38266         agree.
38267         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38268         hpuxjfs.
38269         Handle hpuxjfs.
38270         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38271         hpuxjfs.
38272         Handle hpuxjfs.
38273         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38274         (func_test_same_acls): Use both lsacl and getacl.
38275         Handle hpuxjfs.
38276         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38277         (func_test_same_acls): Use both lsacl and getacl.
38278         Handle hpuxjfs.
38280 2011-06-12  Bruno Haible  <bruno@clisp.org>
38282         acl: Complete the 2010-08-10 fix.
38283         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38284         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38285         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38286         explicitly.
38287         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38288         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38290 2011-06-12  Bruno Haible  <bruno@clisp.org>
38292         spawn-pipe tests: Comments.
38293         * tests/test-spawn-pipe-child.c (main): Update comment.
38294         Reported by James Youngman <jay@gnu.org>.
38296 2011-06-11  James Youngman  <jay@gnu.org>
38298         New module 'stat-size'.
38299         * modules/stat-size: New module.  Provides macros for accessing
38300         file size information in instances of struct stat.  Depends on the
38301         fileblocks module because it calls st_blocks.
38302         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38303         * doc/gnulib.texi: Include stat-size.texi.
38304         * doc/stat-size.texi: Documentation for this module.
38305         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38306         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38307         AC_STRUCT_ST_BLOCKS.
38309 2011-06-09  Bruno Haible  <bruno@clisp.org>
38311         thread: Support pthreads-win32.
38312         * lib/glthread/thread.h (gl_thread_self): Define differently on
38313         pthreads-win32.
38314         (gl_null_thread): New declaration.
38315         (gl_thread_self_pointer): New macro.
38316         * lib/glthread/thread.c (gl_null_thread): New constant.
38317         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38318         gl_thread_self.
38319         * tests/test-tls.c: Likewise.
38320         Suggested by Paul Eggert. Reported by Eric Blake.
38322 2011-06-09  Bruno Haible  <bruno@clisp.org>
38324         thread: Fix confusion between NULL and 0.
38325         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38326         Reported by Paul Eggert.
38328 2011-06-09  Bruno Haible  <bruno@clisp.org>
38330         spawn-pipe tests: Avoid test failure on HP-UX 11.
38331         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38332         is closed.
38334 2011-06-09  Bruno Haible  <bruno@clisp.org>
38336         acl tests: Fix compilation error on HP-UX 11.
38337         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38339 2011-06-09  Bruno Haible  <bruno@clisp.org>
38341         rmdir: Avoid test failure on HP-UX 10.20.
38342         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38343         EEXIST.
38345 2011-06-08  Eric Blake  <eblake@redhat.com>
38347         perror: fix test on mingw
38348         * modules/perror-tests (Depends-on): Add dup2.
38350         strerror_r-posix: fix on MacOS
38351         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38352         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38353         logic bug.
38354         * lib/strerror_r.c (strerror_r): Fix the bug.
38355         * lib/strerror.c (strerror): Likewise.
38356         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38357         problem.
38358         * doc/posix-functions/strerror.texi (strerror): Likewise.
38359         * doc/posix-functions/perror.texi (perror): Likewise.
38360         * tests/test-strerror.c (main): Enhance test.
38361         * tests/test-strerror_r.c (main): Likewise.
38363 2011-06-08  Bruno Haible  <bruno@clisp.org>
38365         gnulib-tool: Better isolation between different gnulib-tool invocations.
38366         * gnulib-tool: New option --witness-c-macro.
38367         (witness_c_macro): New variable.
38368         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38369         AM_CPPFLAGS define it as a C macro.
38370         (func_emit_tests_Makefile_am): Likewise.
38371         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38372         read it from there.
38373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38374         m4_define, not AC_DEFUN.
38375         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38376         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38377         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38378         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38379         s|...|...|, to substitute the values of the GNULIB_* module indicator
38380         variables.
38381         * modules/dirent (Makefile.am): Likewise.
38382         * modules/fcntl-h (Makefile.am): Likewise.
38383         * modules/iconv-h (Makefile.am): Likewise.
38384         * modules/langinfo (Makefile.am): Likewise.
38385         * modules/locale (Makefile.am): Likewise.
38386         * modules/math (Makefile.am): Likewise.
38387         * modules/netdb (Makefile.am): Likewise.
38388         * modules/poll-h (Makefile.am): Likewise.
38389         * modules/pty (Makefile.am): Likewise.
38390         * modules/search (Makefile.am): Likewise.
38391         * modules/signal (Makefile.am): Likewise.
38392         * modules/spawn (Makefile.am): Likewise.
38393         * modules/stdio (Makefile.am): Likewise.
38394         * modules/stdlib (Makefile.am): Likewise.
38395         * modules/string (Makefile.am): Likewise.
38396         * modules/sys_ioctl (Makefile.am): Likewise.
38397         * modules/sys_select (Makefile.am): Likewise.
38398         * modules/sys_socket (Makefile.am): Likewise.
38399         * modules/sys_stat (Makefile.am): Likewise.
38400         * modules/sys_times (Makefile.am): Likewise.
38401         * modules/sys_utsname (Makefile.am): Likewise.
38402         * modules/sys_wait (Makefile.am): Likewise.
38403         * modules/termios (Makefile.am): Likewise.
38404         * modules/time (Makefile.am): Likewise.
38405         * modules/unistd (Makefile.am): Likewise.
38406         * modules/wchar (Makefile.am): Likewise.
38408 2011-06-08  Eric Blake  <eblake@redhat.com>
38410         strerror: simplify replacement
38411         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38412         * modules/strerror (configure.ac): No prereqs needed here...
38413         * modules/strerror-override (configure.ac): ...but this needs it.
38414         (Files): Add file for needed prereq macro.
38416 2011-06-08  Bruno Haible  <bruno@clisp.org>
38418         strerror_r-posix: Tweaks.
38419         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38420         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38422         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38423         (gl_FUNC_STRERROR_R): ... to here.
38424         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38426 2011-06-07  Eric Blake  <eblake@redhat.com>
38428         perror: document fixed bugs
38429         * doc/posix-functions/perror.texi (perror): Document recent
38430         patches.
38432 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38434         stat-time: get_stat_birthtime failure is better-defined
38435         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38436         return a timestamp whose tv_sec and tv_nsec values are both -1.
38437         Previously, the spec said only that the tv_nsec value was negative.
38438         This upward-compatible change simplifies GNU tar a bit.
38440 2011-06-07  Eric Blake  <eblake@redhat.com>
38442         strerror_r-posix: work around cygwin 1.7.9
38443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38444         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38445         bug without replacing strerror_r.
38446         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38447         strerror_r is buggy, but without requiring strerror_r compilation.
38448         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38450         test-perror: relax test to ignore cygwin bug
38451         * tests/test-perror2.c (main): Relax test on requiring detection
38452         of stream errors, and use unbuffered stream.
38453         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38454         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38455         * doc/posix-functions/fputc.texi (fputc): Likewise.
38456         * doc/posix-functions/fputs.texi (fputs): Likewise.
38457         * doc/posix-functions/fputws.texi (fputws): Likewise.
38458         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38459         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38460         * doc/posix-functions/getopt.texi (getopt): Likewise.
38461         * doc/posix-functions/perror.texi (perror): Likewise.
38462         * doc/posix-functions/printf.texi (printf): Likewise.
38463         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38464         * doc/posix-functions/psignal.texi (psignal): Likewise.
38465         * doc/posix-functions/putc.texi (putc): Likewise.
38466         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38467         Likewise.
38468         * doc/posix-functions/putchar.texi (putchar): Likewise.
38469         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38470         Likewise.
38471         * doc/posix-functions/puts.texi (puts): Likewise.
38472         * doc/posix-functions/putwc.texi (putwc): Likewise.
38473         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38474         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38475         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38476         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38477         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38478         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38479         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38480         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38482 2011-05-22  Bruno Haible  <bruno@clisp.org>
38484         strerror: Move AC_LIBOBJ invocations to module description.
38485         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38486         gl_PREREQ_STRERROR invocations from here...
38487         * modules/strerror (configure.ac): ... to here.
38489 2011-05-21  Bruno Haible  <bruno@clisp.org>
38491         perror: Use common idiom.
38492         * modules/perror (configure.ac): Reorder statements.
38494 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38496         tests: fix usage message in 'mktempd_'
38497         * tests/init.sh (mktempd_): In the usage message, use literal
38498         'mktempd_', not '$ME' (which is even undefined), as the name of
38499         the subroutine.
38501 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38503         tests init: new function 'fatal_', for hard errors
38504         Before this patch, the only way offered by tests/init.sh to
38505         properly signal a hard error was the `framework_failure_'
38506         function.  But the error message issued by that function,
38507         as its name would suggest, refers to a set-up failure in the
38508         testsuite, while hard errors can obviously also be due to
38509         other reasons.  The best way to fix this inconsistency is to
38510         introduce a new function with a more general error message.
38511         * tests/init.sh (fatal_): New function.
38513 2011-06-06  Eric Blake  <eblake@redhat.com>
38515         canonicalize-lgpl: use common idiom
38516         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38517         over newer POSIX -Rf.
38518         Reported by Bruno Haible.
38520         canonicalize-lgpl: work around AIX realpath bug
38521         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38522         * doc/posix-functions/realpath.texi (realpath): Document it.
38523         Reported by Bruno Haible.
38525         strerror: work around FreeBSD bug
38526         * lib/strerror.c (strerror): Special case 0.
38527         Reported by Bruno Haible.
38529         strerror-override: avoid bloating errno module
38530         * modules/errno (Files, configure.ac): Move replacement strings...
38531         * modules/strerror-override: ...to new module.
38532         * modules/strerror (Depends-on): Add strerror-override.
38533         * modules/strerror_r-posix (Depends-on): Likewise.
38534         * MODULES.html.sh: Document new module.
38535         Reported by Bruno Haible.
38537 2011-06-06  Bruno Haible  <bruno@clisp.org>
38539         spawn-pipe tests: Rename program.
38540         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38541         * tests/test-spawn-pipe-child.c: Update comment.
38542         * tests/test-spawn-pipe.sh: Update.
38543         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38545         spawn-pipe tests: Link the child program only against libc.
38546         * tests/test-spawn-pipe-child.c: New file, extracted from
38547         tests/test-spawn-pipe.c.
38548         (main): Expect only one argument.
38549         (is_open): New function, copied from tests/test-pipe.c.
38550         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38551         (child_main): Remove function.
38552         (test_pipe): Pass only one argument to the child program.
38553         (main): Remove child process code. Expect the child program's name as
38554         first argument.
38555         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38556         argument.
38557         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38558         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38559         test-spawn-pipe-child against no libraries.
38561 2011-06-06  Bruno Haible  <bruno@clisp.org>
38563         careadlinkat: Avoid mismatch between ssize_t and int.
38564         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38565         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38567 2011-06-06  Jim Meyering  <meyering@redhat.com>
38569         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38570         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38571         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38573 2011-06-05  Bruno Haible  <bruno@clisp.org>
38575         ansi-c++-opt: Interoperability with libtool.
38576         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38577         set the variable to "no", not to ":".
38578         * NEWS: Mention the change.
38580 2011-06-05  Bruno Haible  <bruno@clisp.org>
38582         acl: Fix test failure on AIX 7.
38583         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38584         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38586 2011-06-05  Bruno Haible  <bruno@clisp.org>
38588         pipe-filter-ii: Fix test failure on AIX and IRIX.
38589         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38590         with EAGAIN, retry with a smaller buffer size.
38592 2011-06-05  Bruno Haible  <bruno@clisp.org>
38594         localename: Fix link dependencies.
38595         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38596         * modules/localename-tests (Makefile.am): Link test-localename with
38597         $(LIBTHREAD).
38599 2011-06-05  Bruno Haible  <bruno@clisp.org>
38601         error: Avoid gcc warning.
38602         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38604 2011-06-05  Bruno Haible  <bruno@clisp.org>
38606         unsetenv: Avoid gcc warning.
38607         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38609 2011-06-05  Bruno Haible  <bruno@clisp.org>
38611         setenv: Avoid gcc warning.
38612         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38614 2011-06-05  Bruno Haible  <bruno@clisp.org>
38616         sys_select: Ensure memset is declared also on AIX 7.
38617         * lib/sys_select.in.h: Include <string.h> also on AIX.
38618         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38619         self-contained also on AIX 7.1.
38621 2011-06-04  Jim Meyering  <meyering@redhat.com>
38623         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38624         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38625         function name, "error".
38626         (_gl_translatable_diag_func_re): New configurable variable.
38628 2011-06-04  Bruno Haible  <bruno@clisp.org>
38630         getopt: Avoid gcc warning.
38631         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38633 2011-06-04  Bruno Haible  <bruno@clisp.org>
38635         strerror_r: Fix comments.
38636         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38637         commit.
38639 2011-06-04  Bruno Haible  <bruno@clisp.org>
38641         perror: Fix compilation error.
38642         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38643         Undefine fprintf, not sprintf.
38644         * modules/perror (Depends-on): Remove intprops, verify.
38646 2011-06-04  Bruno Haible  <bruno@clisp.org>
38648         setlocale: Enable replacement on Cygwin 1.5.
38649         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38650         Cygwin 1.5.x.
38651         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38652         LC_CTYPE category also exists on Cygwin 1.5.x.
38654 2011-06-04  Bruno Haible  <bruno@clisp.org>
38656         strerror-override: Don't disable symbol renamings.
38657         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38658         * lib/strerror-override.c: Include config.h.
38659         (strerror_override): Don't undefine.
38661 2011-06-03  Bruno Haible  <bruno@clisp.org>
38663         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38664         * lib/localename.h: Update copyright header.
38665         * lib/localename.c: Likewise.
38666         * lib/relocatable.h: Likewise.
38667         * lib/relocatable.c: Likewise.
38669 2011-06-02  Bruno Haible  <bruno@clisp.org>
38671         doc: Fix a module name.
38672         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38674 2011-06-02  Bruno Haible  <bruno@clisp.org>
38676         pipe2: Remove dependency on 'nonblocking' module.
38677         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38678         O_NONBLOCK is defined by gnulib.
38679         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38680         is zero.
38681         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38682         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38683         defined by gnulib.
38684         (get_nonblocking_flag): New function.
38685         (main): Test O_NONBLOCK flag only if it is nonzero.
38686         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38688 2011-06-03  Jim Meyering  <meyering@redhat.com>
38690         maint: three new prohibit-header-without-use rules
38691         Prohibit use of cloexec.h, posixver.h, same.h without use.
38692         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38693         (sc_prohibit_posixver_without_use): Likewise.
38694         (sc_prohibit_same_without_use): Likewise.
38696 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38698         allocator: 'die' routine is now given requested size
38699         * lib/allocator.h (struct allocator.die): New size arg.
38700         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38701         If the actual problem is an ssize_t limitation, not a size_t or
38702         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38704 2011-06-01  Eric Blake  <eblake@redhat.com>
38706         strerror: drop strerror_r dependency
38707         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38708         * lib/strerror-override.c (strerror_override): ...to new file.
38709         * lib/strerror-override.h: Add prototype.
38710         * lib/strerror-impl.h: Delete.
38711         * lib/strerror.c (strerror): New implementation.
38712         * modules/errno (Files): Add new files.
38713         (configure.ac): Compile new file as appropriate.
38714         * modules/strerror (Files): Drop unused file.
38715         (Depends-on): Drop strerror_r-posix.
38716         * MODULES.html.sh: Document strerror_r-posix.
38717         Requested by Sam Steingold.
38719         perror: call strerror_r directly
38720         * modules/perror (Files): Drop strerror-impl.h.
38721         * lib/perror.c (perror): Use our own stack buffer, rather than
38722         calling a wrapper that uses static storage.
38723         * doc/posix-functions/perror.texi (perror): Document a limitation
38724         of our replacement.
38726         strerror_r: fix includes for FreeBSD
38727         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38728         since we use abort on some platforms.
38729         Reported by Matthias Bolte.
38731 2011-05-31  Bruno Haible  <bruno@clisp.org>
38733         Fix link errors in tests: openat-die uses gettext-h.
38734         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38735         against $(LIBINTL).
38736         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38737         against $(LIBINTL).
38738         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38739         $(LIBINTL).
38740         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38741         against $(LIBINTL).
38742         * modules/linkat-tests (Makefile.am): Link test-linkat against
38743         $(LIBINTL).
38744         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38745         $(LIBINTL).
38746         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38747         against $(LIBINTL).
38748         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38749         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38750         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38751         $(LIBINTL).
38752         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38753         $(LIBINTL).
38754         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38755         $(LIBINTL).
38756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38758 2011-05-31  Bruno Haible  <bruno@clisp.org>
38760         Fix link errors in tests: wait-process uses gettext-h.
38761         * modules/nonblocking-pipe-tests (Makefile.am): Set
38762         test_nonblocking_pipe_main_LDADD.
38763         * modules/nonblocking-socket-tests (Makefile.am): Link
38764         test-nonblocking-socket-main against $(LIBINTL).
38765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38767 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38769         assert-h: work around 'verify' incompatibility
38770         * lib/verify.h: Use @...@ directives, not ifdef.
38771         * modules/assert-h (assert.h): Implement the directives.
38772         (assert.h): Substitute the symbol-prefix more consistently.
38774 2011-05-29  Jim Meyering  <meyering@redhat.com>
38776         trim: remove three superfluous assignments
38777         * lib/trim.c (trim2): Remove three superfluous assignments
38778         and correct brace positioning.
38780 2011-05-29  Bruno Haible  <bruno@clisp.org>
38782         wctype-h: Avoid namespace pollution on Solaris 2.6.
38783         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38784         identifiers.
38785         * doc/posix-headers/wctype.texi: Mention the problem.
38786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38788 2011-05-28  Jim Meyering  <meyering@redhat.com>
38790         parse-datetime.y: accommodate -Wstrict-overflow
38791         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38792         placate -Wstrict-overflow.
38794         trim: avoid a warning from -O2 -Wstrict-overflow
38795         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38797 2011-05-29  Bruno Haible  <bruno@clisp.org>
38799         gnulib-tool: Fix bug in yesterday's commit.
38800         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38801         twice.
38803 2011-05-29  Bruno Haible  <bruno@clisp.org>
38805         Allow multiple gnulib generated include files to be combined.
38806         * gnulib-tool (func_compute_include_guard_prefix): New function.
38807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38808         ${gl_include_guard_prefix} references.
38809         (func_import, func_create_testdir): Invoke
38810         func_compute_include_guard_prefix.
38811         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38812         * lib/ctype.in.h: Likewise.
38813         * lib/dirent.in.h: Likewise.
38814         * lib/errno.in.h: Likewise.
38815         * lib/fcntl.in.h: Likewise.
38816         * lib/float.in.h: Likewise.
38817         * lib/getopt.in.h: Likewise.
38818         * lib/iconv.in.h: Likewise.
38819         * lib/langinfo.in.h: Likewise.
38820         * lib/locale.in.h: Likewise.
38821         * lib/math.in.h: Likewise.
38822         * lib/netdb.in.h: Likewise.
38823         * lib/netinet_in.in.h: Likewise.
38824         * lib/poll.in.h: Likewise.
38825         * lib/pthread.in.h: Likewise.
38826         * lib/pty.in.h: Likewise.
38827         * lib/sched.in.h: Likewise.
38828         * lib/se-selinux.in.h: Likewise.
38829         * lib/search.in.h: Likewise.
38830         * lib/signal.in.h: Likewise.
38831         * lib/spawn.in.h: Likewise.
38832         * lib/stdarg.in.h: Likewise.
38833         * lib/stddef.in.h: Likewise.
38834         * lib/stdint.in.h: Likewise.
38835         * lib/stdio.in.h: Likewise.
38836         * lib/stdlib.in.h: Likewise.
38837         * lib/string.in.h: Likewise.
38838         * lib/strings.in.h: Likewise.
38839         * lib/sys_file.in.h: Likewise.
38840         * lib/sys_ioctl.in.h: Likewise.
38841         * lib/sys_select.in.h: Likewise.
38842         * lib/sys_socket.in.h: Likewise.
38843         * lib/sys_stat.in.h: Likewise.
38844         * lib/sys_time.in.h: Likewise.
38845         * lib/sys_times.in.h: Likewise.
38846         * lib/sys_uio.in.h: Likewise.
38847         * lib/sys_utsname.in.h: Likewise.
38848         * lib/sys_wait.in.h: Likewise.
38849         * lib/sysexits.in.h: Likewise.
38850         * lib/termios.in.h: Likewise.
38851         * lib/time.in.h: Likewise.
38852         * lib/unistd.in.h: Likewise.
38853         * lib/wchar.in.h: Likewise.
38854         * lib/wctype.in.h: Likewise.
38855         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38856         * modules/ctype (Makefile.am): Likewise.
38857         * modules/dirent (Makefile.am): Likewise.
38858         * modules/errno (Makefile.am): Likewise.
38859         * modules/fcntl-h (Makefile.am): Likewise.
38860         * modules/float (Makefile.am): Likewise.
38861         * modules/getopt-posix (Makefile.am): Likewise.
38862         * modules/iconv-h (Makefile.am): Likewise.
38863         * modules/langinfo (Makefile.am): Likewise.
38864         * modules/locale (Makefile.am): Likewise.
38865         * modules/math (Makefile.am): Likewise.
38866         * modules/netdb (Makefile.am): Likewise.
38867         * modules/netinet_in (Makefile.am): Likewise.
38868         * modules/poll-h (Makefile.am): Likewise.
38869         * modules/pthread (Makefile.am): Likewise.
38870         * modules/pty (Makefile.am): Likewise.
38871         * modules/sched (Makefile.am): Likewise.
38872         * modules/search (Makefile.am): Likewise.
38873         * modules/selinux-h (Makefile.am): Likewise.
38874         * modules/signal (Makefile.am): Likewise.
38875         * modules/spawn (Makefile.am): Likewise.
38876         * modules/stdarg (Makefile.am): Likewise.
38877         * modules/stddef (Makefile.am): Likewise.
38878         * modules/stdint (Makefile.am): Likewise.
38879         * modules/stdio (Makefile.am): Likewise.
38880         * modules/stdlib (Makefile.am): Likewise.
38881         * modules/string (Makefile.am): Likewise.
38882         * modules/strings (Makefile.am): Likewise.
38883         * modules/sys_file (Makefile.am): Likewise.
38884         * modules/sys_ioctl (Makefile.am): Likewise.
38885         * modules/sys_select (Makefile.am): Likewise.
38886         * modules/sys_socket (Makefile.am): Likewise.
38887         * modules/sys_stat (Makefile.am): Likewise.
38888         * modules/sys_time (Makefile.am): Likewise.
38889         * modules/sys_times (Makefile.am): Likewise.
38890         * modules/sys_uio (Makefile.am): Likewise.
38891         * modules/sys_utsname (Makefile.am): Likewise.
38892         * modules/sys_wait (Makefile.am): Likewise.
38893         * modules/sysexits (Makefile.am): Likewise.
38894         * modules/termios (Makefile.am): Likewise.
38895         * modules/time (Makefile.am): Likewise.
38896         * modules/unistd (Makefile.am): Likewise.
38897         * modules/wchar (Makefile.am): Likewise.
38898         * modules/wctype-h (Makefile.am): Likewise.
38899         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
38901 2011-05-29  Bruno Haible  <bruno@clisp.org>
38903         assert-h: Allow multiple gnulib generated replacements to coexist.
38904         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
38906 2011-05-29  Bruno Haible  <bruno@clisp.org>
38908         argp: Allow coexistence with strerror_r-posix module.
38909         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
38910         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
38911         by gnulib's <string.h> replacement), assume it has the POSIX signature,
38912         not the glibc signature.
38914 2011-05-28  Bruno Haible  <bruno@clisp.org>
38916         gnulib-tool: Alternative structure of testdirs, similar to --import.
38917         * gnulib-tool: New option --single-configure.
38918         (func_usage): Document it.
38919         (single_configure): New variable.
38920         (func_modules_transitive_closure_separately,
38921         func_modules_transitive_closure_separately,
38922         func_determine_use_libtests, func_modules_add_dummy_separately,
38923         func_modules_to_filelist_separately): New functions, extracted from
38924         func_import.
38925         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
38926         (func_import): Use the new functions.
38927         (func_create_testdir): Set final_modules. Handle $single_configure =
38928         true case.
38930 2011-05-28  Bruno Haible  <bruno@clisp.org>
38932         getloadavg: Remove an unreliable safety check.
38933         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
38934         getloadavg.c is in place.
38935         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
38936         Reported by Sam Steingold <sds@gnu.org>.
38938 2011-05-28  Bruno Haible  <bruno@clisp.org>
38940         doc: Cleanup yet another file produced by texinfo.tex.
38941         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
38943 2011-05-28  Bruno Haible  <bruno@clisp.org>
38945         Finish the conditional dependencies mechanism.
38946         * gnulib-tool: New option --no-conditional-dependencies.
38947         (func_usage): Document it. Don't mark --conditional-dependencies as
38948         experimental.
38949         (cond_dependencies): The possible values can now be true, false, empty.
38950         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
38951         (func_import): Store setting in gnulib-cache.m4 and read it from there.
38952         * doc/gnulib-tool.texi (Conditional dependencies): New section.
38954 2011-05-28  Bruno Haible  <bruno@clisp.org>
38956         doc: Use a recent texinfo.tex.
38957         * doc/Makefile (tex_opts): New variable.
38958         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
38960 2011-05-28  Jim Meyering  <meyering@redhat.com>
38962         intprops.h: adjust comment to match code change
38963         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
38964         only once, it *may* have side effects.  Also fix an unrelated typo.
38965         (_GL_INT_SIGNED): Likewise.
38967 2011-05-26  Simon Josefsson  <simon@josefsson.org>
38969         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
38971 2011-05-26  Bruno Haible  <bruno@clisp.org>
38973         mbsrchr: Avoid collision with system function on Interix.
38974         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
38975         Reported by Markus Duft <mduft@gentoo.org>.
38977 2011-05-15  James Youngman  <jay@gnu.org>
38979         getopt: for ambiguous options, enumerate the possibilities.
38980         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
38981         the ambiguous options when an ambiguous prefix is given. This was
38982         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
38983         glibc change was
38984         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
38986 2011-05-25  Eric Blake  <eblake@redhat.com>
38988         getcwd: work around mingw bug
38989         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
38990         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38991         Reported by Matthias Bolte.
38993 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
38995         test-intprops: disable -Wtype-limits diagnostics
38996         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
38997         diagnostics.  Otherwise, the integer overflow macros generate many
38998         diagnostics.  Reported by Jim Meyering in
38999         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39001         intprops: shorten, to pacify gcc -Woverlength-strings
39002         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39003         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39004         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39005         likely to run afoul of C compiler limits for string constant lengths.
39006         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39008 2011-05-24  Eric Blake  <eblake@redhat.com>
39010         docs: document recently fixed glibc printf bug
39011         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39012         * doc/posix-functions/printf.texi (printf): Likewise.
39013         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39014         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39016         closein-tests: convert to init.sh
39017         * modules/closein-tests (Files): Add init.sh
39018         * tests/test-closein.sh Use it.
39020         yesno-tests: convert to init.sh
39021         * modules/yesno-tests (Files): Add init.sh.
39022         * tests/test-yesno.sh: Use it.
39024         atexit-tests: ensure reliable exit status
39025         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39026         Reported by Bruno Haible.
39028 2011-05-24  Bruno Haible  <bruno@clisp.org>
39030         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39032         gl_PREREQ_STRERROR_R invocations from here...
39033         * modules/strerror_r-posix (configure.ac): ... to here.
39035 2011-05-24  Eric Blake  <eblake@redhat.com>
39037         strerror_r: fix missing header
39038         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39040         strerror_r: fix AIX test failures
39041         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39042         ERANGE failure.
39044         strerror_r: fix Solaris test failures
39045         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39046         failures.
39047         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39049         strerror_r: enforce POSIX recommendations
39050         * lib/strerror_r.c (safe_copy): New helper method.
39051         (strerror_r): Guarantee a non-empty string.
39052         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39053         recent POSIX rulings and to match our strerror guarantees.
39054         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39056 2011-05-24  Jim Meyering  <meyering@redhat.com>
39058         test-perror2.c: avoid warning about unused variable
39059         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39061 2011-05-24  Eric Blake  <eblake@redhat.com>
39063         perror: avoid spurious test failure on HP-UX
39064         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39066         tests: fix logic bug in init.sh
39067         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39068         shell.
39070 2011-05-24  Jim Meyering  <meyering@redhat.com>
39072         utimensat: do not reference an out-of-scope buffer
39073         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39074         declared in an inner scope, yet "times" would be dereferenced outside
39075         the scope in which "ts" was valid.
39076         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39077         of ts[2] "out/up", so that the use of aliased "times" (via
39078         "times = ts;") does not end up referencing an out-of-scope "ts"
39080         opendir-safer.c: don't clobber errno; don't close negative FD
39081         * lib/opendir-safer.c (opendir_safer):
39082         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39083         file descriptor, and more importantly, don't clobber the
39084         offending errno value with EINVAL.  Before, upon failure
39085         of dup_safer, we would pass the negative file descriptor to
39086         fdopendir, which would clobber errno.
39088 2011-05-23  Bruno Haible  <bruno@clisp.org>
39090         idcache: Fix module description.
39091         * modules/idcache (Include): Set to "idcache.h".
39093 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39095         gnulib-tool: fix portability problem with MacOS sed
39096         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39097         before the "}".  Problem reported by Leo in
39098         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39099         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39100         sed_extract_condition1, sed_extract_condition2.
39102 2011-05-23  Bruno Haible  <bruno@clisp.org>
39104         hash: Simplify autoconf macro.
39105         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39107 2011-05-23  Bruno Haible  <bruno@clisp.org>
39109         getugroups: Fix module description.
39110         * modules/getugroups (Include): Set to "getugroups.h".
39112 2011-05-23  Bruno Haible  <bruno@clisp.org>
39114         linkat: Simplify autoconf macro.
39115         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39117 2011-05-23  Bruno Haible  <bruno@clisp.org>
39118             Eric Blake  <eblake@redhat.com>
39120         linkat, renameat: Update dependencies.
39121         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39122         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39123         symlinkat.
39125 2011-05-23  Jim Meyering  <meyering@redhat.com>
39127         maint.mk: more tight_scope improvements
39128         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39129         (_gl_TS_headers): Define only in if-0'd block.
39130         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39131         sometimes we must *not* use it.  Adjust uses accordingly.
39132         (sc_tight_scope): Use much simpler grep-based test to determine
39133         whether we skip this rule.
39135         maint.mk: generalize/improve the tight-scope rule
39136         * top/maint.mk: Emit a warning when the test is skipped.
39137         (_gl_TS_dir): Add $(srcdir)/ prefix.
39138         (_gl_TS_function_match): Simplify, rather than trying
39139         to enumerate common types.  Otherwise, it would fail to match an
39140         "extern unsigned char const *" declaration in idutils.
39141         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39142         a way to support use of that type of macro.
39143         (_gl_TS_var_match): Simplify regexp.
39144         (_gl_TS_obj_files): New configurable variable.
39145         (_gl_TS_headers): Likewise.
39147 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39149         verify: fix bug when gnulib <assert.h> is also included
39150         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39151         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39152         Perhaps there's a better way, but this fixes the immediate problem.
39153         Problem reported by Bruno Haible in
39154         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39156 2011-05-22  Bruno Haible  <bruno@clisp.org>
39158         xgetcwd: Simplify autoconf macro.
39159         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39161 2011-05-22  Bruno Haible  <bruno@clisp.org>
39163         New module 'mktime-internal'.
39164         * modules/mktime-internal: New file.
39165         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39166         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39167         mktime_internal as a C macro if libc has __mktime_internal.
39168         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39169         conditions.
39170         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39172 2011-05-22  Bruno Haible  <bruno@clisp.org>
39174         timegm: Correct mktime replacement statements.
39175         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39176         defining mktime as a C macro. This completes a 2009-07-28 commit.
39178 2011-05-22  Bruno Haible  <bruno@clisp.org>
39180         timegm: Simplify autoconf macro.
39181         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39183 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39185         clock-time: change to LGPLv2+.
39186         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39187         BSD-like but we have no mark for that; this is good enough for now.
39189 2011-05-21  Bruno Haible  <bruno@clisp.org>
39191         strerror_r: Fix comments.
39192         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39194 2011-05-21  Bruno Haible  <bruno@clisp.org>
39196         relocatable-prog-wrapper: Fix possible link error.
39197         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39198         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39199         (gl_FUNC_SETENV): ... to here.
39200         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39201         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39203 2011-05-21  Bruno Haible  <bruno@clisp.org>
39205         relocatable-prog-wrapper: Assume strerror() exists.
39206         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39207         m4/strerror.m4.
39208         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39209         * lib/relocwrapper.c: Remove mention of strerror module.
39210         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39211         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39212         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39213         C macro.
39215 2011-05-21  Bruno Haible  <bruno@clisp.org>
39217         select: Simplify replacement idiom.
39218         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39219         Win32 platforms.
39220         * lib/sys_select.in.h (select): Simplify accordingly.
39221         * modules/select (Depends-on): Likewise.
39223 2011-05-21  Bruno Haible  <bruno@clisp.org>
39225         mkdir-p: Simplify autoconf macro.
39226         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39227         gl_FUNC_LCHOWN.
39229 2011-05-21  Eric Blake  <eblake@redhat.com>
39231         strerror_r: avoid clobbering strerror on cygwin
39232         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39233         fall back instead to sys_errlist.
39234         * modules/strerror (configure.ac): Add witness.
39235         * tests/test-strerror_r.c (main): Enhance test.
39236         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39237         * tests/test-perror2.c (main): Free memory before exit.
39239 2011-05-21  Bruno Haible  <bruno@clisp.org>
39241         mkdtemp: Use gnulib naming conventions.
39242         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39243         * modules/mkdtemp (configure.ac): Update.
39245 2011-05-20  Eric Blake  <eblake@redhat.com>
39247         strerror_r: avoid corrupting errno on Solaris
39248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39249         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39251         strerror_r: avoid compiler warning
39252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39254         strerror_r: simplify AIX code
39255         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39257         test-perror: avoid spurious failure on FreeBSD
39258         * modules/perror-tests (Depends-on): Add strerror, now that
39259         strerror_r no longer pulls it in.
39261 2011-05-20  Bruno Haible  <bruno@clisp.org>
39263         strerror_r-posix: Remove unused dependencies.
39264         * modules/strerror_r-posix (Depends-on): Remove strerror.
39265         Reported by Eric Blake.
39267 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39269         intprops: remove assumption about A|B representation
39270         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39271         is a valid integer if both A and B are.  Although this is true for
39272         all known practical hosts, the C standard doesn't guarantee it,
39273         and the code need not assume it.  Also, this change may work around
39274         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39275         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39277 2011-05-20  Eric Blake  <eblake@redhat.com>
39279         perror: work around FreeBSD bug
39280         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39281         is broken.  Move AC_LIBOBJ...
39282         * modules/perror (configure.ac): Here.
39283         * doc/posix-functions/perror.texi (perror): Document this.
39284         * tests/test-perror2.c (main): Enhance test.
39286         test-perror: check for strerror interactions
39287         * tests/macros.h (STREQ): Add macro.
39288         * modules/perror-tests (Files): Add second test.
39289         * tests/test-perror2.c (main): New file.
39290         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39292         test-perror: rewrite to use init script
39293         * modules/perror-tests (Files): Add init.sh.
39294         * tests/test-perror.sh: Use temporary directory.
39296 2011-05-20  Jim Meyering  <meyering@redhat.com>
39298         maint: replace misused "a" with "an"
39299         * doc/intprops.texi: "a integer"
39300         * doc/regex.texi: "a explanation"
39301         * lib/alignof.h: "a object"
39302         * lib/argmatch.h: "a explanation"
39303         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39304         * lib/stdint.in.h: "a integer"
39305         * lib/userspec.c: "a owner"
39306         * doc/gnulib.texi: Fix "a idea", and reword.
39308 2011-05-19  Jim Meyering  <meyering@redhat.com>
39310         maint: correct misuse of "a" and "an"
39311         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39312         * lib/argp-help.c: "an docum...": s/an/a/
39313         * lib/argp-parse.c: "An vector": s/An/A/
39314         * lib/execute.c: "an native": s/an/a/
39315         * lib/spawn-pipe.c: Likewise.
39316         * lib/gc.h: "an Gc_rc": s/an/a/
39317         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39318         * lib/fts.c: "an stat.st_dev": s/an/a/
39320 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39322         intprops-tests: work around HP-UX 11.23 cc bug with constants
39323         * tests/test-intprops.c (VERIFY): New macro.
39324         (main): Use it, instead of verify, to work around the compiler bug; see
39325         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39327         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39328         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39329         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39330         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39331         (_GL_REMAINDER_OVERFLOW): Use it.
39333         intprops-tests: revert unsigned part of previous change
39334         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39335         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39336         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39337         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39339 2011-05-19  Bruno Haible  <bruno@clisp.org>
39341         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39342         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39343         strerror_r() returned without filling the buffer.
39344         Reported by Eric Blake.
39346 2011-05-19  Eric Blake  <eblake@redhat.com>
39348         strerror_r: guarantee unchanged errno
39349         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39350         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39351         failure.
39352         * tests/test-strerror_r.c (main): Enhance test.
39354 2011-05-19  Bruno Haible  <bruno@clisp.org>
39356         strerror_r: Reorder #if blocks.
39357         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39358         for consistency with the previous commit.
39360 2011-05-19  Bruno Haible  <bruno@clisp.org>
39362         perror: Avoid clobbering the strerror buffer when possible.
39363         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39364         * lib/strerror.c: Include it.
39365         * modules/strerror (Files): Add lib/strerror-impl.h.
39366         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39367         (my_strerror): New function, defined through lib/strerror-impl.h.
39368         (perror): Use it instead of strerror.
39369         * modules/perror (Files): Add lib/strerror-impl.h.
39370         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39372 2011-05-19  Eric Blake  <eblake@redhat.com>
39374         strerror_r: fix on newer cygwin
39375         * lib/strerror_r.c (strerror_r): Cygwin now has
39376         __xpg_strerror_r, use it.
39378 2011-05-19  Bruno Haible  <bruno@clisp.org>
39380         strerror_r: Avoid clobbering the strerror buffer when possible.
39381         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39382         (sys_nerr, sys_errlist): New declarations.
39383         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39384         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39385         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39387 2011-05-19  Bruno Haible  <bruno@clisp.org>
39389         strerror_r: Fix test failure on mingw.
39390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39391         EXTEND_STRERROR_R.
39392         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39393         macros from errno.in.h instead.
39395 2011-05-19  Eric Blake  <eblake@redhat.com>
39397         strerror: relax test for Solaris
39398         * tests/test-strerror.c (main): Permit Solaris behavior.
39399         * tests/test-strerror_r.c (main): Likewise.
39401         strerror: enforce POSIX ruling on strerror(0)
39402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39404         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39405         * doc/posix-functions/strerror.texi (strerror): Document it.
39406         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39407         * tests/test-strerror.c (main): Strengthen test.
39408         * tests/test-strerror_r.c (main): Likewise.
39410 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39412         intprop-tests: port to older and more-pedantic compilers
39413         * modules/intprops-tests (Files): Add tests/macros.h.
39414         * tests/test-intprops.c: Include macros.h.
39415         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39416         it's no longer documented to expand to an integer constant expression.
39417         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39418         argument is floating point, as it's no longer documented to expand
39419         to an integer constant expression in that case.
39420         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39421         compiler bugs reported by Bruno Haible.  See
39422         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39423         (U0, U1): New constants, to work around the same bugs.  Also,
39424         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39426         intprops: work around C compiler bugs
39427         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39428         bug in Sun C 5.11 2010/08/13 and other compilers; see
39429         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39431         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39432         * doc/intprops.texi (Integer Type Determination): Fix
39433         documentation for TYPE_IS_INTEGER: it returns an constant
39434         expression, not an integer constant expression.  Fix doc for
39435         TYPE_SIGNED: it returns an integer constant expression only if its
39436         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39437         hardly worth documented that way....)
39439 2011-05-18  Bruno Haible  <bruno@clisp.org>
39441         strerror_r: Avoid clobbering the strerror buffer when possible.
39442         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39443         Handle gnulib defined errno values here. When strerror() returns NULL
39444         or an empty string, return EINVAL.
39445         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39446         gnulib defined errno values here.
39447         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39449 2011-05-18  Eric Blake  <eblake@redhat.com>
39451         fnmatch: avoid compiler warning
39452         * lib/fnmatch_loop.c (FCT): Use correct type.
39453         Reported by Matthias Bolte.
39455 2011-05-13  Jim Meyering  <meyering@redhat.com>
39457         maint.mk: three new prohibit_<HDR>_without_use rules
39458         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39459         (sc_prohibit_stdio-safer_without_use): Likewise.
39460         (sc_prohibit_xfreopen_without_use): Likewise.
39462 2011-05-17  Jim Meyering  <meyering@redhat.com>
39464         announce-gen: fail if the NEWS delta is empty
39465         If there's nothing noteworthy in NEWS, then either you forgot
39466         or you shouldn't be releasing.
39467         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39469 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39471         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39472         reserved symbols starting with double underscore from the check.
39474 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39476         intprops: add doc
39477         * doc/intprops.texi: New file, documenting intprops.
39478         * doc/gnulib.texi (Particular Modules): Include it.
39480         verify: add doc to gnulib manual and fix example
39481         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39482         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39483         (Compile-time Assertions): Fix example so it can't overflow.
39485 2011-05-17  Jim Meyering  <meyering@redhat.com>
39487         warnings.m4: don't usurp save_CPPFLAGS variable name
39488         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39490         doc: fix typo
39491         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39493 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39494             Bruno Haible  <bruno@clisp.org>
39496         doc: Tweak recent change.
39497         * README (Portability guidelines): Tweak new text.
39498         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39499         Interix 6.1.
39501 2011-05-16  Eric Blake  <eblake@redhat.com>
39503         inttypes: avoid autoconf warning
39504         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39505         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39507 2011-05-16  Sam Steingold  <sds@gnu.org>
39508         and Eric Blake  <eblake@redhat.com>
39510         vc-list-files: accept multiple directory operands
39511         * build-aux/vc-list-files: Iterate over all remaining operands.
39513 2011-05-16  Bruno Haible  <bruno@clisp.org>
39515         Fix confusion regarding deprecated modules.
39516         * modules/calloc (Status, Notice): Mark module as deprecated, not
39517         obsolete.
39518         * modules/fnmatch-posix (Status, Notice): Likewise.
39519         * modules/getdate (Status, Notice): Likewise.
39520         * modules/getopt (Status, Notice): Likewise.
39521         * modules/malloc (Status, Notice): Likewise.
39522         * modules/pipe (Status, Notice): Likewise.
39523         * modules/realloc (Status, Notice): Likewise.
39524         * modules/rename-dest-slash (Status, Notice): Likewise.
39525         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39526         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39527         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39528         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39529         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39531 2011-05-16  Bruno Haible  <bruno@clisp.org>
39533         doc: List the target platforms.
39534         * doc/gnulib-intro.texi (Target Platforms): New section.
39535         * doc/gnulib.texi (Introduction): Update menu.
39536         * README (Portability guidelines): Refer to the new section. Update
39537         statement about oldest supported environment. Remove rationale why
39538         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39539         unportable C89 function.
39540         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39541         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39543 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39545         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39547 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39549         intprops-tests: new module
39550         * modules/intprops-tests, tests/test-intprops.c: New files.
39552         intprops: add safe, portable integer overflow checking
39553         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39554         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39555         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39556         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39557         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39558         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39559         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39560         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39561         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39562         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39563         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39565 2011-05-12  James Youngman  <jay@gnu.org>
39567         Add a test for glibc's Bugzilla bug #12378.
39568         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39569         doesn't allow the literal matching of a lone "[" (which is
39570         required by POSIX).
39571         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39573 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39575         Sync glibc change fixing Bugzilla bug #12378.
39576         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39577         beginning and fall back to matching as normal character if the
39578         string ends before the matching ']' is found.  This is what POSIX
39579         requires.
39581 2011-05-13  Eric Blake  <eblake@redhat.com>
39583         getcwd-lgpl: relax test for FreeBSD
39584         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39585         issue.
39586         * tests/test-getcwd-lgpl.c (main): Relax test.
39587         Reported by Matthias Bolte.
39589 2011-05-11  Eric Blake  <eblake@redhat.com>
39591         test-fflush: silence compiler warning
39592         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39594 2011-05-11  Bruno Haible  <bruno@clisp.org>
39596         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39598         * modules/canonicalize (Depends-on): Add 'nocrash'.
39599         * modules/canonicalize-lgpl (Depends-on): Likewise.
39600         * doc/posix-functions/realpath.texi: Update platforms list.
39601         Reported by Ryan Schmidt <ryandesign@macports.org>.
39603 2011-05-11  Bruno Haible  <bruno@clisp.org>
39605         group-member: Declare function in <unistd.h>.
39606         * lib/unistd.in.h (group_member): New declaration.
39607         * lib/group-member.h: Remove file.
39608         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39609         * tests/test-unistd-c++.cc: Check signature of group_member.
39610         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39611         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39612         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39613         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39614         HAVE_GROUP_MEMBER.
39615         * modules/group-member (Files): Remove lib/group-member.h.
39616         (Depends-on): Add unistd. Specify conditions.
39617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39618         (Include): Change to <unistd.h>.
39619         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39620         HAVE_GROUP_MEMBER.
39621         * NEWS: Mention the change.
39622         * lib/euidaccess.c: Don't include group-member.h.
39624 2011-05-11  Bruno Haible  <bruno@clisp.org>
39626         group-member: Document module.
39627         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39628         module.
39630 2011-05-11  Bruno Haible  <bruno@clisp.org>
39632         fclose: Fix mistake earlier today.
39633         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39635 2011-05-11  Eric Blake  <eblake@redhat.com>
39637         fclose: preserve fflush errors
39638         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39639         Reported by Jim Meyering.
39641         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39642         * build-aux/bootstrap (check_versions): When no specific version
39643         is required, merely check that the app produces an exit status
39644         that indicates its existence.
39646         maint.mk: drop redundant check
39647         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39648         the same but better.
39650 2011-05-11  Bruno Haible  <bruno@clisp.org>
39652         fclose: Fix possible link error.
39653         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39654         unregister_shadow_fd. Improve comments.
39655         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39656         Eric Blake.
39658 2011-05-11  Jim Meyering  <meyering@redhat.com>
39660         maint.mk: improve "can not" detection and generalize rule name
39661         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39662         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39663         Use the same technique as in sc_prohibit_doubled_word, so that
39664         we recognize "can not" also when the words are separated by a newline.
39665         Suggested by Eric Blake.
39666         (perl_filename_lineno_text_): Define.  Factored out of...
39667         (prohibit_doubled_word_): ...here.  Use the new definition.
39668         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39669         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39670         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39672 2011-05-10  Eric Blake  <eblake@redhat.com>
39674         fclose: avoid double close race when possible
39675         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39676         all but WINDOWS_SOCKETS.
39678 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39680         openat: correct new comment
39681         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39683 2011-05-10  Jim Meyering  <meyering@redhat.com>
39685         openat: add comments
39686         * lib/openat-proc.c (openat_proc_name): Add comments,
39687         mostly from Eric Blake.
39689 2011-05-09  Eric Blake  <eblake@redhat.com>
39691         openat: reduce syscalls in first probe of /proc
39692         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39693         be a directory.  Simplify the probe for .. bugs.
39694         * modules/openat (Depends-on): Drop same-inode.
39695         Reported by Bastien ROUCARIES.
39697 2011-05-09  Jim Meyering  <meyering@redhat.com>
39699         maint.mk: change semantics/name of tight_scope variables
39700         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39701         Rename variables to align with semantics that make them more useful.
39703         maint.mk: tweak new rule's name not to impinge
39704         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39705         (sc_tight_scope): Use new rule name rather than $@-0.
39707         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39708         * top/maint.mk (sc_tight_scope): New rule.
39709         (sc_tight_scope-0): New rule, ifdef'd out.
39710         (_gl_TS_dir): Default.
39711         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39712         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39714 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39716         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39717         Haible <bruno@clisp.org>.
39719 2011-05-08  Bruno Haible  <bruno@clisp.org>
39721         Comments.
39722         * m4/isnanf.m4: Add comment.
39723         * m4/isnanl.m4: Likewise.
39725 2011-05-08  Bruno Haible  <bruno@clisp.org>
39727         glob: Remove obsolete macro.
39728         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39730 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39732         intprops: Sun C 5.11 supports __typeof__
39733         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39734         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39735         which is new.
39736         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39738         intprops: switch to usual gnulib indenting and naming
39739         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39740         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39742         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39744 2011-05-08  Jim Meyering  <meyering@redhat.com>
39746         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39747         * top/maint.mk (release-prep): Use make's --no-print-directory
39748         option when generating the announcement.  This eliminates the
39749         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39750         generated announcement template.
39752 2011-05-08  Bruno Haible  <bruno@clisp.org>
39754         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39755         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39756         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39758 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39760         ignore-value, verify: Omit include files from lib_SOURCES.
39761         * modules/ignore-value, modules/verify (Makefile.am):
39762         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39763         that leads Automake to duplicate use of am__objects_... variables
39764         in Makefile.in.  See
39765         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39767 2011-05-07  Bruno Haible  <bruno@clisp.org>
39769         fclose: Simplify autoconf macro.
39770         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39771         defined.
39773 2011-05-07  Bruno Haible  <bruno@clisp.org>
39775         canonicalize-lgpl: Fix autoconf macro ordering bug.
39776         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39777         gl_STDLIB_H_DEFAULTS.
39779 2011-05-06  Eric Blake  <eblake@redhat.com>
39781         maintainer-makefile: make sc_po_check easier to tune
39782         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39783         to probe for strings, such as an alternate location for gnulib.
39785         fclose: guarantee behavior on seekable stdin
39786         * modules/fclose (Depends-on): Add fflush.
39787         * doc/posix-functions/fclose.texi (fclose): Document this.
39788         * tests/test-fclose.c (main): Make test for this unconditional.
39790 2011-05-06  Bruno Haible  <bruno@clisp.org>
39792         fflush, fpurge: Relicense under LGPLv2+.
39793         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39794         * modules/fpurge (License): Likewise.
39795         With permission from Eric Blake and Jim Meyering.
39796         Suggested by Eric Blake.
39798 2011-05-06  Karl Berry  <karl@gnu.org>
39800         * MODULES.html.sh (func_all_modules): remove exit.
39802 2011-05-06  Jim Meyering  <meyering@redhat.com>
39804         maint.mk: use info-gnu@ as the default only for a stable release
39805         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39806         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39807         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39808         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39810 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39812         assert-h: new module, which supports C1X-style static_assert
39813         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39814         * lib/verify.h: Revamp so that this can be copied into assert.h,
39815         while retaining the ability to use it standalone as before.
39816         Rename private identifiers so as not to encroach on the
39817         standard C namespace, since this is now used by assert.h.
39818         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39819         the old verify_true.
39820         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39821         the old verify_true.  Use _GL_VERIFY_TYPE.
39822         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39823         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39824         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39825         defined when this file is copied into the replacement assert.h.
39826         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39827         and _Static_assert is not built in.
39828         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39829         defined, and use the new macros mentioned above.
39830         * doc/posix-headers/assert.texi: Document this.
39832 2011-05-05  Bruno Haible  <bruno@clisp.org>
39834         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39835         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39836         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39837         gl_REPLACE_FCLOSE here.
39838         * modules/fflush (Depends-on): Remove fclose.
39839         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39840         combination with module 'fclose'.
39842 2011-05-05  Bruno Haible  <bruno@clisp.org>
39844         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39845         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39846         gl_FUNC_FFLUSH.
39847         (gl_FUNC_FFLUSH): Use it.
39848         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39849         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39850         gl_REPLACE_FSEEKO here.
39852 2011-05-05  Bruno Haible  <bruno@clisp.org>
39854         tzset: Relicense under LGPL.
39855         * modules/tzset (License): Change to LGPL.
39856         No agreement needed; it's a no-op.
39858         strtoimax, strtoumax: Relicense under LGPL.
39859         * modules/strtoimax (License): Change to LGPL.
39860         * modules/strtoumax (License): Likewise.
39861         With permission from Jim Meyering, Paul Eggert:
39862         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39863         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39865         getgroups: Relicense under LGPL.
39866         * modules/getgroups (License): Change to LGPL.
39867         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39868         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39870         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39872         nanosleep: Relicense under LGPL.
39873         * modules/nanosleep (License): Change to LGPL.
39874         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39875         Haible:
39876         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39877         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39878         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39879         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39881         futimens: Relicense under LGPL.
39882         * modules/futimens (License): Change to LGPL.
39883         With permission from Eric Blake:
39884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39886         fflush: Relicense under LGPL.
39887         * modules/fflush (License): Change to LGPL.
39888         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39889         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39890         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39891         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39893         tmpfile: Relicense under LGPL.
39894         * modules/tmpfile (License): Change to LGPL.
39895         With permission from Ben Pfaff:
39896         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39898         isfinite: Relicense under LGPL.
39899         * modules/isfinite (License): Change to LGPL.
39900         With permission from Ben Pfaff, Bruno Haible:
39901         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39902         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
39904         acosl..tanl: Relicense under LGPL.
39905         * modules/acosl (License): Change to LGPL.
39906         * modules/asinl (License): Likewise.
39907         * modules/atanl (License): Likewise.
39908         * modules/cosl (License): Likewise.
39909         * modules/expl (License): Likewise.
39910         * modules/logl (License): Likewise.
39911         * modules/sinl (License): Likewise.
39912         * modules/sqrtl (License): Likewise.
39913         * modules/tanl (License): Likewise.
39914         Source code originally from glibc and Paolo Bonzini. Agreements:
39915         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
39916         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
39918 2011-05-05  Bruno Haible  <bruno@clisp.org>
39920         signal: Define sighandler_t.
39921         * lib/signal.in.h (sighandler_t): New type.
39922         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
39923         whether sighandler_t is defined.
39924         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
39925         * modules/signal (Depends-on): Add extensions.
39926         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
39927         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
39928         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
39930 2011-05-05  Eric Blake  <eblake@redhat.com>
39932         maint: remove useless REPLACE_*_H macros
39933         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
39934         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39935         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39936         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
39937         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39938         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39939         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
39940         * m4/btowc.m4: Update callers.
39941         * m4/dirfd.m4: Likewise.
39942         * m4/duplocale.m4: Likewise.
39943         * m4/fchdir.m4: Likewise.
39944         * m4/fdopendir.m4: Likewise.
39945         * m4/inet_ntop.m4: Likewise.
39946         * m4/inet_pton.m4: Likewise.
39947         * m4/ioctl.m4: Likewise.
39948         * m4/mbrlen.m4: Likewise.
39949         * m4/mbrtowc.m4: Likewise.
39950         * m4/mbsinit.m4: Likewise.
39951         * m4/mbsnrtowcs.m4: Likewise.
39952         * m4/mbsrtowcs.m4: Likewise.
39953         * m4/poll.m4: Likewise.
39954         * m4/setlocale.m4: Likewise.
39955         * m4/wcrtomb.m4: Likewise.
39956         * m4/wcsnrtombs.m4: Likewise.
39957         * m4/wcsrtombs.m4: Likewise.
39958         * m4/wctob.m4: Likewise.
39959         * m4/wcwidth.m4: Likewise.
39960         * modules/posix_spawn: Likewise.
39961         * modules/posix_spawn_file_actions_addclose: Likewise.
39962         * modules/posix_spawn_file_actions_adddup2: Likewise.
39963         * modules/posix_spawn_file_actions_addopen: Likewise.
39964         * modules/posix_spawn_file_actions_destroy: Likewise.
39965         * modules/posix_spawn_file_actions_init: Likewise.
39966         * modules/posix_spawnattr_destroy: Likewise.
39967         * modules/posix_spawnattr_getflags: Likewise.
39968         * modules/posix_spawnattr_getpgroup: Likewise.
39969         * modules/posix_spawnattr_getschedparam: Likewise.
39970         * modules/posix_spawnattr_getschedpolicy: Likewise.
39971         * modules/posix_spawnattr_getsigdefault: Likewise.
39972         * modules/posix_spawnattr_getsigmask: Likewise.
39973         * modules/posix_spawnattr_init: Likewise.
39974         * modules/posix_spawnattr_setflags: Likewise.
39975         * modules/posix_spawnattr_setpgroup: Likewise.
39976         * modules/posix_spawnattr_setschedparam: Likewise.
39977         * modules/posix_spawnattr_setschedpolicy: Likewise.
39978         * modules/posix_spawnattr_setsigdefault: Likewise.
39979         * modules/posix_spawnattr_setsigmask: Likewise.
39980         * modules/posix_spawnp: Likewise.
39982 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
39984         Add option to do-release-commit-and-tag to specify branch.
39985         * build-aux/do-release-commit-and-tag: Add --branch.
39987 2011-05-03  Bruno Haible  <bruno@clisp.org>
39989         Avoid unnecessary compilation units, through conditional dependencies.
39990         * modules/accept (Depends-on): Add conditions to the dependencies.
39991         * modules/acosl (Depends-on): Likewise.
39992         * modules/argz (Depends-on): Likewise.
39993         * modules/asinl (Depends-on): Likewise.
39994         * modules/atanl (Depends-on): Likewise.
39995         * modules/atoll (Depends-on): Likewise.
39996         * modules/bind (Depends-on): Likewise.
39997         * modules/btowc (Depends-on): Likewise.
39998         * modules/canonicalize-lgpl (Depends-on): Likewise.
39999         * modules/ceil (Depends-on): Likewise.
40000         * modules/ceilf (Depends-on): Likewise.
40001         * modules/ceill (Depends-on): Likewise.
40002         * modules/chdir-long (Depends-on): Likewise.
40003         * modules/chown (Depends-on): Likewise.
40004         * modules/close (Depends-on): Likewise.
40005         * modules/connect (Depends-on): Likewise.
40006         * modules/cosl (Depends-on): Likewise.
40007         * modules/dirfd (Depends-on): Likewise.
40008         * modules/dprintf (Depends-on): Likewise.
40009         * modules/dprintf-posix (Depends-on): Likewise.
40010         * modules/error (Depends-on): Likewise.
40011         * modules/euidaccess (Depends-on): Likewise.
40012         * modules/expl (Depends-on): Likewise.
40013         * modules/faccessat (Depends-on): Likewise.
40014         * modules/fchdir (Depends-on): Likewise.
40015         * modules/fclose (Depends-on): Likewise.
40016         * modules/fcntl (Depends-on): Likewise.
40017         * modules/fdopendir (Depends-on): Likewise.
40018         * modules/fflush (Depends-on): Likewise.
40019         * modules/floor (Depends-on): Likewise.
40020         * modules/floorf (Depends-on): Likewise.
40021         * modules/floorl (Depends-on): Likewise.
40022         * modules/fnmatch (Depends-on): Likewise.
40023         * modules/fopen (Depends-on): Likewise.
40024         * modules/fprintf-posix (Depends-on): Likewise.
40025         * modules/frexp (Depends-on): Likewise.
40026         * modules/frexp-nolibm (Depends-on): Likewise.
40027         * modules/frexpl (Depends-on): Likewise.
40028         * modules/frexpl-nolibm (Depends-on): Likewise.
40029         * modules/fseek (Depends-on): Likewise.
40030         * modules/fsusage (Depends-on): Likewise.
40031         * modules/ftell (Depends-on): Likewise.
40032         * modules/ftello (Depends-on): Likewise.
40033         * modules/futimens (Depends-on): Likewise.
40034         * modules/getcwd (Depends-on): Likewise.
40035         * modules/getcwd-lgpl (Depends-on): Likewise.
40036         * modules/getdelim (Depends-on): Likewise.
40037         * modules/getdomainname (Depends-on): Likewise.
40038         * modules/getgroups (Depends-on): Likewise.
40039         * modules/gethostname (Depends-on): Likewise.
40040         * modules/getline (Depends-on): Likewise.
40041         * modules/getlogin_r (Depends-on): Likewise.
40042         * modules/getopt-posix (Depends-on): Likewise.
40043         * modules/getpeername (Depends-on): Likewise.
40044         * modules/getsockname (Depends-on): Likewise.
40045         * modules/getsockopt (Depends-on): Likewise.
40046         * modules/getsubopt (Depends-on): Likewise.
40047         * modules/getusershell (Depends-on): Likewise.
40048         * modules/glob (Depends-on): Likewise.
40049         * modules/grantpt (Depends-on): Likewise.
40050         * modules/iconv_open (Depends-on): Likewise.
40051         * modules/iconv_open-utf (Depends-on): Likewise.
40052         * modules/inet_ntop (Depends-on): Likewise.
40053         * modules/inet_pton (Depends-on): Likewise.
40054         * modules/ioctl (Depends-on): Likewise.
40055         * modules/isapipe (Depends-on): Likewise.
40056         * modules/isfinite (Depends-on): Likewise.
40057         * modules/isinf (Depends-on): Likewise.
40058         * modules/lchown (Depends-on): Likewise.
40059         * modules/ldexpl (Depends-on): Likewise.
40060         * modules/link (Depends-on): Likewise.
40061         * modules/linkat (Depends-on): Likewise.
40062         * modules/listen (Depends-on): Likewise.
40063         * modules/logl (Depends-on): Likewise.
40064         * modules/lstat (Depends-on): Likewise.
40065         * modules/mbrlen (Depends-on): Likewise.
40066         * modules/mbrtowc (Depends-on): Likewise.
40067         * modules/mbsinit (Depends-on): Likewise.
40068         * modules/mbsnrtowcs (Depends-on): Likewise.
40069         * modules/mbsrtowcs (Depends-on): Likewise.
40070         * modules/mbtowc (Depends-on): Likewise.
40071         * modules/memcmp (Depends-on): Likewise.
40072         * modules/mkdir (Depends-on): Likewise.
40073         * modules/mkdtemp (Depends-on): Likewise.
40074         * modules/mkfifo (Depends-on): Likewise.
40075         * modules/mkfifoat (Depends-on): Likewise.
40076         * modules/mknod (Depends-on): Likewise.
40077         * modules/mkostemp (Depends-on): Likewise.
40078         * modules/mkostemps (Depends-on): Likewise.
40079         * modules/mkstemp (Depends-on): Likewise.
40080         * modules/mkstemps (Depends-on): Likewise.
40081         * modules/mktime (Depends-on): Likewise.
40082         * modules/nanosleep (Depends-on): Likewise.
40083         * modules/open (Depends-on): Likewise.
40084         * modules/openat (Depends-on): Likewise.
40085         * modules/perror (Depends-on): Likewise.
40086         * modules/poll (Depends-on): Likewise.
40087         * modules/popen (Depends-on): Likewise.
40088         * modules/posix_spawn (Depends-on): Likewise.
40089         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40090         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40091         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40092         * modules/posix_spawnp (Depends-on): Likewise.
40093         * modules/pread (Depends-on): Likewise.
40094         * modules/printf-posix (Depends-on): Likewise.
40095         * modules/ptsname (Depends-on): Likewise.
40096         * modules/putenv (Depends-on): Likewise.
40097         * modules/pwrite (Depends-on): Likewise.
40098         * modules/readline (Depends-on): Likewise.
40099         * modules/readlink (Depends-on): Likewise.
40100         * modules/readlinkat (Depends-on): Likewise.
40101         * modules/recv (Depends-on): Likewise.
40102         * modules/recvfrom (Depends-on): Likewise.
40103         * modules/regex (Depends-on): Likewise.
40104         * modules/remove (Depends-on): Likewise.
40105         * modules/rename (Depends-on): Likewise.
40106         * modules/renameat (Depends-on): Likewise.
40107         * modules/rmdir (Depends-on): Likewise.
40108         * modules/round (Depends-on): Likewise.
40109         * modules/roundf (Depends-on): Likewise.
40110         * modules/roundl (Depends-on): Likewise.
40111         * modules/rpmatch (Depends-on): Likewise.
40112         * modules/select (Depends-on): Likewise.
40113         * modules/send (Depends-on): Likewise.
40114         * modules/sendto (Depends-on): Likewise.
40115         * modules/setenv (Depends-on): Likewise.
40116         * modules/setlocale (Depends-on): Likewise.
40117         * modules/setsockopt (Depends-on): Likewise.
40118         * modules/shutdown (Depends-on): Likewise.
40119         * modules/sigaction (Depends-on): Likewise.
40120         * modules/signbit (Depends-on): Likewise.
40121         * modules/sigprocmask (Depends-on): Likewise.
40122         * modules/sinl (Depends-on): Likewise.
40123         * modules/sleep (Depends-on): Likewise.
40124         * modules/snprintf (Depends-on): Likewise.
40125         * modules/snprintf-posix (Depends-on): Likewise.
40126         * modules/socket (Depends-on): Likewise.
40127         * modules/sprintf-posix (Depends-on): Likewise.
40128         * modules/sqrtl (Depends-on): Likewise.
40129         * modules/stat (Depends-on): Likewise.
40130         * modules/strchrnul (Depends-on): Likewise.
40131         * modules/strdup-posix (Depends-on): Likewise.
40132         * modules/strerror (Depends-on): Likewise.
40133         * modules/strerror_r-posix (Depends-on): Likewise.
40134         * modules/strndup (Depends-on): Likewise.
40135         * modules/strnlen (Depends-on): Likewise.
40136         * modules/strptime (Depends-on): Likewise.
40137         * modules/strsep (Depends-on): Likewise.
40138         * modules/strsignal (Depends-on): Likewise.
40139         * modules/strstr-simple (Depends-on): Likewise.
40140         * modules/strtod (Depends-on): Likewise.
40141         * modules/strtoimax (Depends-on): Likewise.
40142         * modules/strtok_r (Depends-on): Likewise.
40143         * modules/strtoumax (Depends-on): Likewise.
40144         * modules/symlink (Depends-on): Likewise.
40145         * modules/symlinkat (Depends-on): Likewise.
40146         * modules/tanl (Depends-on): Likewise.
40147         * modules/tcgetsid (Depends-on): Likewise.
40148         * modules/tmpfile (Depends-on): Likewise.
40149         * modules/trunc (Depends-on): Likewise.
40150         * modules/truncf (Depends-on): Likewise.
40151         * modules/truncl (Depends-on): Likewise.
40152         * modules/uname (Depends-on): Likewise.
40153         * modules/unlink (Depends-on): Likewise.
40154         * modules/unlockpt (Depends-on): Likewise.
40155         * modules/unsetenv (Depends-on): Likewise.
40156         * modules/usleep (Depends-on): Likewise.
40157         * modules/utimensat (Depends-on): Likewise.
40158         * modules/vasprintf (Depends-on): Likewise.
40159         * modules/vdprintf (Depends-on): Likewise.
40160         * modules/vdprintf-posix (Depends-on): Likewise.
40161         * modules/vfprintf-posix (Depends-on): Likewise.
40162         * modules/vprintf-posix (Depends-on): Likewise.
40163         * modules/vsnprintf (Depends-on): Likewise.
40164         * modules/vsnprintf-posix (Depends-on): Likewise.
40165         * modules/vsprintf-posix (Depends-on): Likewise.
40166         * modules/wcrtomb (Depends-on): Likewise.
40167         * modules/wcscasecmp (Depends-on): Likewise.
40168         * modules/wcscspn (Depends-on): Likewise.
40169         * modules/wcsdup (Depends-on): Likewise.
40170         * modules/wcsncasecmp (Depends-on): Likewise.
40171         * modules/wcsnrtombs (Depends-on): Likewise.
40172         * modules/wcspbrk (Depends-on): Likewise.
40173         * modules/wcsrtombs (Depends-on): Likewise.
40174         * modules/wcsspn (Depends-on): Likewise.
40175         * modules/wcsstr (Depends-on): Likewise.
40176         * modules/wcstok (Depends-on): Likewise.
40177         * modules/wcswidth (Depends-on): Likewise.
40178         * modules/wctob (Depends-on): Likewise.
40179         * modules/wctomb (Depends-on): Likewise.
40180         * modules/wctype (Depends-on): Likewise.
40181         * modules/wcwidth (Depends-on): Likewise.
40182         * modules/write (Depends-on): Likewise.
40184 2011-05-03  Bruno Haible  <bruno@clisp.org>
40186         Support for conditional dependencies.
40187         * doc/gnulib.texi (Module description): Document the syntax of
40188         conditional dependencies.
40189         * gnulib-tool: New option --conditional-dependencies.
40190         (func_usage): Document it.
40191         (cond_dependencies): New variable.
40192         (func_get_automake_snippet_conditional,
40193         func_get_automake_snippet_unconditional): New functions, extracted from
40194         func_get_automake_snippet.
40195         (func_get_automake_snippet): Use them.
40196         (sed_first_32_chars): New variable.
40197         (func_module_shellfunc_name): New function.
40198         (func_module_shellvar_name): New function.
40199         (func_module_conditional_name): New function.
40200         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40201         func_cond_module_condition): New functions.
40202         (func_modules_transitive_closure): Add support for conditional
40203         dependencies.
40204         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40205         conditional automake snippet in an automake conditional.
40206         (func_emit_autoconf_snippets): Emit shell functions that contain the
40207         code for conditional modules.
40208         (func_import, func_create_testdir): Update specification.
40210 2011-05-03  Eric Blake  <eblake@redhat.com>
40212         test-getaddrinfo: report error information
40213         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40215 2011-05-03  Jim Meyering  <meyering@redhat.com>
40217         bootstrap: avoid build failure when $GZIP is set
40218         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40219         program name.  If defined at all, it is supposed to list gzip options.
40220         Reported by Alan Curry in http://debbugs.gnu.org/8609
40222 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40224         readme-release: new module with release instructions
40225         * modules/readme-release: New module.
40226         * top/README-release: New file, from coreutils, grep, diffutils.
40227         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40229 2011-05-02  Eric Blake  <eblake@redhat.com>
40231         fflush: also replace fclose when fixing fflush
40232         * modules/fflush (Depends-on): Add fclose.
40233         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40234         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40235         memstreams with no backing fd.
40236         * doc/posix-functions/fclose.texi (fclose): Document the use of
40237         fflush module to fix the bug.
40238         * tests/test-fclose.c (main): Relax test when fclose is used in
40239         isolation.
40241         fclose: add some tests
40242         * modules/fclose-tests: New test module.
40243         * tests/test-fclose.c: New file.
40244         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40246         fclose: reduced dependencies
40247         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40248         simpler lseek.
40249         * lib/fclose.c (rpl_fclose): Likewise.
40250         Reported by Simon Josefsson.
40252         exit: drop remaining clients
40253         * modules/argmatch (Depends-on): Replace exit with stdlib.
40254         * modules/copy-file (Depends-on): Likewise.
40255         * modules/execute (Depends-on): Likewise.
40256         * modules/exitfail (Depends-on): Likewise.
40257         * modules/obstack (Depends-on): Likewise.
40258         * modules/pagealign_alloc (Depends-on): Likewise.
40259         * modules/pipe-filter-gi (Depends-on): Likewise.
40260         * modules/pipe-filter-ii (Depends-on): Likewise.
40261         * modules/savewd (Depends-on): Likewise.
40262         * modules/spawn-pipe (Depends-on): Likewise.
40263         * modules/wait-process (Depends-on): Likewise.
40264         * modules/xsetenv (Depends-on): Likewise.
40265         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40266         * modules/git-merge-changelog (Depends-on): Likewise.
40267         * modules/long-options (Depends-on): Likewise.
40268         * modules/pt_chown (Depends-on): Likewise.
40269         * modules/sysexits (Depends-on): Likewise.
40271         freading: relax license from LGPLv3+ to LGPLv2+
40272         * modules/freading (License): Relax LGPL version.
40274 2011-05-02  Bruno Haible  <bruno@clisp.org>
40276         fchdir: Remove unused dependencies.
40277         * modules/fchdir (Depends-on): Remove include_next.
40279 2011-05-02  Bruno Haible  <bruno@clisp.org>
40281         gnulib-tool: Refactor.
40282         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40283         from func_emit_autoconf_snippets.
40284         (func_emit_autoconf_snippets): Use it.
40286 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40288         * NEWS: Document removal of 'exit'.
40289         * modules/exit: Remove file.
40291 2011-05-01  Bruno Haible  <bruno@clisp.org>
40293         Update DEPENDENCIES.
40294         * DEPENDENCIES (gettext): Recommend the newest release.
40295         Reported by Simon Josefsson.
40297 2011-05-01  Bruno Haible  <bruno@clisp.org>
40299         gnulib-tool: Reduce code duplication.
40300         * gnulib-tool (func_emit_autoconf_snippets): New function.
40301         (func_import, func_create_testdir): Use it.
40303 2011-04-30  Eric Blake  <eblake@redhat.com>
40305         fclose: don't fail on non-seekable input stream
40306         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40307         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40308         since fflush is allowed to fail in that case.
40310 2011-04-30  Bruno Haible  <bruno@clisp.org>
40312         dup3: cleanup
40313         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40315 2011-04-30  Bruno Haible  <bruno@clisp.org>
40317         netdb: Make it work in C++ mode.
40318         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40319         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40320         module.
40321         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40322         gl_MODULE_INDICATOR_FOR_TESTS.
40323         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40324         * modules/netdb-c++-tests: New file.
40325         * tests/test-netdb-c++.cc: New file.
40327 2011-04-30  Bruno Haible  <bruno@clisp.org>
40329         New modules 'vfscanf', 'vscanf'.
40330         * modules/vfscanf: New file.
40331         * modules/vscanf: New file.
40332         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40333         here.
40334         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40335         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40337 2011-04-30  Bruno Haible  <bruno@clisp.org>
40339         passfd: Add comments.
40340         * lib/passfd.c: Add comments about platforms.
40342 2011-04-30  Bruno Haible  <bruno@clisp.org>
40344         sys_uio: Make <sys/uio.h> self-contained.
40345         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40346         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40348 2011-04-30  Bruno Haible  <bruno@clisp.org>
40350         sys_socket: Ensure 'struct iovec' definition.
40351         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40352         <sys/socket.h>.
40353         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40355 2011-04-30  Bruno Haible  <bruno@clisp.org>
40357         sys_uio: Protect definition of 'struct iovec'.
40358         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40359         it as a C struct.
40361 2011-04-30  Bruno Haible  <bruno@clisp.org>
40363         manywarnings: fix indentation
40364         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40366 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40368         manywarnings: add -Wno-missing-field-initializers if needed.
40369         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40370         option if it's needed to allow initialization with { 0, }
40372 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40374         announce-gen: cosmetic improvement
40375         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40377 2011-04-29  Jim Meyering  <meyering@redhat.com>
40379         vc-list-files: indent with spaces, not TABs
40380         * build-aux/vc-list-files: Convert leading TABs to spaces,
40381         to match the style of most other files in gnulib.
40383         announce-gen: indent with spaces, not TABs
40384         * build-aux/announce-gen: Convert all TABs to spaces, to match
40385         the style of most other files in gnulib.
40387 2011-04-29  Eric Blake  <eblake@redhat.com>
40389         quotearg: avoid uninitialized variable use
40390         * lib/quotearg.c (quoting_options_from_style): Initialize
40391         remaining fields, and ensure that custom styles are only used via
40392         quoting_options rather than quoting_style.
40394 2011-04-29  Jim Meyering  <meyering@redhat.com>
40396         maint.mk: remove unused VC-tag variable
40397         * top/maint.mk (VC-tag): Remove unused variable.
40399 2011-04-29  Bruno Haible  <bruno@clisp.org>
40401         netdb: fix gai_strerror replacements
40402         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40403         * modules/netdb: Substitute it.
40405 2011-04-29  Jim Meyering  <meyering@redhat.com>
40407         test-getcwd.c: avoid new set-but-not-used warning
40408         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40409         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40410         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40411         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40413         test-hash.c: avoid a new shadowing warning
40414         * tests/test-hash.c (main): Don't shadow "dup".
40416 2011-04-28  Eric Blake  <eblake@redhat.com>
40418         getaddrinfo: fix gai_strerror signature
40419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40420         and work around mingw with UNICODE defined.
40421         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40422         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40423         * modules/netdb (Makefile.am): Substitute it.
40424         * lib/netdb.in.h (gai_strerror): Declare replacement.
40425         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40426         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40427         the fix.
40429         getsockopt: avoid compiler warning
40430         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40431         Reported by Matthias Bolte.
40433         tests: drop unused link dependency
40434         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40435         * modules/dirent-safer-tests (Makefile.am): Likewise.
40436         * modules/fdopendir-tests (Makefile.am): Likewise.
40437         * modules/mkfifoat-tests (Makefile.am): Likewise.
40438         * modules/openat-safer-tests (Makefile.am): Likewise.
40439         * modules/openat-tests (Makefile.am): Likewise.
40440         * modules/readlinkat-tests (Makefile.am): Likewise.
40441         * modules/symlinkat-tests (Makefile.am): Likewise.
40442         * modules/linkat-tests (Makefile.am): Likewise.
40443         (Depends-on): Switch to filenamecat-lgpl.
40444         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40445         LIBINTL.
40446         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40447         * tests/test-linkat.c (main): Don't require xalloc.
40449         hash, mgetgroups: drop xalloc dependency
40450         * lib/hash.c (includes): Adjust includes.
40451         * lib/mgetgroups.c (includes): Likewise.
40452         (xgetgroups): Move...
40453         * lib/xgetgroups.c: ...to new file.
40454         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40455         * modules/xgetgroups: New file, split from...
40456         * modules/mgetgroups: ...here.
40457         (Depends-on): Add xalloc-oversized.
40458         * modules/hash (Depends-on): Likewise.
40459         * modules/hash-tests (Depends-on): Drop xalloc.
40460         (test_hash_LDADD): Drop unused library.
40461         * tests/test-hash.c (main): Break xalloc dependency.
40462         (includes): Drop unused include.
40464         xalloc-oversized: new module
40465         * modules/xalloc-oversized: New module.
40466         * modules/xalloc (Depends-on): Add it.
40467         * lib/xalloc.h (xalloc_oversized): Move...
40468         * lib/xalloc-oversized.h: ...into new file.
40470         utimecmp: drop dependency on xmalloc
40471         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40472         due to memory pressure.
40473         * modules/utimecmp (Depends-on): Drop xalloc.
40475 2011-04-27  Eric Blake  <eblake@redhat.com>
40477         getcwd: fix mingw bugs
40478         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40479         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40480         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40482 2011-04-27  Bruno Haible  <bruno@clisp.org>
40484         mkstemps: Ensure declaration on MacOS X 10.5.
40485         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40486         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40487         MacOS X.
40489 2011-04-27  Bruno Haible  <bruno@clisp.org>
40491         mkstemp: More documentation.
40492         * doc/posix-functions/mkstemp.texi: Document header file problem on
40493         MacOS X.
40495 2011-04-27  Bruno Haible  <bruno@clisp.org>
40497         mkstemp: Tweak configure message when cross-compiling.
40498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40499         result as a guess.
40501 2011-04-27  Bruno Haible  <bruno@clisp.org>
40503         clean-temp: Clarify what it does.
40504         * lib/clean-temp.h: Add more comments.
40505         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40506         module.
40507         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40508         * doc/glibc-functions/mkstemps.texi: Likewise.
40509         * doc/glibc-functions/mkostemps.texi: Likewise.
40511 2011-04-27  Eric Blake  <eblake@redhat.com>
40513         fchdir: avoid extra chdir and fix test
40514         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40515         getcwd-lgpl.
40516         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40517         have to be canonical.
40518         (canonicalize_file_name): Drop unused macro.
40519         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40521         filenamecat-lgpl: fix licence
40522         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40523         when it was first created.
40525         linkat, renameat: add missing dependency
40526         * modules/linkat (Depends-on): Require getcwd-lgpl.
40527         * modules/renameat (Depends-on): Likewise.
40529         tests: reduce dependencies
40530         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40531         * tests/test-renameat.c (main): Likewise.
40532         * modules/linkat-tests (Depends-on): Relax dependency.
40533         * modules/renameat-tests (Depends-on): Likewise.
40534         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40535         dependency explicit.
40537         save-cwd: reduce default dependency
40538         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40539         * lib/save-cwd.c: Update comments.
40540         * NEWS: Document the semantic change.
40542         getcwd: enhance tests
40543         * tests/test-getcwd-lgpl.c: New file, taken from...
40544         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40545         repeat long path stress tests from m4 probe.
40546         * modules/getcwd-lgpl-tests: New module.
40547         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40548         * m4/getcwd-abort-bug.m4: Update comment.
40549         * m4/getcwd-path-max.m4: Likewise.
40551         getcwd-lgpl: new module
40552         * modules/getcwd-lgpl: New module.
40553         * lib/getcwd-lgpl.c: New file.
40554         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40555         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40556         * modules/getcwd (configure.ac): Set C witness.
40557         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40559         getcwd: tweak comments
40560         * m4/getcwd-abort-bug.m4: Fix comments.
40561         * m4/getcwd-path-max.m4: Likewise.
40562         * m4/getcwd.m4: Likewise.
40564 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40565         and Eric Blake  <eblake@redhat.com>
40567         mkstemp: replace if system version uses wrong permissions
40568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40569         read/write mode bits set in file created by mkstemp.
40570         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40572 2011-04-27  Eric Blake  <eblake@redhat.com>
40574         passfd: avoid compiler warning
40575         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40576         Reported by Laine Stump.
40578 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40580         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40581         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40583 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40584         and Eric Blake  <eblake@redhat.com>
40586         mkstemp: mention clean-temp module
40587         * lib/mkstemp.c: Add comment.
40588         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40590 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40592         inttypes: also provide default values for 32-bit tests
40593         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40594         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40596 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40598         strtoumax: remove dependency on strtoimax
40599         This is like the strtoull change of yesterday.
40600         * modules/strtoumax (Files): Add lib/strtoimax.c.
40601         (Depends-on): Remove strtoimax and add verify.
40603         inttypes-incomplete: new module
40604         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40605         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40606         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40607         of gl_INTTYPES_H.
40608         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40609         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40610         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40611         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40612         * modules/strtoumax, modules/xstrtol (Depends-on):
40613         Depend on inttypes-incomplete, not inttypes.
40614         * modules/inttypes-incomplete: New module, containing the contents
40615         of the old modules/inttypes module, except that the Files: section
40616         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40617         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40618         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40619         (Depends-on): Depend only on inttypes-incomplete.
40620         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40622         inttypes: omit now-redundant strtoimax and strtoumax work
40623         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40624         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40626         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40627         This supports apps that need pointers to strtoimax and strtoumax,
40628         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40629         nonexistent functions.  See
40630         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40631         et seq.
40632         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40634         a macro.
40635         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40637 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40639         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40641 2011-04-25  Bruno Haible  <bruno@clisp.org>
40643         strtol, strtoul: Mark modules as obsolete.
40644         * modules/strtol (Status, Notice): New sections.
40645         * modules/strtoul (Status, Notice): New sections.
40647 2011-04-25  Bruno Haible  <bruno@clisp.org>
40649         strtod: Remove check for strtod, unless supporting old platforms.
40650         * modules/strtod-obsolete: New file.
40651         * m4/strtod-obsolete.m4: New file.
40652         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40653         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40654         * modules/strtod (Depends-on): Add strtod-obsolete.
40655         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40657 2011-04-25  Bruno Haible  <bruno@clisp.org>
40659         strcase: Make module obsolete.
40660         * modules/strcase (Status, Notice): New sections.
40662 2011-04-25  Bruno Haible  <bruno@clisp.org>
40664         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40665         * modules/dup2-obsolete: New file.
40666         * m4/dup2-obsolete.m4: New file.
40667         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40668         gl_FUNC_DUP2_OBSOLETE is not also defined.
40669         * modules/dup2 (Depends-on): Add dup2-obsolete.
40670         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40672 2011-04-25  Bruno Haible  <bruno@clisp.org>
40674         strnlen: Avoid memchr related link error on old obsolete platforms.
40675         * modules/memchr-obsolete: New file.
40676         * m4/memchr-obsolete.m4: New file.
40677         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40678         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40679         * modules/memchr (Depends-on): Add memchr-obsolete.
40680         * modules/strnlen (Depends-on): Likewise.
40681         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40683 2011-04-25  Jim Meyering  <meyering@redhat.com>
40685         maint.mk: makefile_at_at_check extend and clean up
40686         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40687         in addition to */Makefile.am.
40688         Exempt legitimate uses of @VAR@ notation, e.g.,
40689         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40690         Remove obsolete coreutils-specific comment.
40691         Prompted by discussion here:
40692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40694 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40696         strtoul: remove dependency on strtol
40697         This is so that 'configure' need not check for strtol merely because
40698         the application needs strtoul.
40699         * modules/strtoul (Files): Add lib/strtol.c.
40700         (Depends-on): Remove strtol.
40702         strtoull: remove dependency on strtoul
40703         This is like the strtoll change.
40704         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40705         (Depends-on): Remove strtoul.
40707         strtoll: remove dependency on strtol
40708         This is so that 'configure' need not check for strtol merely because
40709         the application needs strtoll.
40710         * modules/strtoll (Files): Add lib/strtol.c.
40711         (Depends-on): Remove strtol.
40713 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40715         inttypes: Move some configure check to module 'imaxdiv'.
40716         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40717         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40718         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40720 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40722         inttypes: Move some configure check to module 'imaxabs'.
40723         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40724         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40725         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40727 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40729         inttypes: Remove configure tests that are not needed since 2009-12-31.
40730         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40731         gl_cv_header_working_inttypes_h.
40733 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40735         * modules/strnlen (Depends-on): Remove memchr.
40736         The strnlen implementation doesn't need the memchr module's fixes; see
40737         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40739         strtol: remove dependency on wchar
40740         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40741         * modules/strtol (Depends-on): Remove wchar.
40743 2011-04-21  Eric Blake  <eblake@redhat.com>
40745         passfd: fix test regression on Linux
40746         * modules/passfd-tests (configure.ac): Correct socketpair check.
40748         passfd: speed up configure and drop unused code
40749         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40750         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40751         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40752         Instead of probing at configure for unix_scm_rights_bsd44_way,
40753         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40754         check to a struct member probe.
40755         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40756         (sendfd, recvfd): Update preprocessor checks.
40757         * modules/passfd (Files): Reflect rename, and drop unused file.
40758         (Depends-on): Drop unused dependency.
40760         passfd: allow compilation on mingw
40761         * modules/sys_socket (Depends-on): Add sys_uio.
40762         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40763         iovec and a minimal struct msghdr.
40764         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40765         * tests/test-sys_socket.c (main): Enhance test.
40766         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40767         guaranteed to provide what we need.
40768         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40769         * modules/passfd-tests (Depends-on): Add sys_wait.
40770         * tests/test-passfd.c (main): Skip test on mingw, for now.
40771         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40772         partial 'struct msghdr' implementation.
40774         sys_uio: new module
40775         * modules/sys_uio: New module.
40776         * modules/sys_uio-tests: Likewise.
40777         * lib/sys_uio.in.h: New file.
40778         * m4/sys_uio_h.m4: Likewise.
40779         * tests/test-sys_uio.c: Likewise.
40780         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40781         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40783 2011-04-20  Jim Meyering  <meyering@redhat.com>
40785         useless-if-before-free: avoid false-positive
40786         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40787         disjunct so that it too requires a terminating ";".  Without that,
40788         this script would identify as useless one statement from gcc that
40789         was not:
40790           if (aligned_ptr)
40791             free (((void **) aligned_ptr) [-1]);
40793 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40795         doc: update users.txt.
40796         * users.txt: Add barcode.
40798 2011-04-19  Bruno Haible  <bruno@clisp.org>
40800         ioctl: Remove link dependency on native Windows.
40801         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40802         (gl_close_fn, gl_ioctl_fn): New types.
40803         (struct fd_hook): Renamed from struct close_hook. Change type of
40804         private_close_fn field. Add private_ioctl_fn field.
40805         (close_hook_fn): Add parameter for primary close method.
40806         (execute_close_hooks, execute_all_close_hooks): Likewise.
40807         (ioctl_hook_fn): New type.
40808         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40809         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40810         argument.
40811         (unregister_fd_hook): Renamed from unregister_close_hook.
40812         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40813         Don't include <unistd.h>.
40814         (close): Remove undef.
40815         (anchor): Update.
40816         (execute_close_hooks): Add argument for primary close method.
40817         (execute_all_close_hooks): Likewise.
40818         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40819         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40820         argument. Allow each argument to be NULL.
40821         (unregister_fd_hook): Renamed from unregister_close_hook.
40822         * lib/close.c (rpl_close): Pass 'close' function pointer to
40823         execute_all_close_hooks.
40824         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40825         (primary_ioctl): New function.
40826         (ioctl): Don't call ioctlsocket here. Instead, call
40827         execute_all_ioctl_hooks.
40828         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40829         close method.
40830         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40831         (fd_sockets_hook): Renamed from close_sockets_hook.
40832         (gl_sockets_startup, gl_sockets_cleanup): Update.
40833         * modules/fd-hook: Renamed from modules/close-hook. Update.
40834         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40835         * modules/sockets (Depends-on): Likewise.
40836         * modules/ioctl (Depends-on): Add fd-hook.
40837         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40838         GNULIB_SOCKET.
40840 2011-04-19  Bruno Haible  <bruno@clisp.org>
40842         Move the support of O_NONBLOCK in open() to the 'open' module.
40843         * modules/nonblocking (Depends-on): Remove 'open'.
40844         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40845         gl_cv_have_open_O_NONBLOCK.
40846         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40847         O_NONBLOCK support.
40848         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40850 2011-04-17  Bruno Haible  <bruno@clisp.org>
40852         pipe2: Simplify code.
40853         * lib/pipe2.c (pipe2): Reduce code duplication.
40855 2011-04-17  Bruno Haible  <bruno@clisp.org>
40857         nonblocking: Add comment.
40858         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40860 2011-04-17  Bruno Haible  <bruno@clisp.org>
40862         nonblocking: Add tests for sockets.
40863         * tests/test-nonblocking-socket.sh: New file.
40864         * tests/test-nonblocking-socket-main.c: New file.
40865         * tests/test-nonblocking-socket-child.c: New file.
40866         * tests/test-nonblocking-socket.h: New file.
40867         * tests/socket-server.h: New file.
40868         * tests/socket-client.h: New file.
40869         * modules/nonblocking-socket-tests: New file.
40870         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40872 2011-04-17  Bruno Haible  <bruno@clisp.org>
40874         nonblocking: Add tests for pipes.
40875         * tests/test-nonblocking-pipe.sh: New file.
40876         * tests/test-nonblocking-pipe-main.c: New file.
40877         * tests/test-nonblocking-pipe-child.c: New file.
40878         * tests/test-nonblocking-pipe.h: New file.
40879         * tests/test-nonblocking-writer.h: New file.
40880         * tests/test-nonblocking-reader.h: New file.
40881         * tests/test-nonblocking-misc.h: New file.
40882         * modules/nonblocking-pipe-tests: New file.
40883         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40885 2011-04-16  Bruno Haible  <bruno@clisp.org>
40887         gettext: Clarify the needed programmer actions.
40888         * modules/gettext (Notice): New field.
40889         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40891 2011-04-16  Bruno Haible  <bruno@clisp.org>
40893         strchrnul: Tweak last commit.
40894         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
40895         bug.
40896         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
40897         as in _GL_FUNCDECL_SYS.
40898         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
40899         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
40901 2011-04-15  Eric Blake  <eblake@redhat.com>
40903         strchrnul: work around cygwin bug
40904         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
40905         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
40906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
40907         * modules/string (Makefile.am): Substitute it.
40908         * lib/string.in.h (strchrnul): Use it.
40910 2011-04-15  Bruno Haible  <bruno@clisp.org>
40912         Don't require lib/stdio-write.c when only module 'stdio' is used.
40913         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
40914         invocation.
40915         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
40917 2011-04-14  Bruno Haible  <bruno@clisp.org>
40919         Support non-blocking pipe I/O in read() on native Windows.
40920         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
40921         (read): New declaration.
40922         * lib/read.c: New file.
40923         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
40924         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
40925         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
40926         vscanf): New declarations.
40927         * lib/stdio-read.c: New file.
40928         * m4/read.m4: New file.
40929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
40930         REPLACE_READ.
40931         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
40932         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40933         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
40934         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
40935         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
40936         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40937         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40938         * modules/read: New file.
40939         * modules/nonblocking (Files): Add lib/stdio-read.c.
40940         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
40941         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
40942         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40943         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40944         * modules/pread (Depends-on): Add read.
40945         * modules/safe-read (Depends-on): Likewise.
40946         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
40947         gets, scanf, vfscanf, vscanf): Verify signatures.
40948         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
40949         problem with non-blocking pipes.
40950         * doc/posix-functions/fgetc.texi: Likewise.
40951         * doc/posix-functions/fgets.texi: Likewise.
40952         * doc/posix-functions/fread.texi: Likewise.
40953         * doc/posix-functions/fscanf.texi: Likewise.
40954         * doc/posix-functions/getc.texi: Likewise.
40955         * doc/posix-functions/getchar.texi: Likewise.
40956         * doc/posix-functions/gets.texi: Likewise.
40957         * doc/posix-functions/scanf.texi: Likewise.
40958         * doc/posix-functions/vfscanf.texi: Likewise.
40959         * doc/posix-functions/vscanf.texi: Likewise.
40961 2011-04-14  Bruno Haible  <bruno@clisp.org>
40963         Support non-blocking pipe I/O in write() on native Windows.
40964         * lib/write.c (rpl_write): Split a write request that failed merely
40965         because the byte count was larger than the pipe buffer's size.
40966         * doc/posix-functions/write.texi: Mention the problem with large byte
40967         counts.
40969 2011-04-14  Bruno Haible  <bruno@clisp.org>
40971         wchar: Ensure that wchar_t gets defined on uClibc.
40972         * lib/wchar.in.h: On uClibc, include <stddef.h>.
40973         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
40975 2011-04-13  Bruno Haible  <bruno@clisp.org>
40977         safe-write, full-read: Avoid unnecessary compilation units.
40978         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
40979         (Depends-on): Remove safe-read. Add ssize_t.
40980         * modules/full-read (Files): Add lib/full-write.c.
40981         (Depends-on): Add full-write.
40983 2011-04-13  Bruno Haible  <bruno@clisp.org>
40985         Support non-blocking pipe I/O and SIGPIPE in pwrite().
40986         * modules/pwrite (Depends-on): Add 'write'.
40988 2011-04-13  Bruno Haible  <bruno@clisp.org>
40990         Support non-blocking pipe I/O in write() on native Windows.
40991         * lib/unistd.in.h (write): Enable replacement also if
40992         GNULIB_UNISTD_H_NONBLOCKING is 1.
40993         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
40994         (rpl_write): When failing to write on a non-blocking pipe, change
40995         errno from ENOSPC to EAGAIN.
40996         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
40997         putchar, puts, vfprintf, vprintf): Enable replacement also if
40998         GNULIB_STDIO_H_NONBLOCKING is 1.
40999         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41000         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41001         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41002         CALL_WITH_SIGPIPE_EMULATION.
41003         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41004         * m4/nonblocking.m4: New file.
41005         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41006         for non-blocking I/O support.
41007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41008         GNULIB_UNISTD_H_NONBLOCKING.
41009         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41010         required for non-blocking I/O support.
41011         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41012         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41013         lib/stdio-write.c, m4/asm-underscore.m4.
41014         (Depends-on): Add stdio, unistd.
41015         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41016         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41017         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41018         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41019         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41020         problem with non-blocking pipes.
41021         * doc/posix-functions/fputc.texi: Likewise.
41022         * doc/posix-functions/fputs.texi: Likewise.
41023         * doc/posix-functions/fwrite.texi: Likewise.
41024         * doc/posix-functions/printf.texi: Likewise.
41025         * doc/posix-functions/putc.texi: Likewise.
41026         * doc/posix-functions/putchar.texi: Likewise.
41027         * doc/posix-functions/puts.texi: Likewise.
41028         * doc/posix-functions/vfprintf.texi: Likewise.
41029         * doc/posix-functions/vprintf.texi: Likewise.
41030         * doc/posix-functions/write.texi: Likewise.
41032 2011-04-10  Jim Meyering  <meyering@redhat.com>
41034         maint.mk: prohibit doubled words
41035         Detect them also when they're separated by a newline.
41036         There are 3 ways to customize it:
41037           - disable the test on a per file basis, as usual with rules using
41038             $(VC_LIST_EXCEPT)
41039           - replace the default doubled-word-selecting regexp (affects all files)
41040           - ignore a particular file-vs-doubled-word match
41041         I nearly used that last one to ignore the "is is" match in
41042         coreutils' NEWS file, since the text was "ls -is is ..."
41043         To do that, I would have added this line to cfg.mk:
41044           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41045         but it would have ignored any "is is" match in NEWS.
41046         Low probability, but still...
41047         Instead, I changed the text, slightly:
41048           -  ls -is is now consistent with ls -lis in ignoring values returned
41049           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41050         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41051         (prohibit_doubled_word_): Define.
41052         (sc_prohibit_doubled_word): New rule.
41053         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41055 2011-04-10  Jim Meyering  <meyering@redhat.com>
41057         maint: fix doubled-word typo in comment
41058         * m4/gethostname.m4: s/is is/it is/
41059         * m4/getdomainname.m4: Likewise.
41061 2011-04-10  Jim Meyering  <meyering@redhat.com>
41063         maint: remove doubled word: s/it it/it/
41064         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41066 2011-04-10  Jim Meyering  <meyering@redhat.com>
41068         maint.mk: remove useless semicolon and backslash
41069         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41070         semicolon and backslash.
41072 2011-04-10  Bruno Haible  <bruno@clisp.org>
41074         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41075         * modules/stdint-tests (Depends-on): Add wchar.
41077 2011-04-10  Jim Meyering  <meyering@redhat.com>
41079         maint: remove doubled words in comments, e.g., s/a a/a/
41080         * lib/strptime.c (day_of_the_week): s/the the/the/
41081         * tests/test-chown.h (test_chown): s/a a/a/
41083         test-chown.h: correct a cast
41084         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41085         when the destination is a stat.st_gid.
41087 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41089         getaddrinfo: Fix test for sa_len member.
41090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41091         include <sys/types.h> before <sys/socket.h>.
41093 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41095         maint: change "can not" to "cannot"
41096         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41097         boundaries.
41099 2011-04-09  Jim Meyering  <meyering@redhat.com>
41101         maint: change "a a" to "a"
41102         * tests/test-lchown.h (test_lchown): s/a a/a/
41104         maint.mk: prohibit \<the the\>
41105         * top/maint.mk (sc_prohibit_the_the): New rule.
41107         maint: fix "the the" in comment
41108         * lib/count-one-bits.h: s/the the/the/
41110         maint: change "can not" to "cannot"
41111         But do not change the occurrences in maintain.texi or in
41112         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41113         * doc/gnulib-tool.texi: s/can not/cannot/
41114         * doc/posix-functions/accept.texi (accept): Likewise.
41115         * doc/posix-functions/socket.texi (socket): Likewise.
41116         * lib/mbrtowc.c: Likewise.
41118         maint.mk: prohibit use of "can not"
41119         * top/maint.mk (sc_prohibit_can_not): New rule.
41120         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41122 2011-04-09  Bruno Haible  <bruno@clisp.org>
41124         careadlinkat: Guard against misuse of careadlinkatcwd.
41125         * lib/careadlinkat.c: Include <stdlib.h>.
41126         (careadlinkatcwd): Check that the fd argument is as expected.
41128 2011-04-09  Bruno Haible  <bruno@clisp.org>
41130         careadlinkat: Use common coding style.
41131         * lib/careadlinkat.c: Move gnulib includes after system includes.
41133 2011-04-09  Bruno Haible  <bruno@clisp.org>
41135         careadlinkat: Clarify specification.
41136         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41137         (careadlinkatcwd): Add comment.
41138         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41140 2011-04-09  Bruno Haible  <bruno@clisp.org>
41142         areadlinkat: Avoid link error on many platforms.
41143         * modules/areadlinkat (Depends-on): Add areadlink.
41145 2011-04-09  Bruno Haible  <bruno@clisp.org>
41147         allocator, careadlinkat: Fix double-inclusion guard.
41148         * lib/allocator.h: Fix double-inclusion guard.
41149         * lib/careadlinkat.h: Likewise.
41151 2011-04-09  Bruno Haible  <bruno@clisp.org>
41153         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41154         * lib/relocwrapper.c: Update dependencies hierarchy.
41155         * build-aux/install-reloc: Update list of files to be compiled.
41156         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41157         lib/allocator.[hc].
41159 2011-04-08  Eric Blake  <eblake@redhat.com>
41161         strftime: silence gnulib-tool warning
41162         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41164 2011-04-08  Bruno Haible  <bruno@clisp.org>
41166         verify: Fix syntax error with GCC 4.6 in C++ mode.
41167         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41168         (HAVE_STATIC_ASSERT): New macro.
41169         (verify_true, verify): Use 'static_assert' if it is supported and
41170         '_Static_assert' is not supported.
41172 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41174         allocator: New module.
41175         * modules/allocator, lib/allocator.c: New files.
41176         * lib/allocator.h (stdlib_allocator): New decl.
41177         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41178         Remove.  Do not include <stdlib.h>.
41179         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41180         * modules/careadlinkat (Files): Remove lib/allocator.h.
41181         (Depends-on): Add allocator.
41183         stdlib: let modules use system malloc, realloc
41184         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41185         if !_GL_USE_STDLIB_ALLOC.
41186         (malloc, realloc): Limit this change to a smaller scope.
41188         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41189         (malloc, realloc): Don't #undef; no longer needed.
41190         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41191         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41192         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41193         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41194         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41195         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41196         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41197         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41199         careadlinkat: rename members to avoid problem
41200         * lib/allocator.h (struct allocator): Rename members from
41201         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41202         and realloc are #define'd.  Reported by Eric Blake in
41203         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41204         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41206 2011-04-08  Eric Blake  <eblake@redhat.com>
41208         nonblocking: reduce dependency
41209         * tests/test-nonblocking.c: Only test sockets when in use.
41210         * modules/nonblocking-tests (Depends-on): Drop socket.
41211         (Makefile.am): Link even if sockets are not present.
41212         * modules/pipe2-tests (Makefile.am): Likewise.
41213         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41215         pipe2: fix O_NONBLOCK support on mingw
41216         * modules/pipe2 (Depends-on): Add nonblocking.
41217         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41218         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41219         * tests/test-nonblocking.c (main): Likewise.
41220         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41222         fcntl-h: fix O_ACCMODE on cygwin
41223         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41224         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41226         pipe-filter: drop O_NONBLOCK workarounds
41227         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41228         * modules/pipe-filter-ii (Depends-on): Likewise.
41229         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41231         nonblocking: provide O_NONBLOCK for mingw
41232         * modules/nonblocking (Depends-on): Add open.
41233         (configure.ac): Set new witness macro.
41234         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41235         * modules/fcntl-h (Makefile.am): Substitute it.
41236         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41237         nonblocking module is in use.
41238         * lib/nonblocking.c: Adjust portability test.
41239         * lib/open.c (open): Don't let native open see gnulib flag.
41240         * tests/test-fcntl-h.c (main): Enhance test.
41241         * tests/test-open.h (test_open): Likewise.
41242         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41244         careadlinkat: fix compilation error on mingw
41245         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41246         within struct allocator.
41248 2011-04-06  Eric Blake  <eblake@redhat.com>
41250         binary-io: relicense under LGPLv2+
41251         * modules/binary-io (License): Relax to LGPLv2+.
41252         Requested for libvirt, and required by pipe2.
41254 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41256         verify: use _Static_assert if available
41257         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41258         (verify_true, verify): Use it if available.  This generates better
41259         diagnostics with GCC 4.6.0 and later.
41261 2011-04-05  Bruno Haible  <bruno@clisp.org>
41263         Remove leftover generated .h files after config.status changed.
41265         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41266         GL_GENERATE_ALLOCA_H.
41267         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41268         GL_GENERATE_ALLOCA_H evaluates to false.
41270         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41271         GL_GENERATE_ARGZ_H.
41272         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41273         evaluates to false.
41275         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41276         GL_GENERATE_BYTESWAP_H.
41277         * modules/byteswap (Makefile.am): Remove byteswap.h if
41278         GL_GENERATE_BYTESWAP_H evaluates to false.
41280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41281         GL_GENERATE_ERRNO_H.
41282         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41283         evaluates to false.
41285         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41286         GL_GENERATE_FLOAT_H.
41287         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41288         evaluates to false.
41290         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41291         GL_GENERATE_FNMATCH_H.
41292         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41293         GL_GENERATE_FNMATCH_H evaluates to false.
41295         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41296         GL_GENERATE_GLOB_H.
41297         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41298         evaluates to false.
41300         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41301         automake conditional GL_GENERATE_ICONV_H.
41302         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41303         evaluates to false.
41305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41306         GL_GENERATE_NETINET_IN_H.
41307         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41308         GL_GENERATE_NETINET_IN_H evaluates to false.
41310         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41311         conditional GL_GENERATE_PTHREAD_H.
41312         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41313         * modules/pthread (Makefile.am): Remove pthread.h if
41314         GL_GENERATE_PTHREAD_H evaluates to false.
41316         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41317         GL_GENERATE_SCHED_H.
41318         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41319         evaluates to false.
41321         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41322         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41323         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41324         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41326         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41327         GL_GENERATE_STDARG_H.
41328         * modules/stdarg (Makefile.am): Remove stdarg.h if
41329         GL_GENERATE_STDARG_H evaluates to false.
41331         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41332         GL_GENERATE_STDBOOL_H.
41333         * modules/stdbool (Makefile.am): Remove stdbool.h if
41334         GL_GENERATE_STDBOOL_H evaluates to false.
41336         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41337         conditional GL_GENERATE_STDDEF_H.
41338         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41339         * modules/stddef (Makefile.am): Remove stddef.h if
41340         GL_GENERATE_STDDEF_H evaluates to false.
41342         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41343         GL_GENERATE_STDINT_H.
41344         * modules/stdint (Makefile.am): Remove stdint.h if
41345         GL_GENERATE_STDINT_H evaluates to false.
41347         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41348         GL_GENERATE_SYSEXITS_H.
41349         * modules/sysexits (Makefile.am): Remove sysexits.h if
41350         GL_GENERATE_SYSEXITS_H evaluates to false.
41352         Reported by Karl Berry and Ralf Wildenhues.
41354 2011-04-05  Bruno Haible  <bruno@clisp.org>
41356         Ensure to rebuild generated .h files when config.status has changed.
41357         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41358         config.status.
41359         * modules/ctype (Makefile.am): Likewise.
41360         * modules/dirent (Makefile.am): Likewise.
41361         * modules/errno (Makefile.am): Likewise.
41362         * modules/fcntl-h (Makefile.am): Likewise.
41363         * modules/float (Makefile.am): Likewise.
41364         * modules/getopt-posix (Makefile.am): Likewise.
41365         * modules/glob (Makefile.am): Likewise.
41366         * modules/iconv-h (Makefile.am): Likewise.
41367         * modules/inttypes (Makefile.am): Likewise.
41368         * modules/langinfo (Makefile.am): Likewise.
41369         * modules/locale (Makefile.am): Likewise.
41370         * modules/math (Makefile.am): Likewise.
41371         * modules/netdb (Makefile.am): Likewise.
41372         * modules/netinet_in (Makefile.am): Likewise.
41373         * modules/poll-h (Makefile.am): Likewise.
41374         * modules/pthread (Makefile.am): Likewise.
41375         * modules/pty (Makefile.am): Likewise.
41376         * modules/sched (Makefile.am): Likewise.
41377         * modules/search (Makefile.am): Likewise.
41378         * modules/selinux-h (Makefile.am): Likewise.
41379         * modules/signal (Makefile.am): Likewise.
41380         * modules/spawn (Makefile.am): Likewise.
41381         * modules/stdarg (Makefile.am): Likewise.
41382         * modules/stdbool (Makefile.am): Likewise.
41383         * modules/stddef (Makefile.am): Likewise.
41384         * modules/stdint (Makefile.am): Likewise.
41385         * modules/stdio (Makefile.am): Likewise.
41386         * modules/stdlib (Makefile.am): Likewise.
41387         * modules/string (Makefile.am): Likewise.
41388         * modules/strings (Makefile.am): Likewise.
41389         * modules/sys_file (Makefile.am): Likewise.
41390         * modules/sys_ioctl (Makefile.am): Likewise.
41391         * modules/sys_select (Makefile.am): Likewise.
41392         * modules/sys_socket (Makefile.am): Likewise.
41393         * modules/sys_stat (Makefile.am): Likewise.
41394         * modules/sys_time (Makefile.am): Likewise.
41395         * modules/sys_times (Makefile.am): Likewise.
41396         * modules/sys_utsname (Makefile.am): Likewise.
41397         * modules/sys_wait (Makefile.am): Likewise.
41398         * modules/sysexits (Makefile.am): Likewise.
41399         * modules/termios (Makefile.am): Likewise.
41400         * modules/time (Makefile.am): Likewise.
41401         * modules/unistd (Makefile.am): Likewise.
41402         * modules/wchar (Makefile.am): Likewise.
41403         * modules/wctype-h (Makefile.am): Likewise.
41404         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41406 2011-04-05  Bruno Haible  <bruno@clisp.org>
41408         pipe2: Relicense under LGPLv2+.
41409         * modules/pipe2 (License): Change to LGPLv2+.
41410         Requested by Eric Blake, for libvirt.
41412 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41414         bootstrap: compute gnulib_extra_files after updating build_aux
41415         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41416         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41418 2011-04-05  Eric Blake  <eblake@redhat.com>
41420         bootstrap: preserve git whitelist item sorting
41421         * build-aux/bootstrap (sort_patterns): New function.
41422         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41424 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41426         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41427         sc_space_tab check.
41429 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41431         areadlink, areadlinkat: rewrite in terms of careadlinkat
41432         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41433         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41434         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41435         (malloc, realloc): Remove #undefs.
41436         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41437         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41438         readlink, ssize_t, stdint, unistd.
41439         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41440         areadlink, stdint.
41442         careadlinkat: new module
41443         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41444         * modules/careadlinkat: New files, written by me with
41445         a review and feedback from Ben Pfaff in
41446         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41448 2011-04-01  Bruno Haible  <bruno@clisp.org>
41450         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41451         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41452         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41453         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41454         Reported by Bruce Korb <bruce.korb@gmail.com>.
41456 2011-04-01  Bruno Haible  <bruno@clisp.org>
41458         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41459         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41460         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41461         * modules/wcpcpy (Depends-on): Add extensions.
41462         * modules/wcpncpy (Depends-on): Likewise.
41463         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41464         systems.
41465         * doc/posix-functions/wcpncpy.texi: Likewise.
41466         * doc/posix-functions/wcwidth.texi: Likewise.
41468 2011-03-31  Eric Blake  <eblake@redhat.com>
41470         nonblocking: fix mingw test failures
41471         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41472         non-blocking flag on regular file.
41473         (get_nonblocking_flag): Set errno on invalid fd.
41474         * tests/test-nonblocking.c (main): Avoid test failure on
41475         directories if fchdir is not active.
41476         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41478 2011-03-31  Bruno Haible  <bruno@clisp.org>
41480         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41481         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41482         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41483         Reported by Simon Josefsson <simon@josefsson.org>.
41485 2011-03-31  Bruno Haible  <bruno@clisp.org>
41486         and Eric Blake  <eblake@redhat.com>
41488         nonblocking: new module
41489         * modules/nonblocking: New module.
41490         * modules/nonblocking-tests: Likewise.
41491         * lib/nonblocking.h: New file.
41492         * lib/nonblocking.c: Likewise.
41493         * tests/test-nonblocking.c: New test.
41494         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41496 2011-03-30  Bruno Haible  <bruno@clisp.org>
41498         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41499         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41500         instead of 'printf' format for GCC >= 4.4.
41501         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41502         (fprintf, printf, vfprintf, vprintf): Declare with
41503         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41504         the system's vfprintf() function.
41505         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41507 2011-03-30  Eric Blake  <eblake@redhat.com>
41509         passfd: fix scoping bug
41510         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41511         before sendmsg/recvmsg.
41513         passfd: standardize coding conventions
41514         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41515         can be learned at compile time.
41516         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41517         ifdefs.
41518         (sendfd, recvfd): Follow gnulib code conventions.
41520         passfd: fix incorrect sendmsg arguments
41521         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41522         incorrect msg_controllen value.
41523         * modules/passfd-tests (Depends-on): Check for alarm.
41524         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41525         Reported by Bastien ROUCARIES.
41527 2011-03-30  Bruno Haible  <bruno@clisp.org>
41529         c-strcasestr: Relicense under LGPLv2+.
41530         * modules/c-strcasestr (License): Change to LGPLv2+.
41531         Requested by Eric Blake, for libvirt.
41533 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41535         * users.txt: Add libidn2.  Fix libtasn1 link.
41537 2011-03-30  Jim Meyering  <meyering@redhat.com>
41539         tests: readlink* ("",... fails with EINVAL on newer kernels
41540         readlink and readlinkat have typically failed with ENOENT for
41541         the invalid, empty file name,  "".  However, with the advent
41542         of linux-2.6.39, they fail with EINVAL.
41543         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41544         when operating on the empty file name.
41545         * tests/test-readlink.h (test_readlink): Likewise.
41547 2011-03-29  Bruno Haible  <bruno@clisp.org>
41549         Relicense some modules under LGPLv2+, for libidn2.
41550         * modules/array-mergesort (License): Change to LGPLv2+.
41551         * modules/c-strcaseeq (License): Likewise.
41552         * modules/striconveh (License): Likewise.
41553         * modules/striconveha (License): Likewise.
41554         * modules/uniconv/base (License): Likewise.
41555         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41556         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41557         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41558         * modules/unictype/base (License): Likewise.
41559         * modules/unictype/bidiclass-of (License): Likewise.
41560         * modules/unictype/category-M (License): Likewise.
41561         * modules/unictype/category-none (License): Likewise.
41562         * modules/unictype/category-of (License): Likewise.
41563         * modules/unictype/category-test (License): Likewise.
41564         * modules/unictype/category-test-withtable (License): Likewise.
41565         * modules/unictype/combining-class (License): Likewise.
41566         * modules/unictype/joiningtype-of (License): Likewise.
41567         * modules/unictype/scripts (License): Likewise.
41568         * modules/uninorm/base (License): Likewise.
41569         * modules/uninorm/canonical-decomposition (License): Likewise.
41570         * modules/uninorm/composition (License): Likewise.
41571         * modules/uninorm/decompose-internal (License): Likewise.
41572         * modules/uninorm/decomposition-table (License): Likewise.
41573         * modules/uninorm/nfc (License): Likewise.
41574         * modules/uninorm/nfd (License): Likewise.
41575         * modules/uninorm/u32-normalize (License): Likewise.
41576         * modules/unistr/base (License): Likewise.
41577         * modules/unistr/u32-cpy (License): Likewise.
41578         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41579         * modules/unistr/u32-to-u8 (License): Likewise.
41580         * modules/unistr/u32-uctomb (License): Likewise.
41581         * modules/unistr/u8-check (License): Likewise.
41582         * modules/unistr/u8-mblen (License): Likewise.
41583         * modules/unistr/u8-mbtouc (License): Likewise.
41584         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41585         * modules/unistr/u8-mbtoucr (License): Likewise.
41586         * modules/unistr/u8-prev (License): Likewise.
41587         * modules/unistr/u8-strlen (License): Likewise.
41588         * modules/unistr/u8-to-u32 (License): Likewise.
41589         * modules/unistr/u8-uctomb (License): Likewise.
41590         * modules/unitypes (License): Likewise.
41591         Requested by Simon Josefsson.
41593 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41595         lib-symbol-visibility: Add a notice.
41596         * modules/lib-symbol-visibility (Notice): New field.
41598 2011-03-29  Bruno Haible  <bruno@clisp.org>
41600         getaddrinfo: Doc fix.
41601         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41602         section "fixed in Gnulib".
41604 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41606         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41607         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41609 2011-03-26  Bruno Haible  <bruno@clisp.org>
41611         unictype/property-byname: Reduce the number of load-time relocations.
41612         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41613         (UC_PROPERTY_INDEX_*): New enumeration values.
41614         (uc_property_byname): Convert an index from the lookup table to an
41615         uc_property_t.
41616         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41617         values.
41619 2011-03-26  Bruno Haible  <bruno@clisp.org>
41621         unictype/property-byname: Allow omitted word separators and aliases.
41622         * lib/unictype/pr_byname.gperf: Add property names without word
41623         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41624         for 'space'.
41626 2011-03-26  Bruno Haible  <bruno@clisp.org>
41628         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41629         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41630         also hyphens to space.
41631         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41632         without spaces.
41633         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41635 2011-03-26  Bruno Haible  <bruno@clisp.org>
41637         unictype/joiningtype-byname: Recognize long names as well.
41638         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41639         a long name.
41640         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41641         unictype/joiningtype_byname.h.
41642         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41643         * lib/unictype/joiningtype_byname.gperf: New file.
41644         * modules/unictype/joiningtype-byname (Files): Add
41645         lib/unictype/joiningtype_byname.gperf.
41646         (Depends-on): Add gperf.
41647         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41648         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41649         long names.
41651         Tests for module 'unictype/joiningtype-longname'.
41652         * modules/unictype/joiningtype-longname-tests: New file.
41653         * tests/unictype/test-joiningtype_longname.c: New file.
41655         New module 'unictype/joiningtype-longname'.
41656         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41657         * lib/unictype/joiningtype_longname.c: New file.
41658         * modules/unictype/joiningtype-longname: New file.
41659         * modules/unictype/joiningtype-all (Depends-on): Add
41660         unictype/joiningtype-longname.
41662 2011-03-26  Bruno Haible  <bruno@clisp.org>
41664         unictype/bidiclass-byname: Recognize long names as well.
41665         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41666         name.
41667         * lib/unictype/bidi_byname.c: Include <string.h>,
41668         unictype/bidi_byname.h.
41669         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41670         * lib/unictype/bidi_byname.gperf: New file.
41671         * modules/unictype/bidiclass-byname (Files): Add
41672         lib/unictype/bidi_byname.gperf.
41673         (Depends-on): Add gperf.
41674         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41675         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41676         long names.
41678         Tests for module 'unictype/bidiclass-longname'.
41679         * modules/unictype/bidiclass-longname-tests: New file.
41680         * tests/unictype/test-bidi_longname.c: New file.
41682         New module 'unictype/bidiclass-longname'.
41683         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41684         * lib/unictype/bidi_longname.c: New file.
41685         * modules/unictype/bidiclass-longname: New file.
41686         * modules/unictype/bidiclass-all (Depends-on): Add
41687         unictype/bidiclass-longname.
41689 2011-03-26  Bruno Haible  <bruno@clisp.org>
41691         unictype/bidi*: Rename modules.
41692         * modules/unictype/bidiclass-all: Renamed from
41693         modules/unictype/bidicategory-all.
41694         * modules/unictype/bidiclass-name: Renamed from
41695         modules/unictype/bidiclass-name.
41696         (Description): Update.
41697         * modules/unictype/bidiclass-name-tests: Renamed from
41698         modules/unictype/bidicategory-name-tests.
41699         * modules/unictype/bidiclass-byname: Renamed from
41700         modules/unictype/bidicategory-byname.
41701         (Description): Update.
41702         * modules/unictype/bidiclass-byname-tests: Renamed from
41703         modules/unictype/bidicategory-byname-tests.
41704         * modules/unictype/bidiclass-of: Renamed from
41705         modules/unictype/bidicategory-of.
41706         (Description): Update.
41707         * modules/unictype/bidiclass-of-tests: Renamed from
41708         modules/unictype/bidicategory-of-tests.
41709         * modules/unictype/bidiclass-test: Renamed from
41710         modules/unictype/bidicategory-test.
41711         (Description): Update.
41712         * modules/unictype/bidiclass-test-tests: Renamed from
41713         modules/unictype/bidicategory-test-tests.
41714         * modules/unictype/bidicategory-all: New file, a simple redirection.
41715         * modules/unictype/bidicategory-name: Likewise.
41716         * modules/unictype/bidicategory-byname: Likewise.
41717         * modules/unictype/bidicategory-of: Likewise.
41718         * modules/unictype/bidicategory-test: Likewise.
41719         * modules/unictype/property-bidi-* (Dependencies): Update.
41720         * lib/unictype/bidi_*.c: Update comment.
41722 2011-03-26  Bruno Haible  <bruno@clisp.org>
41724         unictype/bidi*: Rename functions, part 2.
41725         * modules/unictype/bidicategory-name (configure.ac): Update required
41726         libunistring version.
41727         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41729 2011-03-25  Bruno Haible  <bruno@clisp.org>
41731         New module 'unictype/combining-class-all'.
41732         * modules/unictype/combining-class-all: New file.
41734         Tests for module 'unictype/combining-class-byname'.
41735         * modules/unictype/combining-class-byname-tests: New file.
41736         * tests/unictype/test-combiningclass_byname.c: New file.
41738         New module 'unictype/combining-class-byname'.
41739         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41740         * lib/unictype/combiningclass_byname.c: New file.
41741         * lib/unictype/combiningclass_byname.gperf: New file.
41742         * modules/unictype/combining-class-byname: New file.
41744         Tests for module 'unictype/combining-class-longname'.
41745         * modules/unictype/combining-class-longname-tests: New file.
41746         * tests/unictype/test-combiningclass_longname.c: New file.
41748         New module 'unictype/combining-class-longname'.
41749         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41750         * lib/unictype/combiningclass_longname.c: New file.
41751         * modules/unictype/combining-class-longname: New file.
41753         Tests for module 'unictype/combining-class-name'.
41754         * modules/unictype/combining-class-name-tests: New file.
41755         * tests/unictype/test-combiningclass_name.c: New file.
41757         New module 'unictype/combining-class-name'.
41758         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41759         * lib/unictype/combiningclass_name.c: New file.
41760         * modules/unictype/combining-class-name: New file.
41762 2011-03-25  Bruno Haible  <bruno@clisp.org>
41764         unictype/combining-class: Rename source files.
41765         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41766         of unictype/combining.h.
41767         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41768         Update.
41769         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41770         * modules/unictype/combining-class (Description): Fix.
41771         (Files, Makefile.am): Update.
41772         * tests/unictype/test-combiningclass.c: Renamed from
41773         tests/unictype/test-combining.c.
41774         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41776 2011-03-25  Bruno Haible  <bruno@clisp.org>
41778         unictype: Update list of canonical combining classes.
41779         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41781 2011-03-25  Bruno Haible  <bruno@clisp.org>
41783         unictype/category-byname: Recognize long names as well.
41784         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41785         a long name.
41786         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41787         unictype/categ_byname.h.
41788         (UC_CATEGORY_INDEX_*): New enumeration values.
41789         (uc_general_category_byname): Use uc_general_category_lookup and
41790         convert from index to value.
41791         * lib/unictype/categ_byname.gperf: New file.
41792         * modules/unictype/category-byname (Files): Add
41793         lib/unictype/categ_byname.gperf.
41794         (Depends-on): Add gperf.
41795         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41796         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41797         long names.
41799         Tests for module 'unictype/category-longname'.
41800         * modules/unictype/category-longname-tests: New file.
41801         * tests/unictype/test-categ_longname.c: New file.
41803         New module 'unictype/category-longname'.
41804         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41805         * lib/unictype/categ_longname.c: New file.
41806         * modules/unictype/category-longname: New file.
41807         * modules/unictype/category-all (Depends-on): Add it.
41809 2011-03-25  Bruno Haible  <bruno@clisp.org>
41811         Tests for module 'unictype/category-LC'.
41812         * modules/unictype/category-LC-tests: New file.
41813         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41815         New module 'unictype/category-LC'.
41816         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41817         (UC_CATEGORY_LC): New declaration.
41818         (UC_CASED_LETTER): New macro.
41819         * lib/gen-uni-tables.c (is_category_LC): New function.
41820         (output_categories): Also handle category LC.
41821         (UC_CATEGORY_MASK_LC): New enumeration value.
41822         (general_category_byname): Also handle category LC.
41823         * lib/unictype/categ_LC.c: New file.
41824         * lib/unictype/categ_LC.h: New file, automatically generated.
41825         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41826         category LC.
41827         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41828         * modules/unictype/category-LC: New file.
41829         * modules/unictype/category-byname (Depends-on): Add
41830         unictype/category-LC.
41831         * modules/unictype/category-all (Depends-on): Likewise.
41833 2011-03-25  Eric Blake  <eblake@redhat.com>
41835         xmalloc: revert yesterday's regression
41836         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41837         realloc's underlying behavior (allowing allocation of zero-size
41838         objects, especially if malloc-gnu is also in use).
41840 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41842         maint.mk: add missing version to VC-tag
41843         * top/maint.mk: git tag was missing actual tag name; add it.
41845         valgrind: do leak checking, and exit with code 1 on error (not 0)
41846         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41847         to VALGRIND.
41849 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41851         posix-modules: say what it does.
41852         * posix-modules: Add a line to the --help output saying what it does.
41854 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41856         xmalloc: Do not leak if underlying realloc is C99 compatible.
41857         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41858         This avoids a leak on C99-based systems.  See
41859         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41861 2011-03-24  Eric Blake  <eblake@redhat.com>
41863         realloc: document portability problem
41864         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41865         passing 0 size to realloc.
41867 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41869         doc: update users.txt
41870         * users.txt: Add cvsps, tmpwatch
41872 2011-03-23  Matt Rice  <ratmice@gmail.com>
41874         doc: update users.txt
41875         * users.txt: Add gdb.
41877 2011-03-23  Jim Meyering  <meyering@redhat.com>
41879         doc: update users.txt
41880         Looking through matches up to the following URL (there are still
41881         several more pages), I found several projects that use gnulib:
41882         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41883         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41884         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41886 2011-03-22  Bruno Haible  <bruno@clisp.org>
41888         unictype/bidi*: Rename functions.
41889         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41890         uc_bidi_class, uc_is_bidi_class): New declarations.
41891         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41892         uc_bidi_category_byname.
41893         (uc_bidi_category_byname): New function.
41894         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
41895         u_bidi_category_name.
41896         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
41897         (uc_bidi_category_name): New function.
41898         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
41899         uc_bidi_category.
41900         (uc_bidi_category): New function.
41901         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
41902         uc_is_bidi_category. Invoke uc_bidi_class.
41903         (uc_is_bidi_category): New function.
41904         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
41905         instead of uc_bidi_category_byname.
41906         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
41907         instead of uc_bidi_category_name.
41908         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
41909         uc_bidi_category.
41910         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
41911         instead of uc_is_bidi_category.
41913 2011-03-21  Bruno Haible  <bruno@clisp.org>
41915         New module 'unictype/joininggroup-all'.
41916         * modules/unictype/joininggroup-all: New file.
41918         Tests for module 'unictype/joininggroup-of'.
41919         * modules/unictype/joininggroup-of-tests: New file.
41920         * tests/unictype/test-joininggroup_of.c: New file.
41921         * tests/unictype/test-joininggroup_of.h: New file, automatically
41922         generated by gen-uni-tables.
41924         New module 'unictype/joininggroup-of'.
41925         * modules/unictype/joininggroup-of: New file.
41926         * lib/unictype/joininggroup_of.c: New file.
41927         * lib/unictype/joininggroup_of.h: New file, automatically generated by
41928         gen-uni-tables.
41930         Tests for module 'unictype/joininggroup-byname'.
41931         * modules/unictype/joininggroup-byname-tests: New file.
41932         * tests/unictype/test-joininggroup_byname.c: New file.
41934         New module 'unictype/joininggroup-byname'.
41935         * modules/unictype/joininggroup-byname: New file.
41936         * lib/unictype/joininggroup_byname.c: New file.
41937         * lib/unictype/joininggroup_byname.gperf: New file.
41939         Tests for module 'unictype/joininggroup-name'.
41940         * modules/unictype/joininggroup-name-tests: New file.
41941         * tests/unictype/test-joininggroup_name.c: New file.
41943         New module 'unictype/joininggroup-name'.
41944         * modules/unictype/joininggroup-name: New file.
41945         * lib/unictype/joininggroup_name.c: New file.
41946         * lib/unictype/joininggroup_name.h: New file.
41948         New module 'unictype/joiningtype-all'.
41949         * modules/unictype/joiningtype-all: New file.
41951         Tests for module 'unictype/joiningtype-of'.
41952         * modules/unictype/joiningtype-of-tests: New file.
41953         * tests/unictype/test-joiningtype_of.c: New file.
41954         * tests/unictype/test-joiningtype_of.h: New file, automatically
41955         generated by gen-uni-tables.
41957         New module 'unictype/joiningtype-of'.
41958         * modules/unictype/joiningtype-of: New file.
41959         * lib/unictype/joiningtype_of.c: New file.
41960         * lib/unictype/joiningtype_of.h: New file, automatically generated by
41961         gen-uni-tables.
41963         Tests for module 'unictype/joiningtype-byname'.
41964         * modules/unictype/joiningtype-byname-tests: New file.
41965         * tests/unictype/test-joiningtype_byname.c: New file.
41967         New module 'unictype/joiningtype-byname'.
41968         * modules/unictype/joiningtype-byname: New file.
41969         * lib/unictype/joiningtype_byname.c: New file.
41971         Tests for module 'unictype/joiningtype-name'.
41972         * modules/unictype/joiningtype-name-tests: New file.
41973         * tests/unictype/test-joiningtype_name.c: New file.
41975         New module 'unictype/joiningtype-name'.
41976         * modules/unictype/joiningtype-name: New file.
41977         * lib/unictype/joiningtype_name.c: New file.
41979         unictype: Add support for Arabic shaping properties.
41980         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
41981         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
41982         declarations.
41983         (UC_JOINING_GROUP_*): New enumeration values.
41984         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
41985         declarations.
41986         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
41987         (unicode_joining_type): New variable.
41988         (UC_JOINING_GROUP_*): New enumeration values.
41989         (unicode_joining_group): New variable.
41990         (fill_arabicshaping, joining_type_as_c_identifier,
41991         output_joining_type_test, output_joining_type,
41992         joining_group_as_c_identifier, output_joining_group_test,
41993         output_joining_group): New functions.
41994         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
41995         fill_arabicshaping and output_joining_type_test, output_joining_type,
41996         output_joining_group_test, output_joining_group.
41997         Reported by Simon Josefsson.
41999 2011-03-21  Jim Meyering  <meyering@redhat.com>
42001         strftime: fix a bug in yesterday's change
42002         * lib/strftime.c (add): Accommodate width's initial value of -1.
42003         Otherwise, nstrftime would copy uninitialized data into
42004         the result buffer.
42006 2011-03-21  Jim Meyering  <meyering@redhat.com>
42008         tests: add strftime-tests module
42009         * tests/test-strftime.c: New file.
42010         * modules/strftime-tests: New module.
42012 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42014         strftime: don't assume a byte count fits in 'int'
42015         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42016         found this problem by static analysis, using gcc -Wstrict-overflow
42017         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42018         on an integer overflow having undefined behavior, but it turns out
42019         that the argument is a size, which might not fit in 'int' anyway,
42021 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42023         stdio: don't require ignore_value around fwrite
42025         This patch works around libc bug 11959
42026         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42027         Without this patch, applications must often write
42028         ignore_value (fwrite (...)) even though the ignore_value is
42029         not helpful here.  It's common to write many objects, using
42030         fwrite/printf/etc., and then use ferror to detect output error.
42032         I considered making this patch optional, but decided against it,
42033         because libc is obviously being inconsistent here: there is no
42034         reason libc should insist that user code must inspect fwrite
42035         return's value without also insisting that it inspect printf's,
42036         putchar's, etc.  If user code wants to have a strict style where
42037         all these functions' values are checked (so that ferror need not
42038         be checked), we could add support for that style in a new gnulib
42039         module, but in the meantime it's better to be consistent and to
42040         support common usage.
42042         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42043         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42044         that we are compiling in checking mode, and if not C++, and
42045         if not already wrapping fwrite for some other reason.
42046         (fwrite): #define to rpl_fwrite if the latter is defined.
42048 2011-03-20  Bruno Haible  <bruno@clisp.org>
42050         verror: Fix compilation error introduced on 2011-02-13.
42051         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42052         instead of __attribute__.
42053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42055 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42056             Bruno Haible  <bruno@clisp.org>
42058         socklen: do not depend on sys_socket
42059         While trying to modify Emacs to use gnulib's socklen module,
42060         I discovered a circular dependency: socklen depends on sys_socket
42061         and vice versa.  Emacs can use socklen, but it does not need
42062         sys_socket because it has its own substitute for sys/socket.h.
42063         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42064         gl_TYPE_SOCKLEN_T.
42065         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42066         gl_PREREQ_SYS_H_SOCKET.
42067         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42068         gl_PREREQ_SYS_H_SOCKET.
42069         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42070         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42071         * modules/socklen (Depends-on): Do not depend on sys_socket.
42072         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42074 2011-03-20  Jim Meyering  <meyering@redhat.com>
42076         maint.mk: sort file names *after* new transformation
42077         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42078         prefix would have led to an unwarranted failure in GNU parted.
42079         Sort after that transformation.
42081 2011-03-19  Jim Meyering  <meyering@redhat.com>
42083         maint.mk: fix po-file syntax-check rule
42084         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42085         Patch by Bruno Haible.
42087 2011-03-19  Bruno Haible  <bruno@clisp.org>
42089         socklen: Update comment.
42090         * m4/socklen.m4: Update comment about platforms.
42092 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42093             Bruno Haible  <bruno@clisp.org>
42095         inet_ntop, inet_pton: Simplify.
42096         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42097         documented to provide socklen_t and we already depend on sys_socket.
42098         * modules/inet_pton (Depends-on): Likewise.
42099         * lib/arpa_inet.in.h: Adjust comment.
42101 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42102             Bruno Haible  <bruno@clisp.org>
42104         netdb: Simplify.
42105         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42106         documented to provide socklen_t and we already depend on sys_socket.
42107         * lib/netdb.in.h: Adjust comment.
42109 2011-03-19  Bruno Haible  <bruno@clisp.org>
42111         sys_socket, netdb: Document problem with socklen_t.
42112         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42113         platforms.
42114         * doc/posix-headers/netdb.texi: Likewise.
42116 2011-03-18  Eric Blake  <eblake@redhat.com>
42118         maint.mk: let po check work in VPATH build
42119         * top/maint.mk (po_file): Allow cfg.mk override.
42120         (sc_po_check): Allow VPATH use.
42121         Reported by Jiri Denemark.
42123 2011-03-16  Jim Meyering  <meyering@redhat.com>
42125         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42126         Before, you would have had to create one .x-sc_ file per rule in order
42127         to exempt offending files.  Now, you may instead use a Make variable --
42128         usually defined in cfg.mk -- whose name identifies the affected rule.
42129         * top/maint.mk (_sc_excl): Define.
42130         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42131         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42133 2011-03-13  Bruno Haible  <bruno@clisp.org>
42135         ignore-value tests: Avoid warnings.
42136         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42137         empty for gcc < 3.4.
42139 2011-03-13  Bruno Haible  <bruno@clisp.org>
42141         passfd: Fix link error on Solaris.
42142         * modules/passfd (Description): Correct.
42143         (Depends-on): Add socketlib.
42144         (Link): New section.
42145         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42147 2011-03-13  Bruno Haible  <bruno@clisp.org>
42149         passfd: Fix link error on AIX 5.2.
42150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42152 2011-03-13  Bruno Haible  <bruno@clisp.org>
42154         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42155         * lib/sys_socket.in.h: Include <stddef.h>.
42156         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42157         CMSG_FIRSTHDR. Remove unused variable.
42159 2011-03-13  Bruno Haible  <bruno@clisp.org>
42161         passfd: Fix compilation error on OpenBSD.
42162         * lib/passfd.c: Include <sys/uio.h>.
42164 2011-03-13  Bruno Haible  <bruno@clisp.org>
42166         passfd test: Fix warnings.
42167         * tests/test-passfd.c: Include <sys/wait.h>.
42168         (main): Fix typo.
42170 2011-03-13  Bruno Haible  <bruno@clisp.org>
42172         passfd module, part 4, tweaks.
42173         * tests/test-passfd.c: Reorder includes.
42174         (main): Fix perror and printf calls.
42176 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42178         passfd module, part 4.
42179         * modules/passfd-tests: New file.
42180         * tests/test-passfd.c: New file.
42182 2011-03-13  Jim Meyering  <meyering@redhat.com>
42184         Makefile: rely on GNU make; derive syntax-check rule names
42185         Rather than requiring that each sc_ rule be listed as a dependent
42186         of "check", use features of GNU make to derive the list.
42187         * Makefile (syntax-check-rules): Define.
42188         (check): Depend on the new variable, not the hard-coded list.
42190 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42191             Bruno Haible  <bruno@clisp.org>
42193         passfd module, part 3.
42194         * lib/passfd.h (recvfd): Add a flags argument.
42195         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42196         (recvfd): Add a flags argument.
42197         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42198         exists.
42199         * modules/passfd (Depends-on): Add cloexec.
42200         Suggested by Eric Blake.
42202 2011-03-13  Bruno Haible  <bruno@clisp.org>
42204         passfd module, part 2, tweaks.
42205         * modules/passfd (Files): Reorder.
42206         (Depends-on): Remove errno.
42207         (Include): Remove <sys/socket.h>, <sys/un.h>.
42208         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42209         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42210         specification header. Include <sys/socket.h> always. Don't include
42211         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42212         (sendfd): Clarify that it sets errno when it fails.
42213         (recvfd): Fix specification.
42215 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42217         passfd module, part 2.
42218         * modules/passfd: New file.
42219         * lib/passfd.h: New file.
42220         * lib/passfd.c: New file.
42222 2011-03-12  Bruno Haible  <bruno@clisp.org>
42224         wcswidth, mbswidth: Avoid integer overflow.
42225         * lib/wcswidth.c: Include <limits.h>.
42226         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42227         * lib/mbswidth.c: Include <limits.h>.
42228         (mbsnwidth): Avoid 'int' overflow.
42229         Reported by Jim Meyering.
42231 2011-03-12  Bruno Haible  <bruno@clisp.org>
42233         futimens, utimensat: Avoid endless recursion on Solaris 10.
42234         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42235         Solaris.
42236         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42237         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42239 2011-03-11  Jim Meyering  <meyering@redhat.com>
42241         maint.mk: relax a regexp to accommodate other formatting styles
42242         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42243         between "ngettext" and the following "(".
42245 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42247         maint.mk: suppress a false positive warning
42248         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42249         diagnostics are marked with ngettext.
42251 2011-03-10  Eric Blake  <eblake@redhat.com>
42253         wchar: add explicit dependencies, for Tru64
42254         * modules/mbmemcasecoll (Depends-on): Add wchar.
42255         * modules/mbtowc (Depends-on): Likewise.
42256         * modules/vasnprintf (Depends-on): Likewise.
42257         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42258         * modules/wctomb (Depends-on): Likewise.
42259         Reported by Peter O'Gorman.
42261 2011-03-08  Bruno Haible  <bruno@clisp.org>
42263         passfd module, part 1, tweaks.
42264         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42265         Improve indentation. Improve AC_MSG_CHECKING messages.
42266         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42267         gl_SOCKET_FAMILIES.
42269 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42271         passfd module, part 1.
42272         * m4/afunix.m4: New file.
42273         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42274         sockets.
42276 2011-03-08  Bruno Haible  <bruno@clisp.org>
42278         regex-quote: New API.
42279         * lib/regex-quote.h: Include <stdbool.h>.
42280         (struct regex_quote_spec): New type.
42281         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42282         New declarations.
42283         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42284         'const struct regex_quote_spec *' argument.
42285         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42286         (pcre_special): New constant.
42287         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42288         New functions.
42289         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42290         'const struct regex_quote_spec *' argument.
42291         * modules/regex-quote (Depends-on): Add stdbool.
42292         * tests/test-regex-quote.c (check): Update for new API. Add test for
42293         anchored results.
42294         * NEWS: Mention the API change.
42295         Reported by Reuben Thomas and Eric Blake.
42297 2011-03-06  Bruno Haible  <bruno@clisp.org>
42299         regex-quote: Fix creation of POSIX extended regular expressions.
42300         * lib/regex-quote.c (ere_special): Add grouping and alternation
42301         operators.
42303 2011-03-05  Bruno Haible  <bruno@clisp.org>
42305         doc: Improve doc regarding autopoint vs. gnulib.
42306         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42307         disable autopoint while running autoreconf.
42308         Suggested by Ralf Wildenhues.
42310 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42312         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42313         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42315 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42317         parse-duration: remove xalloc.h dependency
42318         * lib/parse-duration.c (parse_period): handle NULL return from
42319         strdup instead of calling xstrdup().
42320         * modules/parse-duration: remove "xalloc" dependency
42322 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42324         bootstrap: honor m4_base when running aclocal
42325         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42327 2011-03-02  Jim Meyering  <meyering@redhat.com>
42329         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42330         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42331         on request from Matt Booth.
42333 2011-03-01  Eric Blake  <eblake@redhat.com>
42335         test-link: work on Hurd
42336         * tests/test-link.h (test_link): Hurd rejects linking directories
42337         with EISDIR instead of the POSIX-mandated EPERM.
42339 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42341         stdio: simplify by moving files to printf-posix, sigpipe
42342         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42343         since this symbol is needed only if printf is replaced.
42344         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42345         Require gl_ASM_SYMBOL_PREFIX.
42346         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42347         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42348         (Depends-on): Add 'raise'.
42349         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42350         * modules/stdio (Files): Remove lib/stdio-write.c,
42351         m4/asm-underscore.m4.
42352         (Depends-on): Remove 'raise'.
42354         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42355         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42356         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42357         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42359 2011-02-28  Bruno Haible  <bruno@clisp.org>
42361         localcharset: Assume ANSI C behaviour of free().
42362         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42363         calling free().
42364         Suggested by Simon Josefsson <simon@josefsson.org>.
42366 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42367             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42368             Bruno Haible  <bruno@clisp.org>  (tiny change)
42370         On Cygwin, use /proc file system instead of win32 API.
42371         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42372         Win32 file names.
42373         (DllMain): Simplify by removing Cygwin specific code.
42374         (find_shared_library_fullname): Use Linux specific implementation also
42375         for Cygwin.
42376         (get_shared_library_fullname): Update accordingly.
42377         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42378         Win32 file names.
42379         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42380         Cygwin specific code.
42382 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42383             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42385         Fix OpenMP flag detection for various Fortran compilers.
42386         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42387         OpenMP-conditional compilation construct, to force compile
42388         failure with missing OpenMP flag.
42389         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42391 2011-02-25  Eric Blake  <eblake@redhat.com>
42393         strstr: expand test coverage
42394         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42395         compilation.
42396         * tests/test-memmem.c (main): Duplicate tests.
42397         * tests/test-strcasestr.c (main): Likewise.
42398         * tests/test-c-strcasestr.c (main): Likewise.
42400 2011-02-25  Jim Meyering  <meyering@redhat.com>
42402         maint.mk: detect missing-NL-at-EOF, too
42403         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42404         it also detects when a file lacks a newline at EOF.
42405         (require_exactly_one_NL_at_EOF_): Renamed from
42406         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42407         since people may well have .x-sc_... file names tied to the
42408         existing name.  Suggested by Eric Blake.
42410 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42412         dirname: move m4/dos.m4 functionality into lib/dosname.h
42414         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42415         extracts symbols from it, puts them into config.h; but it's much
42416         easier to use the symbols directly.  filename.h already does this,
42417         but it disagrees with dos.m4 in some respects.  This patch
42418         introduces a different include file dosname.h that packages up
42419         dos.m4, and then later we can work on merging filename.h and
42420         dosname.h.  Applications that need only the easy-to-configure
42421         symbols should consider including dosname.h rather than dirname.h.
42422         * NEWS: Mention incompatible changes.
42423         * m4/dos.m4: Remove.
42424         * lib/dosname.h, modules/dosname: New files.
42425         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42426         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42427         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42428         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42429         Include dosname.h, not dirname.h.
42430         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42431         Include dosname.h, for definitions of symbols like ISSLASH
42432         that used to be in config.h.
42433         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42435         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42436         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42437         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42438         * modules/rmdir (Files): Likewise.
42439         * modules/stat (Files): Likewise.
42440         * modules/unlink (Files): Likewise.
42441         * modules/dirname-lgpl (Depends-on): Add dosname.
42442         * modules/lstat (Depends-on): Likewise.
42443         * modules/openat (Depends-on): Likewise.
42444         * modules/rmdir (Depends-on): Likewise.
42445         * modules/savewd (Depends-on): Likewise.
42446         * modules/stat (Depends-on): Likewise.
42447         * modules/unlink (Depends-on): Likewise.
42448         * modules/openat (Depends-on): Remove dirname-lgpl.
42449         * modules/savewd (Depends-on): Likewise.
42450         * tests/test-dirname.c: Do not use removed symbols like
42451         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42452         the remaining symbols, e.g., ISSLASH ('\\').
42454 2011-02-25  Eric Blake  <eblake@redhat.com>
42456         strstr: revert patches that introduced bug and pessimization
42457         * lib/str-two-way.h: Add another reference.
42458         (two_way_short_needle, two_way_long_needle): Revert changes from
42459         2011-02-24; they pessimize search speed.
42460         (critical_factorization): Partially revert changes from
42461         2010-06-22; they violate the requirement that the left half of the
42462         needle be smaller than the period of the needle.
42464 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42466         filenamecat: remove unnecessary dependency on dirname-lgpl
42467         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42468         is no direct dependency, just an indirect one via filenamecat-lgpl.
42470         remove: remove unnecessary use of m4/dos.m4
42471         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42472         * modules/remove (FILES): Remove m4/dos.m4.
42474         * lib/openat-proc.c: Don't include dirname.h; not needed.
42476         backupfile: remove unnecessary use of m4/dos.m4
42477         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42478         of its symbols are used by the backupfile code.  backupfile.c does
42479         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42480         for the rare case of programs that want all their backup file
42481         names to live within 8+3 limits, and dos.m4 doesn't address that.
42482         * modules/backupfile (Files): Remove m4/dos.m4.
42484 2011-02-24  Jim Meyering  <meyering@redhat.com>
42486         strstr: fix a bug whereby strstr would mistakenly return NULL
42487         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42488         in period calculation.
42489         (two_way_long_needle): Likewise.
42490         The original problem was reported by Mike Stump in
42491         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42492         Ralf Wildenhues provided the short needle and haystack.
42493         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42494         Add a more involved test to trigger the bug in two_way_long_needle.
42496 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42498         gnulib-tool: remove use of bold display in help screen
42499         * gnulib-tool (func_usage): Do not use bold display anymore in the
42500         help screen.  That was just meant to be a temporary emphasis for a
42501         backward-incompatible change.
42503 2011-02-23  Bruno Haible  <bruno@clisp.org>
42505         Fix misindentation of preprocessor directives.
42506         * lib/argp-namefrob.h: Reindent preprocessor directives.
42507         * lib/getopt_int.h (struct _getopt_data): Likewise.
42508         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42509         * lib/vasnprintf.c (decode_long_double): Likewise.
42510         * tests/test-argmatch.c: Insert blank lines, for clarity.
42511         * tests/test-exclude.c: Likewise.
42513 2011-02-22  Bruno Haible  <bruno@clisp.org>
42515         ioctl: Fix for MacOS X in 64-bit mode.
42516         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42517         value.
42518         Suggested by Eric Blake.
42519         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42521 2011-02-22  Jim Meyering  <meyering@redhat.com>
42523         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42524         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42525         in lib/.
42527 2011-02-22  Eric Blake  <eblake@redhat.com>
42529         maint: avoid any CDPATH issue
42530         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42532         maint: adjust cpp indentation for my modules, as well
42533         * Makefile (sc_cpp_indent_check): Add my name.
42534         * lib/fbufmode.c: Filter through cppi.
42535         * lib/fpurge.c: Likewise.
42536         * lib/freadable.c: Likewise.
42537         * lib/freading.c: Likewise.
42538         * lib/fwritable.c: Likewise.
42539         * lib/fwriting.c: Likewise.
42540         * lib/sigaction.c: Likewise.
42542 2011-02-22  Jim Meyering  <meyering@redhat.com>
42544         maint: adjust cpp indentation to reflect nesting depth
42545         I.e., in a block of code that begins with an unnested "#if",
42546         put one space between the "#" in column 1 and following token.
42547         For example,
42548         -#include <sys/vfs.h>
42549         +# include <sys/vfs.h>
42550         Do this only in .c files that are part of a module I maintain.
42551         * lib/linkat.c: Filter through cppi.
42552         * lib/nanosleep.c: Likewise.
42553         * lib/openat.c: Likewise.
42554         * lib/openat-die.c: Likewise.
42555         * lib/dup3.c: Likewise.
42556         * lib/fchownat.c: Likewise.
42557         * lib/flock.c: Likewise.
42558         * lib/fsync.c: Likewise.
42559         * lib/fts.c: Likewise.
42560         * lib/getpass.c: Likewise.
42561         * lib/gettimeofday.c: Likewise.
42562         * lib/userspec.c: Likewise.
42563         * Makefile (sc_cpp_indent_check): New rule, to check this.
42565 2011-02-22  Bruno Haible  <bruno@clisp.org>
42567         New module 'wctomb'.
42568         * lib/stdlib.in.h (wctomb): New declaration.
42569         * lib/wctomb.c: New file.
42570         * lib/wctomb-impl.h: New file.
42571         * m4/wctomb.m4: New file.
42572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42573         REPLACE_WCTOMB.
42574         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42575         REPLACE_WCTOMB.
42576         * modules/wctomb: New file.
42577         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42578         * doc/posix-functions/wctomb.texi: Mention the new module.
42579         * modules/wctob (Depends-on): Add wctomb.
42581 2011-02-22  Bruno Haible  <bruno@clisp.org>
42583         New module 'mbtowc'.
42584         * lib/stdlib.in.h (mbtowc): New declaration.
42585         * lib/mbtowc.c: New file.
42586         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42587         * m4/mbtowc.m4: New file.
42588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42589         REPLACE_MBTOWC.
42590         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42591         REPLACE_MBTOWC.
42592         * modules/mbtowc: New file.
42593         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42594         * doc/posix-functions/mbtowc.texi: Mention the new module.
42595         * modules/btowc (Depends-on): Add mbtowc.
42597 2011-02-22  Bruno Haible  <bruno@clisp.org>
42599         wcrtomb: Add more tests for native Windows platforms.
42600         * tests/test-wcrtomb-w32-1.sh: New file.
42601         * tests/test-wcrtomb-w32-2.sh: New file.
42602         * tests/test-wcrtomb-w32-3.sh: New file.
42603         * tests/test-wcrtomb-w32-4.sh: New file.
42604         * tests/test-wcrtomb-w32-5.sh: New file.
42605         * tests/test-wcrtomb-w32.c: New file.
42606         * modules/wcrtomb-tests (Files): Add them.
42607         (Makefile.am): Arrange to run these tests.
42608         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42609         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42611 2011-02-20  Bruno Haible  <bruno@clisp.org>
42613         wcrtomb: Enhance test.
42614         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42616 2011-02-20  Bruno Haible  <bruno@clisp.org>
42618         mbrtowc: Tiny optimization.
42619         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42621 2011-02-20  Jim Meyering  <meyering@redhat.com>
42623         test-exclude.c: remove unmatched #endif
42624         * tests/test-exclude.c: Remove stray #endif, left over from
42625         the change of a week ago.
42627 2011-02-19  Jim Meyering  <meyering@redhat.com>
42629         git-version-gen: skip "-dirty" check when appropriate
42630         * build-aux/git-version-gen: Don't run any git commands when the
42631         version string comes from .tarball-version.  Prior to this, we
42632         would run git update-index --refresh even from a just-unpacked
42633         tarball directory, and that could affect a .git/ directory in a
42634         parent of the build directory.  Reported by Mike Frysinger.
42636 2011-02-19  Bruno Haible  <bruno@clisp.org>
42638         unictype/property-byname: Reduce the size of the 'data' segment.
42639         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42641 2011-02-19  Bruno Haible  <bruno@clisp.org>
42643         unictype/scripts: Reduce the size of the 'data' segment.
42644         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42645         '%pic'.
42646         * lib/unictype/scripts_byname.gperf: Regenerated.
42648 2011-02-19  Bruno Haible  <bruno@clisp.org>
42650         stdint: Update documentation.
42651         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42653 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42655         stdint: omit redundant check for wchar.h
42656         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42657         always tests whether wchar.h exists, so remove the now-redundant test.
42659 2011-02-18  Bruno Haible  <bruno@clisp.org>
42661         stdint: Cut dependency to module 'wchar'.
42662         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42663         include the necessary prerequisites.
42664         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42665         * modules/stdint (Depends-on): Remove wchar.
42666         (Makefile.am): Substitute HAVE_WCHAR_H.
42667         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42669 2011-02-18  Eric Blake  <eblake@redhat.com>
42671         longlong: skip, rather than fail, on cross-compilation
42672         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42673         when cross-compiling; regression from 2011-02-16.
42675 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42677         * NEWS: Mention 2011-02-08 change to stdlib.
42679 2011-02-17  Bruno Haible  <bruno@clisp.org>
42681         getloadavg: Add comments about platforms.
42682         * m4/getloadavg.m4: Add comment.
42683         * lib/getloadavg.c: Likewise.
42685 2011-02-17  Bruno Haible  <bruno@clisp.org>
42687         getloadavg: Fix link error on Solaris 2.6.
42688         * modules/getloadavg (Link): New section.
42689         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42690         linking test-getloadavg.
42691         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42692         getloadavg.
42694 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42696         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42697         It was 'int', but this doesn't match the IRIX 6.5 manual.
42698         Suggested by Bruno Haible in
42699         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42701 2011-02-17  Bruno Haible  <bruno@clisp.org>
42703         havelib: Fix comments.
42704         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42705         change.
42707 2011-02-17  Bruno Haible  <bruno@clisp.org>
42709         havelib: Update config.rpath.
42710         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42712 2011-02-17  Bruno Haible  <bruno@clisp.org>
42714         getloadavg test: Add some plausibility checks.
42715         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42716         is improbable.
42718 2011-02-16  Eric Blake  <eblake@redhat.com>
42720         maintainer-makefile: make syntax-check a no-op from tarballs
42721         * top/maint.mk (no-vc-detected): New rule.
42722         (local-checks-available): Use it to avoid hanging if someone tries
42723         'make syntax-check' from a tarball.  Also append to any non-syntax
42724         checks already defined in cfg.mk.
42726 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42728         longlong: tune, particularly for common case of c99
42730         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42731         or running anything if c99, or if unsigned long long int does not
42732         work.  In either case, we know the answer without further tests.
42733         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42734         it at most once, and use its results for both long long int and
42735         unsigned long long int.  This is more likely to be efficient in
42736         the common case where the program wants to check for both long
42737         long int and unsigned long long int.
42738         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42739         since the answer is already known.
42741 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42743         getloadavg: set errno
42744         * lib/getloadavg.c: Set errno when returning -1.  If no other
42745         error number looks appropriate, set it to ENOSYS if the getloadavg
42746         looks like it can't possibly ever work, ENOTSUP otherwise.
42747         Suggested by Bruno Haible in
42748         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42750         getloadavg: trim unused parts and speed up 'configure'
42751         * NEWS: Document this.
42752         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42753         always compiled if getloadavg is absent.
42754         Move test code to ...
42755         * tests/test-getloadavg.c: New file, containing previous
42756         contents of test from lib/getloadavg.c.  It also contains
42757         suggestions by Bruno Haible in
42758         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42759         * modules/getloadavg-tests: New file.
42760         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42761         Do tests in the same order as they're needed for getloadavg.c.
42762         Omit setgid-related tests that generate symbols KMEM_GROUP,
42763         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42764         Do only the tests that are needed to see whether the system has
42765         getloadavg, moving the other tests into ...
42766         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42767         NLIST_NAME_UNION; nobody should be using it.  Do not define
42768         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42769         relevant, as the user of this module shouldn't care how getloadavg
42770         is implemented.
42772         getloadavg: omit unused var
42773         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42775 2011-02-15  Jim Meyering  <meyering@redhat.com>
42777         doc: update users.txt
42778         * users.txt: Update iwhd's URL.
42780 2011-02-13  Bruno Haible  <bruno@clisp.org>
42782         Consistent macro naming for macros that use GCC __attribute__.
42783         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42784         _ATTRIBUTE_NONNULL_.
42785         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42786         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42787         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42788         ATTRIBUTE_DEPRECATED.
42789         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42790         ATTRIBUTE_NORETURN.
42791         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42792         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42793         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42794         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42795         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42796         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42797         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42798         ATTRIBUTE_SENTINEL.
42799         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42800         ATTRIBUTE_RETURN_CHECK.
42801         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42802         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42803         ATTRIBUTE_NORETURN.
42804         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42805         Reported by Paul Eggert.
42807 2011-02-13  Bruno Haible  <bruno@clisp.org>
42809         Don't interfere with a program's definition of __attribute__.
42810         * lib/argp.h (__attribute__): Remove definition.
42811         (_GL_ATTRIBUTE_FORMAT): New macro.
42812         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42813         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42814         (_GL_ATTRIBUTE_FORMAT): New macro.
42815         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42816         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42817         GCC 3 or newer.
42818         * lib/error.h (__attribute__): Remove definition.
42819         (_GL_ATTRIBUTE_FORMAT): New macro.
42820         (error, error_at_line): Use it.
42821         * lib/hash.h (__attribute__): Remove definition.
42822         (ATTRIBUTE_WUR): Update definition. Define always.
42823         * lib/openat.h (__attribute__): Remove definition.
42824         (ATTRIBUTE_NORETURN): Update definition. Define always.
42825         * lib/sigpipe-die.h (__attribute__): Remove definition.
42826         (ATTRIBUTE_NORETURN): Update definition. Define always.
42827         * lib/vasnprintf.h (__attribute__): Remove definition.
42828         (_GL_ATTRIBUTE_FORMAT): New macro.
42829         (asnprintf, vasnprintf): Use it.
42830         * lib/xalloc.h (__attribute__): Remove definition.
42831         (ATTRIBUTE_NORETURN): Update definition. Define always.
42832         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42833         * lib/xmemdup0.h (__attribute__): Remove definition.
42834         (ATTRIBUTE_NORETURN): Update definition. Define always.
42835         * lib/xprintf.h (__attribute__): Remove definition.
42836         (_GL_ATTRIBUTE_FORMAT): New macro.
42837         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42838         * lib/xstrtol.h (__attribute__): Remove definition.
42839         (ATTRIBUTE_NORETURN): Update definition. Define always.
42840         * lib/xvasprintf.h (__attribute__): Remove definition.
42841         (_GL_ATTRIBUTE_FORMAT): New macro.
42842         (xasprintf, xvasprintf): Use it.
42843         * tests/test-argmatch.c (__attribute__): Remove definition.
42844         (ATTRIBUTE_NORETURN): Update definition. Define always.
42845         * tests/test-exclude.c (__attribute__): Remove definition.
42846         (ATTRIBUTE_NORETURN): Update definition. Define always.
42847         Reported by Paul Eggert.
42849 2011-02-13  Bruno Haible  <bruno@clisp.org>
42851         mbrtowc: Add more tests for native Windows platforms.
42852         * tests/test-mbrtowc-w32-1.sh: New file.
42853         * tests/test-mbrtowc-w32-2.sh: New file.
42854         * tests/test-mbrtowc-w32-3.sh: New file.
42855         * tests/test-mbrtowc-w32-4.sh: New file.
42856         * tests/test-mbrtowc-w32-5.sh: New file.
42857         * tests/test-mbrtowc-w32.c: New file.
42858         * modules/mbrtowc-tests (Files): Add them.
42859         (Makefile.am): Arrange to run these tests.
42860         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42861         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42863 2011-02-13  Bruno Haible  <bruno@clisp.org>
42865         mbrtowc: Work around native Windows bug.
42866         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42867         guess when no suitable locale for testing was found.
42868         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42870 2011-02-13  Bruno Haible  <bruno@clisp.org>
42872         mbsinit: Work around mingw bug.
42873         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42874         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42875         Windows.
42876         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42878 2011-02-13  Bruno Haible  <bruno@clisp.org>
42880         mbsinit: Don't crash for a NULL argument.
42881         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42882         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42884 2011-02-13  Bruno Haible  <bruno@clisp.org>
42886         Don't interfere with a program's definition of __attribute__.
42887         * lib/stdio.in.h (__attribute__): Remove definition.
42888         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42889         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42890         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42891         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42892         * lib/string.in.h (__attribute__): Remove definition.
42893         Reported by Paul Eggert.
42895 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42897         stdlib: don't get in the way of non-GCC __attribute__
42898         See thread starting at
42899         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
42900         Revert previous stdlib change, installing the following instead:
42901         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
42902         to get in the way of a non-GCC compiler that supports __attribute__.
42903         (_GL_ATTRIBUTE_RETURN): New macro.
42904         (_Exit): Use it instead of __attribute__.
42906 2011-02-12  Bruno Haible  <bruno@clisp.org>
42908         quotearg test: Avoid test failure on mingw.
42909         * tests/test-quotearg.sh: Convert the locale identifier from native
42910         Windows syntax to Unix syntax.
42912 2011-02-12  Bruno Haible  <bruno@clisp.org>
42914         setlocale: Prefer gnulib's override over libintl's override.
42915         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
42916         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
42917         GNULIB_defined_setlocale is set.
42919 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42921         stdlib: support non-GCC __attribute__
42923         Fix a serious and tricky problem encountered when attempting to
42924         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
42925         5.5, but it crashed due to memory corruption on Solaris 10 with
42926         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
42927         bits that are otherwise zero.  This tagging is optional inside
42928         Emacs but is preferred and is used when __attribute__ ((__aligned
42929         (8))) works, as it does with both recent-enough GCC and with Sun C
42930         5.11.  However, Sun C 5.11 is not GCC and does not #define
42931         __GNUC__ and __GNUC_MINOR__.
42933         When I added the getloadavg module to Emacs, it brought in
42934         stdlib.in.h, which contained this fragment:
42936            #ifndef __attribute__
42937            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
42938            #  define __attribute__(Spec)   /* empty */
42939            # endif
42940            #endif
42942         When files that include <stdlib.h> were compiled with Sun C 5.11,
42943         the above code disabled __attribute__ ((__aligned (8))), which
42944         caused variables to not be properly aligned, which eventually led
42945         to the pointer corruption mentioned above.  (This was a bit hard
42946         to diagnose, unfortunately.)
42948         Several "#define __attribute__(X) /* empty */" code snippets need
42949         to be eradicated from Gnulib to work with non-GCC compilers that
42950         support __attribute__.  The Autoconf way to do this is to test for
42951         each kind of attribute that we want support for, and selectively
42952         enable that in source code.
42954         Fix this problem just for stdlib.h, by adding a test for the
42955         __noreturn__ attribute, and change stdlib.in.h to use that test
42956         when needed.  This technique can be easily generalized to the
42957         other *.in.h files and attributes, and a similar technique can be
42958         used for *.h and *.c files.  This patch is enough to solve the
42959         problem for Emacs + getloadavg, and I thought I'd publish it for
42960         feedback before undertaking further, similar fixes in other
42961         modules.
42963         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
42964         because it's not needed for stdlib.h.  It merely substitutes the
42965         value directly into stdlib.h.  We may well need to #define it, or
42966         similar symbols, for other modules, but it's nice to also have an
42967         option to not #define it for applications like Emacs that do not
42968         need it.
42970         * lib/stdlib.in.h (__attribute__): Do not #define.
42971         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
42972         be defined only if the _Exit module is also used.
42973         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
42974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
42975         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
42976         platforms.
42977         * modules/_Exit (Files): Add m4/attribute.m4.
42978         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
42979         * m4/attribute.m4: New file.
42981 2011-02-12  Bruno Haible  <bruno@clisp.org>
42983         wcsrtombs: Work around bug on native Windows.
42984         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
42985         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
42986         instead of len.
42987         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
42989 2011-02-12  Bruno Haible  <bruno@clisp.org>
42991         mbsrtowcs: Work around bug on native Windows.
42992         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
42993         against mingw bug.
42994         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
42996 2011-02-12  Bruno Haible  <bruno@clisp.org>
42998         Avoid setlocale bugs in tests.
42999         * modules/btowc (Dependencies): Add setlocale.
43000         * modules/c-strcase (Dependencies): Likewise.
43001         * modules/mbmemcasecmp (Dependencies): Likewise.
43002         * modules/mbmemcasecoll (Dependencies): Likewise.
43003         * modules/mbrtowc (Dependencies): Likewise.
43004         * modules/mbscasecmp (Dependencies): Likewise.
43005         * modules/mbscasestr (Dependencies): Likewise.
43006         * modules/mbschr (Dependencies): Likewise.
43007         * modules/mbscspn (Dependencies): Likewise.
43008         * modules/mbsinit (Dependencies): Likewise.
43009         * modules/mbsncasecmp (Dependencies): Likewise.
43010         * modules/mbsnrtowcs (Dependencies): Likewise.
43011         * modules/mbspbrk (Dependencies): Likewise.
43012         * modules/mbspcasecmp (Dependencies): Likewise.
43013         * modules/mbsrchr (Dependencies): Likewise.
43014         * modules/mbsrtowcs (Dependencies): Likewise.
43015         * modules/mbsspn (Dependencies): Likewise.
43016         * modules/mbsstr (Dependencies): Likewise.
43017         * modules/nl_langinfo (Dependencies): Likewise.
43018         * modules/quotearg (Dependencies): Likewise.
43019         * modules/unicase/locale-language (Dependencies): Likewise.
43020         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43021         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43022         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43023         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43024         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43025         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43026         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43027         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43028         * modules/vasnprintf-posix (Dependencies): Likewise.
43029         * modules/wcrtomb (Dependencies): Likewise.
43030         * modules/wcsnrtombs (Dependencies): Likewise.
43031         * modules/wcsrtombs (Dependencies): Likewise.
43033 2011-02-12  Bruno Haible  <bruno@clisp.org>
43035         setlocale: Workaround native Windows bug.
43036         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43037         succeeds but sets LC_CTYPE to "C", report a failure.
43038         * tests/test-setlocale2.sh: New file.
43039         * tests/test-setlocale2.c: New file.
43040         * modules/setlocale-tests (Files): Add the new files.
43041         (Makefile.am): Enable test-setlocale2.sh test.
43042         * doc/posix-functions/setlocale.texi: Mention workaround.
43044 2011-02-11  Bruno Haible  <bruno@clisp.org>
43046         Tests for module 'setlocale'.
43047         * modules/setlocale-tests: New file.
43048         * tests/test-setlocale1.sh: New file.
43049         * tests/test-setlocale1.c: New file.
43051         New module 'setlocale'.
43052         * lib/locale.in.h (setlocale): New declaration.
43053         * lib/setlocale.c: New file, based on
43054         gettext/gettext-runtime/intl/setlocale.c.
43055         * m4/setlocale.m4: New file.
43056         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43057         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43058         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43059         REPLACE_SETLOCALE.
43060         * modules/setlocale: New file.
43061         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43062         * doc/posix-functions/setlocale.texi: Mention the new module.
43064 2011-02-11  Bruno Haible  <bruno@clisp.org>
43066         Prepare for locale dependent tests on mingw.
43067         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43068         because it has the wrong locale encoding.
43069         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43070         French_France.1252 instead of "fr".
43071         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43072         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43073         because it has the wrong locale encoding.
43074         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43075         native Windows, try Turkish_Turkey.65001.
43076         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43077         Chinese_China.54936.
43079         Prepare for locale dependent tests on mingw.
43080         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43081         differently.
43082         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43083         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43084         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43085         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43087 2011-02-11  Eric Blake  <eblake@redhat.com>
43089         strptime: avoid compiler warnings
43090         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43091         compiler warnings about dead code.
43092         Reported by Daniel P. Berrange.
43094 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43096         doc: update users.txt
43097         * users.txt: Add rcs.
43099 2011-02-10  John W. Eaton  <jwe@gnu.org>
43101         doc: update users.txt
43102         * users.txt: Add octave.
43104 2011-02-10  Jim Meyering  <meyering@redhat.com>
43106         doc: update users.txt
43107         * users.txt: Add iwhd.
43109 2011-02-09  Bruno Haible  <bruno@clisp.org>
43111         gnulib-tool: Make copyright notice adjustment more robust.
43112         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43113         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43114         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43115         License".
43116         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43118 2011-02-06  Bruno Haible  <bruno@clisp.org>
43120         New module 'towctrans'.
43121         * modules/towctrans: New file.
43122         * lib/wctype.in.h (towctrans): New declaration.
43123         * lib/towctrans.c: New file.
43124         * lib/towctrans-impl.h: New file.
43125         * m4/towctrans.m4: New file.
43126         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43127         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43128         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43129         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43130         * doc/posix-functions/towctrans.texi: Mention the new module.
43132 2011-02-06  Bruno Haible  <bruno@clisp.org>
43134         New module 'wctrans'.
43135         * modules/wctrans: New file.
43136         * lib/wctype.in.h (wctrans): New declaration.
43137         * lib/wctrans.c: New file.
43138         * lib/wctrans-impl.h: New file.
43139         * m4/wctrans.m4: New file.
43140         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43141         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43142         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43143         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43144         * doc/posix-functions/wctrans.texi: Mention the new module.
43146 2011-02-06  Bruno Haible  <bruno@clisp.org>
43148         New module 'iswctype'.
43149         * modules/iswctype: New file.
43150         * lib/wctype.in.h (iswctype): New declaration.
43151         * lib/iswctype.c: New file.
43152         * lib/iswctype-impl.h: New file.
43153         * m4/iswctype.m4: New file.
43154         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43155         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43156         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43157         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43158         * doc/posix-functions/iswctype.texi: Mention the new module and the
43159         HP-UX 11.00 problem.
43161 2011-02-06  Bruno Haible  <bruno@clisp.org>
43163         New module 'wctype'.
43164         * modules/wctype: Change to represent the wctype() substitute.
43165         * lib/wctype.in.h (wctype): New declaration.
43166         * lib/wctype.c: New file.
43167         * lib/wctype-impl.h: New file.
43168         * m4/wctype.m4: New file.
43169         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43170         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43171         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43172         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43173         * doc/posix-functions/wctype.texi: Mention the new module and the
43174         HP-UX 11.00 problem.
43176 2011-02-06  Bruno Haible  <bruno@clisp.org>
43178         wctype-h: Ensure wctype_t and wctrans_t are defined.
43179         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43180         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43181         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43182         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43183         HAVE_WCTRANS_T.
43184         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43186 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43188         flock: fix license typo
43190         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43191         omitted.
43193 2011-02-08  Bruno Haible  <bruno@clisp.org>
43195         Split large sed scripts, for HP-UX sed.
43196         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43197         to avoid HP-UX limit of 99 commands, in the near future.
43198         * modules/stdlib (Makefile.am): Likewise.
43199         * modules/unistd (Makefile.am): Likewise.
43200         * modules/wchar (Makefile.am): Likewise.
43201         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43202         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43203         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43205 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43206             Bruno Haible  <bruno@clisp.org>
43208         stdlib: improve random_r modularization
43209         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43210         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43211         you also need the random_r module to get this material right.
43212         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43213         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43214         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43216 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43218         stdlib: don't depend on stdint
43219         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43220         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43221         be independent of whether stdint.h is needed.
43222         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43223         here, instead of ...
43224         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43225         struct random_data should be using the random_r module, not just
43226         the stdlib module (which wouldn't make sense: what package needs
43227         just struct random_data without also needing random_r?).
43228         * modules/stdlib (Depends-on): Remove stdint.
43230         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43231         See the thread rooted at
43232         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43233         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43234         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43235         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43236         __VMS)); previously it was always included (via fcntl--.h).
43237         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43238         hand; this is good enough for load averages.  Also, do not use
43239         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43240         flags directly if available and don't bother otherwise.  (Packages
43241         that need the extra reliability should use the modules that define
43242         these flags on older platforms that lack them.)
43243         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43244         fcntl-safer.
43246 2011-02-08  Jim Meyering  <meyering@redhat.com>
43248         di-set.h, ino-map.h: add multiple-inclusion guard
43249         Technically, the guard is required only for ino-map.h, due to its
43250         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43251         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43252         * lib/ino-map.h: Likewise.
43254 2011-02-06  Bruno Haible  <bruno@clisp.org>
43256         iswblank: Ensure declaration on glibc systems.
43257         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43258         * modules/iswblank (Dependencies): Add 'extensions'.
43259         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43261 2011-02-06  Bruno Haible  <bruno@clisp.org>
43263         New module 'iswblank'.
43264         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43265         * modules/iswblank: New file.
43266         * modules/wctype-h (Files): Remove lib/iswblank.c.
43267         (Makefile.am): Substitute GNULIB_ISWBLANK.
43268         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43269         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43270         (gl_WCTYPE_H_DEFAULTS): New macro.
43271         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43272         * modules/iswblank-tests: New file.
43273         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43274         * tests/test-wctype-h.c (main): Remove iswblank tests.
43275         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43276         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43277         of 'wctype-h'.
43278         * NEWS: Mention the change.
43279         * modules/mbchar (Depends-on): Add iswblank.
43281 2011-02-08  Bruno Haible  <bruno@clisp.org>
43283         di-set tests: Refactor.
43284         * tests/test-di-set.c: Include di-set.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/di-set-tests (Files): Add tests/macros.h.
43291 2011-02-08  Bruno Haible  <bruno@clisp.org>
43293         ino-map tests: Refactor.
43294         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43295         unnecessary includes.
43296         (ASSERT): Remove macro.
43297         (main): Make C90 compliant by avoiding variable declaration after
43298         statement.
43299         * modules/ino-map-tests (Files): Add tests/macros.h.
43301 2011-02-08  Jim Meyering  <meyering@redhat.com>
43303         di-set: add "const" to a cast
43304         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43305         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43307 2011-02-06  Bruno Haible  <bruno@clisp.org>
43309         Rename module 'wctype' to 'wctype-h'.
43310         * modules/wctype-h: Renamed from modules/wctype.
43311         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43312         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43313         (Files, Depends-on, Makefile.am): Update.
43314         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43315         (Files, Makefile.am): Update.
43316         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43317         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43318         * doc/posix-headers/wctype.texi: Update.
43319         * doc/posix-functions/iswalnum.texi: Update.
43320         * doc/posix-functions/iswalpha.texi: Update.
43321         * doc/posix-functions/iswblank.texi: Update.
43322         * doc/posix-functions/iswcntrl.texi: Update.
43323         * doc/posix-functions/iswdigit.texi: Update.
43324         * doc/posix-functions/iswgraph.texi: Update.
43325         * doc/posix-functions/iswlower.texi: Update.
43326         * doc/posix-functions/iswprint.texi: Update.
43327         * doc/posix-functions/iswpunct.texi: Update.
43328         * doc/posix-functions/iswspace.texi: Update.
43329         * doc/posix-functions/iswupper.texi: Update.
43330         * doc/posix-functions/iswxdigit.texi: Update.
43331         * doc/posix-functions/towlower.texi: Update.
43332         * doc/posix-functions/towupper.texi: Update.
43333         * NEWS: Mention the change.
43334         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43335         * modules/mbchar (Dependencies): Likewise.
43336         * modules/mbswidth (Dependencies): Likewise.
43337         * modules/quotearg (Dependencies): Likewise.
43338         * modules/regex (Dependencies): Likewise.
43339         * modules/wcscasecmp (Dependencies): Likewise.
43340         * modules/wcsncasecmp (Dependencies): Likewise.
43341         * modules/wcwidth (Dependencies): Likewise.
43343 2011-02-06  Bruno Haible  <bruno@clisp.org>
43345         New module 'wcswidth'.
43346         * modules/wcswidth: New file.
43347         * lib/wchar.in.h (wcswidth): New declaration.
43348         * lib/wcswidth.c: New file.
43349         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43350         * m4/wcswidth.m4: New file.
43351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43353         REPLACE_WCSWIDTH.
43354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43355         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43356         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43357         * doc/posix-functions/wcswidth.texi: Mention the new module.
43359 2011-02-06  Bruno Haible  <bruno@clisp.org>
43361         New module 'wcstok'.
43362         * modules/wcstok: New file.
43363         * lib/wchar.in.h (wcstok): New declaration.
43364         * lib/wcstok.c: New file.
43365         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43366         * m4/wcstok.m4: New file.
43367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43370         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43371         * doc/posix-functions/wcstok.texi: Mention the new module.
43373 2011-02-06  Bruno Haible  <bruno@clisp.org>
43375         New module 'wcsstr'.
43376         * modules/wcsstr: New file.
43377         * lib/wchar.in.h (wcsstr): New declaration.
43378         * lib/wcsstr.c: New file.
43379         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43380         * m4/wcsstr.m4: New file.
43381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43384         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43385         * doc/posix-functions/wcsstr.texi: Mention the new module.
43387 2011-02-06  Bruno Haible  <bruno@clisp.org>
43389         New module 'wcspbrk'.
43390         * modules/wcspbrk: New file.
43391         * lib/wchar.in.h (wcspbrk): New declaration.
43392         * lib/wcspbrk.c: New file.
43393         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43394         * m4/wcspbrk.m4: New file.
43395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43398         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43399         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43401 2011-02-06  Bruno Haible  <bruno@clisp.org>
43403         New module 'wcsspn'.
43404         * modules/wcsspn: New file.
43405         * lib/wchar.in.h (wcsspn): New declaration.
43406         * lib/wcsspn.c: New file.
43407         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43408         * m4/wcsspn.m4: New file.
43409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43412         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43413         * doc/posix-functions/wcsspn.texi: Mention the new module.
43415 2011-02-06  Bruno Haible  <bruno@clisp.org>
43417         New module 'wcscspn'.
43418         * modules/wcscspn: New file.
43419         * lib/wchar.in.h (wcscspn): New declaration.
43420         * lib/wcscspn.c: New file.
43421         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43422         * m4/wcscspn.m4: New file.
43423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43426         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43427         * doc/posix-functions/wcscspn.texi: Mention the new module.
43429 2011-02-06  Bruno Haible  <bruno@clisp.org>
43431         New module 'wcsrchr'.
43432         * modules/wcsrchr: New file.
43433         * lib/wchar.in.h (wcsrchr): New declaration.
43434         * lib/wcsrchr.c: New file.
43435         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43436         * m4/wcsrchr.m4: New file.
43437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43440         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43441         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43443 2011-02-06  Bruno Haible  <bruno@clisp.org>
43445         New module 'wcschr'.
43446         * modules/wcschr: New file.
43447         * lib/wchar.in.h (wcschr): New declaration.
43448         * lib/wcschr.c: New file.
43449         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43450         * m4/wcschr.m4: New file.
43451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43454         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43455         * doc/posix-functions/wcschr.texi: Mention the new module.
43457 2011-02-06  Bruno Haible  <bruno@clisp.org>
43459         New module 'wcsdup'.
43460         * modules/wcsdup: New file.
43461         * lib/wchar.in.h (wcsdup): New declaration.
43462         * lib/wcsdup.c: New file.
43463         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43464         * m4/wcsdup.m4: New file.
43465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43468         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43469         * doc/posix-functions/wcsdup.texi: Mention the new module.
43471 2011-02-06  Bruno Haible  <bruno@clisp.org>
43473         New module 'wcsxfrm'.
43474         * modules/wcsxfrm: New file.
43475         * lib/wchar.in.h (wcsxfrm): New declaration.
43476         * lib/wcsxfrm.c: New file.
43477         * lib/wcsxfrm-impl.h: New file.
43478         * m4/wcsxfrm.m4: New file.
43479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43482         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43483         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43485 2011-02-06  Bruno Haible  <bruno@clisp.org>
43487         New module 'wcscoll'.
43488         * modules/wcscoll: New file.
43489         * lib/wchar.in.h (wcscoll): New declaration.
43490         * lib/wcscoll.c: New file.
43491         * lib/wcscoll-impl.h: New file.
43492         * m4/wcscoll.m4: New file.
43493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43496         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43497         * doc/posix-functions/wcscoll.texi: Mention the new module.
43499 2011-02-06  Bruno Haible  <bruno@clisp.org>
43501         New module 'wcsncasecmp'.
43502         * modules/wcsncasecmp: New file.
43503         * lib/wchar.in.h (wcsncasecmp): New declaration.
43504         * lib/wcsncasecmp.c: New file.
43505         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43506         * m4/wcsncasecmp.m4: New file.
43507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43510         HAVE_WCSNCASECMP.
43511         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43512         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43514 2011-02-06  Bruno Haible  <bruno@clisp.org>
43516         New module 'wcscasecmp'.
43517         * modules/wcscasecmp: New file.
43518         * lib/wchar.in.h (wcscasecmp): New declaration.
43519         * lib/wcscasecmp.c: New file.
43520         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43521         * m4/wcscasecmp.m4: New file.
43522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43525         HAVE_WCSCASECMP.
43526         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43527         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43529 2011-02-05  Bruno Haible  <bruno@clisp.org>
43531         New module 'wcsncmp'.
43532         * modules/wcsncmp: New file.
43533         * lib/wchar.in.h (wcsncmp): New declaration.
43534         * lib/wcsncmp.c: New file.
43535         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43536         * m4/wcsncmp.m4: New file.
43537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43540         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43541         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43543 2011-02-05  Bruno Haible  <bruno@clisp.org>
43545         New module 'wcscmp'.
43546         * modules/wcscmp: New file.
43547         * lib/wchar.in.h (wcscmp): New declaration.
43548         * lib/wcscmp.c: New file.
43549         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43550         * m4/wcscmp.m4: New file.
43551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43554         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43555         * doc/posix-functions/wcscmp.texi: Mention the new module.
43557 2011-02-05  Bruno Haible  <bruno@clisp.org>
43559         New module 'wcsncat'.
43560         * modules/wcsncat: New file.
43561         * lib/wchar.in.h (wcsncat): New declaration.
43562         * lib/wcsncat.c: New file.
43563         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43564         * m4/wcsncat.m4: New file.
43565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43568         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43569         * doc/posix-functions/wcsncat.texi: Mention the new module.
43571 2011-02-05  Bruno Haible  <bruno@clisp.org>
43573         New module 'wcscat'.
43574         * modules/wcscat: New file.
43575         * lib/wchar.in.h (wcscat): New declaration.
43576         * lib/wcscat.c: New file.
43577         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43578         * m4/wcscat.m4: New file.
43579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43582         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43583         * doc/posix-functions/wcscat.texi: Mention the new module.
43585 2011-02-05  Bruno Haible  <bruno@clisp.org>
43587         New module 'wcpncpy'.
43588         * modules/wcpncpy: New file.
43589         * lib/wchar.in.h (wcpncpy): New declaration.
43590         * lib/wcpncpy.c: New file.
43591         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43592         * m4/wcpncpy.m4: New file.
43593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43595         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43596         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43597         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43599 2011-02-05  Bruno Haible  <bruno@clisp.org>
43601         New module 'wcsncpy'.
43602         * modules/wcsncpy: New file.
43603         * lib/wchar.in.h (wcsncpy): New declaration.
43604         * lib/wcsncpy.c: New file.
43605         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43606         * m4/wcsncpy.m4: New file.
43607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43610         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43611         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43613 2011-02-05  Bruno Haible  <bruno@clisp.org>
43615         New module 'wcpcpy'.
43616         * modules/wcpcpy: New file.
43617         * lib/wchar.in.h (wcpcpy): New declaration.
43618         * lib/wcpcpy.c: New file.
43619         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43620         * m4/wcpcpy.m4: New file.
43621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43623         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43624         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43625         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43627 2011-02-05  Bruno Haible  <bruno@clisp.org>
43629         New module 'wcscpy'.
43630         * modules/wcscpy: New file.
43631         * lib/wchar.in.h (wcscpy): New declaration.
43632         * lib/wcscpy.c: New file.
43633         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43634         * m4/wcscpy.m4: New file.
43635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43638         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43639         * doc/posix-functions/wcscpy.texi: Mention the new module.
43641 2011-02-05  Bruno Haible  <bruno@clisp.org>
43643         New module 'wcsnlen'.
43644         * modules/wcsnlen: New file.
43645         * lib/wchar.in.h (wcsnlen): New declaration.
43646         * lib/wcsnlen.c: New file.
43647         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43648         * m4/wcsnlen.m4: New file.
43649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43652         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43653         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43655 2011-02-05  Bruno Haible  <bruno@clisp.org>
43657         New module 'wcslen'.
43658         * modules/wcslen: New file.
43659         * lib/wchar.in.h (wcslen): New declaration.
43660         * lib/wcslen.c: New file.
43661         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43662         * m4/wcslen.m4: New file.
43663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43666         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43667         * doc/posix-functions/wcslen.texi: Mention the new module.
43669 2011-02-05  Bruno Haible  <bruno@clisp.org>
43671         New module 'wmemset'.
43672         * modules/wmemset: New file.
43673         * lib/wchar.in.h (wmemset): New declaration.
43674         * lib/wmemset.c: New file.
43675         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43676         * m4/wmemset.m4: New file.
43677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43679         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43680         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43681         * doc/posix-functions/wmemset.texi: Mention the new module.
43683 2011-02-05  Bruno Haible  <bruno@clisp.org>
43685         New module 'wmemmove'.
43686         * modules/wmemmove: New file.
43687         * lib/wchar.in.h (wmemmove): New declaration.
43688         * lib/wmemmove.c: New file.
43689         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43690         * m4/wmemmove.m4: New file.
43691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43693         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43694         HAVE_WMEMMOVE.
43695         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43696         * doc/posix-functions/wmemmove.texi: Mention the new module.
43698 2011-02-05  Bruno Haible  <bruno@clisp.org>
43700         New module 'wmemcpy'.
43701         * modules/wmemcpy: New file.
43702         * lib/wchar.in.h (wmemcpy): New declaration.
43703         * lib/wmemcpy.c: New file.
43704         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43705         * m4/wmemcpy.m4: New file.
43706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43708         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43709         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43710         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43712 2011-02-05  Bruno Haible  <bruno@clisp.org>
43714         New module 'wmemcmp'.
43715         * modules/wmemcmp: New file.
43716         * lib/wchar.in.h (wmemcmp): New declaration.
43717         * lib/wmemcmp.c: New file.
43718         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43719         * m4/wmemcmp.m4: New file.
43720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43723         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43724         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43726 2011-02-07  Jim Meyering  <meyering@redhat.com>
43728         di-set, ino-map: new modules, from coreutils
43729         * lib/di-set.c: New file.
43730         * lib/di-set.h: Likewise.
43731         * lib/ino-map.c: Likewise.
43732         * lib/ino-map.h: Likewise.
43733         * modules/di-set: Likewise.
43734         * modules/di-set-tests: Likewise.
43735         * modules/ino-map: Likewise.
43736         * modules/ino-map-tests: Likewise.
43737         * tests/test-di-set.c: Likewise.
43738         * tests/test-ino-map.c: Likewise.
43740 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43742         getloadavg: merge minor changes from Emacs
43744         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43745         (getloadavg): Use memset, not bzero.
43747         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43748         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43749         clash (bug#86).
43751 2010-11-14  Bruno Haible  <bruno@clisp.org>
43753         Allow multiple gnulib generated replacements to coexist.
43754         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43755         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43756         * lib/langinfo.in.h (nl_item): Likewise.
43757         * lib/math.in.h (_NaN, NAN): Likewise.
43758         * lib/netdb.in.h (struct addrinfo): Likewise.
43759         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43760         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43761         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43762         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43763         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43764         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43765         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43766         pthread_mutexattr_init, pthread_mutexattr_settype,
43767         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43768         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43769         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43770         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43771         * lib/sched.in.h (struct sched_param): Likewise.
43772         * lib/se-selinux.in.h (security_class_t, security_context_t,
43773         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43774         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43775         lsetfilecon, fsetfilecon, security_check_context,
43776         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43777         Likewise.
43778         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43779         Likewise.
43780         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43781         _gl_function_taking_int_returning_void_t, union sigval,
43782         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43783         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43784         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43785         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43786         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43787         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43788         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43789         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43790         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43791         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43792         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43793         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43794         socklen_t, rpl_fd_isset): Likewise.
43795         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43796         * lib/sys_time.in.h (struct timeval): Likewise.
43797         * lib/sys_times.in.h (struct tms): Likewise.
43798         * lib/sys_utsname.in.h (struct utsname):
43799         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43800         * lib/unistd.in.h (getpagesize): Likewise.
43801         * lib/wchar.in.h (mbstate_t): Likewise.
43802         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43803         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43804         towlower, towupper): Likewise.
43805         Reported by Sam Steingold <sds@gnu.org>.
43807 2011-02-05  Eric Blake  <eblake@redhat.com>
43809         unsetenv: work around Haiku issues
43810         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43811         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43813 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43815         libposix: avoid calling error() within libposix
43816         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43817         is defined.
43819 2011-02-05  Eric Blake  <eblake@redhat.com>
43821         strerror_r-posix: port to cygwin
43822         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43823         implementation.
43824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43825         * tests/test-strerror_r.c (main): Fix test.
43826         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43827         issue.
43829 2011-02-05  Bruno Haible  <bruno@clisp.org>
43831         New module 'wmemchr'.
43832         * modules/wmemchr: New file.
43833         * lib/wchar.in.h (wmemchr): New declaration.
43834         * lib/wmemchr.c: New file.
43835         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43836         * m4/wmemchr.m4: New file.
43837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43839         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43840         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43841         * doc/posix-functions/wmemchr.texi: Mention the new module.
43843 2011-02-04  Eric Blake  <eblake@redhat.com>
43845         fdopendir: detect FreeBSD bug
43846         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43847         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43849 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43851         stdbool: do not define HAVE_STDBOOL_H
43852         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43853         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43854         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43855         imported from the latest Autoconf git.  It was motivated by Emacs,
43856         which uses gnulib but does not need HAVE_STDBOOL_H.
43858 2011-02-04  Bruno Haible  <bruno@clisp.org>
43860         wcsnrtombs: Prepare for new module wwcsnrtombs.
43861         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43862         * lib/wcsnrtombs.c: Include it.
43863         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43865         wcsrtombs: Prepare for new module wwcsrtombs.
43866         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43867         * lib/wcsrtombs.c: Include it.
43868         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43870         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43871         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43872         * lib/mbsnrtowcs.c: Include it.
43873         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43875         mbsrtowcs: Prepare for new module mbsrtowwcs.
43876         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43877         * lib/mbsrtowcs.c: Include it.
43878         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43880 2011-02-04  Bruno Haible  <bruno@clisp.org>
43882         vasnprintf: Reduce use of malloc for small format strings.
43883         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43884         (arguments): Add room for the first 7 arguments.
43885         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43886         (char_directives, u8_directives, u16_directives, u32_directives): Add
43887         room for the first 7 directives.
43888         * lib/printf-parse.c: Include <string.h>.
43889         (PRINTF_PARSE): Change memory handling code so that it uses the first
43890         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43891         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43892         Reported by Pádraig Brady <P@draigbrady.com>.
43894 2011-01-31  Eric Blake  <eblake@redhat.com>
43896         dup2: work around Haiku bug
43897         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
43898         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
43899         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43900         * tests/test-dup2.c (main): Enhance test.
43902 2011-01-31  Simon Josefsson  <simon@josefsson.org>
43904         doc: off_t is not available in eglibc 2.11.2 stdio.h.
43905         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
43906         declared by eglibc 2.11.2.
43907         * lib/stdio.in.h: Likewise.
43909 2011-01-31  Eric Blake  <eblake@redhat.com>
43911         ignore-value: add missing test dependency
43912         * tests/test-ignore-value.c: Revert previous change; stdio.h
43913         provides off_t.
43914         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43916 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
43918         mktime: clarify long_int width checking
43919         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
43920         the top level, to make it clearer that the assumption about
43921         long_int width is being checked.  See
43922         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
43924 2011-01-30  Simon Josefsson  <simon@josefsson.org>
43926         ignore-value: Fix self-test.
43927         * tests/test-ignore-value.c: Include sys/types.h for off_t.
43929 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43931         TYPE_MAXIMUM: avoid theoretically undefined behavior
43932         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
43933         negative number, which the C Standard says has undefined behavior.
43934         In practice this is not a problem, but might as well do it by the book.
43935         Reported by Rich Felker and Eric Blake; see
43936         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
43937         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
43938         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43940         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
43941         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43942         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
43944         mktime: #undef mktime before #defining it
43945         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
43947         mktime: systematically normalize tm_isdst comparisons
43948         * lib/mktime.c (isdst_differ): New function.
43949         (__mktime_internal): Use it systematically for all isdst comparisons.
43950         This completes the fix for libc BZ #6723, and removes the need for
43951         normalizing tm_isdst.  See
43952         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
43953         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
43955         mktime: fix some integer overflow issues and sidestep the rest
43957         This was prompted by a bug report by Benjamin Lindner for MinGW
43958         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
43959         His bug is due to signed integer overflow (0 - INT_MIN), and I
43960         I scanned through mktime.c looking for other integer overflow
43961         problems, fixing all the bugs I found.
43963         Although the C Standard says the resulting code is still not safe
43964         in the presence of integer overflow, in practice it should be good
43965         enough for all real-world two's-complement implementations, except
43966         for debugging environments that deliberately trap on integer
43967         overflow (e.g., gcc -ftrapv).
43969         * lib/mktime.c (WRAPV): New macro.
43970         (SHR): Also check that long_int and time_t shift right in the
43971         usual way, before using the fast-but-unportable method.
43972         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
43973         used.  The code already assumed two's complement, so there's
43974         no need to test for alternatives.  All uses removed.
43975         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
43976         the C standard.  Problem reported by Rich Felker in
43977         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
43978         (twos_complement_arithmetic): Also check long_int and time_t.
43979         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
43980         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
43981         (__mktime_internal): Avoid integer overflow with unary subtraction
43982         in two instances where -1 - X is an adequate replacement for -X,
43983         since the calculations are approximate.
43985 2011-01-29  Eric Blake  <eblake@redhat.com>
43987         mktime: avoid infinite loop
43988         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
43989         type; behavior is still undefined but portable to all known targets.
43990         Reported by Rich Felker.
43992 2011-01-29  Simon Josefsson  <simon@josefsson.org>
43994         rename, unlink, same-inode: Relicense.
43995         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
43996         * modules/unlink (License): Likewise.
43997         * modules/same-inode (License): Likewise.
43999 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44001         mktime: avoid problems on NetBSD 5 / i386
44002         * lib/mktime.c (long_int): New type.  This works around a problem
44003         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44004         but time_t is 64 bits, and where I expect the existing code is
44005         wrong in some cases.
44006         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44007         (ydhms_diff): Bring back the compile-time check for wide-enough
44008         year and yday.
44010         mktime: fix misspelling in comment
44011         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44012         This merges all recent glibc changes of importance.
44014 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44016         move-if-change: cope with concurrent mv of identical file.
44017         * build-aux/move-if-change (CMPPROG): Accept environment
44018         variable as an override for `cmp'.
44019         (usage): Document CMPPROG.
44020         Adjust comparison to drop stdout.  Cope with failure of mv if
44021         the target file exists and is identical to the source, for
44022         parallel builds.
44023         Report from H.J. Lu against binutils in PR binutils/12283.
44025 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44027         * users.txt: Mention sharutils.
44029 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44031         * users.txt: Mention OATH Toolkit.
44033 2011-01-27  Bruno Haible  <bruno@clisp.org>
44035         Prepare for supporting FreeBSD 10.
44036         * build-aux/config.libpath: Remove handling of freebsd1*.
44038 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44040         Prepare for supporting FreeBSD 10.
44041         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44042         match FreeBSD 10.0.
44044 2011-01-27  Bruno Haible  <bruno@clisp.org>
44046         vma-iter, get-rusage-as: Add OpenBSD support.
44047         * modules/vma-iter (configure.ac): Test for mquery.
44048         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44049         * lib/vma-iter.c: Include <sys/mman.h>.
44050         (vma_iterate): Add an implementation based on mquery().
44051         * lib/resource-ext.h (get_rusage_as): Update comments.
44052         * lib/get-rusage-as.c: Likewise.
44053         * lib/get-rusage-data.c: Likewise.
44055 2011-01-26  Karl Berry  <karl@gnu.org>
44057         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44058         variables to make it easier to override the makeinfo program used.
44060 2011-01-26  Eric Blake  <eblake@redhat.com>
44062         fcntl: work around Haiku F_DUPFD bugs
44063         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44064         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44065         cloexec bit on duplication.
44066         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44068 2011-01-26  Bruno Haible  <bruno@clisp.org>
44070         Enable memory leak tests on AIX.
44071         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44072         * tests/test-fprintf-posix3.c (main): Likewise.
44074 2011-01-26  Bruno Haible  <bruno@clisp.org>
44076         Tests for module 'get-rusage-data'.
44077         * modules/get-rusage-data-tests: New file.
44078         * tests/test-get-rusage-data.c: New file.
44080         New module 'get-rusage-data'.
44081         * lib/resource-ext.h (get_rusage_data): New declaration.
44082         * lib/get-rusage-data.c: New file.
44083         * modules/get-rusage-data: New file.
44085 2011-01-25  Bruno Haible  <bruno@clisp.org>
44087         get-rusage-as: Allow for easier testing.
44088         * lib/resource-ext.h (get_rusage_as): Add comment.
44089         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44090         (main): New function for interactive testing.
44092 2011-01-25  Bruno Haible  <bruno@clisp.org>
44094         vma-iter: Treat Haiku like BeOS.
44095         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44096         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44098 2011-01-25  Eric Blake  <eblake@redhat.com>
44100         c-stack: fix regression on cygwin when libsigsegv is present
44101         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44103 2011-01-24  Bruno Haible  <bruno@clisp.org>
44105         vma-iter: Avoid empty intervals.
44106         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44107         on an empty interval.
44109 2011-01-24  Jim Meyering  <meyering@redhat.com>
44111         u64: remove unnecessary #include
44112         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44114 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44116         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44117         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44119 2011-01-23  Bruno Haible  <bruno@clisp.org>
44121         New module 'vma-iter'.
44122         * lib/vma-iter.h: New file.
44123         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44124         * modules/vma-iter: New file.
44125         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44126         for get_rusage_as_via_iterator.
44127         (vma_iterate_callback): New function.
44128         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44129         * modules/get-rusage-as (Depends-on): Add vma-iter.
44131 2011-01-23  Bruno Haible  <bruno@clisp.org>
44133         uninorm: Tweak includes.
44134         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44135         Reported by Jim Meyering.
44137 2011-01-23  Bruno Haible  <bruno@clisp.org>
44139         get-rusage-as: Improve on NetBSD.
44140         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44141         /proc, like on FreeBSD.
44143 2011-01-23  Jim Meyering  <meyering@redhat.com>
44145         xreadlink.h: remove unnecessary #include
44146         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44148         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44149         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44151 2011-01-23  Bruno Haible  <bruno@clisp.org>
44153         get-rusage-as: Fix bug.
44154         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44155         original limit when aborting the first loop.
44157 2011-01-23  Bruno Haible  <bruno@clisp.org>
44159         wctype: Ensure valid C syntax.
44160         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44161         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44163 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44165         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44167         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44168         as they are needed only for configure's test case.
44169         This removes two unnecessary symbols from config.h.
44171         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44172         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44174         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44175         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44177         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44178         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44179         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44180         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44181         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44183         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44184         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44185         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44186         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44187         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44188         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44190 2011-01-21  Eric Blake  <eblake@redhat.com>
44192         maintainer-makefile: work with older git for submodule check
44193         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44194         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44195         Reported by Matthias Bolte.
44197         bootstrap: minor portability fixes
44198         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44199         (usage): Omit leading capital and trailing . on help phrases, per
44200         GNU Coding Standards.
44201         (check_versions, top level): Prefix messages with script name.
44203 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44205         bootstrap: support --no-git option
44206         * build-aux/bootstrap: Add --no-git option, to be used when
44207         --gnulib-srcdir points to the exact desired checkout.
44209 2011-01-21  Eric Blake  <eblake@redhat.com>
44211         strerror_r-posix: work with glibc 2.13
44212         * lib/strerror_r.c (strerror_r): Fix return type.
44214 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44215             Bruno Haible  <bruno@clisp.org>
44217         uN_strstr: New unit tests.
44218         * modules/unistr/u8-strstr-tests: New file.
44219         * modules/unistr/u16-strstr-tests: New file.
44220         * modules/unistr/u32-strstr-tests: New file.
44221         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44222         * tests/unistr/test-u8-strstr.c: New file.
44223         * tests/unistr/test-u16-strstr.c: New file.
44224         * tests/unistr/test-u32-strstr.c: New file.
44226 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44227             Bruno Haible  <bruno@clisp.org>
44229         Make uN_strstr functions O(n) worst-case.
44230         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44231         16-bit and 32-bit unit cases, use the unibyte algorithm from
44232         lib/mbsstr.c.
44233         * lib/unistr/u8-strstr.c: Include <string.h>.
44234         (UNIT_IS_UINT8_T): New macro.
44235         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44236         (U_STRLEN, U_STRNLEN): New macros.
44237         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44238         (U_STRLEN, U_STRNLEN): New macros.
44239         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44240         (configure.ac): Update required libunistring version.
44241         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44242         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44243         malloca.
44244         (configure.ac): Update required libunistring version.
44245         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44246         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44247         malloca.
44248         (configure.ac): Update required libunistring version.
44250 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44251             Bruno Haible  <bruno@clisp.org>
44253         Prepare for faster uN_strstr functions.
44254         * lib/str-kmp.h: Support definable UNITs.
44255         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44256         needle_len argument.
44257         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44258         * lib/mbscasestr.c (mbscasestr): Likewise.
44260 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44262         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44263         * tests/test-malloca.c (main): Unset the environment variable
44264         to greatly speed up the test.
44265         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44266         * modules/malloca-tests: Depend on unsetenv.
44268 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44270         ignore-value: remove stdint dependency
44271         * lib/ignore-value.h: Remove <stdint.h>
44272         * modules/ignore-value: Remove stdint dependency.
44274 2011-01-21  Jim Meyering  <meyering@redhat.com>
44276         maint.mk: adjust variable name to be consistent with other gl_ vars
44277         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44278         to be lower case.
44280 2011-01-20  Jim Meyering  <meyering@redhat.com>
44282         maint.mk: make "check" depend on public-submodule-commit by default
44283         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44285 2011-01-20  Bruno Haible  <bruno@clisp.org>
44287         mbfile, mbiter: Complete change from 2008-12-21.
44288         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44289         * m4/mbiter.m4 (gl_MBITER): Likewise.
44291 2011-01-20  Jim Meyering  <meyering@redhat.com>
44293         init.sh: insert space between each function name and "()"
44294         * tests/init.sh: Make it a little easier to see that a function's
44295         name is "warn_", and not "warn" when looking at the first part of
44296         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44298 2011-01-20  Jim Meyering  <meyering@redhat.com>
44300         mountlist: clean up code formatting
44301         * lib/mountlist.c (read_file_system_list): Split a long line,
44302         correct bracing style, use NULL in place of "(struct statfs *)0",
44303         don't parenthesize return value, add spaces around "=" and after
44304         ";-in-for-stmt".
44306 2011-01-14  Markus Duft  <mduft@gentoo.org>
44308         mountlist: add support for Interix
44309         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44310         Apply statvfs to all entries of /dev/fs.
44311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44312         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44314 2011-01-20  Jim Meyering  <meyering@redhat.com>
44316         maint.mk: improve the public-submodule-commit rule
44317         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44318         to suppress printing of its commands... unless V=1.
44319         Add git submodule's --quiet option to suppress printing of e.g.,
44320         "Entering gnulib" output.
44321         "cd" into $(srcdir) before running git submodule.
44323 2011-01-20  Bruno Haible  <bruno@clisp.org>
44325         include_next: Fix bug introduced on 2011-01-18.
44326         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44327         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44328         ac_cv_header_... variable if the second argument is not 'check'.
44329         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44330         gl_NEXT_HEADERS_INTERNAL.
44332 2011-01-20  Bruno Haible  <bruno@clisp.org>
44334         Allow the user to avoid the GNULIB_TEST_* macros.
44335         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44336         Suggested by Paul Eggert.
44338 2011-01-14  Jim Meyering  <meyering@redhat.com>
44340         bootstrap: avoid failure when there is no .gitmodules file
44341         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44342         has been assigned to, even when its value is the empty string.
44343         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44344         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44345         Reported by John W. Eaton <jwe@gnu.org>.
44347 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44349         assume <ctype.h>, ..., <time.h> exist
44350         For years gnulib has been assuming the existence of the headers
44351         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44352         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44353         them, since they don't appear to be needed.
44354         * README (Portability guidelines): Document this.
44355         * lib/flock.c: Assume <fcntl.h> exists.
44356         * lib/regex_internal.h: Assume <locale.h> exists.
44357         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44358         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44359         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44360         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44361         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44362         * m4/regex.m4 (gl_REGEX): Likewise.
44363         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44364         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44365         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44366         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44367         * tests/test-argp.c: Likewise.
44368         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44370         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44371         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44372         AA_APPLE_UNIVERSAL_BUILD.  See
44373         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44374         * NEWS: Document this.
44376 2011-01-19  Eric Blake  <eblake@redhat.com>
44378         c-stack: assume stack overflow if SA_SIGINFO unsupported
44379         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44380         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44381         sigaction will work.
44382         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44383         behavior match Linux.
44384         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44386         stdbool-tests: accommodate Haiku
44387         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44389         binary-io: fix O_TEXT on Haiku
44390         * modules/binary-io (Depends-on): Add fcntl-h.
44391         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44392         than blindly undefining O_TEXT.
44393         Reported by Scott McCreary.
44395 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44397         include_next: do not check for standard headers like stddef.h
44399         I found this problem when modifying Emacs to use gnulib.
44400         I noticed that it added HAVE_STDDEF_H to config.h, even though
44401         gnulib always assumes <stddef.h> exists as per README and this
44402         symbol is unnecessary.
44403         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44404         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44405         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44406         faster for headers like stddef.h that are known to exist.
44407         (gl_CHECK_NEXT_HEADERS): Use it.
44408         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44409         rather than gl_CHECK_NEXT_HEADERS.
44410         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44411         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44413 2011-01-18  Eric Blake  <eblake@redhat.com>
44415         ansi-c++-opt: skip C++ dependency style if C++ is unused
44416         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44417         tests when we know C++ compilation is not desired.
44418         Reported by Scott McCreary.
44420 2011-01-18  Bruno Haible  <bruno@clisp.org>
44422         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44423         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44424         (main): Perform test also when getrlimit and setrlimit don't exist or
44425         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44426         limiting the address space size using setrlimit, compare the address
44427         space size before and after the test.
44428         * tests/test-dprintf-posix2.c: Likewise.
44429         * tests/test-fprintf-posix3.sh: Update skip messages.
44430         * tests/test-dprintf-posix2.sh: Likewise.
44431         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44432         * modules/dprintf-posix-tests (Depends-on): Likewise.
44433         Reported by Bruce Korb <bkorb@gnu.org> and
44434         Gary V. Vaughan <gary@gnu.org>.
44436 2011-01-18  Bruno Haible  <bruno@clisp.org>
44438         get-rusage-as: Improvement for Cygwin.
44439         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44440         areas that are merely reserved.
44442 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44444         strftime: remove dependencies on multibyte modules
44446         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44447         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44448         only if __osf__ is defined, and I suspect OSF doesn't need these
44449         other modules.  If my guess is wrong, we'll need to come up with a
44450         variant of strftime that doesn't need the multibyte modules.
44452         I discovered this problem when attempting modify Emacs to use the
44453         strftime module.  With the previous gnulib, this caused Emacs to
44454         need 31 new files, ranging from lib/config.charset to
44455         m4/wint_t.m4.  This was overkill and I expect would be offputting
44456         to the Emacs maintainers.  After this change, only 6 new files are
44457         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44458         stdbool.m4, and tm_gmtoff.m4.
44460         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44461         Suggested by Bruno Haible in
44462         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44464         and do not check for wchar.h.
44465         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44466         (Depends-on): Remove mbrlen, mbsinit, wchar.
44468 2011-01-18  Bruno Haible  <bruno@clisp.org>
44470         Tests for module 'get-rusage-as'.
44471         * modules/get-rusage-as-tests: New file.
44472         * tests/test-get-rusage-as.c: New file.
44474         New module 'get-rusage-as'.
44475         * modules/get-rusage-as: New file.
44476         * lib/resource-ext.h: New file.
44477         * lib/get-rusage-as.c: New file.
44479 2011-01-17  Eric Blake  <eblake@redhat.com>
44481         sigaction: relax license from LGPLv3+ to LGPLv2+
44482         * modules/sigaction (License): Relax to LGPLv2+.
44484 2011-01-14  Bruno Haible  <bruno@clisp.org>
44486         filemode: Make function declarations usable in C++ mode.
44487         * lib/filemode.h: Enclose function declarations in extern "C" block.
44488         Reported by John W. Eaton <jwe@gnu.org>.
44490 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44492         save-cwd: no longer include "xgetcwd.h"
44493         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44494         This avoids a compilation failure in projects that use save-cwd
44495         without also using the xgetcwd module.
44497 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44499         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44500         This is so that a program like Emacs, which needs only dtoastr,
44501         does not have to bother with distributing and compiling ftoastr
44502         and ldtoastr.
44503         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44504         * modules/dtoastr, modules/ldtoastr: New files.
44505         * modules/ftoastr: Now works just for 'float'.
44506         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44507         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44508         dtoastr.c, ldtoastr.c.
44510 2011-01-11  Jim Meyering  <meyering@redhat.com>
44512         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44513         There is no need to work around the lack of the fchdir function,
44514         since gnulib can now provide a replacement when required.
44515         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44516         * modules/save-cwd (Depends-on): Add fchdir.
44518 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44520         openat, save-cwd: avoid xmalloc
44522         This removes a direct (but undocumented) dependency of openat on
44523         xalloc, along with an indirect dependency via save-cwd.  It also
44524         removes a dependency of save-cwd on xgetcwd, and thereby
44525         indirectly on xalloc.  This change causes the openat substitute
44526         to fall back on save_cwd when memory is tight, and for save_cwd to
44527         fail instead of dying when memory is tight, but that's good enough.
44528         Problem and initial idea for fix reported by Bastien Roucaries in
44529         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44531         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44532         xalloc.h (for xmalloc).
44533         (openat_proc_name): Use malloc, not xmalloc.
44534         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44535         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44537         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44538         This avoids heap allocation for file names whose lengths are in
44539         the range 512..1023, with the upper bound increasing to at most
44540         4031 depending on the platform's PATH_MAX.  (We do not want
44541         pathmax.h here as it might supply a non-constant PATH_MAX.)
44542         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44543         Perhaps they should be moved to malloca.h?
44544         (OPENAT_BUFFER_SIZE): Use them.
44546 2011-01-10  Bruno Haible  <bruno@clisp.org>
44548         doc: Update users.txt.
44549         * users.txt: Add recutils.
44551 2011-01-09  Karl Berry  <karl@gnu.org>
44553         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44555         * doc/configmake.texi: New file.
44556         * doc/gnulib.texi: Include it.
44557         * modules/configmake: Move documentation from here.
44559 2011-01-09  Bruno Haible  <bruno@clisp.org>
44561         Update to Unicode 6.0.0.
44562         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44563         (get_lbp): Update for Unicode 6.0.0.
44564         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44565         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44566         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44567         U+11001, U+11038..U+11046. Remove U+06DE.
44568         (uc_width): Fix bounds of planes.
44569         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44570         lib/uniwidth/width.c.
44571         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44572         trailing whitespace removed.
44573         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44574         without comments, but with the original copyright notice.
44575         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44576         * lib/unicase/ignorable.h: Likewise.
44577         * lib/unicase/tocasefold.h: Likewise.
44578         * lib/unicase/tolower.h: Likewise.
44579         * lib/unicase/totitle.h: Likewise.
44580         * lib/unicase/toupper.h: Likewise.
44581         * lib/unictype/bidi_of.h: Likewise.
44582         * lib/unictype/blocks.h: Likewise.
44583         * lib/unictype/categ_C.h: Likewise.
44584         * lib/unictype/categ_Cn.h: Likewise.
44585         * lib/unictype/categ_L.h: Likewise.
44586         * lib/unictype/categ_Ll.h: Likewise.
44587         * lib/unictype/categ_Lm.h: Likewise.
44588         * lib/unictype/categ_Lo.h: Likewise.
44589         * lib/unictype/categ_Lu.h: Likewise.
44590         * lib/unictype/categ_M.h: Likewise.
44591         * lib/unictype/categ_Mc.h: Likewise.
44592         * lib/unictype/categ_Me.h: Likewise.
44593         * lib/unictype/categ_Mn.h: Likewise.
44594         * lib/unictype/categ_N.h: Likewise.
44595         * lib/unictype/categ_Nd.h: Likewise.
44596         * lib/unictype/categ_No.h: Likewise.
44597         * lib/unictype/categ_P.h: Likewise.
44598         * lib/unictype/categ_Po.h: Likewise.
44599         * lib/unictype/categ_S.h: Likewise.
44600         * lib/unictype/categ_Sc.h: Likewise.
44601         * lib/unictype/categ_Sk.h: Likewise.
44602         * lib/unictype/categ_Sm.h: Likewise.
44603         * lib/unictype/categ_So.h: Likewise.
44604         * lib/unictype/categ_of.h: Likewise.
44605         * lib/unictype/combining.h: Likewise.
44606         * lib/unictype/ctype_alnum.h: Likewise.
44607         * lib/unictype/ctype_alpha.h: Likewise.
44608         * lib/unictype/ctype_graph.h: Likewise.
44609         * lib/unictype/ctype_lower.h: Likewise.
44610         * lib/unictype/ctype_print.h: Likewise.
44611         * lib/unictype/ctype_punct.h: Likewise.
44612         * lib/unictype/ctype_upper.h: Likewise.
44613         * lib/unictype/decdigit.h: Likewise.
44614         * lib/unictype/digit.h: Likewise.
44615         * lib/unictype/numeric.h: Likewise.
44616         * lib/unictype/pr_alphabetic.h: Likewise.
44617         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44618         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44619         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44620         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44621         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44622         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44623         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44624         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44625         * lib/unictype/pr_case_ignorable.h: Likewise.
44626         * lib/unictype/pr_cased.h: Likewise.
44627         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44628         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44629         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44630         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44631         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44632         * lib/unictype/pr_combining.h: Likewise.
44633         * lib/unictype/pr_composite.h: Likewise.
44634         * lib/unictype/pr_currency_symbol.h: Likewise.
44635         * lib/unictype/pr_decimal_digit.h: Likewise.
44636         * lib/unictype/pr_deprecated.h: Likewise.
44637         * lib/unictype/pr_format_control.h: Likewise.
44638         * lib/unictype/pr_grapheme_base.h: Likewise.
44639         * lib/unictype/pr_grapheme_extend.h: Likewise.
44640         * lib/unictype/pr_grapheme_link.h: Likewise.
44641         * lib/unictype/pr_id_continue.h: Likewise.
44642         * lib/unictype/pr_id_start.h: Likewise.
44643         * lib/unictype/pr_ideographic.h: Likewise.
44644         * lib/unictype/pr_lowercase.h: Likewise.
44645         * lib/unictype/pr_math.h: Likewise.
44646         * lib/unictype/pr_numeric.h: Likewise.
44647         * lib/unictype/pr_other_alphabetic.h: Likewise.
44648         * lib/unictype/pr_other_id_continue.h: Likewise.
44649         * lib/unictype/pr_other_math.h: Likewise.
44650         * lib/unictype/pr_punctuation.h: Likewise.
44651         * lib/unictype/pr_sentence_terminal.h: Likewise.
44652         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44653         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44654         * lib/unictype/pr_unified_ideograph.h: Likewise.
44655         * lib/unictype/pr_uppercase.h: Likewise.
44656         * lib/unictype/pr_xid_continue.h: Likewise.
44657         * lib/unictype/pr_xid_start.h: Likewise.
44658         * lib/unictype/scripts.h: Likewise.
44659         * lib/unictype/scripts_byname.gperf: Likewise.
44660         * lib/unictype/sy_java_ident.h: Likewise.
44661         * lib/unigbrk/gbrkprop.h: Likewise.
44662         * lib/unilbrk/lbrkprop1.h: Likewise.
44663         * lib/unilbrk/lbrkprop2.h: Likewise.
44664         * lib/uninorm/decomposition-table2.h: Likewise.
44665         * lib/uniwbrk/wbrkprop.h: Likewise.
44666         * tests/unicase/test-cased.c: Likewise.
44667         * tests/unicase/test-ignorable.c: Likewise.
44668         * tests/unicase/test-uc_tolower.c: Likewise.
44669         * tests/unicase/test-uc_totitle.c: Likewise.
44670         * tests/unicase/test-uc_toupper.c: Likewise.
44671         * tests/unictype/test-categ_C.c: Likewise.
44672         * tests/unictype/test-categ_Cn.c: Likewise.
44673         * tests/unictype/test-categ_L.c: Likewise.
44674         * tests/unictype/test-categ_Ll.c: Likewise.
44675         * tests/unictype/test-categ_Lm.c: Likewise.
44676         * tests/unictype/test-categ_Lo.c: Likewise.
44677         * tests/unictype/test-categ_Lu.c: Likewise.
44678         * tests/unictype/test-categ_M.c: Likewise.
44679         * tests/unictype/test-categ_Mc.c: Likewise.
44680         * tests/unictype/test-categ_Me.c: Likewise.
44681         * tests/unictype/test-categ_Mn.c: Likewise.
44682         * tests/unictype/test-categ_N.c: Likewise.
44683         * tests/unictype/test-categ_Nd.c: Likewise.
44684         * tests/unictype/test-categ_No.c: Likewise.
44685         * tests/unictype/test-categ_P.c: Likewise.
44686         * tests/unictype/test-categ_Po.c: Likewise.
44687         * tests/unictype/test-categ_S.c: Likewise.
44688         * tests/unictype/test-categ_Sc.c: Likewise.
44689         * tests/unictype/test-categ_Sk.c: Likewise.
44690         * tests/unictype/test-categ_Sm.c: Likewise.
44691         * tests/unictype/test-categ_So.c: Likewise.
44692         * tests/unictype/test-ctype_alnum.c: Likewise.
44693         * tests/unictype/test-ctype_alpha.c: Likewise.
44694         * tests/unictype/test-ctype_graph.c: Likewise.
44695         * tests/unictype/test-ctype_lower.c: Likewise.
44696         * tests/unictype/test-ctype_print.c: Likewise.
44697         * tests/unictype/test-ctype_punct.c: Likewise.
44698         * tests/unictype/test-ctype_upper.c: Likewise.
44699         * tests/unictype/test-decdigit.h: Likewise.
44700         * tests/unictype/test-digit.h: Likewise.
44701         * tests/unictype/test-numeric.h: Likewise.
44702         * tests/unictype/test-pr_alphabetic.c: Likewise.
44703         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44704         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44705         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44706         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44707         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44708         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44709         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44710         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44711         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44712         * tests/unictype/test-pr_cased.c: Likewise.
44713         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44714         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44715         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44716         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44717         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44718         * tests/unictype/test-pr_combining.c: Likewise.
44719         * tests/unictype/test-pr_composite.c: Likewise.
44720         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44721         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44722         * tests/unictype/test-pr_deprecated.c: Likewise.
44723         * tests/unictype/test-pr_format_control.c: Likewise.
44724         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44725         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44726         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44727         * tests/unictype/test-pr_id_continue.c: Likewise.
44728         * tests/unictype/test-pr_id_start.c: Likewise.
44729         * tests/unictype/test-pr_ideographic.c: Likewise.
44730         * tests/unictype/test-pr_lowercase.c: Likewise.
44731         * tests/unictype/test-pr_math.c: Likewise.
44732         * tests/unictype/test-pr_numeric.c: Likewise.
44733         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44734         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44735         * tests/unictype/test-pr_other_math.c: Likewise.
44736         * tests/unictype/test-pr_punctuation.c: Likewise.
44737         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44738         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44739         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44740         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44741         * tests/unictype/test-pr_uppercase.c: Likewise.
44742         * tests/unictype/test-pr_xid_continue.c: Likewise.
44743         * tests/unictype/test-pr_xid_start.c: Likewise.
44744         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44745         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44746         changes.
44747         * lib/unictype/categ_Cc.h: Likewise.
44748         * lib/unictype/categ_Cf.h: Likewise.
44749         * lib/unictype/categ_Co.h: Likewise.
44750         * lib/unictype/categ_Cs.h: Likewise.
44751         * lib/unictype/categ_Lt.h: Likewise.
44752         * lib/unictype/categ_Nl.h: Likewise.
44753         * lib/unictype/categ_Pc.h: Likewise.
44754         * lib/unictype/categ_Pd.h: Likewise.
44755         * lib/unictype/categ_Pe.h: Likewise.
44756         * lib/unictype/categ_Pf.h: Likewise.
44757         * lib/unictype/categ_Pi.h: Likewise.
44758         * lib/unictype/categ_Ps.h: Likewise.
44759         * lib/unictype/categ_Z.h: Likewise.
44760         * lib/unictype/categ_Zl.h: Likewise.
44761         * lib/unictype/categ_Zp.h: Likewise.
44762         * lib/unictype/categ_Zs.h: Likewise.
44763         * lib/unictype/ctype_blank.h: Likewise.
44764         * lib/unictype/ctype_cntrl.h: Likewise.
44765         * lib/unictype/ctype_digit.h: Likewise.
44766         * lib/unictype/ctype_space.h: Likewise.
44767         * lib/unictype/ctype_xdigit.h: Likewise.
44768         * lib/unictype/mirror.h: Likewise.
44769         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44770         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44771         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44772         * lib/unictype/pr_bidi_control.h: Likewise.
44773         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44774         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44775         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44776         * lib/unictype/pr_bidi_pdf.h: Likewise.
44777         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44778         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44779         * lib/unictype/pr_dash.h: Likewise.
44780         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44781         * lib/unictype/pr_diacritic.h: Likewise.
44782         * lib/unictype/pr_extender.h: Likewise.
44783         * lib/unictype/pr_hex_digit.h: Likewise.
44784         * lib/unictype/pr_hyphen.h: Likewise.
44785         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44786         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44787         * lib/unictype/pr_ignorable_control.h: Likewise.
44788         * lib/unictype/pr_iso_control.h: Likewise.
44789         * lib/unictype/pr_join_control.h: Likewise.
44790         * lib/unictype/pr_left_of_pair.h: Likewise.
44791         * lib/unictype/pr_line_separator.h: Likewise.
44792         * lib/unictype/pr_logical_order_exception.h: Likewise.
44793         * lib/unictype/pr_non_break.h: Likewise.
44794         * lib/unictype/pr_not_a_character.h: Likewise.
44795         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44796         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44797         * lib/unictype/pr_other_id_start.h: Likewise.
44798         * lib/unictype/pr_other_lowercase.h: Likewise.
44799         * lib/unictype/pr_other_uppercase.h: Likewise.
44800         * lib/unictype/pr_paired_punctuation.h: Likewise.
44801         * lib/unictype/pr_paragraph_separator.h: Likewise.
44802         * lib/unictype/pr_pattern_syntax.h: Likewise.
44803         * lib/unictype/pr_pattern_white_space.h: Likewise.
44804         * lib/unictype/pr_private_use.h: Likewise.
44805         * lib/unictype/pr_quotation_mark.h: Likewise.
44806         * lib/unictype/pr_radical.h: Likewise.
44807         * lib/unictype/pr_soft_dotted.h: Likewise.
44808         * lib/unictype/pr_space.h: Likewise.
44809         * lib/unictype/pr_titlecase.h: Likewise.
44810         * lib/unictype/pr_variation_selector.h: Likewise.
44811         * lib/unictype/pr_white_space.h: Likewise.
44812         * lib/unictype/pr_zero_width.h: Likewise.
44813         * lib/unictype/sy_c_ident.h: Likewise.
44814         * lib/unictype/sy_c_whitespace.h: Likewise.
44815         * lib/unictype/sy_java_whitespace.h: Likewise.
44816         * lib/uninorm/composition-table.gperf: Likewise.
44817         * lib/uninorm/decomposition-table1.h: Likewise.
44818         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44819         LB8.
44820         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44821         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44822         * modules/unictype/*: Bump version number of expected libunistring
44823         version.
44825 2011-01-09  Bruno Haible  <bruno@clisp.org>
44827         Update to Unicode 5.2.0.
44828         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44829         trailing whitespace removed.
44831 2011-01-09  Bruno Haible  <bruno@clisp.org>
44833         New Unicode character properties, from Unicode 5.2.0.
44834         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44835         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44836         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44837         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44838         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44839         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44840         uc_is_property_cased, uc_is_property_case_ignorable,
44841         uc_is_property_changes_when_lowercased,
44842         uc_is_property_changes_when_uppercased,
44843         uc_is_property_changes_when_titlecased,
44844         uc_is_property_changes_when_casefolded,
44845         uc_is_property_changes_when_casemapped): New declarations.
44846         * lib/unictype/pr_byname.gperf: Add the new properties.
44847         * modules/unictype/property-byname (Depends-on): Depend on the new
44848         properties modules.
44849         * modules/unictype/property-all (Depends-on): Likewise.
44850         * MODULES.html.sh (Unicode string functions): Add
44851         unictype/property-case-ignorable, unictype/property-cased,
44852         unictype/property-changes-when-casefolded,
44853         unictype/property-changes-when-casemapped,
44854         unictype/property-changes-when-lowercased,
44855         unictype/property-changes-when-titlecased,
44856         unictype/property-changes-when-uppercased.
44858         New module 'unictype/property-changes-when-casemapped'.
44859         * modules/unictype/property-changes-when-casemapped: New file.
44860         * lib/unictype/pr_changes_when_casemapped.c: New file.
44861         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44862         generated by gen-uni-tables.
44863         * modules/unictype/property-changes-when-casemapped-tests: New file.
44864         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44865         automatically generated by gen-uni-tables.
44867         New module 'unictype/property-changes-when-casefolded'.
44868         * modules/unictype/property-changes-when-casefolded: New file.
44869         * lib/unictype/pr_changes_when_casefolded.c: New file.
44870         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44871         generated by gen-uni-tables.
44872         * modules/unictype/property-changes-when-casefolded-tests: New file.
44873         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44874         automatically generated by gen-uni-tables.
44876         New module 'unictype/property-changes-when-titlecased'.
44877         * modules/unictype/property-changes-when-titlecased: New file.
44878         * lib/unictype/pr_changes_when_titlecased.c: New file.
44879         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44880         generated by gen-uni-tables.
44881         * modules/unictype/property-changes-when-titlecased-tests: New file.
44882         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44883         automatically generated by gen-uni-tables.
44885         New module 'unictype/property-changes-when-uppercased'.
44886         * modules/unictype/property-changes-when-uppercased: New file.
44887         * lib/unictype/pr_changes_when_uppercased.c: New file.
44888         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44889         generated by gen-uni-tables.
44890         * modules/unictype/property-changes-when-uppercased-tests: New file.
44891         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44892         automatically generated by gen-uni-tables.
44894         New module 'unictype/property-changes-when-lowercased'.
44895         * modules/unictype/property-changes-when-lowercased: New file.
44896         * lib/unictype/pr_changes_when_lowercased.c: New file.
44897         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
44898         generated by gen-uni-tables.
44899         * modules/unictype/property-changes-when-lowercased-tests: New file.
44900         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
44901         automatically generated by gen-uni-tables.
44903         New module 'unictype/property-case-ignorable'.
44904         * modules/unictype/property-case-ignorable: New file.
44905         * lib/unictype/pr_case_ignorable.c: New file.
44906         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
44907         by gen-uni-tables.
44908         * modules/unictype/property-case-ignorable-tests: New file.
44909         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
44910         generated by gen-uni-tables.
44912         New module 'unictype/property-cased'.
44913         * modules/unictype/property-cased: New file.
44914         * lib/unictype/pr_cased.c: New file.
44915         * lib/unictype/pr_cased.h: New file, automatically generated by
44916         gen-uni-tables.
44917         * modules/unictype/property-cased-tests: New file.
44918         * tests/unictype/test-pr_cased.c: New file, automatically generated by
44919         gen-uni-tables.
44921 2011-01-09  Bruno Haible  <bruno@clisp.org>
44923         Update to Unicode 5.2.0.
44924         * lib/gen-uni-tables.c (output_predicate, output_category,
44925         output_combclass, output_bidi_category, output_decimal_digit_test,
44926         output_decimal_digit, output_digit_test, output_digit,
44927         output_numeric_test, output_numeric, output_mirror, output_scripts,
44928         output_scripts_byname, output_blocks, output_ident_category): Fix
44929         comment header.
44930         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
44931         get_wbp.
44932         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
44933         items.
44934         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
44935         Changes_When_Lowercased, Changes_When_Uppercased,
44936         Changes_When_Titlecased, Changes_When_Casefolded,
44937         Changes_When_Casemapped.
44938         (is_property_alphabetic, is_property_default_ignorable_code_point):
44939         Update for Unicode 5.2.0.
44940         (is_property_cased, is_property_case_ignorable,
44941         is_property_changes_when_lowercased,
44942         is_property_changes_when_uppercased,
44943         is_property_changes_when_titlecased,
44944         is_property_changes_when_casefolded,
44945         is_property_changes_when_casemapped): New functions.
44946         (output_properties): Output also the properties cased, case_ignorable,
44947         changes_when_lowercased, changes_when_uppercased,
44948         changes_when_titlecased, changes_when_casefolded,
44949         changes_when_casemapped.
44950         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
44951         Unicode TR#11 revision 17 -> 19.
44952         (LBP_CP): New enumeration value.
44953         (LBP_*): Adjust values accordingly.
44954         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44955         TR#14 revision 22 -> 24.
44956         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
44957         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
44958         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44959         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
44960         is_WBP_MIDLETTER.
44961         (output_composition_tables): Allow for 24 bits instead of 16 bits in
44962         the code1 and code2 of each composition rule.
44963         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44964         * lib/unicase/ignorable.h: Likewise.
44965         * lib/unicase/tocasefold.h: Likewise.
44966         * lib/unicase/tolower.h: Likewise.
44967         * lib/unicase/totitle.h: Likewise.
44968         * lib/unicase/toupper.h: Likewise.
44969         * lib/unictype/bidi_of.h: Likewise.
44970         * lib/unictype/blocks.h: Likewise.
44971         * lib/unictype/categ_C.h: Likewise.
44972         * lib/unictype/categ_Cf.h: Likewise.
44973         * lib/unictype/categ_Cn.h: Likewise.
44974         * lib/unictype/categ_L.h: Likewise.
44975         * lib/unictype/categ_Ll.h: Likewise.
44976         * lib/unictype/categ_Lm.h: Likewise.
44977         * lib/unictype/categ_Lo.h: Likewise.
44978         * lib/unictype/categ_Lu.h: Likewise.
44979         * lib/unictype/categ_M.h: Likewise.
44980         * lib/unictype/categ_Mc.h: Likewise.
44981         * lib/unictype/categ_Mn.h: Likewise.
44982         * lib/unictype/categ_N.h: Likewise.
44983         * lib/unictype/categ_Nd.h: Likewise.
44984         * lib/unictype/categ_Nl.h: Likewise.
44985         * lib/unictype/categ_No.h: Likewise.
44986         * lib/unictype/categ_P.h: Likewise.
44987         * lib/unictype/categ_Pd.h: Likewise.
44988         * lib/unictype/categ_Po.h: Likewise.
44989         * lib/unictype/categ_S.h: Likewise.
44990         * lib/unictype/categ_Sc.h: Likewise.
44991         * lib/unictype/categ_So.h: Likewise.
44992         * lib/unictype/categ_of.h: Likewise.
44993         * lib/unictype/combining.h: Likewise.
44994         * lib/unictype/ctype_alnum.h: Likewise.
44995         * lib/unictype/ctype_alpha.h: Likewise.
44996         * lib/unictype/ctype_graph.h: Likewise.
44997         * lib/unictype/ctype_lower.h: Likewise.
44998         * lib/unictype/ctype_print.h: Likewise.
44999         * lib/unictype/ctype_punct.h: Likewise.
45000         * lib/unictype/ctype_upper.h: Likewise.
45001         * lib/unictype/decdigit.h: Likewise.
45002         * lib/unictype/digit.h: Likewise.
45003         * lib/unictype/numeric.h: Likewise.
45004         * lib/unictype/pr_alphabetic.h: Likewise.
45005         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45006         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45007         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45008         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45009         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45010         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45011         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45012         * lib/unictype/pr_combining.h: Likewise.
45013         * lib/unictype/pr_composite.h: Likewise.
45014         * lib/unictype/pr_currency_symbol.h: Likewise.
45015         * lib/unictype/pr_dash.h: Likewise.
45016         * lib/unictype/pr_decimal_digit.h: Likewise.
45017         * lib/unictype/pr_deprecated.h: Likewise.
45018         * lib/unictype/pr_diacritic.h: Likewise.
45019         * lib/unictype/pr_extender.h: Likewise.
45020         * lib/unictype/pr_grapheme_base.h: Likewise.
45021         * lib/unictype/pr_grapheme_extend.h: Likewise.
45022         * lib/unictype/pr_grapheme_link.h: Likewise.
45023         * lib/unictype/pr_id_continue.h: Likewise.
45024         * lib/unictype/pr_id_start.h: Likewise.
45025         * lib/unictype/pr_ideographic.h: Likewise.
45026         * lib/unictype/pr_ignorable_control.h: Likewise.
45027         * lib/unictype/pr_logical_order_exception.h: Likewise.
45028         * lib/unictype/pr_lowercase.h: Likewise.
45029         * lib/unictype/pr_numeric.h: Likewise.
45030         * lib/unictype/pr_other_alphabetic.h: Likewise.
45031         * lib/unictype/pr_punctuation.h: Likewise.
45032         * lib/unictype/pr_sentence_terminal.h: Likewise.
45033         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45034         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45035         * lib/unictype/pr_unified_ideograph.h: Likewise.
45036         * lib/unictype/pr_uppercase.h: Likewise.
45037         * lib/unictype/pr_xid_continue.h: Likewise.
45038         * lib/unictype/pr_xid_start.h: Likewise.
45039         * lib/unictype/pr_zero_width.h: Likewise.
45040         * lib/unictype/scripts.h: Likewise.
45041         * lib/unictype/scripts_byname.gperf: Likewise.
45042         * lib/unictype/sy_java_ident.h: Likewise.
45043         * lib/unigbrk/gbrkprop.h: Likewise.
45044         * lib/unilbrk/lbrkprop1.h: Likewise.
45045         * lib/unilbrk/lbrkprop2.h: Likewise.
45046         * lib/unilbrk/lbrktables.h: Likewise.
45047         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45048         LBP_CP. Implement rule LB30.
45049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45050         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45051         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45052         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45053         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45054         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45055         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45056         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45057         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45058         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45059         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45060         bits instead of 16 bits in the code1 and code2 of each composition
45061         rule.
45062         (uc_composition): Update for Unicode 5.2.0.
45063         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45064         * lib/uninorm/decomposition-table2.h: Likewise.
45065         * lib/uniwbrk/wbrkprop.h: Likewise.
45066         * tests/unicase/test-cased.c: Likewise.
45067         * tests/unicase/test-ignorable.c: Likewise.
45068         * tests/unicase/test-uc_tolower.c: Likewise.
45069         * tests/unicase/test-uc_totitle.c: Likewise.
45070         * tests/unicase/test-uc_toupper.c: Likewise.
45071         * tests/unictype/test-categ_C.c: Likewise.
45072         * tests/unictype/test-categ_Cf.c: Likewise.
45073         * tests/unictype/test-categ_Cn.c: Likewise.
45074         * tests/unictype/test-categ_L.c: Likewise.
45075         * tests/unictype/test-categ_Ll.c: Likewise.
45076         * tests/unictype/test-categ_Lm.c: Likewise.
45077         * tests/unictype/test-categ_Lo.c: Likewise.
45078         * tests/unictype/test-categ_Lu.c: Likewise.
45079         * tests/unictype/test-categ_M.c: Likewise.
45080         * tests/unictype/test-categ_Mc.c: Likewise.
45081         * tests/unictype/test-categ_Mn.c: Likewise.
45082         * tests/unictype/test-categ_N.c: Likewise.
45083         * tests/unictype/test-categ_Nd.c: Likewise.
45084         * tests/unictype/test-categ_Nl.c: Likewise.
45085         * tests/unictype/test-categ_No.c: Likewise.
45086         * tests/unictype/test-categ_P.c: Likewise.
45087         * tests/unictype/test-categ_Pd.c: Likewise.
45088         * tests/unictype/test-categ_Po.c: Likewise.
45089         * tests/unictype/test-categ_S.c: Likewise.
45090         * tests/unictype/test-categ_Sc.c: Likewise.
45091         * tests/unictype/test-categ_So.c: Likewise.
45092         * tests/unictype/test-ctype_alnum.c: Likewise.
45093         * tests/unictype/test-ctype_alpha.c: Likewise.
45094         * tests/unictype/test-ctype_graph.c: Likewise.
45095         * tests/unictype/test-ctype_lower.c: Likewise.
45096         * tests/unictype/test-ctype_print.c: Likewise.
45097         * tests/unictype/test-ctype_punct.c: Likewise.
45098         * tests/unictype/test-ctype_upper.c: Likewise.
45099         * tests/unictype/test-decdigit.h: Likewise.
45100         * tests/unictype/test-digit.h: Likewise.
45101         * tests/unictype/test-numeric.h: Likewise.
45102         * tests/unictype/test-pr_alphabetic.c: Likewise.
45103         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45104         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45105         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45106         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45107         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45108         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45109         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45110         * tests/unictype/test-pr_combining.c: Likewise.
45111         * tests/unictype/test-pr_composite.c: Likewise.
45112         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45113         * tests/unictype/test-pr_dash.c: Likewise.
45114         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45115         * tests/unictype/test-pr_deprecated.c: Likewise.
45116         * tests/unictype/test-pr_diacritic.c: Likewise.
45117         * tests/unictype/test-pr_extender.c: Likewise.
45118         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45119         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45120         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45121         * tests/unictype/test-pr_id_continue.c: Likewise.
45122         * tests/unictype/test-pr_id_start.c: Likewise.
45123         * tests/unictype/test-pr_ideographic.c: Likewise.
45124         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45125         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45126         * tests/unictype/test-pr_lowercase.c: Likewise.
45127         * tests/unictype/test-pr_numeric.c: Likewise.
45128         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45129         * tests/unictype/test-pr_punctuation.c: Likewise.
45130         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45131         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45132         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45133         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45134         * tests/unictype/test-pr_uppercase.c: Likewise.
45135         * tests/unictype/test-pr_xid_continue.c: Likewise.
45136         * tests/unictype/test-pr_xid_start.c: Likewise.
45137         * tests/unictype/test-pr_zero_width.c: Likewise.
45138         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45139         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45140         changed behaviour: line breaking is now disallowed between a letter
45141         or '=' and '('.
45142         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45143         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45144         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45145         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45146         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45147         lib/uniwidth/width.c.
45148         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45149         without comments, but with the original copyright notice.
45150         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45151         changes.
45152         * lib/unictype/categ_Cc.h: Likewise.
45153         * lib/unictype/categ_Co.h: Likewise.
45154         * lib/unictype/categ_Cs.h: Likewise.
45155         * lib/unictype/categ_Lt.h: Likewise.
45156         * lib/unictype/categ_Me.h: Likewise.
45157         * lib/unictype/categ_Pc.h: Likewise.
45158         * lib/unictype/categ_Pe.h: Likewise.
45159         * lib/unictype/categ_Pf.h: Likewise.
45160         * lib/unictype/categ_Pi.h: Likewise.
45161         * lib/unictype/categ_Ps.h: Likewise.
45162         * lib/unictype/categ_Sk.h: Likewise.
45163         * lib/unictype/categ_Sm.h: Likewise.
45164         * lib/unictype/categ_Z.h: Likewise.
45165         * lib/unictype/categ_Zl.h: Likewise.
45166         * lib/unictype/categ_Zp.h: Likewise.
45167         * lib/unictype/categ_Zs.h: Likewise.
45168         * lib/unictype/ctype_blank.h: Likewise.
45169         * lib/unictype/ctype_cntrl.h: Likewise.
45170         * lib/unictype/ctype_digit.h: Likewise.
45171         * lib/unictype/ctype_space.h: Likewise.
45172         * lib/unictype/ctype_xdigit.h: Likewise.
45173         * lib/unictype/mirror.h: Likewise.
45174         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45175         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45176         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45177         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45178         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45179         * lib/unictype/pr_bidi_control.h: Likewise.
45180         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45181         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45182         * lib/unictype/pr_bidi_pdf.h: Likewise.
45183         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45184         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45185         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45186         * lib/unictype/pr_format_control.h: Likewise.
45187         * lib/unictype/pr_hex_digit.h: Likewise.
45188         * lib/unictype/pr_hyphen.h: Likewise.
45189         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45190         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45191         * lib/unictype/pr_iso_control.h: Likewise.
45192         * lib/unictype/pr_join_control.h: Likewise.
45193         * lib/unictype/pr_left_of_pair.h: Likewise.
45194         * lib/unictype/pr_line_separator.h: Likewise.
45195         * lib/unictype/pr_math.h: Likewise.
45196         * lib/unictype/pr_non_break.h: Likewise.
45197         * lib/unictype/pr_not_a_character.h: Likewise.
45198         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45199         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45200         * lib/unictype/pr_other_id_continue.h: Likewise.
45201         * lib/unictype/pr_other_id_start.h: Likewise.
45202         * lib/unictype/pr_other_lowercase.h: Likewise.
45203         * lib/unictype/pr_other_math.h: Likewise.
45204         * lib/unictype/pr_other_uppercase.h: Likewise.
45205         * lib/unictype/pr_paired_punctuation.h: Likewise.
45206         * lib/unictype/pr_paragraph_separator.h: Likewise.
45207         * lib/unictype/pr_pattern_syntax.h: Likewise.
45208         * lib/unictype/pr_pattern_white_space.h: Likewise.
45209         * lib/unictype/pr_private_use.h: Likewise.
45210         * lib/unictype/pr_quotation_mark.h: Likewise.
45211         * lib/unictype/pr_radical.h: Likewise.
45212         * lib/unictype/pr_soft_dotted.h: Likewise.
45213         * lib/unictype/pr_space.h: Likewise.
45214         * lib/unictype/pr_titlecase.h: Likewise.
45215         * lib/unictype/pr_variation_selector.h: Likewise.
45216         * lib/unictype/pr_white_space.h: Likewise.
45217         * lib/unictype/sy_c_ident.h: Likewise.
45218         * lib/unictype/sy_c_whitespace.h: Likewise.
45219         * lib/unictype/sy_java_whitespace.h: Likewise.
45220         * modules/uni*/*: Bump version number of expected libunistring version.
45221         Reported by Simon Josefsson.
45223 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45225         useless-if-before-free: fix typo in --help and make the internal,
45226         automatic version date update process work once again.
45227         --help output contained a NUL character instead of the
45228         backslash-zero that was intended.  Also, the "must lie within
45229         the first 8 lines" line is on line 9, and hence not getting
45230         automatically updated.
45231         * build-aux/useless-if-before-free: Fix the former by adding a
45232         backslash, and the latter by condensing the three lines of what-it-does
45233         to a single line, leaving one line of slack for the future.
45235 2011-01-09  Bruno Haible  <bruno@clisp.org>
45237         uniwidth/width: Fix width of U+1D173..U+1D17A.
45238         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45239         symbolic_width, output_width_property_test): New functions.
45240         (main): Invoke output_nonspacing_property, output_width_property_test.
45241         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45242         U+1D173..U+1D17A.
45243         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45244         1.
45245         * modules/uniwidth/*: Bump version number of expected libunistring
45246         version.
45247         * modules/unilbrk/*: Likewise.
45249 2011-01-08  Bruno Haible  <bruno@clisp.org>
45251         uninorm tests: Preserve copyright of Unicode data file.
45252         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45253         Mention modifications.
45255 2011-01-08  Bruno Haible  <bruno@clisp.org>
45257         gen-uni-tables: Prepare for Unicode 5.2.0.
45258         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45259         (debug_output_lbp, output_lbp): Update.
45261 2011-01-08  Bruno Haible  <bruno@clisp.org>
45263         unilbrk: Clarify gen-uni-tables.c code.
45264         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45265         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45266         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45268 2011-01-07  Bruno Haible  <bruno@clisp.org>
45270         strtod: Restore errno when successfully parsing Infinity or NaN.
45271         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45272         restore the original errno.
45274 2011-01-07  Bruno Haible  <bruno@clisp.org>
45276         remove test: Avoid failure on HP-UX 11.
45277         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45279 2011-01-07  Bruno Haible  <bruno@clisp.org>
45281         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45282         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45283         error code.
45285 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45287         ignore-value: fixup comments, and add Eric Blake
45288         as an author since he rewrote the macros.
45289         * lib/ignore-value.h (ignore_value):  State that
45290         we now support aggregates.  Also specify exactly
45291         when the GCC warn_unused_result feature was added.
45293 2011-01-06  Eric Blake  <eblake@redhat.com>
45295         ignore-value: support aggregate types
45296         * lib/ignore-value.h (ignore_value): Provide separate gcc
45297         definition.
45298         * modules/ignore-value-tests: New test module.
45299         * tests/test-ignore-value.c: New test.
45301         maint.mk: improve sc_prohibit_strcmp regex
45302         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45303         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45304         definition of STRNEQ.
45306         signal: work around Haiku issue with SIGBUS
45307         * lib/siglist.h: Add comment.
45308         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45309         strsignal's favoring of SIGSEGV.
45310         * tests/test-signal.c (main): Avoid test failure.
45311         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45312         Reported by Scott McCreary.
45314         maint.mk: add pre-release check to ensure submodule commits are public
45315         * top/maint.mk (public-submodule-commit): New rule.
45316         (submodule-checks): New variable.
45317         (alpha beta stable): Depend on the variable.
45319 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45320         and Jim Meyering  <meyering@redhat.com>
45322         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45323         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45324         (ATTRIBUTE_DEPRECATED): Define.
45325         (_ignore_case): New function.
45326         (ignore_value): New macro, to replace the old function.
45327         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45328         * modules/ignore-value (Depends-on): Add stdint.
45330 2011-01-04  Eric Blake  <eblake@redhat.com>
45332         doc: regenerate INSTALL
45333         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45334         @firstparagraphindent support, now that autoconf dropped it.
45335         (INSTALL_PRELUDE): Reinstate old macro.
45336         * doc/install.texi: Resync from autoconf.
45337         * doc/INSTALL: Reflect recent autoconf update.
45338         * doc/INSTALL.ISO: Likewise.
45339         * doc/INSTALL.UTF-8: Likewise.
45340         Reported by Karl Berry.
45342 2011-01-04  Bruce Korb  <address@hidden>
45344         git-version-gen: avoid a sub-shell
45345         * build-aux/git-version-gen: Redirect stderr in `...` via
45346         "exec 2>...", rather than via an added sub-shell.
45348 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45350         git-version-gen: use (...) rather than sh -c '...'
45351         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45352         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45354 2011-01-03  Jim Meyering  <meyering@redhat.com>
45356         git-version-gen: convert leading TABs to spaces
45357         * build-aux/git-version-gen: Expand leading TABs.
45359         git-version-gen: handle failed "git rev-list"
45360         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45361         from git and proceeding as if it had succeeded but printed no SHA1
45362         checksums, suppress the diagnostic and handle the failure.
45363         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45365         git-version-gen: include command name in one more diagnostic
45366         * build-aux/git-version-gen: When the required .tarball-version file
45367         was missing or unreadable, you might see the diagnostic from "cat",
45368         but no trace of the name of the invoking script.  Now, you still see
45369         the diagnostic from cat, but also get one from "git-version-gen: ".
45370         Inspired by a patch from Bruce Korb.
45372         update-copyright: adjust test to match changed code
45373         * tests/test-update-copyright.sh: Change test's expected output
45374         to match new actual output.
45376 2011-01-02  Bruno Haible  <bruno@clisp.org>
45378         getlogin_r: Avoid test failure on HP-UX 11.
45379         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45380         ERANGE when the second argument is zero.
45381         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45382         portability problem.
45384 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45386         * build-aux/update-copyright: doc Simon's changes
45388 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45390         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45391         environment variable.
45393 2011-01-02  Bruno Haible  <bruno@clisp.org>
45395         unigbrk: Avoid gcc warnings.
45396         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45397         unused variable.
45398         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45399         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45400         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45401         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45402         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45403         Change type of first argument to 'const char *'.
45404         (main): Remove unused variable.
45405         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45406         type of first argument to 'const char *'.
45407         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45408         Likewise.
45409         (main): Change type of variable 's'.
45410         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45411         to 'int'.
45413 2011-01-02  Bruno Haible  <bruno@clisp.org>
45415         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45416         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45417         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45418         bug.
45419         * lib/pwrite.c: Undo 2010-12-31 patch.
45420         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45422 2011-01-02  Bruno Haible  <bruno@clisp.org>
45424         pread: Fix test whether it works.
45425         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45427 2011-01-02  Bruno Haible  <bruno@clisp.org>
45429         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45430         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45431         ends in "6". Don't require a specific month name. Try also the locale
45432         names found on HP-UX 11 and Solaris 7.
45434 2011-01-02  Bruno Haible  <bruno@clisp.org>
45436         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45437         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45438         C linkage.
45439         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45441 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45443         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45444         for consistency, since the "cluster" term is not used elsewhere.
45445         * lib/unigbrk.in.h: Update name.
45446         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45447         * lib/unigbrk/u16-grapheme-next.c: Update name.
45448         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45449         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45450         * lib/unigbrk/u32-grapheme-next.c: Update name.
45451         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45452         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45453         * lib/unigbrk/u8-grapheme-next.c: Update name.
45454         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45455         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45456         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45457         Suggested by Bruno Haible.
45459 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45461         Remove module 'u8-grapheme-len' as too redundant with
45462         'u8-grapheme-next'.
45463         * modules/unigbrk/u8-grapheme-len: Delete file.
45464         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45465         * lib/unigbrk.in.h: Remove prototype for deleted function.
45466         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45467         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45469         Remove module 'u16-grapheme-len' as too redundant with
45470         'u16-grapheme-next'.
45471         * modules/unigbrk/u16-grapheme-len: Delete file.
45472         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45473         * lib/unigbrk.in.h: Remove prototype for deleted function.
45474         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45475         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45477         Remove module 'u32-grapheme-len' as too redundant with
45478         'u32-grapheme-next'.
45479         * modules/unigbrk/u32-grapheme-len: Delete file.
45480         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45481         * lib/unigbrk.in.h: Remove prototype for deleted function.
45482         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45483         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45485         Suggested by Bruno Haible.
45487 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45489         * unigbrk.in.h: Fix typo: "ben" => "been".
45490         Reported by Bruno Haible.
45492 2011-01-01  Jim Meyering  <meyering@redhat.com>
45494         maint: update almost all copyright ranges to include 2011
45495         Run the new "make update-copyright" rule.
45497 2011-01-01  Jim Meyering  <meyering@redhat.com>
45499         maint: update-copyright: exempt doc/INSTALL*
45500         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45501         since they are generated.  Suggested by Bruno Haible.
45503 2011-01-01  Jim Meyering  <meyering@redhat.com>
45505         maint: refine the update-copyright rule
45506         * Makefile (update-copyright): Also exclude any file that includes
45507         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45508         code that merely generates the comment.
45510 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45512         New module 'u8-grapheme-len'.
45513         * modules/unigbrk/u8-grapheme-len: New file.
45514         * modules/unigbrk/u8-grapheme-len-tests: New file.
45515         * lib/unigbrk.in.h: Add prototype for new function.
45516         * lib/unigbrk/u8-grapheme-len.c: New file.
45517         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45519         New module 'u16-grapheme-len'.
45520         * modules/unigbrk/u16-grapheme-len: New file.
45521         * modules/unigbrk/u16-grapheme-len-tests: New file.
45522         * lib/unigbrk.in.h: Add prototype for new function.
45523         * lib/unigbrk/u16-grapheme-len.c: New file.
45524         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45526         New module 'u32-grapheme-len'.
45527         * modules/unigbrk/u32-grapheme-len: New file.
45528         * modules/unigbrk/u32-grapheme-len-tests: New file.
45529         * lib/unigbrk.in.h: Add prototype for new function.
45530         * lib/unigbrk/u32-grapheme-len.c: New file.
45531         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45533         New module 'u8-grapheme-next'.
45534         * modules/unigbrk/u8-grapheme-next: New file.
45535         * modules/unigbrk/u8-grapheme-next-tests: New file.
45536         * lib/unigbrk.in.h: Add prototype for new function.
45537         * lib/unigbrk/u8-grapheme-next.c: New file.
45538         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45540         New module 'u16-grapheme-next'.
45541         * modules/unigbrk/u16-grapheme-next: New file.
45542         * modules/unigbrk/u16-grapheme-next-tests: New file.
45543         * lib/unigbrk.in.h: Add prototype for new function.
45544         * lib/unigbrk/u16-grapheme-next.c: New file.
45545         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45547         New module 'u32-grapheme-next'.
45548         * modules/unigbrk/u32-grapheme-next: New file.
45549         * modules/unigbrk/u32-grapheme-next-tests: New file.
45550         * lib/unigbrk.in.h: Add prototype for new function.
45551         * lib/unigbrk/u32-grapheme-next.c: New file.
45552         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45554         New module 'u8-grapheme-prev'.
45555         * modules/unigbrk/u8-grapheme-prev: New file.
45556         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45557         * lib/unigbrk.in.h: Add prototype for new function.
45558         * lib/unigbrk/u8-grapheme-prev.c: New file.
45559         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45561         New module 'u16-grapheme-prev'.
45562         * modules/unigbrk/u16-grapheme-prev: New file.
45563         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45564         * lib/unigbrk.in.h: Add prototype for new function.
45565         * lib/unigbrk/u16-grapheme-prev.c: New file.
45566         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45568         New module 'u32-grapheme-prev'.
45569         * modules/unigbrk/u32-grapheme-prev: New file.
45570         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45571         * lib/unigbrk.in.h: Add prototype for new function.
45572         * lib/unigbrk/u32-grapheme-prev.c: New file.
45573         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45575         New module 'u8-grapheme-breaks'.
45576         * modules/unigbrk/u8-grapheme-breaks: New file.
45577         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45578         * lib/unigbrk.in.h: Add prototype for new function.
45579         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45580         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45582         New module 'u16-grapheme-breaks'.
45583         * modules/unigbrk/u16-grapheme-breaks: New file.
45584         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45585         * lib/unigbrk.in.h: Add prototype for new function.
45586         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45587         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45589         New module 'u32-grapheme-breaks'.
45590         * modules/unigbrk/u32-grapheme-breaks: New file.
45591         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45592         * lib/unigbrk.in.h: Add prototype for new function.
45593         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45594         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45596         New module 'ulc-grapheme-breaks'.
45597         * modules/unigbrk/ulc-grapheme-breaks: New file.
45598         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45599         * m4/locale-ar.m4: New file.
45600         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45601         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45602         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45604 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45606         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45607         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45608         modified how this file was generated before I initially submitted
45609         the module, but failed to regenerate it.  This meant that several
45610         of the level2 entries were wrong.
45611         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45612         Remove the division-by-2 that is folded into the table now that
45613         gbrkprop.h has been regenerated properly.  Now -1 entries are
45614         handled correctly.
45616         New module 'unigbrk/uc-gbrk-prop-tests'.
45617         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45618         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45619         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45620         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45622 2011-01-01  Bruno Haible  <bruno@clisp.org>
45624         Avoid use of hexadecimal escapes.
45625         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45626         instead of hexadecimal escapes.
45628 2011-01-01  Jim Meyering  <meyering@redhat.com>
45630         maint: new rule to update copyright year ranges
45631         * Makefile (update-copyright): New rule.
45633         maint: indent with TABs in Makefile
45634         * Makefile: Expand leading sequences of spaces to TABs
45636         version-etc: update the copyright year it reports
45637         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45639 2010-12-31  Bruno Haible  <bruno@clisp.org>
45641         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45642         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45643         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45644         zero.
45646 2010-12-31  Bruno Haible  <bruno@clisp.org>
45648         pwrite: Work around HP-UX 11.11 bug.
45649         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45650         works and set REPLACE_PWRITE if not.
45651         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45652         function.
45653         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45655 2010-12-31  Bruno Haible  <bruno@clisp.org>
45657         pread: Work around HP-UX 11 bugs.
45658         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45659         and set REPLACE_PREAD if not.
45660         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45662 2010-12-31  Eric Blake  <eblake@redhat.com>
45664         nl_langinfo: fix YESEXPR on Irix 6.5
45665         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45666         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45667         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45668         it.
45670 2010-12-31  Bruno Haible  <bruno@clisp.org>
45672         iconv: Document HP-UX 11 bug.
45673         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45675 2010-12-31  Bruno Haible  <bruno@clisp.org>
45677         ldexpl: Fix link error on HP-UX 11.
45678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45679         LDEXPL_LIBM, using $ISNANL_LIBM.
45681 2010-12-31  Eric Blake  <eblake@redhat.com>
45683         ftello: avoid compilation failure with SunStudio c89
45684         * lib/ftello.c (ftello): Use lseek, not llseek.
45686         tests: avoid failing coreutils tests on cygwin
45687         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45688         (create_exe_shims_): Return 0 when skipping.
45690 2010-12-31  Bruno Haible  <bruno@clisp.org>
45692         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45693         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45695 2010-12-31  Bruno Haible  <bruno@clisp.org>
45697         waitpid: Fix link error in C++ mode.
45698         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45700 2010-12-31  Bruno Haible  <bruno@clisp.org>
45702         isnan: Use GCC built-ins when possible.
45703         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45704         __builtin_isnan.
45705         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45706         (isnan): Define using GCC built-ins for GCC >= 4.0.
45708 2010-12-31  Bruno Haible  <bruno@clisp.org>
45710         isnand: Fix mistake.
45711         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45712         __builtin_isnand.
45714 2010-12-31  Bruno Haible  <bruno@clisp.org>
45716         open: Avoid C++ error on HP-UX 11.
45717         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45719 2010-12-31  Bruno Haible  <bruno@clisp.org>
45721         time_r: Add missing declarations on HP-UX 11.
45722         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45723         instead of HAVE_LOCALTIME_R.
45724         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45725         HAVE_LOCALTIME_R always.
45726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45727         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45728         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45729         HAVE_LOCALTIME_R.
45730         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45731         * doc/posix-functions/localtime_r.texi: Likewise.
45733 2010-12-29  Eric Blake  <eblake@redhat.com>
45735         mountlist: tweak previous commit
45736         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45737         Reported by Paul Eggert.
45739         mountlist: fix local drive detection on cygwin
45740         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45741         that works for cygwin.
45743 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45745         ftoastr, snprintf: ftoastr + snprintf module
45746         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45747         since the snprintf module now should be good enough here.
45748         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45749         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45750         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45751         GNULIB_SNPRINTF only for the test directory, and the latter
45752         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45753         seems to suffice by itself.
45755 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45757         alloca: one step towards thread-safety
45758         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45759         need for a static variable.  All callers changed.  This does not
45760         make the alloca replacement thread-safe, but it's one step.
45762         tests: minor indenting change
45763         * tests/init.sh: Sync from coreutils housekeeping patch
45764         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45765         to keep lines within 80 columns.
45767 2010-12-28  Jim Meyering  <meyering@redhat.com>
45769         regex: don't infloop on persistent failing calloc
45770         * lib/regexec.c (build_trtable): Return failure indication upon
45771         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45772         In glibc, this was fixed for version 2.13:
45773         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45775 2010-12-28  Bruno Haible  <bruno@clisp.org>
45776             Paul Eggert <eggert@cs.ucla.edu>
45778         linkat: Make implementation robust against system behaviour variations.
45779         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45780         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45781         way, and to -2 if it needs a generic runtime test.
45782         * lib/linkat.c (solaris_optimized_link_immediate,
45783         solaris_optimized_link_follow): New functions.
45784         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45785         (check_same_link): Use it.
45787 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45789         New module 'unigbrk/base'.
45790         * modules/unigbrk/base: New file.
45791         * lib/unigbrk.in.h: New file.
45793         New module 'unigbrk/uc-gbrk-prop'.
45794         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45795         * modules/unigbrk/uc-gbrk-prop: New file.
45796         * lib/unigbrk/gbrkprop.h: New file.
45797         * lib/unigbrk/uc-gbrk-prop.c: New file.
45799         New module 'unigbrk/uc-is-grapheme-break'.
45800         * modules/unigbrk/uc-is-grapheme-break: New file.
45801         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45802         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45803         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45804         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45805         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45807         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45809 2010-12-27  Bruno Haible  <bruno@clisp.org>
45811         linkat test: Avoid failure on Solaris 11 2010-11.
45812         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45814 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45816         utimens: work around glibc rounding bug on more platforms
45817         * lib/utimens.c (fdutimens): Work around rounding bug even if
45818         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45819         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45821 2010-12-27  Bruno Haible  <bruno@clisp.org>
45823         select tests: Improve comments.
45824         * tests/test-select.c (do_select): Add comments.
45826 2010-12-27  Bruno Haible  <bruno@clisp.org>
45828         select tests: Safer way of handling timeout.
45829         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45830         at every invocation.
45832 2010-12-27  Bruno Haible  <bruno@clisp.org>
45834         select tests: Use 'bool' where appropriate.
45835         * tests/test-select.c (connect_to_socket): Change argument type to
45836         'bool'.
45838 2010-12-27  Bruno Haible  <bruno@clisp.org>
45840         select tests: Use existing modules.
45841         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45842         (configure.ac): Don't test for unistd.h.
45843         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45844         declared in <unistd.h>.
45846 2010-12-27  Bruno Haible  <bruno@clisp.org>
45848         mbrtowc: Work around a Solaris 7 bug.
45849         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45850         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45851         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45852         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45853         MBRTOWC_NULL_ARG1_BUG.
45854         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45855         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45856         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45857         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45859 2010-12-27  Jim Meyering  <meyering@redhat.com>
45861         read-file.c: tweak syntax
45862         * lib/read-file.c (fread_file): Remove space after "*" in function
45863         definitions.
45865 2010-12-27  Bruno Haible  <bruno@clisp.org>
45867         times test: Avoid gcc warnings on OSF/1.
45868         * tests/test-times.c (main): Cast printf arguments from clock_t to
45869         'long int'.
45871 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45873         utimens: work around glibc rounding bug on older Linux kernels
45874         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45875         on Linux with a glibc whose utimes might not work, then work
45876         around a longstanding glibc bug involving rounding rather than
45877         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45878         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45880 2010-12-26  Bruno Haible  <bruno@clisp.org>
45882         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45883         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45884         _GL_CXXALIAS_SYS.
45885         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45887 2010-12-26  Bruno Haible  <bruno@clisp.org>
45889         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45890         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45891         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45892         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45893         looking for the declaration.
45894         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45895         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
45896         problem.
45897         * doc/posix-functions/inet_pton.texi: Likewise.
45899 2010-12-26  Bruno Haible  <bruno@clisp.org>
45901         arpa_inet: Use the common idioms with C++ support.
45902         * lib/arpa_inet.in.h: Include c++defs.h.
45903         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
45904         support.
45905         * modules/arpa_inet (Depends-on): Add c++defs.
45906         (Makefile.am): Substitute the contents of c++defs.h.
45907         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
45908         * modules/arpa_inet-c++-tests: New file.
45909         * tests/test-arpa_inet-c++.cc: New file.
45911 2010-12-25  Bruno Haible  <bruno@clisp.org>
45913         Fix more C++ link errors on Solaris 8.
45914         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
45915         $(LIB_EACCESS).
45916         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
45917         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
45918         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
45919         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
45920         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
45922 2010-12-25  Bruno Haible  <bruno@clisp.org>
45924         printf-posix: Fix link error when a non-GCC compiler is used.
45925         * lib/stdio.in.h (printf): When not using GCC, override printf
45926         correctly.
45927         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45929 2010-12-25  Bruno Haible  <bruno@clisp.org>
45931         strerror_r-posix: Update doc.
45932         * doc/posix-functions/strerror_r.texi: Update doc about the return
45933         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
45935 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45937         utimens: simplify the logic of the previous change
45938         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
45939         This should not affect whether the test succeeds or fails.
45941         utimens: configure better on hosts with NFS clock skew
45942         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
45943         uses the clock of the local host.  It might use the clock of the
45944         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
45945         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45947 2010-12-25  Bruno Haible  <bruno@clisp.org>
45949         ptsname test: Avoid failure on Solaris.
45950         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
45951         open a pseudo-terminal; don't use BSD-style ptys.
45952         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
45954 2010-12-25  Bruno Haible  <bruno@clisp.org>
45956         ptsname: Avoid ERANGE failure on some systems.
45957         * lib/ptsname.c (buffer): Increase size.
45959 2010-12-25  Bruno Haible  <bruno@clisp.org>
45961         rename, renameat: Avoid test failures at NFS mounted locations.
45962         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
45963         so that subsequent mkdir calls succeed.
45965 2010-12-25  Bruno Haible  <bruno@clisp.org>
45967         iswblank: Fix C++ link error on Solaris 8.
45968         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
45969         _GL_FUNCDECL_SYS.
45971 2010-12-25  Bruno Haible  <bruno@clisp.org>
45973         unistd: Fix C++ link error on Solaris 8.
45974         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
45976 2010-12-25  Bruno Haible  <bruno@clisp.org>
45978         readlink doc: Mention an old glibc bug.
45979         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
45981 2010-12-25  Bruno Haible  <bruno@clisp.org>
45983         fcntl-h: Fix for use of C++ on glibc systems.
45984         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45985         also on glibc systems in C++ mode.
45986         Reported by Gary V. Vaughan <gary@gnu.org>.
45988 2010-12-25  Bruno Haible  <bruno@clisp.org>
45990         roundl-ieee: Make it work on OSF/1 5.1 with cc.
45991         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
45993 2010-12-25  Bruno Haible  <bruno@clisp.org>
45995         truncl-ieee: Make it work on OSF/1 5.1 with cc.
45996         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
45997         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
45998         test whether truncl works according to ISO C 99 with IEC 60559.
45999         * m4/truncl-ieee.m4: New file.
46000         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46001         m4/signbit.m4.
46002         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46004 2010-12-25  Bruno Haible  <bruno@clisp.org>
46006         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46007         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46008         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46009         test whether ceill works according to ISO C 99 with IEC 60559.
46010         * m4/ceill-ieee.m4: New file.
46011         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46012         m4/signbit.m4.
46013         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46015 2010-12-25  Bruno Haible  <bruno@clisp.org>
46017         Ensure all prerequisites of <wchar.h> are included.
46018         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46019         before <wchar.h>.
46020         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46021         gl_MBRLEN_NUL_RETVAL): Likewise.
46022         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46023         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46024         AC_FUNC_MBRTOWC): Likewise.
46025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46026         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46028         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46029         Likewise.
46030         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46031         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46032         (gl_WCHAR_H): Improve comments.
46033         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46035 2010-12-25  Bruno Haible  <bruno@clisp.org>
46037         strtok_r: Fix C syntax error in autoconf macro.
46038         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46039         characters in test program.
46041 2010-12-24  Bruno Haible  <bruno@clisp.org>
46043         ceil, trunc, round: Fix gcc warnings.
46044         * lib/ceil.c (MIN): Undefine before redefining.
46045         * lib/trunc.c (MIN): Likewise.
46046         * lib/round.c (MIN): Likewise.
46047         Include <math.h> first.
46049 2010-12-24  Bruno Haible  <bruno@clisp.org>
46051         select tests: Avoid failures on OSF/1 5.1.
46052         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46053         failure of closing the last socket; it may fail with ECONNRESET.
46055 2010-12-24  Eric Blake  <eblake@redhat.com>
46057         stdint: avoid HP-UX 10.20 preprocessor bug
46058         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46059         than #if.
46060         * tests/test-floor2.c (main): Likewise.
46061         Reported by Peter O'Gorman.
46063         pipe: make obsoletion transition easier
46064         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46065         * modules/pipe (Files): Include revived file.
46066         (Include): Drop reference, to mirror getdate's behavior.
46068 2010-12-24  Bruno Haible  <bruno@clisp.org>
46070         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46071         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46072         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46073         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46075 2010-12-24  Bruno Haible  <bruno@clisp.org>
46077         gethostname: Ensure declaration on NonStop Kernel.
46078         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46081 2010-12-24  Bruno Haible  <bruno@clisp.org>
46083         sys_select: Ensure all necessary types on NonStop Kernel.
46084         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46085         include <sys/time.h>.
46086         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46087         NonStop Kernel.
46088         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46090 2010-12-24  Bruno Haible  <bruno@clisp.org>
46092         sys_select: Remove unneeded include.
46093         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46094         have <sys/select.h>.
46096 2010-12-24  Bruno Haible  <bruno@clisp.org>
46098         gethostname: Provide a fallback for HOST_NAME_MAX.
46099         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46100         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46101         instead.
46102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46104 2010-12-24  Bruno Haible  <bruno@clisp.org>
46106         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46107         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46108         (SA_RESTART): Likewise.
46109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46111 2010-12-24  Bruno Haible  <bruno@clisp.org>
46113         signal: Define NSIG.
46114         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46115         * tests/test-signal.c (nsig): New variable.
46116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46118 2010-12-24  Bruno Haible  <bruno@clisp.org>
46120         rename, renameat: Avoid test failures on OSF/1 5.1.
46121         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46122         alternative error codes.
46123         * tests/test-renameat.c (main): Likewise.
46125 2010-12-24  Bruno Haible  <bruno@clisp.org>
46127         *printf: Detect large precisions bug on Solaris 10/SPARC.
46128         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46129         by Paul Eggert.
46130         * tests/test-snprintf-posix.h (test_function): Add this test code here
46131         too.
46132         * tests/test-sprintf-posix.h (test_function): Likewise.
46133         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46134         * tests/test-vasprintf-posix.c (test_function): Likewise.
46135         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46136         around by gnulib.
46137         * doc/posix-functions/printf.texi: Likewise.
46138         * doc/posix-functions/snprintf.texi: Likewise.
46139         * doc/posix-functions/sprintf.texi: Likewise.
46140         * doc/posix-functions/vfprintf.texi: Likewise.
46141         * doc/posix-functions/vprintf.texi: Likewise.
46142         * doc/posix-functions/vsnprintf.texi: Likewise.
46143         * doc/posix-functions/vsprintf.texi: Likewise.
46144         * doc/posix-functions/dprintf.texi: Undo last commit.
46145         * doc/posix-functions/vdprintf.texi: Likewise.
46147 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46149         tests: port test-fdutimensat.c to Solaris 8
46150         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46151         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46152         On Solaris 8, it fails with errno == ENOSYS, because there is no
46153         futimens (so it can't use the fd), and there is no lutimens (so it
46154         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46156         vsnprintf: make more consistent with snprintf; doc fixes
46158         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46159         the byte count return problem was promoted from the snprintf-posix
46160         to the snprintf module.
46161         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46162         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46163         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46164         * tests/test-snprintf.c (main): Check the byte count returned.
46165         * tests/test-vsnprintf.c (main): Likewise.
46167 2010-12-23  Eric Blake  <eblake@redhat.com>
46169         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46170         * modules/sigpipe (License): Relax license.
46172 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46174         doc: document Solaris printf bug with large float precisions
46175         * doc/posix-functions/dprintf.texi (dprintf):
46176         * doc/posix-functions/fprintf.texi (fprintf):
46177         * doc/posix-functions/printf.texi (printf):
46178         * doc/posix-functions/snprintf.texi (snprintf):
46179         * doc/posix-functions/sprintf.texi (sprintf):
46180         * doc/posix-functions/vdprintf.texi (vdprintf):
46181         * doc/posix-functions/vfprintf.texi (vfprintf):
46182         * doc/posix-functions/vprintf.texi (vprintf):
46183         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46184         * doc/posix-functions/vsprintf.texi (vsprintf):
46185         Mention that these functions mishandle large floating point
46186         precisions on Solaris 10.  The same bug is also present in Solaris
46187         8, and I assume earlier.  This causes "cd gnulib-tests; make
46188         check" to fail on Solaris 8 (and I assume, later) when building
46189         the latest coreutils, in test-vasprintf-posix's call to
46190         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46191         the wide flavors (e.g., wprintf) so this patch just updates the
46192         documentation for the narrow ones.
46194         test-posixtm.c: add two tests
46195         * tests/test-posixtm.c: Add two tests, to highlight the
46196         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46197         around this bug; this is merely to document it.
46199 2010-12-22  Bruno Haible  <bruno@clisp.org>
46201         getlogin_r: Work around portability problem on OSF/1.
46202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46203         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46204         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46205         test for a truncated result.
46206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46207         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46208         * modules/getlogin_r (Depends-on): Add memchr.
46209         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46211 2010-12-22  Bruno Haible  <bruno@clisp.org>
46213         ptsname: Avoid test failure on OSF/1 5.1.
46214         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46215         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46216         (same_slave): New function.
46217         (main): Use it to compare ptsname's result with the expected file name.
46219 2010-12-22  Bruno Haible  <bruno@clisp.org>
46221         Port extended stdio modules to HP NonStop Kernel.
46222         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46223         macros.
46224         * lib/fbufmode.c: Update comments.
46225         * lib/fflush.c: Likewise.
46226         * lib/fpurge.c: Likewise.
46227         * lib/freadable.c: Likewise.
46228         * lib/freadahead.c: Likewise.
46229         * lib/freading.c: Likewise.
46230         * lib/freadptr.c: Likewise.
46231         * lib/freadseek.c: Likewise.
46232         * lib/fseeko.c: Likewise.
46233         * lib/fseterr.c: Likewise.
46234         * lib/fwritable.c: Likewise.
46235         * lib/fwriting.c: Likewise.
46236         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46238 2010-12-22  Bruno Haible  <bruno@clisp.org>
46240         ttyname_r: Work around bug on OSF/1 5.1.
46241         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46243         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46244         present.
46245         * lib/ttyname_r.c (ttyname_r): Update comments.
46247 2010-12-22  Bruno Haible  <bruno@clisp.org>
46249         round: Implement result sign according to IEEE 754.
46250         * lib/round.c (MIN, MINUS_ZERO): New macros.
46251         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46252         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46253         * tests/test-round-ieee.c (main): Likewise.
46254         * tests/test-roundl-ieee.c (main): Likewise.
46256         trunc: Implement result sign according to IEEE 754.
46257         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46258         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46259         * tests/test-trunc2.c: Include minus-zero.h.
46260         (MINUS_ZERO): New macro.
46261         (trunc_reference): Keep in sync with lib/trunc.c.
46262         * tests/test-truncf2.c: Include minus-zero.h.
46263         (MINUS_ZERO): New macro.
46264         (truncf_reference): Keep in sync with lib/trunc.c.
46265         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46266         * tests/test-trunc-ieee.c (main): Likewise.
46267         * tests/test-truncl-ieee.c (main): Likewise.
46269         ceil: Implement result sign according to IEEE 754.
46270         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46271         (FUNC): Return -0.0 for -1 < x < 0.
46272         * tests/test-ceil2.c: Include minus-zero.h.
46273         (MINUS_ZERO): New macro.
46274         (ceil_reference): Keep in sync with lib/ceil.c.
46275         * tests/test-ceilf2.c: Include minus-zero.h.
46276         (MINUS_ZERO): New macro.
46277         (ceilf_reference): Keep in sync with lib/ceil.c.
46278         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46279         * tests/test-ceil-ieee.c (main): Likewise.
46280         * tests/test-ceill-ieee.c (main): Likewise.
46282         floor: Implement result sign according to IEEE 754.
46283         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46284         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46285         * tests/test-floorf2.c (floorf_reference): Likewise.
46286         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46287         * tests/test-floor-ieee.c (main): Likewise.
46288         * tests/test-floorl-ieee.c (main): Likewise.
46290 2010-12-22  Bruno Haible  <bruno@clisp.org>
46292         getaddrinfo: Update doc.
46293         * doc/posix-functions/gai_strerror.texi: Return type is also different
46294         on AIX and HP-UX.
46296 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46298         getaddrinfo, inet_ntop: Update doc for Solaris.
46299         * doc/posix-functions/gai_strerror.texi: Return type is also an
46300         issue on Solaris 9 and earlier.
46301         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46302         on Solaris 10 and earlier.
46304 2010-12-21  Bruno Haible  <bruno@clisp.org>
46306         New module 'roundl-ieee'.
46307         * modules/roundl-ieee: New file.
46308         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46309         test whether roundl works according to ISO C 99 with IEC 60559.
46310         * m4/roundl-ieee.m4: New file.
46311         * modules/roundl-ieee-tests: New file.
46312         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46313         * tests/test-roundl.c (main): Remove signbit tests.
46314         * modules/roundl-tests (Depends-on): Remove signbit.
46315         * doc/posix-functions/roundl.texi: Mention the new module.
46317 2010-12-21  Bruno Haible  <bruno@clisp.org>
46319         New module 'truncl-ieee'.
46320         * modules/truncl-ieee: New file.
46321         * modules/truncl-ieee-tests: New file.
46322         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46323         * tests/test-truncl.c (main): Remove signbit tests.
46324         * modules/truncl-tests (Depends-on): Remove signbit.
46325         * doc/posix-functions/truncl.texi: Mention the new module.
46327 2010-12-21  Bruno Haible  <bruno@clisp.org>
46329         New module 'ceill-ieee'.
46330         * modules/ceill-ieee: New file.
46331         * modules/ceill-ieee-tests: New file.
46332         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46333         * tests/test-ceill.c (main): Remove signbit tests.
46334         * modules/ceill-tests (Depends-on): Remove signbit.
46335         * doc/posix-functions/ceill.texi: Mention the new module.
46337 2010-12-21  Bruno Haible  <bruno@clisp.org>
46339         New module 'floorl-ieee'.
46340         * modules/floorl-ieee: New file.
46341         * modules/floorl-ieee-tests: New file.
46342         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46343         * tests/test-floorl.c (main): Remove signbit tests.
46344         * modules/floorl-tests (Depends-on): Remove signbit.
46345         * doc/posix-functions/floorl.texi: Mention the new module.
46347 2010-12-21  Bruno Haible  <bruno@clisp.org>
46349         New module 'round-ieee'.
46350         * modules/round-ieee: New file.
46351         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46352         whether round works according to ISO C 99 with IEC 60559.
46353         * m4/round-ieee.m4: New file.
46354         * modules/round-ieee-tests: New file.
46355         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46356         * tests/test-round1.c (main): Remove signbit tests.
46357         * modules/round-tests (Depends-on): Remove 'signbit'.
46358         * doc/posix-functions/round.texi: Mention the new module.
46360 2010-12-21  Bruno Haible  <bruno@clisp.org>
46362         New module 'trunc-ieee'.
46363         * modules/trunc-ieee: New file.
46364         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46365         whether trunc works according to ISO C 99 with IEC 60559.
46366         * m4/trunc-ieee.m4: New file.
46367         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46369         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46370         * modules/trunc-ieee-tests: New file.
46371         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46372         * tests/test-trunc1.c (main): Remove signbit tests.
46373         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46374         * doc/posix-functions/trunc.texi: Mention the new module.
46376 2010-12-21  Bruno Haible  <bruno@clisp.org>
46378         New module 'ceil-ieee'.
46379         * modules/ceil-ieee: New file.
46380         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46381         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46382         ISO C 99 with IEC 60559.
46383         * m4/ceil-ieee.m4: New file.
46384         * modules/ceil (Files): Add lib/ceil.c.
46385         (Depends-on): Add 'float'.
46386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46387         * lib/math.in.h (ceil): New declaration.
46388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46389         REPLACE_CEIL.
46390         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46391         * modules/ceil-ieee-tests: New file.
46392         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46393         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46394         * doc/posix-functions/ceil.texi: Mention the new module.
46396 2010-12-21  Bruno Haible  <bruno@clisp.org>
46398         New module 'floor-ieee'.
46399         * modules/floor-ieee: New file.
46400         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46401         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46402         ISO C 99 with IEC 60559.
46403         * m4/floor-ieee.m4: New file.
46404         * modules/floor (Files): Add lib/floor.c.
46405         (Depends-on): Add 'float'.
46406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46407         * lib/math.in.h (floor): New declaration.
46408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46409         REPLACE_FLOOR.
46410         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46411         * modules/floor-ieee-tests: New file.
46412         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46413         * tests/test-math-c++.cc: Check the signature of 'floor'.
46414         * doc/posix-functions/floor.texi: Mention the new module.
46416 2010-12-21  Bruno Haible  <bruno@clisp.org>
46418         New module 'roundf-ieee'.
46419         * modules/roundf-ieee: New file.
46420         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46421         test whether roundf works according to ISO C 99 with IEC 60559.
46422         * m4/roundf-ieee.m4: New file.
46423         * modules/roundf-ieee-tests: New file.
46424         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46425         * tests/test-roundf1.c (main): Remove signbit tests.
46426         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46427         * doc/posix-functions/roundf.texi: Mention the new module.
46429 2010-12-21  Bruno Haible  <bruno@clisp.org>
46431         New module 'truncf-ieee'.
46432         * modules/truncf-ieee: New file.
46433         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46434         test whether truncf works according to ISO C 99 with IEC 60559.
46435         * m4/truncf-ieee.m4: New file.
46436         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46438         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46439         * modules/truncf-ieee-tests: New file.
46440         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46441         * tests/test-truncf1.c (main): Remove signbit tests.
46442         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46443         * doc/posix-functions/truncf.texi: Mention the new module.
46445 2010-12-21  Bruno Haible  <bruno@clisp.org>
46447         New module 'ceilf-ieee'.
46448         * modules/ceilf-ieee: New file.
46449         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46450         test whether ceilf works according to ISO C 99 with IEC 60559.
46451         * m4/ceilf-ieee.m4: New file.
46452         * modules/ceilf-ieee-tests: New file.
46453         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46454         * tests/test-ceilf1.c (main): Remove signbit tests.
46455         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46456         * doc/posix-functions/ceilf.texi: Mention the new module.
46458 2010-12-21  Bruno Haible  <bruno@clisp.org>
46460         New module 'floorf-ieee'.
46461         * modules/floorf-ieee: New file.
46462         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46463         test whether floorf works according to ISO C 99 with IEC 60559.
46464         * m4/floorf-ieee.m4: New file.
46465         * modules/floorf-ieee-tests: New file.
46466         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46467         * tests/test-floorf1.c (main): Remove signbit tests.
46468         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46469         * doc/posix-functions/floorf.texi: Mention the new module.
46471 2010-12-21  Bruno Haible  <bruno@clisp.org>
46473         Support for minus zero in autoconf macros.
46474         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46475         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46476         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46477         * tests/minus-zero.h: Update comments.
46479 2010-12-21  Bruno Haible  <bruno@clisp.org>
46481         Tests for module 'ceil'.
46482         * modules/ceil-tests: New file.
46483         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46484         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46486 2010-12-21  Bruno Haible  <bruno@clisp.org>
46488         Tests for module 'floor'.
46489         * modules/floor-tests: New file.
46490         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46491         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46493 2010-12-21  Bruno Haible  <bruno@clisp.org>
46495         math: Fix indentation.
46496         * lib/math.in.h (floorf): Fix indentation.
46498 2010-12-21  Bruno Haible  <bruno@clisp.org>
46500         Fix cross-compilation guesses on Solaris.
46501         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46502         not match "solaris2.10".
46503         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46504         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46505         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46507 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46509         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46510         This fixes a problem observed with the latest coreutils snapshot
46511         that caused a test to fail on Solaris 8.  src/csplit.c's call
46512         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46513         earlier, instead of returning the number of bytes that would have
46514         been generated; this causes csplit to incorrectly report memory
46515         exhaustion.
46516         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46517         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46518         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46519         comments to match.
46520         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46521         Fix typo in matching older versions of Solaris: "solaris2.10"
46522         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46523         only for guessing while cross-compiling.
46524         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46526 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46528         ftoastr: fix comment again
46529         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46530         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46531         Also, simplify example a bit by using flags = 0.
46533 2010-12-20  Bruno Haible  <bruno@clisp.org>
46535         round*, trunc*: Update documentation regarding glibc.
46536         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46537         * doc/posix-functions/round.texi: Likewise.
46538         * doc/posix-functions/roundl.texi: Likewise.
46539         * doc/posix-functions/truncf.texi: Likewise.
46540         * doc/posix-functions/trunc.texi: Likewise.
46541         * doc/posix-functions/truncl.texi: Likewise.
46543 2010-12-20  Bruno Haible  <bruno@clisp.org>
46545         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46546         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46547         * doc/posix-functions/round.texi: Likewise.
46548         * doc/posix-functions/roundl.texi: Likewise.
46550 2010-12-20  Bruno Haible  <bruno@clisp.org>
46552         ttyname_r: Add missing declaration on HP-UX 11.
46553         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46554         HAVE_TTYNAME_R.
46555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46556         declared. Set HAVE_TTYNAME_R always.
46557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46558         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46559         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46560         HAVE_TTYNAME_R.
46561         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46563 2010-12-20  Bruno Haible  <bruno@clisp.org>
46565         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46566         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46567         * doc/posix-functions/getlogin_r.texi: Likewise.
46568         * tests/test-getlogin.c: Include <errno.h>.
46569         (main): Avoid test failure on HP-UX 11.11.
46570         * tests/test-getlogin_r.c (main): Likewise.
46572 2010-12-20  Bruno Haible  <bruno@clisp.org>
46574         getlogin_r: Add missing declaration on HP-UX 11.
46575         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46576         declared also when it exists as a function.
46577         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46579 2010-12-20  Bruno Haible  <bruno@clisp.org>
46581         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46582         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46583         through wcrtomb.
46585 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46587         ftoastr: fix comment
46588         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46589         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46591 2010-12-19  Bruno Haible  <bruno@clisp.org>
46593         isnan: Ensure it is a macro.
46594         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46595         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46596         Solaris.
46598 2010-12-19  Bruno Haible  <bruno@clisp.org>
46600         ldexpl test: Fix link error on OSF/1 5.1.
46601         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46603 2010-12-19  Bruno Haible  <bruno@clisp.org>
46605         wctype: Make it work in C++ mode on OSF/1 5.1.
46606         * lib/wctype.in.h (iswblank): Declare but not define here.
46607         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46608         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46609         * modules/wctype (Files): Add lib/iswblank.c.
46611 2010-12-19  Bruno Haible  <bruno@clisp.org>
46613         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46614         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46615         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46617 2010-12-19  Bruno Haible  <bruno@clisp.org>
46619         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46620         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46621         _POSIX_PII_SOCKET.
46622         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46623         * doc/posix-functions/recvfrom.texi: Likewise.
46624         * doc/posix-functions/send.texi: Likewise.
46625         * doc/posix-functions/sendto.texi: Likewise.
46627 2010-12-19  Bruno Haible  <bruno@clisp.org>
46629         tcgetsid: Add missing declaration on OSF/1 5.1.
46630         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46631         HAVE_TCGETSID.
46632         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46633         Don't set HAVE_TCGETSID.
46634         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46635         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46636         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46637         HAVE_TCGETSID.
46638         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46640 2010-12-19  Bruno Haible  <bruno@clisp.org>
46642         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46643         * lib/stdio.in.h: During the include_next statement, let recursive
46644         includes of this file include only the system header file.
46646 2010-12-19  Bruno Haible  <bruno@clisp.org>
46648         iconv_open: Fix regression from 2010-12-04.
46649         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46650         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46652 2010-12-19  Bruno Haible  <bruno@clisp.org>
46654         stdbool test: Avoid a gcc warning.
46655         * tests/test-stdbool.c (main): Fail if e1 is false.
46656         Reported by Jim Meyering.
46658 2010-12-19  Jim Meyering  <meyering@redhat.com>
46660         setenv: restore to working order
46661         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46662         mistakenly removed.
46663         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46664         HAVE_SETENV.
46665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46666         HAVE_SETENV.
46668 2010-12-19  Bruno Haible  <bruno@clisp.org>
46670         Document some different function declarations on OSF/1 5.1.
46671         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46672         * doc/posix-functions/inet_ntop.texi: Likewise.
46673         * doc/posix-functions/gethostname.texi: Likewise.
46674         * lib/unistd.in.h (gethostname): Update comment.
46676 2010-12-19  Bruno Haible  <bruno@clisp.org>
46678         doc: Mention vasprintf-posix module.
46679         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46680         the 'vasprintf-posix' module.
46681         * doc/glibc-functions/vasprintf.texi: Likewise.
46683 2010-12-19  Bruno Haible  <bruno@clisp.org>
46685         unsetenv: Add missing declaration on OSF/1 5.1.
46686         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46687         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46688         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46690         not HAVE_UNSETENV.
46691         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46692         HAVE_UNSETENV.
46693         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46695 2010-12-19  Bruno Haible  <bruno@clisp.org>
46697         setenv: Add missing declaration on OSF/1 5.1.
46698         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46700         declared. Don't set HAVE_SETENV.
46701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46702         not HAVE_SETENV.
46703         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46704         HAVE_SETENV.
46705         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46707 2010-12-19  Bruno Haible  <bruno@clisp.org>
46709         nl_langinfo tests: Avoid gcc warning.
46710         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46712 2010-12-19  Bruno Haible  <bruno@clisp.org>
46714         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46715         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46716         _GL_CXXALIAS_SYS.
46718 2010-12-19  Bruno Haible  <bruno@clisp.org>
46720         stdbool: Relax test.
46721         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46722         address to 'bool' work in static initializer, for compilers other than
46723         GCC.
46725 2010-12-19  Bruno Haible  <bruno@clisp.org>
46727         ftello: Add missing declaration on OSF/1 5.1.
46728         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46729         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46731         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46732         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46734 2010-12-19  Bruno Haible  <bruno@clisp.org>
46736         fseeko: Add missing declaration on OSF/1 5.1.
46737         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46738         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46740         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46741         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46743 2010-12-19  Bruno Haible  <bruno@clisp.org>
46745         fchdir: Add missing declaration on OSF/1 5.1.
46746         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46749         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46750         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46752 2010-12-19  Bruno Haible  <bruno@clisp.org>
46754         relocatable-prog-wrapper: Separate from relocatable-prog.
46755         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46756         uninstall-relocwrapper rule here.
46757         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46758         Reported by Ian Beckwith <ianb@erislabs.net>.
46760 2010-12-19  Bruno Haible  <bruno@clisp.org>
46762         unistr/u8-mbsnlen: Add missing dependency.
46763         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46764         Reported by Ian Beckwith <ianb@erislabs.net>.
46766 2010-12-19  Bruno Haible  <bruno@clisp.org>
46768         iconv: Make it possible again to use this module without 'iconv-h'.
46769         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46770         if it is not defined.
46771         Reported by Ian Beckwith <ianb@erislabs.net>.
46773 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46775         acl: port to Solaris 8 when copying from tmpfs to ufs
46776         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46777         error number.  Problem observed on Solaris 8 with latest
46778         coreutils, with "mv A B", where A is on a tmpfs file system and B
46779         is on a ufs file system.  This caused coreutils' mv/part-symlink
46780         test to fail.
46782         tests: set fail=0 at start
46783         * tests/init.sh (setup_): Move fail=0 initialization here ...
46784         (mktempd_): ... from here, so that tests can rely on fail being
46785         set to 0 initially.  This fixes a problem in coreutils; see:
46786         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46788 2010-12-18  Bruno Haible  <bruno@clisp.org>
46790         memmem-simple: Stylistic changes.
46791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46792         Fix preprocessor directive indentation.
46794 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46796         memmem, memmem-simple: reorganize and expand empty needle check
46797         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46798         functional checks to memmem-simple so that one has a fully functional
46799         memmem by using just this module.
46800         Restrict the performance only check to the memmem module.
46801         Also expand the empty needle check to ensure the correct
46802         pointer is returned, not just a non NULL pointer.
46803         * doc/glibc-functions/memmem.texi: Rearrange the portability
46804         documentation to correlate with the rearranged checks.
46805         Clarify exactly how the memmem and memmem-simple modules
46806         relate to each other.
46808 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46809             Bruno Haible  <bruno@clisp.org>
46811         Improve cross-compilation guesses for uClibc.
46812         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46813         that uClibc does not have the glibc bug.
46814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46815         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46817 2010-12-14  Eric Blake  <eblake@redhat.com>
46819         configmake: provide fallbacks for oldest supported autotools
46820         * m4/configmake.m4: New file.
46821         * modules/configmake (Files): Ship it.
46822         (configure.ac): Use it to guarantee fallbacks.
46824 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46826         read-file: Improve handling of large files
46827         * lib/read-file.c (fread_file): Minimize realloc()s
46828         for regular files, and better manage sizes around SIZE_MAX.
46830 2010-12-13  Eric Blake  <eblake@redhat.com>
46832         cloexec, fcntl: relax license
46833         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46834         consent from all contributors.
46835         * modules/fcntl (License): Likewise.
46837 2010-12-10  Bruno Haible  <bruno@clisp.org>
46839         Tests for module 'pipe-posix'.
46840         * modules/pipe-posix-tests: New file.
46841         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46843 2010-12-10  Bruno Haible  <bruno@clisp.org>
46845         pipe-posix: Make it work in C++ mode.
46846         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46847         (pipe): Use common idiom, not a macro definition.
46848         * lib/pipe.c: New file.
46849         * m4/pipe.m4: New file.
46850         * modules/pipe-posix (Description): Enhance.
46851         (Files): Add lib/pipe.c, m4/pipe.m4.
46852         (configure.ac): Invoke gl_FUNC_PIPE.
46853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46854         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46855         * tests/test-unistd-c++.cc: Check the signature of pipe.
46857 2010-12-10  Bruno Haible  <bruno@clisp.org>
46859         Rename module 'pipe' to 'spawn-pipe'.
46860         * modules/spawn-pipe: New file, renamed from modules/pipe.
46861         (Files, configure.ac, Makefile.am): Update.
46862         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46863         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46864         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46865         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46866         "spawn-pipe.h" instead of "pipe.h".
46867         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46868         to gl_SPAWN_PIPE.
46869         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46870         (Files, Makefile.am): Update.
46871         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46872         Update.
46873         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46874         Include "spawn-pipe.h" instead of "pipe.h".
46875         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46876         * lib/javacomp.c: Likewise.
46877         * lib/javaversion.c: Likewise.
46878         * lib/pipe-filter-gi.c: Likewise.
46879         * lib/pipe-filter-ii.c: Likewise.
46880         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46881         * modules/javacomp (Depends-on): Likewise.
46882         * modules/javaversion (Depends-on): Likewise.
46883         * modules/pipe-filter-gi (Depends-on): Likewise.
46884         * modules/pipe-filter-ii (Depends-on): Likewise.
46885         * MODULES.html.sh (Executing programs): Update.
46886         * NEWS: Mention the change.
46888 2010-12-10  Eric Blake  <eblake@redhat.com>
46890         pipe-posix: new module
46891         * modules/pipe-posix: New file.
46892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46893         (gl_UNISTD_H): Check for declaration.
46894         * modules/unistd (Makefile.am): Substitute it.
46895         * lib/unistd.in.h (pipe): Provide it for mingw.
46896         * doc/posix-functions/pipe.texi (pipe): Update documentation.
46897         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
46899 2010-12-07  Bruno Haible  <bruno@clisp.org>
46901         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
46902         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
46903         u8_strcmp_gnu.
46904         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
46906 2010-12-06  Bruno Haible  <bruno@clisp.org>
46908         Update internal documentation.
46909         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
46911 2010-12-04  Bruno Haible  <bruno@clisp.org>
46913         Put more information about failed tests into the test return codes.
46914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
46915         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
46916         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46918         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
46919         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46920         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46921         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46922         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
46923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
46925         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46926         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46927         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
46929         returns a bit mask.
46930         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
46931         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
46932         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
46933         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
46934         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46938         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46939         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46940         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46941         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46944         * m4/link.m4 (gl_FUNC_LINK): Likewise.
46945         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46946         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
46947         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
46948         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46949         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
46950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46951         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
46952         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
46953         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46954         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46955         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46956         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
46957         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46958         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46959         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
46960         gl_PRINTF_PRECISION): Likewise.
46961         * m4/regex.m4 (gl_REGEX): Likewise.
46962         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
46964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
46965         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46968         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46969         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
46970         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46971         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46972         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46973         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46974         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46975         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46976         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46977         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
46978         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
46979         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46981         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
46982         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
46983         enumerated value.
46984         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
46986 2010-12-04  Bruno Haible  <bruno@clisp.org>
46988         Update for Solaris 11 2010-11.
46989         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
46990         Express, released in November 2010.
46992 2010-12-04  Bruno Haible  <bruno@clisp.org>
46994         nproc: Relax license.
46995         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
46996         and Paul Eggert.
46997         Requested by Ludovic Courtès <ludo@gnu.org>.
46999 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47001         utimecmp: fine-grained src to nearby coarse-grained dest
47003         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47004         and the source is on a file system with higher-resolution time
47005         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47006         not work, and the time stamps are close together, the algorithm to
47007         determine the exact resolution from the read-back mtime was buggy:
47008         it had a "!=" where it should have had an "==".  This bug has been
47009         in the code ever since it was introduced to gnulib.
47010         Problem reported by Dan Jacobson in
47011         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47013 2010-11-30  Bruno Haible  <bruno@clisp.org>
47015         strerror_r-posix: Fix autoconf test.
47016         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47018 2010-11-28  Bruno Haible  <bruno@clisp.org>
47019             Paul Eggert  <eggert@cs.ucla.edu>
47021         Tests for module 'getdomainname'.
47022         * modules/getdomainname-tests: New file.
47023         * tests/test-getdomainname.c: New file, based on
47024         tests/test-gethostname.c.
47026 2010-11-28  Bruno Haible  <bruno@clisp.org>
47027             Paul Eggert  <eggert@cs.ucla.edu>
47029         getdomainname: Use the system function when possible.
47030         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47031         (getdomainname): Replace if needed. Provide the declaration if it is
47032         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47033         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47034         (getdomainname): When the system has getdomainname, call the system
47035         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47036         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47037         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47038         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47039         the function if its second argument is of type 'int' or if it is found
47040         in libnsl.
47041         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47042         <sys/systeminfo.h> and sysinfo().
47043         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47045         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47046         HAVE_GETDOMAINNAME.
47047         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47048         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47049         * doc/glibc-functions/getdomainname.texi: Document the problems with
47050         the getdomainname declaration.
47052 2010-11-28  Bruno Haible  <bruno@clisp.org>
47054         sys_socket: Ensure ss_family field on AIX.
47055         * lib/sys_socket.in.h (ss_family): New macro definition.
47056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47057         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47058         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47059         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47060         * modules/sys_socket (Makefile.am): Substitute
47061         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47062         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47064 2010-11-27  Bruno Haible  <bruno@clisp.org>
47066         readline: Improve configure output.
47067         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47068         "checking for readline..." result understandable.
47070 2010-11-27  Bruno Haible  <bruno@clisp.org>
47072         *printf-posix: Detect a bug on Solaris 10/x86.
47073         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47074         for floating-point output.
47075         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47076         directive.
47077         * tests/test-snprintf-posix.h (test_function): Likewise.
47078         * tests/test-sprintf-posix.h (test_function): Likewise.
47079         * tests/test-vasprintf-posix.c (test_function): Likewise.
47080         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47081         * doc/posix-functions/printf.texi: Likewise.
47082         * doc/posix-functions/snprintf.texi: Likewise.
47083         * doc/posix-functions/sprintf.texi: Likewise.
47084         * doc/posix-functions/vfprintf.texi: Likewise.
47085         * doc/posix-functions/vprintf.texi: Likewise.
47086         * doc/posix-functions/vsnprintf.texi: Likewise.
47087         * doc/posix-functions/vsprintf.texi: Likewise.
47088         * doc/glibc-functions/obstack_printf.texi: Likewise.
47089         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47091 2010-11-27  Bruno Haible  <bruno@clisp.org>
47093         Fix link error when module libunistring-optional is in use.
47094         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47095         * modules/striconveha-tests (Makefile.am): Likewise.
47097 2010-11-27  Bruno Haible  <bruno@clisp.org>
47099         regex: Mention link dependencies.
47100         * modules/regex (Link): New section.
47101         * modules/rpmatch (Link): Likewise.
47102         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47104 2010-11-27  Bruno Haible  <bruno@clisp.org>
47106         ftoastr: Fix compilation error on Solaris.
47107         * lib/ftoastr.c: Include <config.h>.
47109 2010-11-27  Bruno Haible  <bruno@clisp.org>
47111         getloadavg: Update documentation.
47112         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47114 2010-11-27  Bruno Haible  <bruno@clisp.org>
47116         sys_socket: Fix test whether the functions are declared.
47117         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47118         not <sys/select.h>.
47120 2010-11-27  Bruno Haible  <bruno@clisp.org>
47122         getpass: Make sure to get system declaration on some platforms.
47123         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47124         gl_USE_SYSTEM_EXTENSIONS.
47125         * modules/getpass (Depends-on): Add extensions.
47127 2010-11-26  Bruno Haible  <bruno@clisp.org>
47129         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47130         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47131         'iconv' module is present.
47132         (ICONV_CONST): New macro.
47133         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47134         ICONV_CONST.
47135         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47136         set ICONV_CONST.
47137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47138         here.
47139         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47140         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47141         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47142         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47143         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47144         present.
47146 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47148         ftoastr: comment fix
47149         * lib/ftoastr.c: "little" -> "little or no" in comment
47151 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47153         stdint: port to GCC 4.3 + OSX + Octave
47154         On this platform, stdint.h is buggy and defines int64_t to long
47155         long int.  The replacement defined it to long int, causing
47156         problems with C++ style name mangling.  Instead, trust the system
47157         definition if INT64_MAX is defined, and likewise for the unsigned
47158         variant.   Problem reported by Jarno Rajahalme in
47159         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47160         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47161         and don't mess with int64_t and INT64_MAX in this case.
47162         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47164 2010-11-24  Bruno Haible  <bruno@clisp.org>
47166         doc: Corrections regarding MacOS X 10.4 and 10.5.
47167         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47168         MacOS X.
47169         Reported by Simon Josefsson.
47171 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47173         Uninstall ".bin" files installed by relocwrapper.
47174         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47175         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47176         unless it is already there.
47178 2010-11-21  Bruno Haible  <bruno@clisp.org>
47180         Update for NetBSD 5.0.
47181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47182         NetBSD; the test fails on NetBSD 5.0.
47183         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47184         about NetBSD.
47186 2010-11-21  Bruno Haible  <bruno@clisp.org>
47188         Update for HP-UX 11.23 and HP-UX 11.31.
47189         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47190         HP-UX.
47192 2010-11-21  Bruno Haible  <bruno@clisp.org>
47194         Update for MacOS X 10.5.
47195         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47196         MacOS X; the test fails on MacOS X 10.5.8.
47197         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47198         about MacOS X.
47200 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47202         bootstrap: add bootstrap_sync option.
47203         See discussion at
47204         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47205         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47206         * build-aux/bootstrap: Accept --bootstrap-sync to update
47207         bootstrap if it is not identical to the local gnulib's
47208         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47209         enable this by default.  Accept --no-bootstrap-sync to disable
47210         it.
47212 2010-11-20  Bruno Haible  <bruno@clisp.org>
47214         Ensure that <features.h> is included before __GLIBC__ is tested.
47215         * lib/printf-parse.h: Include <features.h>.
47216         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47217         Reported by Mike Frysinger <vapier@gentoo.org>.
47219         Ensure that <features.h> is included before __GLIBC__ is tested.
47220         * lib/wchar.in.h: Include <features.h>.
47221         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47222         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47223         Reported by Mike Frysinger <vapier@gentoo.org>.
47225         Ensure that <features.h> is included before __GLIBC__ is tested.
47226         * lib/arpa_inet.in.h: Include <features.h>.
47227         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47228         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47229         Reported by Mike Frysinger <vapier@gentoo.org>.
47231         Ensure that <features.h> is included before __GLIBC__ is tested.
47232         * build-aux/link-warning.h: Include <features.h>.
47233         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47234         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47235         Reported by Mike Frysinger <vapier@gentoo.org>.
47237         Ensure that <features.h> is included before __GLIBC__ is tested.
47238         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47239         Reported by Mike Frysinger <vapier@gentoo.org>.
47241 2010-11-20  Bruno Haible  <bruno@clisp.org>
47243         memmem: Fix autoconf test.
47244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47246 2010-11-20  Bruno Haible  <bruno@clisp.org>
47248         Port to uClibc.
47249         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47250         * lib/fcntl.in.h: Likewise.
47251         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47252         * lib/mbrtowc.c (mbrtowc): Likewise.
47253         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47254         * lib/strerror_r.c: Likewise.
47255         * lib/unistr/u8-strnlen.c: Likewise.
47256         * lib/vasnprintf.c (decimal_point_char): Likewise.
47257         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47258         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47260         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47261         * tests/test-sigaction.c (handler, main): Likewise.
47262         * lib/freading.h: Treat uClibc like a non-glibc platform.
47263         * lib/freading.c: Likewise.
47264         * lib/gettext.h: Likewise.
47265         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47266         Likewise.
47267         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47269         * lib/propername.c (proper_name_utf8): Likewise.
47270         * lib/spawn.in.h: Likewise.
47271         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47272         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47273         mem_cd_iconveh_internal): Likewise.
47274         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47275         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47276         strstr, strcasestr): Likewise.
47277         * lib/unicodeio.c (unicode_to_mb): Likewise.
47278         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47279         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47280         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47281         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47282         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47283         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47284         * lib/unistr/u8-stpncpy.c: Likewise.
47285         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47286         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47288         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47289         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47290         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47292         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47294         Likewise.
47295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47300         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47301         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47302         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47303         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47304         * tests/test-striconveha.c (main): Likewise.
47305         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47306         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47307         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47308         * doc/posix-functions/getline.texi: Likewise.
47309         Reported by Mike Frysinger <vapier@gentoo.org>.
47311 2010-11-20  Bruno Haible  <bruno@clisp.org>
47313         nproc: Fix condition.
47314         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47315         HAVE_PTHREAD_AFFINITY_NP.
47317 2010-11-20  Bruno Haible  <bruno@clisp.org>
47319         Fix a comment.
47320         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47322 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47324         ftoastr: don't assume snprintf
47325         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47326         Implement a subset of snprintf here, by using sprintf safely.
47327         * modules/ftoastr (Depends-on): Remove snprintf.
47329 2010-11-19  Jim Meyering  <meyering@redhat.com>
47331         test-rename.h: fix compilation failure
47332         * tests/test-rename.h (test_rename): Add omitted "}".
47334 2010-11-17  Jim Meyering  <meyering@redhat.com>
47336         maint.mk: add a URL discussing the no-@acronym policy
47337         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47339 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47341         ftoastr: depend on snprintf, improve comments
47342         * lib/ftoastr.c: Also mention Loitsch's draft.
47343         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47344         needed in the current implementation, but it might simplify
47345         speeding up the code later.
47346         * modules/ftoastr: Depend on snprintf; this improves portability.
47347         Suggested by Bruno Haible in the same email.
47349         ftoastr: port to hosts lacking strtof and strtold
47350         Problem reported by Bruno Haible in
47351         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47352         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47353         environment and strtold (and presumably strtof) are not available.
47354         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47355         (configure.ac): Require gl_C99_STRTOLD.
47357 2010-11-18  Bruno Haible  <bruno@clisp.org>
47359         c-strtold: Avoid link error on AIX 7.
47360         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47361         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47362         (gl_C_STRTOLD): Test whether strtold_l exists.
47363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47365 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47367         intprops: new macro INT_BITS_STRLEN_BOUND
47368         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47369         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47370         not exposed.  Also, it uses a slightly tighter bound than before;
47371         though this makes no practical difference, we might as well be as
47372         tight as we easily can.
47374         ftoastr: new module, for lossless conversion of floats to short strings
47375         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47376         * modules/ftoastr: New files.
47378 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47380         bootstrap: port to Solaris sed
47381         * build-aux/bootstrap (get_version): Port to Solaris sed.
47382         See Ralf Wildenhues's note in
47383         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47385 2010-11-14  Jim Meyering  <meyering@redhat.com>
47387         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47388         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47389         and move definition closer to sole use.
47391 2010-11-13  Jim Meyering  <meyering@redhat.com>
47393         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47394         Now we require at least autoconf-2.59, which means the work-around
47395         is no longer needed.
47396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47398         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47399         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47400         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47402 2010-11-13  Bruno Haible  <bruno@clisp.org>
47404         rename, renameat: Avoid test failures at NFS mounted locations.
47405         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47406         functions.
47407         (test_rename): Use assert_nonexistent.
47408         * tests/test-rename.c: Include <dirent.h>.
47409         * tests/test-renameat.c: Likewise.
47410         Reported by Gary V. Vaughan <gary@gnu.org>.
47412         rename, renameat: Document Linux bug with NFS
47413         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47414         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47415         * doc/posix-functions/renameat.texi: Likewise.
47416         Suggested by Eric Blake.
47418 2010-11-13  Bruno Haible  <bruno@clisp.org>
47420         rename test: Add comments.
47421         * tests/test-rename.h (test_rename): Add structure and comments.
47423 2010-11-13  Eric Blake  <eblake@redhat.com>
47425         maintainer-makefile: cover a few more files
47426         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47427         scripts generated within C files, for libvirt.
47429 2010-11-13  Bruno Haible  <bruno@clisp.org>
47431         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47432         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47433         character, return the number of bytes that belong together, not always
47434         1.
47435         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47436         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47437         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47438         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47439         number of bytes of an invalid character.
47440         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47441         (main): Invoke it.
47442         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47443         results.
47444         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47445         malformed byte sequences.
47446         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47447         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47448         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47449         Reported by Ben Pfaff and Paolo Bonzini.
47451 2010-11-13  Bruno Haible  <bruno@clisp.org>
47453         openat: Work around glibc bug with fchownat() and empty file names.
47454         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47455         (gl_FUNC_FCHOWNAT): Invoke it.
47456         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47457         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47458         Reported by Gary V. Vaughan <gary@gnu.org>.
47460 2010-11-13  Bruno Haible  <bruno@clisp.org>
47462         openat: Ensure autoconf macro ordering.
47463         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47464         gl_USE_SYSTEM_EXTENSIONS.
47465         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47467 2010-11-13  Bruno Haible  <bruno@clisp.org>
47469         Update comments.
47470         * lib/unistr/u8-check.c: Update file name in comments.
47471         * lib/unistr/u8-mblen.c: Likewise.
47472         * lib/unistr/u8-prev.c: Likewise.
47473         * lib/unistr/u8-strmblen.c: Likewise.
47474         * lib/unistr/u8-strmbtouc.c: Likewise.
47476 2010-11-13  Jim Meyering  <meyering@redhat.com>
47478         tests: avoid test failure on Solaris 10 due to lack of PATH export
47479         * tests/test-update-copyright.sh: Don't forget to export PATH.
47481         init.sh: ensure that IFS is defined, just in case...
47482         * tests/init.sh (setup_): Ensure that IFS is defined,
47483         so that saving and restoring it works as expected.  This
47484         appears to be useful at least for an old version of dash
47485         from a long time ago (RH 6).  See here for details:
47486         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47488         maint.mk: tighten "test a == b" check
47489         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47490         test to files that contain something like #!/bin/sh.
47491         Without this, coreutils would get two false positives in
47492         the comments of C source files.
47494 2010-11-12  Eric Blake  <eblake@redhat.com>
47496         bootstrap: fix typo in previous attempt
47497         * build-aux/bootstrap (buildreq): Correct the grouping.
47498         Reported by Paul Eggert.
47500         maintainer-makefile: prohibit test x == x
47501         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47502         Based on a report by Matthias Bolte.
47504         bootstrap: allow FreeBSD gzip
47505         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47506         which has no '.' and goes to stderr.
47507         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47508         Reported by Matthias Bolte.
47510         maintainer-makefile: check for i18n setup
47511         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47512         will likely work.
47514 2010-11-12  Bruno Haible  <bruno@clisp.org>
47516         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47517         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47518         * lib/nanosleep.c (nanosleep): Likewise.
47520 2010-11-11  Bruno Haible  <bruno@clisp.org>
47522         fcntl-h: Fix for use of C++ on glibc systems.
47523         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47524         also on glibc systems in C++ mode.
47525         Reported by Gary V. Vaughan <gary@gnu.org>.
47527 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47529         mknod: avoid false failure with dash
47530         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47532 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47534         unlink: Fix "is it should" typo in diagnostic.
47535         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47536         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47538 2010-11-11  Bruno Haible  <bruno@clisp.org>
47540         Tests for module 'strerror_r-posix'.
47541         * modules/strerror_r-posix-tests: New file.
47542         * tests/test-strerror_r.c: New file.
47543         * tests/test-string-c++.cc: Check the signature of strerror_r.
47545         New module 'strerror_r-posix'.
47546         * lib/string.in.h (strerror_r): New declaration.
47547         * lib/strerror_r.c: New file.
47548         * m4/strerror_r.m4: New file.
47549         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47550         of strerror_r.
47551         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47552         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47553         * modules/strerror_r-posix: New file.
47554         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47555         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47556         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47557         portability problems.
47559 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47561         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47562         line is also considered for output. Quoted function name in shell
47563         command, so temporary files for functions like MyClass::operator()
47564         are removed correctly without errors.
47566 2010-11-09  Bruno Haible  <bruno@clisp.org>
47568         * doc/posix-functions/strerror.texi: List more failing platforms.
47570         * doc/posix-functions/strerror.texi: Add a comment.
47572 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47574         fdopendir: fix bug on MacOS X when low on file descriptors
47576         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47577         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47578         All callers changed.
47579         (fdopendir): Invoke save_cwd at the top level, not after using
47580         multiple dup() calls to use up file descriptors.  Then retry
47581         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47582         less than the maximum number of open file descriptors, because
47583         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47584         on Mac OS X 10.6.4 for tar 1.24
47585         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47586         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47587         and for tar 1.25
47588         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47590 2010-11-07  Bruno Haible  <bruno@clisp.org>
47592         vasnprintf: Support I flag on glibc systems.
47593         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47594         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47595         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47596         snprintf function.
47597         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47598         glibc systems.
47599         * tests/test-vasnprintf-posix3.c: New file.
47600         * modules/vasnprintf-posix-tests (Files): Add it.
47601         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47603 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47605         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47606         * MODULES.html.sh: For compiler warnings, use name
47607         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47609 2010-11-05  Eric Blake  <eblake@redhat.com>
47611         ceil, floor: avoid spurious failure with icc
47612         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47613         [denormals-as-zero] when optimizing without -mieee-fp option.
47614         * tests/test-floorf2.c (floorf_reference): Likewise.
47615         * tests/test-ceilf1.c (dummy): New function.
47616         (main): Use it to outsmart icc's optimization.
47617         * tests/test-floorf1.c (dummy, main): Likewise.
47619         tests: require working signbit
47620         * modules/ceilf-tests (Depends-on): Add signbit.
47621         * modules/ceill-tests (Depends-on): Likewise.
47622         * modules/floorf-tests (Depends-on): Likewise.
47623         * modules/floorl-tests (Depends-on): Likewise.
47624         * modules/round-tests (Depends-on): Likewise.
47625         * modules/roundf-tests (Depends-on): Likewise.
47626         * modules/roundl-tests (Depends-on): Likewise.
47627         * modules/trunc-tests (Depends-on): Likewise.
47628         * modules/truncf-tests (Depends-on): Likewise.
47629         * modules/truncl-tests (Depends-on): Likewise.
47631         strtod: work around icc bug
47632         * lib/strtod.c (minus_zero): Define to working value.
47633         (strtod): Use it to avoid icc bug.
47635         copysign: enhance tests
47636         * modules/copysign-tests (Files): Add minus-zero.h.
47637         * tests/test-copysign.c (main): Also test zeros.
47639 2010-11-04  Eric Blake  <eblake@redhat.com>
47641         ceil, floor, round, trunc: enhance tests of -0
47642         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47643         * tests/test-ceill.c (main): Likewise.
47644         * tests/test-floorf1.c (main): Likewise.
47645         * tests/test-floorl.c (main): Likewise.
47646         * tests/test-round1.c (main): Likewise.
47647         * tests/test-roundf1.c (main): Likewise.
47648         * tests/test-roundl.c (main): Likewise.
47649         * tests/test-trunc1.c (main): Likewise.
47650         * tests/test-truncf1.c (main): Likewise.
47651         * tests/test-truncl.c (main): Likewise.
47653 2010-11-04  Eric Blake  <eblake@redhat.com>
47655         frexp, tests: work around ICC bug with -zero
47656         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47657         works with more compilers.
47658         * tests/minus-zero.h: New file.
47659         * modules/ceilf-tests (Files): Include it.
47660         * modules/ceill-tests (Files): Likewise.
47661         * modules/floorf-tests (Files): Likewise.
47662         * modules/floorl-tests (Files): Likewise.
47663         * modules/frexp-nolibm-tests (Files): Likewise.
47664         * modules/frexp-tests (Files): Likewise.
47665         * modules/frexpl-nolibm-tests (Files): Likewise.
47666         * modules/frexpl-tests (Files): Likewise.
47667         * modules/isnan-tests (Files): Likewise.
47668         * modules/isnand-nolibm-tests (Files): Likewise.
47669         * modules/isnand-tests (Files): Likewise.
47670         * modules/isnanf-nolibm-tests (Files): Likewise.
47671         * modules/isnanf-tests (Files): Likewise.
47672         * modules/isnanl-nolibm-tests (Files): Likewise.
47673         * modules/isnanl-tests (Files): Likewise.
47674         * modules/round-tests (Files): Likewise.
47675         * modules/roundf-tests (Files): Likewise.
47676         * modules/roundl-tests (Files): Likewise.
47677         * modules/ldexpl-tests (Files): Likewise.
47678         * modules/signbit-tests (Files): Likewise.
47679         * modules/snprintf-posix-tests (Files): Likewise.
47680         * modules/sprintf-posix-tests (Files): Likewise.
47681         * modules/strtod-tests (Files): Likewise.
47682         * modules/trunc-tests (Files): Likewise.
47683         * modules/truncf-tests (Files): Likewise.
47684         * modules/truncl-tests (Files): Likewise.
47685         * modules/vsnprintf-posix-tests (Files): Likewise.
47686         * modules/vsprintf-posix-tests (Files): Likewise.
47687         * modules/vasnprintf-posix-tests (Files): Likewise.
47688         * modules/vasprintf-posix-tests (Files): Likewise.
47689         * tests/test-ceilf1.c (main): Use it.
47690         * tests/test-ceill.c (main): Likewise.
47691         * tests/test-floorf1.c (main): Likewise.
47692         * tests/test-floorl.c (main): Likewise.
47693         * tests/test-frexp.c (main): Likewise.
47694         * tests/test-frexpl.c (main): Likewise.
47695         * tests/test-isnan.c (main): Likewise.
47696         * tests/test-isnand.h (main): Likewise.
47697         * tests/test-isnanf.h (main): Likewise.
47698         * tests/test-isnanl.h (main): Likewise.
47699         * tests/test-ldexpl.c (main): Likewise.
47700         * tests/test-round.c (main): Likewise.
47701         * tests/test-roundf.c (main): Likewise.
47702         * tests/test-roundl.c (main): Likewise.
47703         * tests/test-signbit.c (test_signbitf, test_signbitd)
47704         (test_signbitl): Likewise.
47705         * tests/test-snprintf-posix.h (test_function): Likewise.
47706         * tests/test-sprintf-posix.h (test_function): Likewise.
47707         * tests/test-strtod.c (main): Likewise.
47708         * tests/test-trunc1.c (main): Likewise.
47709         * tests/test-truncf1.c (main): Likewise.
47710         * tests/test-truncl.c (main): Likewise.
47712         isnanl: work around icc bug
47713         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47715 2010-11-03  Eric Blake  <eblake@redhat.com>
47717         tests: fix compiler warnings
47718         * tests/test-getopt.h (test_getopt): Fix condition.
47719         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47720         * tests/test-pipe2.c (main): Likewise.
47721         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47723         utimens: fix broken m4 test
47724         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47726 2010-10-28  Bruno Haible  <bruno@clisp.org>
47728         posix_spawn*, getdtablesize: Relax license.
47729         * modules/posix_spawn (License): Change to LGPLv2+.
47730         * modules/posix_spawnp (License): Likewise.
47731         * modules/posix_spawn-internal (License): Likewise.
47732         * modules/posix_spawnattr_init (License): Likewise.
47733         * modules/posix_spawnattr_getflags (License): Likewise.
47734         * modules/posix_spawnattr_setflags (License): Likewise.
47735         * modules/posix_spawnattr_getpgroup (License): Likewise.
47736         * modules/posix_spawnattr_setpgroup (License): Likewise.
47737         * modules/posix_spawnattr_getschedparam (License): Likewise.
47738         * modules/posix_spawnattr_setschedparam (License): Likewise.
47739         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47740         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47741         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47742         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47743         * modules/posix_spawnattr_getsigmask (License): Likewise.
47744         * modules/posix_spawnattr_setsigmask (License): Likewise.
47745         * modules/posix_spawnattr_destroy (License): Likewise.
47746         * modules/posix_spawn_file_actions_init (License): Likewise.
47747         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47748         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47749         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47750         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47751         * modules/getdtablesize (License): Likewise.
47752         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47754 2010-10-26  Bruno Haible  <bruno@clisp.org>
47756         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47757         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47758         Cygwin and mingw.
47759         Suggested by Eric Blake.
47761 2010-10-26  Bruno Haible  <bruno@clisp.org>
47763         stdio: Work around compilation error due to renameat() on Solaris 10.
47764         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47765         * lib/renameat.c: Don't include <unistd.h> here.
47766         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47767         Reported by Paul Eggert and Eric Blake.
47769 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47771         renameat: port to Solaris 10, which declares renameat in unistd.h
47773         * lib/renameat.c: Include unistd.h before stdio.h, because
47774         Solaris 10 declares renameat in unistd.h.  Problem encountered
47775         when building GNU tar 1.24 on Solaris 10.
47777 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47779         fdopendir: fix C89 compilation
47780         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47781         compilers.
47783 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47785         inttostr: simplify by removing unnecessary redundancy
47786         * lib/anytostr.c: Don't include verify.h.
47787         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47788         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47789         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47790         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47791         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47792         Likewise.
47793         * modules/inttostr (Depends-on): Remove 'verify'.
47795 2010-10-23  Bruno Haible  <bruno@clisp.org>
47797         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47798         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47799         Reported by Eric Blake.
47801 2010-10-23  Bruno Haible  <bruno@clisp.org>
47803         Tests: Fix LOCALE_JA on MirBSD 10.
47804         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47805         to an UTF-8 locale.
47806         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47807         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47808         Reported by Eric Blake.
47810 2010-10-21  Bruno Haible  <bruno@clisp.org>
47812         nl_langinfo test: Avoid test failure on NetBSD 5.
47813         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47814         Reported by Eric Blake.
47816 2010-10-21  Eric Blake  <eblake@redhat.com>
47818         c-stack: work around libsigsegv 2.8 bug
47819         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47820         overflow on at least PowerPC64.
47822 2010-10-17  Bruno Haible  <bruno@clisp.org>
47824         userspec: Drop redundant file.
47825         * modules/userspec (Files): Remove lib/inttostr.h.
47827 2010-10-17  Bruno Haible  <bruno@clisp.org>
47829         nl_langinfo tests: Silence some warnings.
47830         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47831         Reported by Jim Meyering.
47833 2010-10-17  Bruno Haible  <bruno@clisp.org>
47835         Make use of GCC's attribute __alloc_size__.
47836         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47837         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47838         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47839         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47840         __alloc_size__.
47841         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47842         Suggested by Jim Meyering.
47844 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47846         bootstrap: anchor .gitignore entries.
47847         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47848         with...
47849         (insert_vc_ignore): ... this new function, which prepends `/' to
47850         all .gitignore entries before passing them to
47851         insert_sorted_if_absent.
47853 2010-10-16  Bruno Haible  <bruno@clisp.org>
47855         nextafter: Fix configure check.
47856         * modules/nextafter (configure.ac): Correct expected prototype.
47858 2010-10-16  Bruno Haible  <bruno@clisp.org>
47860         termios: Update documentation.
47861         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47863 2010-10-16  Bruno Haible  <bruno@clisp.org>
47865         tests: Make them compile with TinyCC.
47866         * tests/test-strstr.c (main): Remove parentheses around array
47867         initializer.
47869 2010-10-15  Eric Blake  <eblake@redhat.com>
47871         ignore-value: make header idempotent
47872         * lib/ignore-value.h: Add double-inclusion guards.
47873         Reported by Stefan Berger.
47875 2010-10-15  Jim Meyering  <meyering@redhat.com>
47877         GNUmakefile: handle "stable" target, not "major"
47878         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47879         lists in maint.mk and announce-gen.  Without this, "make stable"
47880         would fail to ensure that $(VERSION) is up to date.
47882 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47884         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47885         & co.
47887 2010-10-14  Bruno Haible  <bruno@clisp.org>
47889         vasnprintf: Don't set errno to 0.
47890         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47891         block that sets it to 0.
47892         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
47894 2010-10-14  Bruno Haible  <bruno@clisp.org>
47896         socketlib: Fix.
47897         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
47898         gl_PREREQ_SYS_H_WINSOCK2.
47899         Reported by Ian Beckwith <ianb@erislabs.net>.
47901 2010-10-13  Jim Meyering  <meyering@redhat.com>
47903         test-select-stdin.c: avoid warn_unused_result warnings
47904         * tests/test-select-stdin.c: Include "macros.h".
47905         ASSERT that read and fflush succeed.
47907 2010-10-13  Jim Meyering  <meyering@redhat.com>
47909         git-version-gen: do require git-VC'd files in cwd
47910         * build-aux/git-version-gen: Reject a git version string
47911         if there are no commits associated with the current directory.
47912         This avoids an unlikely false-positive (unrelated dir whose parent
47913         repository also contains a tag matching v*), as pointed out
47914         by Giuseppe Scrivano in
47915         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
47917 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47919         argv-iter: omit nonconforming declaration
47920         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
47921         enum arg_iter_err declaration, which doesn't conform to C99.
47922         Solaris 10 cc warns about this.
47924 2010-10-13  Eric Blake  <eblake@redhat.com>
47926         termios: fix compilation on mingw
47927         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
47928         (gl_TERMIOS_H): Adjust it on mingw.
47929         * modules/termios (Makefile.am): Substitute new key.
47930         * lib/termios.in.h (includes): Make include_next conditional.
47931         * doc/posix-headers/termios.texi (termios.h): Update
47932         documentation.
47933         Reported by Daniel P. Berrange.
47935 2010-10-13  Jim Meyering  <meyering@redhat.com>
47937         git-version-gen: don't require that .git/ be in the current dir
47938         * build-aux/git-version-gen: Adjust this script so that it works
47939         when run from any working directory beneath the top-level .git/-
47940         containing directory.  Inspired by a patch from Giuseppe Scrivano,
47941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
47943         test-select: avoid warn_unused_result warnings
47944         * tests/test-select.c: Include "macros.h".
47945         ASSERT that each call to read, write, and pipe succeeds.
47946         While not technically required, also check each "close".
47947         * modules/select-tests (Files): Add tests/macros.h.
47949         test-symlinkat: remove declaration of unused local
47950         * tests/test-symlinkat.c (main): Remove unused local, "buf".
47952         test-inttostr: avoid shadowing warnings
47953         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
47954         and use malloc rather than the stack for the same reason as
47955         mentioned in the comment justifying the other allocation.
47957 2010-10-11  Bruno Haible  <bruno@clisp.org>
47959         stdlib: Allow multiple gnulib generated replacements to coexist.
47960         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
47961         Reported by Sam Steingold <sds@gnu.org>.
47963 2010-10-11  Jim Meyering  <meyering@redhat.com>
47965         fix a documentation typo
47966         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
47968 2010-10-11  Eric Blake  <eblake@redhat.com>
47970         futimens: work around Solaris 11 bug
47971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
47972         * tests/test-futimens.h (test_futimens): Enhance, rather than
47973         weaken test.
47974         * doc/posix-functions/futimens.texi (futimens): Document the bug.
47976 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47978         Indentation.
47979         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
47980         higher-level operators more to the left.
47982 2010-10-11  Jim Meyering  <meyering@redhat.com>
47984         test-futimens: avoid unwarranted test failure on Solaris 5.11
47985         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
47986         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
47987         because it tries to dereference the NULL name argument.
47989 2010-10-11  Bruno Haible  <bruno@clisp.org>
47991         Indentation.
47992         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
47993         indentation.
47995 2010-10-11  Jim Meyering  <meyering@redhat.com>
47997         spawn.in.h: make indentation consistent with parentheses
47998         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
47999         Make indentation consistent with parentheses.
48001 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48003         Fix mismatched parens in previous commit
48004         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48005         parens.
48007 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48009         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48011         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48012         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48013         * lib/malloca.c: Include "verify.h".
48014         (verify1): Remove, replacing with a verify call.
48015         * lib/relocwrapper.c (verify1): Likewise.
48016         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48017         Likewise.
48018         * modules/malloca (Depends-on): Add 'verify'.
48019         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48020         * modules/vasnprintf (Depends-on): Add 'verify'.
48021         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48022         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48023         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48024         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48025         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48026         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48027         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48029         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48031         Formerly the style was sometimes 2*X - 1, because the C standard
48032         was wrongly thought to disallow ?: in integral constant expressions.
48033         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48034         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48036         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48037         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48038         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48039         verify that time_t cannot be floating.
48041 2010-10-08  Eric Blake  <eblake@redhat.com>
48043         time: enforce recent POSIX ruling that time_t is integral
48044         * lib/time.in.h (__time_t_must_be_integral): Detect any
48045         problematic systems, allowing the rest of gnulib to assume POSIX.
48047 2010-10-08  Jim Meyering  <meyering@redhat.com>
48049         fdopendir: fix a bug on systems lacking openat and /proc support
48050         OpenBSD 4.7 is one such system.  The most noticeable effect was
48051         failure of any application making nontrivial use of fts: rm, du,
48052         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48053           ./rm: traversal failed: `a': Bad file descriptor
48054         Debugging that, you see that even though FD 6 was closed just
48055         prior to the opendir call in fd_clone_opendir, its resulting
48056         dir->dd_fd was 8, rather than the expected value of 6:
48058         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48059         93                close (fd);
48060         (gdb) n
48061         94                dir = fd_clone_opendir (dupfd);
48062         (gdb) n
48063         95                saved_errno = errno;
48064         (gdb) p dir->dd_fd
48065         $11 = 8
48067         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48068         The problem is that on OpenBSD, fd_clone_opendir has to resort
48069         to using the old-style save/restore CWD mechanism, due to its
48070         lack of openat/proc support, and *that* would steal the FD (6)
48071         that opendir was supposed to use.
48073         The fix is to squirrel away the desired FD so that save_cwd uses a
48074         different one, and then free the dest FD right before calling opendir.
48075         That guarantees opendir will use the required file descriptor.
48077         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48079 2010-10-08  Bruno Haible  <bruno@clisp.org>
48081         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48082         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48084 2010-10-08  Bruno Haible  <bruno@clisp.org>
48086         nanosleep: Make replacement POSIX compliant.
48087         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48088         is out of range.
48089         Reported by Jim Meyering.
48091 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48093         bootstrap: add hook for altering gnulib.mk, for Bison
48094         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48095         the Bison bootstrapping process can rewrite file names and variables
48096         in this file before later parts of 'bootstrap' use the file.
48097         Bison wants to include lib/gnulib.mk from the top-level makefile,
48098         so it needs the file names in this file to be relative to the top
48099         level, not relative to lib; plus it needs variable names to be
48100         rewritten.
48101         (slurp): Use the new function.
48103         bootstrap: reformat for readability
48104         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48106 2010-10-08  Eric Blake  <eblake@redhat.com>
48108         docs: update cygwin progress
48109         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48110         1.7.7.
48111         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48112         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48113         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48114         * doc/posix-functions/carg.texi (carg): Likewise.
48115         * doc/posix-functions/cargf.texi (cargf): Likewise.
48116         * doc/posix-functions/casin.texi (casin): Likewise.
48117         * doc/posix-functions/casinf.texi (casinf): Likewise.
48118         * doc/posix-functions/casinh.texi (casinh): Likewise.
48119         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48120         * doc/posix-functions/catan.texi (catan): Likewise.
48121         * doc/posix-functions/catanf.texi (catanf): Likewise.
48122         * doc/posix-functions/catanh.texi (catanh): Likewise.
48123         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48124         * doc/posix-functions/ccos.texi (ccos): Likewise.
48125         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48126         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48127         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48128         * doc/posix-functions/cexp.texi (cexp): Likewise.
48129         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48130         * doc/posix-functions/cimag.texi (cimag): Likewise.
48131         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48132         * doc/posix-functions/clog.texi (clog): Likewise.
48133         * doc/posix-functions/clogf.texi (clogf): Likewise.
48134         * doc/posix-functions/conj.texi (conj): Likewise.
48135         * doc/posix-functions/conjf.texi (conjf): Likewise.
48136         * doc/posix-functions/cpow.texi (cpow): Likewise.
48137         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48138         * doc/posix-functions/cproj.texi (cproj): Likewise.
48139         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48140         * doc/posix-functions/creal.texi (creal): Likewise.
48141         * doc/posix-functions/crealf.texi (crealf): Likewise.
48142         * doc/posix-functions/csin.texi (csin): Likewise.
48143         * doc/posix-functions/csinf.texi (csinf): Likewise.
48144         * doc/posix-functions/csinh.texi (csinh): Likewise.
48145         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48146         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48147         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48148         * doc/posix-functions/ctan.texi (ctan): Likewise.
48149         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48150         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48151         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48152         * doc/posix-headers/complex.texi (complex.h): Likewise.
48154 2010-10-07  Jim Meyering  <meyering@redhat.com>
48156         parse-datetime: avoid compilation failure on OpenBSD 4.7
48157         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48158         This works around a compilation failure on OpenBSD 4.7:
48159         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48161 2010-10-07  Eric Blake  <eblake@redhat.com>
48163         docs: update cygwin progress
48164         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48165         1.7.6.
48166         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48167         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48168         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48169         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48170         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48171         Likewise.
48172         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48173         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48174         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48175         Likewise.
48176         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48177         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48178         Likewise.
48179         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48180         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48181         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48182         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48183         Likewise.
48184         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48185         Likewise.
48186         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48188         docs: update parse-datetime history
48189         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48190         documentation of this function's history and alternatives.
48192         cygwin: use more robust version check
48193         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48194         exclude an eventual cygwin 1.9.1.
48195         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48197         (gl_FUNC_STRCASESTR): Likewise.
48198         Reported by Bruno Haible.
48200 2010-10-06  Bruno Haible  <bruno@clisp.org>
48202         string, sys_select: Avoid #including large headers unless necessary.
48203         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48204         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48205         OSF/1, BeOS, Haiku.
48206         Reported by Jim Meyering.
48208 2010-10-05  Eric Blake  <eblake@redhat.com>
48210         memmem, strstr, strcasestr: fix bug with long periodic needle
48211         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48212         periodic needle having false positive.
48213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48214         and cygwin 1.7.7.
48215         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48217         (gl_FUNC_STRCASESTR): Likewise.
48218         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48219         * tests/test-memmem.c (main): Expose the bug.
48220         * tests/test-strcasestr.c (main): Likewise.
48221         * tests/test-strstr.c (main): Likewise.
48222         * tests/test-c-strcasestr.c (main): Likewise.
48223         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48224         * doc/posix-functions/strstr.texi (strstr): Likewise.
48225         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48226         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48228 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48230         parse-datetime: do some more renaming
48231         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48232         parse_datetime, not get_date.  Mention the renaming.
48233         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48234         in comments.
48235         * m4/bison.m4: Likewise.
48237 2010-10-05  Eric Blake  <eblake@redhat.com>
48239         parse-datetime: better name than get_date
48240         * NEWS: Reword the deprecation notice.
48241         * modules/get_date: Rename to modules/parse-datetime.
48242         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48243         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48244         * lib/get_date.y: Rename to lib/parse-datetime.y.
48245         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48246         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48247         * doc/getdate.texi: Provide fallback wrapper.
48248         * lib/getdate.h: Move guts, and wrap...
48249         * lib/parse-datetime.h: ...new file.
48250         * lib/parse-datetime.y (get_date): Rename...
48251         (parse_datetime): ...to this.
48252         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48253         (gl_PARSE_DATETIME): ...to this.
48254         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48255         documentation.
48256         * modules/getdate (Files): Provide fallback docs and header.
48257         (Notice, Depends-on): Update references.
48258         * tests/test-parse-datetime.c: Likewise.
48259         * DEPENDENCIES: Likewise.
48260         * MODULES.html.sh (Date and time <time.h>): Likewise.
48261         * doc/parse-datetime.texi (Date input formats)
48262         (Authors of parse_datetime): Likewise.
48263         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48264         (Include): Likewise.
48265         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48266         * gnulib-tool: Likewise.
48267         * m4/bison.m4 (gl_BISON): Likewise.
48268         Suggested by Bruno Haible.
48270 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48272         more ports to Solaris tr, which needs [] around ranges
48273         * gnulib-tool: Solaris tr needs [] around ranges.
48274         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48275         * tests/test-pipe-filter-gi1.c (main): Likewise.
48276         * tests/test-pipe-filter-ii1.c (main): Likewise.
48278 2010-10-05  Eric Blake  <eblake@redhat.com>
48280         bootstrap: fix Solaris regression
48281         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48282         around ranges.
48283         Reported by Pádraig Brady.
48285         bootstrap: work with pkg-config
48286         * build-aux/bootstrap (check_versions): Also transliterate - in
48287         prerequisite name.
48288         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48289         prerequisites that were already found, to avoid confusion.
48290         Reported by Justin Clift.
48292         faccessat: remove unused wrappers
48293         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48294         presence of these wrappers dragged in -lgen on Solaris.
48295         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48297 2010-10-05  Jim Meyering  <meyering@redhat.com>
48299         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48300         * Makefile (sc_pragma_columns): New syntax-check rule.
48302 2010-10-04  Bruno Haible  <bruno@clisp.org>
48304         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48305         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48306         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48307         Reported by Bruce Korb and Eric Blake.
48309 2010-10-04  Bruno Haible  <bruno@clisp.org>
48311         threadlib: Make option --with-libpth-prefix work.
48312         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48313         use $LIBPTH, not just -lpth.
48315 2010-10-04  Bruno Haible  <bruno@clisp.org>
48317         Avoid line length limitation from HP NonStop system header files.
48318         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48319         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48320         * lib/ctype.in.h: Likewise.
48321         * lib/dirent.in.h: Likewise.
48322         * lib/errno.in.h: Likewise.
48323         * lib/fcntl.in.h: Likewise.
48324         * lib/float.in.h: Likewise.
48325         * lib/getopt.in.h: Likewise.
48326         * lib/iconv.in.h: Likewise.
48327         * lib/inttypes.in.h: Likewise.
48328         * lib/langinfo.in.h: Likewise.
48329         * lib/locale.in.h: Likewise.
48330         * lib/math.in.h: Likewise.
48331         * lib/netdb.in.h: Likewise.
48332         * lib/netinet_in.in.h: Likewise.
48333         * lib/poll.in.h: Likewise.
48334         * lib/pthread.in.h: Likewise.
48335         * lib/pty.in.h: Likewise.
48336         * lib/sched.in.h: Likewise.
48337         * lib/se-selinux.in.h: Likewise.
48338         * lib/search.in.h: Likewise.
48339         * lib/signal.in.h: Likewise.
48340         * lib/spawn.in.h: Likewise.
48341         * lib/stdarg.in.h: Likewise.
48342         * lib/stddef.in.h: Likewise.
48343         * lib/stdint.in.h: Likewise.
48344         * lib/stdio.in.h: Likewise.
48345         * lib/stdlib.in.h: Likewise.
48346         * lib/string.in.h: Likewise.
48347         * lib/strings.in.h: Likewise.
48348         * lib/sys_file.in.h: Likewise.
48349         * lib/sys_ioctl.in.h: Likewise.
48350         * lib/sys_select.in.h: Likewise.
48351         * lib/sys_socket.in.h: Likewise.
48352         * lib/sys_stat.in.h: Likewise.
48353         * lib/sys_time.in.h: Likewise.
48354         * lib/sys_times.in.h: Likewise.
48355         * lib/sys_utsname.in.h: Likewise.
48356         * lib/sys_wait.in.h: Likewise.
48357         * lib/sysexits.in.h: Likewise.
48358         * lib/termios.in.h: Likewise.
48359         * lib/time.in.h: Likewise.
48360         * lib/unistd.in.h: Likewise.
48361         * lib/wchar.in.h: Likewise.
48362         * lib/wctype.in.h: Likewise.
48363         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48364         * modules/ctype (Makefile.am): Likewise.
48365         * modules/dirent (Makefile.am): Likewise.
48366         * modules/errno (Makefile.am): Likewise.
48367         * modules/fcntl-h (Makefile.am): Likewise.
48368         * modules/float (Makefile.am): Likewise.
48369         * modules/getopt-posix (Makefile.am): Likewise.
48370         * modules/iconv-h (Makefile.am): Likewise.
48371         * modules/inttypes (Makefile.am): Likewise.
48372         * modules/langinfo (Makefile.am): Likewise.
48373         * modules/locale (Makefile.am): Likewise.
48374         * modules/math (Makefile.am): Likewise.
48375         * modules/netdb (Makefile.am): Likewise.
48376         * modules/netinet_in (Makefile.am): Likewise.
48377         * modules/poll-h (Makefile.am): Likewise.
48378         * modules/pthread (Makefile.am): Likewise.
48379         * modules/pty (Makefile.am): Likewise.
48380         * modules/sched (Makefile.am): Likewise.
48381         * modules/search (Makefile.am): Likewise.
48382         * modules/selinux-h (Makefile.am): Likewise.
48383         * modules/signal (Makefile.am): Likewise.
48384         * modules/spawn (Makefile.am): Likewise.
48385         * modules/stdarg (Makefile.am): Likewise.
48386         * modules/stddef (Makefile.am): Likewise.
48387         * modules/stdint (Makefile.am): Likewise.
48388         * modules/stdio (Makefile.am): Likewise.
48389         * modules/stdlib (Makefile.am): Likewise.
48390         * modules/string (Makefile.am): Likewise.
48391         * modules/strings (Makefile.am): Likewise.
48392         * modules/sys_file (Makefile.am): Likewise.
48393         * modules/sys_ioctl (Makefile.am): Likewise.
48394         * modules/sys_select (Makefile.am): Likewise.
48395         * modules/sys_socket (Makefile.am): Likewise.
48396         * modules/sys_stat (Makefile.am): Likewise.
48397         * modules/sys_time (Makefile.am): Likewise.
48398         * modules/sys_times (Makefile.am): Likewise.
48399         * modules/sys_utsname (Makefile.am): Likewise.
48400         * modules/sys_wait (Makefile.am): Likewise.
48401         * modules/sysexits (Makefile.am): Likewise.
48402         * modules/termios (Makefile.am): Likewise.
48403         * modules/time (Makefile.am): Likewise.
48404         * modules/unistd (Makefile.am): Likewise.
48405         * modules/wchar (Makefile.am): Likewise.
48406         * modules/wctype (Makefile.am): Likewise.
48408 2010-10-04  Bruno Haible  <bruno@clisp.org>
48410         read-file tests: Avoid a test failure on NonStop Kernel.
48411         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48412         a regular file.
48413         Reported by Joachim Schmitz <schmitz@hp.com>.
48415 2010-10-03  Bruno Haible  <bruno@clisp.org>
48417         gnulib-tool: Fixes for --create-testdir with --libtool.
48418         * gnulib-tool (func_get_automake_snippet): Don't augment
48419         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48420         an executable.
48421         (func_create_testdir): Handle module 'alloca' like func_import.
48422         Reported by Bruce Korb <bruce.korb@gmail.com>.
48424 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48426         Avoid some lines longer than 80 characters.
48427         * lib/stdint.in.h: Break long comment lines.
48428         * lib/math.in.h: Likewise.
48429         (_GL_NUM_UINT_WORDS): New macro, for readability.
48430         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48431         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48432         * lib/stdlib.in.h: Likewise.
48433         * lib/spawn.in.h: Likewise.
48434         * lib/sys_socket.in.h: Update an URL.
48435         * lib/sys_stat.in.h: Break long line.
48437 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48439         Improve pmccabe2html.
48440         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48441         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48442         when the sources change. Remove the line in the HTML about "Used
48443         ranges" (which implied that there might be other unused ranges),
48444         rename "Resume" to "Summary" (easier to understand for more users).
48445         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48446         styles, and some unnecessary blank lines.
48448 2010-10-03  Bruno Haible  <bruno@clisp.org>
48449             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48451         acl: Add support for ACLs on NonStop Kernel.
48452         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48453         Check whether the function aclsort() exists.
48454         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48455         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48456         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48457         (acl_nontrivial [HAVE_ACLSORT]: New function.
48458         (file_has_acl): Implement for NonStop Kernel.
48459         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48460         (qset_acl): Implement for NonStop Kernel.
48461         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48462         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48463         (main): Implement for NonStop Kernel.
48464         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48465         Kernel. Handle this flavor.
48466         * tests/test-set-mode-acl.sh: Likewise.
48467         * tests/test-copy-acl.sh: Likewise.
48468         * tests/test-copy-file.sh: Likewise.
48470 2010-10-03  Bruno Haible  <bruno@clisp.org>
48472         Info about ACLs on NonStop Kernel.
48473         * doc/acl-resources.txt: Add info about NonStop Kernel.
48474         References by Joachim Schmitz <schmitz@hp.com>.
48476 2010-10-02  Bruno Haible  <bruno@clisp.org>
48478         Define missing EDQUOT on NonStop Kernel.
48479         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48480         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48482         missing.
48483         * doc/posix-headers/errno.texi: Mention the NSK bug.
48484         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48485         Reported by Joachim Schmitz <schmitz@hp.com>.
48487 2010-10-02  Bruno Haible  <bruno@clisp.org>
48489         Update doc for POSIX:2008.
48490         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48491         Update URL of POSIX specification.
48493 2010-10-02  Bruno Haible  <bruno@clisp.org>
48495         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48496         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48497         from gnulib, not from Automake.
48499 2010-10-02  Bruno Haible  <bruno@clisp.org>
48501         New module 'system-posix'.
48502         * modules/system-posix: New file.
48503         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48504         module is present.
48505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48506         GNULIB_SYSTEM_POSIX.
48507         * modules/stdlib (Depends-on): Remove sys_wait.
48508         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48509         * doc/posix-functions/system.texi: Mention the new module.
48510         * doc/posix-headers/stdlib.texi: Likewise.
48511         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48512         define test_sys_wait_macros to a no-op.
48513         Reported by Sam Steingold <sds@gnu.org>.
48515 2010-09-30  Bruno Haible  <bruno@clisp.org>
48517         More renaming from 'getdate' to 'get_date'.
48518         * doc/get_date.texi: Renamed from doc/getdate.texi.
48519         * modules/get_date (Files): Update.
48520         * MODULES.html.sh (Date and time <time.h>): Update.
48521         * DEPENDENCIES: Update.
48522         * gnulib-tool: Update comment.
48523         * m4/bison.m4 (gl_BISON): Likewise.
48524         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48526 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48528         bootstrap: support ACLOCAL_FLAGS during aclocal
48529         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48530         can add additional -I dir for third-party .m4 files.
48532 2010-09-30  Eric Blake  <eblake@redhat.com>
48534         bootstrap: use glibtoolize on MacOS
48535         * build-aux/bootstrap (check_versions): Convert libtool into
48536         libtoolize.
48537         (tool search): Move libtool check earlier, and look for
48538         glibtoolize for MacOS.
48539         (gnulib_tool_options): Auto-add --libtool when appropriate.
48540         Reported by Justin Clift.
48542         poll: fix typo that broke test on MacOS
48543         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48544         Reported by Justin Clift.
48546         getdate: rename to get_date
48547         Note: getdate.h is not renamed, to minimize client impact.
48548         * modules/getdate: Mark obsolete.  Move old contents...
48549         * modules/get_date: ...to new module name.
48550         * modules/getdate-tests: Move...
48551         * modules/get_date-tests: ...here.
48552         * m4/getdate.m4: Move...
48553         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48554         * lib/getdate.y: Move...
48555         * lib/get_date.y: ...here.
48556         * tests/test-getdate.c: Move...
48557         * tests/test-get_date.c: ...here.
48558         * doc/posix-functions/getdate.texi (getdate): Update name.
48559         * NEWS: Mention the change.
48561 2010-09-29  Bruno Haible  <bruno@clisp.org>
48563         Separate the module 'waitpid' from the module 'sys_wait'.
48564         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48565         present.
48566         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48567         gl_MODULE_INDICATOR_FOR_TESTS.
48568         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48569         * modules/sys_wait (Depends-on): Remove waitpid.
48570         (Makefile.am): Substitute GNULIB_WAITPID.
48571         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48572         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48573         signature only if the 'waitpid' module is present.
48574         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48575         * NEWS: Mention the change.
48576         * modules/grantpt (Depends-on): Add waitpid.
48577         * modules/wait-process (Depends-on): Likewise.
48579 2010-09-29  Bruno Haible  <bruno@clisp.org>
48581         More tests for module 'sys_wait'.
48582         * modules/sys_wait-c++-tests: New file.
48583         * tests/test-sys_wait-c++.cc: New file.
48584         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48585         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48587 2010-09-29  Bruno Haible  <bruno@clisp.org>
48589         New module 'waitpid'.
48590         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48591         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48592         Don't include <process.h>.
48593         (waitpid): Declare only, using modern idiom.
48594         * m4/waitpid.m4: New file.
48595         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48596         * modules/waitpid: New file.
48597         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48598         (Makefile.am): Update.
48599         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48601 2010-09-28  Bruno Haible  <bruno@clisp.org>
48603         poll: Assume ANSI C.
48604         * lib/poll.c (poll): Use an ANSI C declaration.
48606 2010-09-28  Bruno Haible  <bruno@clisp.org>
48608         poll-h: Create poll.h on all platforms.
48609         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48610         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48611         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48612         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48613         (gl_REPLACE_POLL_H): Don't set POLL_H.
48614         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48615         * modules/poll-h (Depends-on): Add include_next.
48616         (Makefile.am): Create poll.h unconditionally. Substitute also
48617         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48619 2010-09-28  Bruno Haible  <bruno@clisp.org>
48621         Tests for module 'poll-h'.
48622         * modules/poll-h-c++-tests: New file.
48623         * tests/test-poll-h-c++.cc: New file.
48625         Tests for module 'poll-h'.
48626         * modules/poll-h-tests: New file.
48627         * tests/test-poll-h.c: New file.
48629 2010-09-28  Bruno Haible  <bruno@clisp.org>
48631         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48632         * modules/poll-h (Depends-on): Add 'extensions'.
48634 2010-09-28  Bruno Haible  <bruno@clisp.org>
48636         New module 'poll-h'.
48637         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48638         (poll): Use modern idiom.
48639         * modules/poll-h: New file.
48640         * modules/poll (Files): Remove lib/poll.in.h.
48641         (Depends-on): Add poll-h.
48642         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48643         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48644         * m4/poll_h.m4: New file.
48645         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48646         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48647         and invoke gl_REPLACE_POLL_H.
48648         * lib/poll.c: Use common idiom.
48649         * tests/test-poll.c: Likewise.
48650         * doc/posix-headers/poll.texi: Mention the poll-h module.
48651         Suggested by Eric Blake.
48653 2010-09-26  Bruno Haible  <bruno@clisp.org>
48655         sys_wait: Implement WSTOPSIG.
48656         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48657         Reported by Simon Josefsson.
48659 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48661         stdlib, sys_wait: Avoid compilation error on mingw.
48662         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48664 2010-09-26  Bruno Haible  <bruno@clisp.org>
48666         stdlib tests: Avoid code duplication.
48667         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48668         * modules/sys_wait-tests (Files): Likewise.
48669         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48670         * tests/test-stdlib.c: Include test-sys_wait.h.
48671         (main): Invoke test_sys_wait_macros.
48672         * tests/test-sys_wait.c: Include test-sys_wait.h.
48673         (main): Invoke test_sys_wait_macros.
48675 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48677         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48678         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48679         sure Windows sockets are working before calling getaddrinfo.
48680         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48681         * doc/gnulib.texi (Windows sockets): Fix typo.
48683 2010-09-25  Bruno Haible  <bruno@clisp.org>
48685         Tests for module 'regex-quote'.
48686         * modules/regex-quote-tests: New file.
48687         * tests/test-regex-quote.c: New file.
48689         New module 'regex-quote'.
48690         * lib/regex-quote.h: New file.
48691         * lib/regex-quote.c: New file.
48692         * modules/regex-quote: New file.
48693         Suggested by Reuben Thomas <rrt@sc3d.org>.
48695 2010-09-24  Bruno Haible  <bruno@clisp.org>
48697         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48698         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48700 2010-09-23  Bruno Haible  <bruno@clisp.org>
48702         setenv: Relax license.
48703         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48704         Blake.
48705         Requested by Eric Blake.
48707 2010-09-22  Bruno Haible  <bruno@clisp.org>
48709         termios: Relax license.
48710         * modules/termios (License): Change to LGPLv2+.
48711         Requested by Eric Blake.
48713 2010-09-22  Bruno Haible  <bruno@clisp.org>
48715         threadlib: Allow the package to change the default to 'no'.
48716         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48717         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48718         Reported by Paul Eggert.
48720 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48721             Bruno Haible  <bruno@clisp.org>
48723         Fix endless loop in mbmemcasecoll.
48724         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48725         byte.
48726         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48728 2010-09-22  Bruno Haible  <bruno@clisp.org>
48730         Tests for module 'memcoll'.
48731         * modules/memcoll-tests: New file.
48732         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48734         memcoll, xmemcoll: Clarify size vs. length.
48735         * modules/memcoll.c (memcoll0): Clarify specification.
48736         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48737         passed to collate_error.
48739 2010-09-22  Bruno Haible  <bruno@clisp.org>
48741         Tests for module 'memcasecmp'.
48742         * modules/memcasecmp-tests: New file.
48743         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48745 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48747         * lib/pthread.in.h: Add split double-inclusion guard, and include
48748         system <pthread.h> if there is one.  Use @@-style as in other
48749         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48750         pthread.h doesn't.
48751         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48752         (pthread_mutexattr_settype, pthread_mutex_trylock):
48753         New static inline functions, if there's no system <pthread.h>.
48754         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48755         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48756         Approximate with mutexes if the system lacks spinlocks, as in
48757         MacOS.
48758         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48759         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48760         @@-style.  Check for spinlocks separately.
48761         (gl_PTHREAD_DEFAULTS): New macro.
48762         * modules/pthread: Redo to use a more typical style for in.h files.
48764 2010-09-21  Eric Blake  <eblake@redhat.com>
48766         net_if: enhance tests
48767         * tests/test-net_if.c (main): Move signature checks earlier.
48768         Print failures to stderr.
48769         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48770         Document the bug that we do not yet fix.
48772 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48774         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48775         about gnulib, not GSS.
48777 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48779         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48780         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48781         for Emacs.
48782         * build-aux/pmccabe2html: Make Makefile.am example code more
48783         cut-and-paste friendly.
48785 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48787         * tests/test-net_if.c: New file.
48788         * modules/net_if-tests: New file.
48790 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48792         pthread: add pthread_spin_destroy
48793         * lib/pthread.in.h (pthread_spin_destroy): New function.
48795 2010-09-19  Bruno Haible  <bruno@clisp.org>
48797         gnulib-tool: Fix --help output.
48798         * gnulib-tool (func_usage): Fix help message.
48799         Reported by Reuben Thomas <rrt@sc3d.org>.
48801 2010-09-18  Jim Meyering  <meyering@redhat.com>
48803         maint.mk: avoid unexpanded \n in two diagnostics
48804         * top/maint.mk (sc_prohibit_always_true_header_tests):
48805         Don't use a literal \n in a halt=... assignment.  It would not be
48806         expanded, and the two \n bytes would appear in the diagnostic output
48807         rather than the desired newline.  Use halt=$$(printf ... instead.
48808         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48810 2010-09-18  Bruno Haible  <bruno@clisp.org>
48812         netinet_in: Doc tweak.
48813         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48814         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48816 2010-09-18  Jim Meyering  <meyering@redhat.com>
48818         init.sh: correct an outdated comment
48819         * tests/init.sh (create_exe_shims_):  s/function/alias/
48821         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48822         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48823         a file named "*.exe" is removed between the glob expansion and the
48824         processing of that oddly named file.
48826 2010-09-17  Eric Blake  <eblake@redhat.com>
48828         mirbsd: add some more support
48829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48830         in BSD family.
48831         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48832         devices as OpenBSD.
48833         * m4/host-os.m4 (mirbsd): Add MirBSD.
48835         tests: fix unportable assumption on sys/wait.h
48836         * tests/test-sys_wait.c (main): Relax test.
48837         * tests/test-stdlib.c (main): Likewise.
48839         init.sh: accommodate directory with no .exes
48840         * tests/init.sh: Accomodate directory containing only scripts.
48842         tests: avoid compiler warning
48843         * tests/test-stdlib.c (main): Use the variable.
48845         fdutimens, fdutimensat: update signature, again
48846         * lib/utimens.h (gl_futimens): Delete, and move signature...
48847         (fdutimens): ...here.
48848         (fdutimensat): Rearrange signature.
48849         (lutimensat): Rename variable for clarity.
48850         * lib/fdutimensat.c (fdutimensat): Update signature.
48851         * lib/utimens.c (fdutimens): Likewise.
48852         (gl_futimens): Delete.
48853         (utimens, lutimens): Update callers.
48854         * lib/futimens.c (futimens): Likewise.
48855         * tests/test-fdutimensat.c: Likewise.
48856         * tests/test-utimens.c: Likewise.
48857         * tests/test-futimens.h: Update comment.
48858         * NEWS: Mention this.
48859         Suggested by Paul Eggert.
48861 2010-09-17  Bruno Haible  <bruno@clisp.org>
48863         Take over the maintenance of some older macros from Autoconf.
48864         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48865         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48866         GNU Autoconf.
48867         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48868         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48870 2010-09-17  Eric Blake  <eblake@redhat.com>
48872         fdutimensat: drop atflag validation
48873         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48874         with valid fd, to close a race scenario where futimens is
48875         unsupported and FILE was replaced by a symlink.
48876         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48877         accordingly.
48878         Suggested by Paul Eggert.
48880 2010-09-16  Bruno Haible  <bruno@clisp.org>
48882         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48883         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48885 2010-09-16  Bruno Haible  <bruno@clisp.org>
48887         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48888         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48889         login_tty exists.
48890         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48892 2010-09-16  Bruno Haible  <bruno@clisp.org>
48894         login_tty: Make the replacement code work on BSD systems.
48895         * lib/login_tty.c: Include <sys/ioctl.h>.
48896         (login_tty): Use ioctl TIOCSCTTY when available.
48897         * modules/login_tty (Depends-on): Add sys_ioctl.
48898         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48900 2010-09-16  Bruno Haible  <bruno@clisp.org>
48902         login_tty: Stricter unit test.
48903         * modules/login_tty-tests (Depends-on): Add tcgetsid.
48904         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
48905         and tcgetsid() after login_tty.
48906         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48908 2010-09-16  Bruno Haible  <bruno@clisp.org>
48910         New module 'tcgetsid'.
48911         * lib/tcgetsid.c: New file.
48912         * m4/tcgetsid.m4: New file.
48913         * modules/tcgetsid: New file.
48914         * modules/termios (Depends-on): Add c++defs, warn-on-use.
48915         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
48916         GNULIB_TCGETSID, HAVE_TCGETSID.
48917         * lib/termios.in.h: Include <sys/types.h>.
48918         (tcgetsid): New declaration.
48919         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
48920         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
48921         * doc/posix-functions/tcgetsid.texi: Mention the new module.
48922         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
48924 2010-09-16  Bruno Haible  <bruno@clisp.org>
48926         Tests for module 'termios'.
48927         * modules/termios-c++-tests: New file.
48928         * modules/termios-tests: New file.
48929         * tests/test-termios-c++.cc: New file.
48930         * tests/test-termios.c: New file.
48932         New module 'termios'.
48933         * modules/termios: New file.
48934         * lib/termios.in.h: New file.
48935         * m4/termios_h.m4: New file.
48936         * doc/posix-headers/termios.texi: Mention the new module.
48938 2010-09-16  Eric Blake  <eblake@redhat.com>
48940         fdutimensat: add an atflag parameter
48941         * lib/fdutimensat.c (fdutimensat): Add new parameter.
48942         * lib/utimens.h (fdutimensat): Update prototype.
48943         * tests/test-fdutimensat.c: Adjust test to match.
48944         * NEWS: Document the change.
48945         Suggested by Paul Eggert.
48947 2010-09-16  Bruno Haible  <bruno@clisp.org>
48949         Fix typos in comments.
48950         * lib/striconveh.h: Fix typo in comment.
48951         * lib/login_tty.c (login_tty): Likewise.
48953 2010-09-15  Bruno Haible  <bruno@clisp.org>
48955         stdlib: clarify MirBSD WEXITSTATUS bug
48956         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
48957         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48959 2010-09-15  Eric Blake  <eblake@redhat.com>
48961         stdlib: work around MirBSD WEXITSTATUS bug
48962         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
48963         * modules/stdlib (Depends-on): Add sys_wait.
48964         * tests/test-sys_wait.c (main): Enhance test.
48965         * tests/test-stdlib.c (main): Likewise.
48966         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
48968         docs: mention MacOS issue with WEXITSTATUS(constant)
48969         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
48970         issue.
48971         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48973         strnlen: add tests
48974         * modules/strnlen-tests: New file.
48975         * tests/test-strnlen.c: Likewise.
48977 2010-09-14  Bruno Haible  <bruno@clisp.org>
48979         unistr/base: Avoid link errors when module 'libunistring' is also used.
48980         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
48981         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
48982         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
48983         Declare also when HAVE_LIBUNISTRING is set.
48984         Reported by Pádraig Brady <P@draigbrady.com>.
48986 2010-09-14  Eric Blake  <eblake@redhat.com>
48988         test-rawmemchr: make more robust
48989         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
48990         (Depends-on, configure.ac): Add needed prerequisites to use it.
48991         * modules/memchr-tests (Files, Depends-on, configure.ac):
48992         Likewise, to avoid implicit reliance on memchr module prereqs.
48993         * tests/test-memchr.c (main): Ensure proper masking.
48994         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
48995         reads.
48997         memchr: detect glibc Alpha bug
48998         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
48999         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49000         Alpha.
49001         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49002         * tests/test-memchr.c (main): Enhance test.
49003         Reported by Nelson H. F. Beebe.
49005 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49007         fts, getcwd, glob: audit for dirfd returning -1
49008         * lib/fts.c (opendir): Remove #define; no longer used.
49009         (opendirat): New arg PDIR_FD.  All callers changed.
49010         (fts_build, _opendir2): Use new opendirat to avoid the need for
49011         dirfd, or for checking whether dirfd returns a negative value.
49012         Don't use opendir; always use openat followed by fdopendir.
49013         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49014         it.
49015         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49016         returns -1 here.
49017         * modules/fts (Depends-on): Remove dirfd.
49018         * modules/getcwd (Depends-on): Likewise.
49020 2010-09-13  Eric Blake  <eblake@redhat.com>
49022         float: fix broken MirBSD header
49023         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49024         * doc/posix-headers/float.texi (float.h): Document it.
49026 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49028         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49029         * lib/fts.c (opendirat): New arg extra_flags.
49030         (__opendir2): Use it to avoid following symlinks when opening
49031         a directory, if symlinks are not supposed to be followed.  See
49032         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49034         fdopendir: preserve argument fd before returning
49035         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49036         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49037         (fdopendir): Use them, arranging for FD to be open to the same
49038         directory that it was when it started.  (It might be temporarily
49039         closed while fdopendir is running, so this not thread- or
49040         signal-safe.)  Be careful to do the right thing even when file
49041         descriptors are scarce and dup fails with errno == EMFILE.  See
49042         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49044 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49046         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49047         * NEWS: Document change.
49048         * m4/regex.m4: Disable test for regoff_t size.
49050 2010-09-13  Jim Meyering  <meyering@redhat.com>
49052         fts: don't operate on an invalid file descriptor after failed dup
49053         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49054         negative file descriptor.
49056 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49058         savedir: add streamsavedir, deprecate fdsavedir
49059         * NEWS: Mention deprecation of fdsavedir.
49060         * lib/savedir.c (streamsavedir): New extern function, whose name
49061         ends in "savedir" to be consistent with the others.  This differs
49062         from savedirstream in that it doesn't close its argument.  The
49063         next version of GNU tar will use this instead of fdsavedir, to
49064         avoid some race conditions and conserve file descriptors.
49065         (savedirstream): Reimplement as a wrapper around streamsavedir.
49066         (fdsavedir): Add a comment deprecating this function.  As far as
49067         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49068         * lib/savedir.h (streamsavedir): New decl.
49069         (fdsavedir): Add a comment deprecating this.
49071 2010-09-10  Bruno Haible  <bruno@clisp.org>
49073         langinfo: Fix last commit.
49074         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49075         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49078 2010-09-10  Bruno Haible  <bruno@clisp.org>
49080         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49081         * lib/progreloc.c (O_EXEC): Define fallback.
49083 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49085         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49086         * NEWS: Document recent changes to fcntl-h.
49087         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49088         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49089         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49090         Similarly for O_SEARCH; this last was already true, but not documented.
49091         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49092         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49093         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49094         Likewise.
49095         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49096         is zero, not whether it is defined.
49097         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49098         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49099         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49101 2010-09-10  Bruno Haible  <bruno@clisp.org>
49103         langinfo, nl_langinfo: Fix for IRIX 5.3.
49104         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49105         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49106         HAVE_LANGINFO_YESEXPR.
49107         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49108         HAVE_LANGINFO_YESEXPR.
49109         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49110         HAVE_LANGINFO_T_FMT_AMPM is 0.
49111         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49112         HAVE_LANGINFO_YESEXPR is 0.
49113         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49114         NOEXPR.
49115         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49116         * doc/posix-functions/nl_langinfo.texi: Likewise.
49117         Reported by Eric Blake.
49119 2010-09-10  Bruno Haible  <bruno@clisp.org>
49121         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49122         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49123         on FreeBSD 8.0 and OpenBSD 4.6.
49124         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49125         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49126         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49127         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49128         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49129         ac_includes_default.
49130         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49132 2010-09-09  Eric Blake  <eblake@redhat.com>
49134         strsignal: work around NetBSD bug
49135         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49136         * lib/string.in.h (includes): Likewise.
49137         * doc/posix-functions/strsignal.texi (strsignal): Document the
49138         bug.
49139         Reported by Nelson H. F. Beebe.
49141         gnulib-tool: work with NetBSD /bin/sh
49142         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49143         (func_get_description, func_get_comment, func_get_status)
49144         (func_get_notice, func_get_applicability, func_get_filelist)
49145         (func_get_dependencies, func_get_autoconf_early_snippet)
49146         (func_get_autoconf_snippet, func_get_automake_snippet)
49147         (func_get_include_directive, func_get_link_directive)
49148         (func_get_license, func_get_maintainer, func_import): Avoid
49149         shell syntax errors from parsing syntax extensions.
49151 2010-09-09  Bruno Haible  <bruno@clisp.org>
49153         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49154         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49155         a reliable way to determine whether the 'alias' command works.
49157 2010-09-08  Jim Meyering  <meyering@redhat.com>
49159         init.sh: penalize a set-x-impaired shell; don't disqualify it
49160         * tests/init.sh: Too many shells corrupt application stderr when
49161         you set -x, so we can't afford to disqualify them, since at least
49162         on Irix-6.5, that would disqualify all bourne shells.
49163         Instead, use a two-pass approach.
49164         On the first pass, try to find a shell that meets the stricter
49165         condition that set -x does not corrupt stderr.
49166         If no shell meets the stricter condition, retest each candidate
49167         shell, but without that extra condition.  Finally, when
49168         VERBOSE=yes is requested and set -x might cause trouble, simply
49169         issue a warning and refrain from enabling debug output.
49171 2010-09-08  Eric Blake  <eblake@redhat.com>
49173         unsetenv: fix OpenBSD bug
49174         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49175         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49176         documentation.
49177         Reported by Jim Meyering.
49179         strtod: work around IRIX 6.5 bug
49180         * lib/strtod.c (strtod): Reparse number on shorter string if
49181         exponent parse was invalid.
49182         * tests/test-strtod.c (main): Add check for "0x1p 2".
49183         Reported by Tom G. Christensen.
49185         getopt: optimize previous patch
49186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49187         empty variable.  Speed up awk script.
49188         Reported by Paolo Bonzini.
49190 2010-09-08  Jim Meyering  <meyering@redhat.com>
49192         test.sh: disqualify shells for which set -x corrupts stderr
49193         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49194         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49195         appear in stderr output.  For example, this command:
49196             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49197         prints "P=1" on those two systems:
49199 2010-09-08  Bruno Haible  <bruno@clisp.org>
49201         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49202         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49203         commands, because some shells ignore redirections when there is an
49204         error in the command lookup.
49205         Reported by Eric Blake.
49207 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49209         * lib/regex.h: Fix a mention of `regex_compile' (should be
49210         `re_compile_pattern').
49211         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49212         (re_set_registers): Correct name of parameter in comment.
49214         * doc/regex.texi: Add documentation for missing syntax flags.
49215         Remove commented-out documentation of defunct syntax option
49216         RE_NO_EMPTY_ALTS.
49217         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49218         Add documentation of re_set_registers.
49219         Document trick to re-use a pattern buffer by setting fastmap manually.
49220         Update documentation of struct re_pattern_buffer per public members.
49221         Uncomment documentation of equivalence class operators and
49222         collating symbol operators, since they are now implemented,
49223         Explain leftmost-longest matching in relation to alternatives.
49224         Tidy documentation of substring matching.
49225         Remove POSIX documentation, which is done better in
49226         glibc, and refer the reader there. Keep BSD API documentation, as
49227         that is not readily available elsewhere.
49229 2010-09-07  Eric Blake  <eblake@redhat.com>
49231         getopt: handle POSIXLY_CORRECT set but not exported
49232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49233         export state of POSIXLY_CORRECT, due to bash set -o posix.
49234         Reported by Dustin J. Mitchell.
49236 2010-09-05  Bruno Haible  <bruno@clisp.org>
49238         gnulib-tool: Highlight the changed options.
49239         * gnulib-tool (func_usage): Display the --import, --add-import,
49240         --remove-import explanations in bold font.
49242 2010-09-06  Karl Berry  <karl@gnu.org>
49244         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49246 2010-09-05  Bruno Haible  <bruno@clisp.org>
49248         uniwidth/width: Update comment.
49249         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49250         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49252 2010-09-05  Bruno Haible  <bruno@clisp.org>
49254         isinf, isnan: Relax license.
49255         * modules/isinf (License): Change from GPL to LGPL, with consent from
49256         Ben Pfaff.
49257         * modules/isnan (License): Likewise.
49258         Requested by Ludovic Courtès.
49260 2010-09-04  Bruno Haible  <bruno@clisp.org>
49262         gnulib-tool: Help migration from --import to --add-import or --update.
49263         * gnulib-tool: Emit a verbose error message when --import is used
49264         without any module name.
49266 2010-09-04  Bruno Haible  <bruno@clisp.org>
49268         Update doc about gnulib-tool.
49269         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49270         'gnulib-tool --update' in more detail.
49271         Reported by Eric Blake.
49273 2010-09-04  Bruno Haible  <bruno@clisp.org>
49275         gnulib-tool: Change --import. New options --add/remove-import.
49276         * gnulib-tool: New options --add-import, --remove-import.
49277         (func_usage): Document them.
49278         (have_associative): Define always.
49279         (func_import): In import mode, don't merge the specified settings with
49280         the cached settings. Implement remove-import mode.
49281         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49282         Explain when to use them versus --import.
49283         (Simple update): Use --add-import instead of --import.
49284         * NEWS: Mention the change.
49286 2010-09-04  Bruno Haible  <bruno@clisp.org>
49288         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49289         separate gnulib.mk.
49291 2010-09-04  Bruno Haible  <bruno@clisp.org>
49293         gnulib-tool: Don't talk about CVS any more.
49294         * gnulib-tool (func_usage, func_import): Write "version control"
49295         instead of CVS.
49297 2010-09-04  Jim Meyering  <meyering@redhat.com>
49299         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49300         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49301         false positives (whose names may be ill-chosen) when searching
49302         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49303         would cause a false-positive.
49305         avoid coreutils "make distcheck" failure
49306         Coreutils tests with an absolute build directory name that contains
49307         a space.  Not quoting this directory name caused a failure.
49308         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49309         * tests/test-vc-list-files-cvs.sh: Likewise.
49311 2010-09-04  Bruno Haible  <bruno@clisp.org>
49313         gnulib-tool: Avoid error when run in a package without Makefile.am.
49314         * gnulib-tool: When collecting the m4dirs in a package that does not
49315         have a Makefile.am, eliminate those directories that contain no
49316         gnulib-cache.m4. Fix expression that counts these directories.
49318 2010-09-04  Bruno Haible  <bruno@clisp.org>
49320         update-copyright test: Improve output when perl is missing or too old.
49321         * tests/test-update-copyright.sh: Move test of Perl version down after
49322         the test whether Perl exists. Provide an explanation relating Perl's
49323         error message to Automake's SKIP: message.
49325 2010-09-04  Bruno Haible  <bruno@clisp.org>
49327         Don't augment PATH in TESTS_ENVIRONMENT.
49328         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49329         set abs_aux_dir instead of augmenting PATH.
49330         * modules/vc-list-files-tests (Makefile.am): Likewise.
49331         * tests/test-update-copyright.sh: Augment PATH here.
49332         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49333         path_prepend_.
49334         * tests/test-vc-list-files-git.sh: Likewise.
49336 2010-09-04  Jim Meyering  <meyering@redhat.com>
49338         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49339         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49341 2010-09-04  Bruno Haible  <bruno@clisp.org>
49343         strdup: Fix compilation error in C++ mode.
49344         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49345         the macro.
49347 2010-09-04  Bruno Haible  <bruno@clisp.org>
49349         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49350         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49351         macro into a function.
49352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49354 2010-09-04  Bruno Haible  <bruno@clisp.org>
49356         Set PATH_SEPARATOR the same way autoconf does.
49357         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49358         the value of PATH_SEPARATOR the same way autoconf-generated configure
49359         scripts do.
49360         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49361         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49363 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49365         Set PATH_SEPARATOR the same way autoconf does.
49366         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49367         the same way autoconf-generated configure scripts do.
49368         * posix-modules: Likewise.
49370 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49372         hash: fix safe_hasher const typo
49373         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49374         const; otherwise, there is a type error later.
49376 2010-09-02  Jim Meyering  <meyering@redhat.com>
49378         test-update-copyright.sh: require perl 5.8.0
49379         * tests/test-update-copyright.sh: Require 5.8.0,
49380         which Tom G. Christensen has confirmed is adequate,
49381         while 5.6.1 is not.
49383 2010-09-02  Eric Blake  <eblake@redhat.com>
49385         tests: init.sh improvements for re-exec'ing with zsh
49386         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49387         -vx through shell re-exec.
49388         Reported by Tom G. Christensen.
49390         wctype: fix typo in previous commit
49391         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49392         Reported by Ludovic Courtès.
49394 2010-09-02  Jim Meyering  <meyering@redhat.com>
49396         test-update-copyright.sh: skip test if Perl is too old
49397         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49398         Reported by Tom G. Christensen.
49400 2010-09-02  Bruno Haible  <bruno@clisp.org>
49402         wctype: Avoid compilation error on IRIX 6.5.30.
49403         * lib/wctype.in.h (iswblank): Declare with a replacement if
49404         REPLACE_ISWBLANK is set.
49405         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49406         declared. Set REPLACE_ISWBLANK.
49407         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49408         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49409         * doc/posix-headers/wctype.texi: Likewise.
49410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49412 2010-09-01  Bruno Haible  <bruno@clisp.org>
49414         New module 'socketlib'.
49415         * modules/socketlib: New file.
49416         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49417         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49418         * modules/sockets (Depends-on): Add socketlib.
49419         Suggested by Sam Steingold <sds@gnu.org>.
49421 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49423         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49425         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49426         when one needs search access to a directory but not read access.
49427         On systems where it is available, it works in some cases where
49428         O_RDONLY does not, namely on directories that are searchable but
49429         not readable, and which need only to be searchable.  If O_SEARCH
49430         is not available, fall back to the traditional method of using
49431         O_RDONLY.
49433         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49434         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49435         when opening a directory that needs only to be searchable.
49436         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49437         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49438         * lib/openat-proc.c (openat_proc_name): Likewise.
49439         * lib/openat.c (openat_needs_fchdir): Likewise.
49440         * lib/save-cwd.c (save_cwd): Likewise.
49441         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49443 2010-08-28  Bruno Haible  <bruno@clisp.org>
49445         New module 'host-cpu-c-abi'.
49446         * modules/host-cpu-c-abi: New file.
49447         * m4/host-cpu-c-abi.m4: New file, based on part of
49448         clisp/src/m4/general.m4.
49449         Requested by Sam Steingold <sds@gnu.org>.
49451 2010-08-31  Eric Blake  <eblake@redhat.com>
49452         and Jim Meyering  <meyering@redhat.com>
49454         hash: factor, and guard against misbehaving hasher function
49455         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49456         of table->hasher's return value.  Also protect against a hash value
49457         so large that adding it to table->bucket results in a NULL pointer.
49458         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49459         Use it in place of open-coded check-and-abort.
49461 2010-08-30  Bruno Haible  <bruno@clisp.org>
49463         hash: silence spurious clang warning
49464         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49465         Reported by Eric Blake.
49467 2010-08-30  Eric Blake  <eblake@redhat.com>
49469         strstr, memmem, strcasestr: avoid leaked shell message
49470         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49471         FreeBSD.
49472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49473         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49475         tests: silence clang warning
49476         * tests/test-malloca.c (do_allocation): Avoid dead store.
49478 2010-08-29  Bruno Haible  <bruno@clisp.org>
49480         gettext: Fix recent mistake.
49481         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49483 2010-08-29  Bruno Haible  <bruno@clisp.org>
49485         selinux-h: Offer a --without-selinux option.
49486         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49487         --without-selinux was specified, skip all tests and define
49488         HAVE_SELINUX_SELINUX_H to 0.
49489         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49490         set LIB_SELINUX to empty.
49491         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49492         gl_LIBSELINUX. If --without-selinux was specified, replace
49493         selinux/context.h.
49494         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49496 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49497             Bruno Haible  <bruno@clisp.org>
49499         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49500         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49501         of HAVE_REALLOC.
49502         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49503         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49504         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49505         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49507 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49508             Bruno Haible  <bruno@clisp.org>
49510         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49511         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49512         HAVE_CALLOC.
49513         * lib/xmalloc.c: Update accordingly.
49514         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49515         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49516         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49518 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49519             Bruno Haible  <bruno@clisp.org>
49521         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49522         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49523         HAVE_MALLOC.
49524         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49525         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49526         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49528 2010-08-29  Bruno Haible  <bruno@clisp.org>
49530         Update modules list.
49531         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49532         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49533         (String handling <string.h>): Add astrxfrm.
49534         (File system functions): Add readlinkat.
49536 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49538         Tests for module 'realloc-gnu'.
49539         * modules/realloc-gnu-tests: New file.
49540         * tests/test-realloc-gnu.c: New file.
49542         Tests for module 'calloc-gnu'.
49543         * modules/calloc-gnu-tests: New file.
49544         * tests/test-calloc-gnu.c: New file.
49546         Tests for module 'malloc-gnu'.
49547         * modules/malloc-gnu-tests: New file.
49548         * tests/test-malloc-gnu.c: New file.
49550 2010-08-28  Bruno Haible  <bruno@clisp.org>
49552         Rename module 'realloc' -> 'realloc-gnu'.
49553         * modules/realloc-gnu: New file, copied from modules/realloc.
49554         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49555         obsolete.
49556         * modules/mgetgroups (Depends-on): Update.
49557         * doc/posix-functions/realloc.texi: Update.
49558         * NEWS: Mention the change.
49560         Rename module 'calloc' -> 'calloc-gnu'.
49561         * modules/calloc-gnu: New file, copied from modules/calloc.
49562         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49563         obsolete.
49564         * doc/posix-functions/calloc.texi: Update.
49565         * NEWS: Mention the change.
49567         Rename module 'malloc' -> 'malloc-gnu'.
49568         * modules/malloc-gnu: New file, copied from modules/malloc.
49569         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49570         obsolete.
49571         * modules/argp (Depends-on): Update.
49572         * modules/regex (Depends-on): Update.
49573         * doc/posix-functions/malloc.texi: Update.
49574         * NEWS: Mention the change.
49576 2010-08-28  Eric Blake  <eblake@redhat.com>
49578         pread, pwrite: add missing dependency
49579         * modules/pread (Depends-on): Add extensions.
49580         * modules/pwrite (Depends-on): Likewise.
49582 2010-08-28  Bruno Haible  <bruno@clisp.org>
49584         unistr/u*-strchr: Fix tests dependencies.
49585         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49586         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49587         Reported by Ian Beckwith <ianb@erislabs.net>.
49589 2010-08-28  Bruno Haible  <bruno@clisp.org>
49591         read-file: Don't occupy too much unused memory.
49592         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49594 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49595             Eric Blake  <eblake@redhat.com>
49596             Bruno Haible  <bruno@clisp.org>
49598         read-file: Avoid memory reallocations with regular files.
49599         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49600         (fread_file): With regular files, use the remaining length as the
49601         initial buffer size.  Check against overflow.
49602         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49603         sys_stat.
49605 2010-08-28  Bruno Haible  <bruno@clisp.org>
49607         ftello: Relax license.
49608         * modules/ftello (License): Relax to LGPLv2+.
49609         Reported by Eric Blake.
49611 2010-08-28  Bruno Haible  <bruno@clisp.org>
49613         Avoid relocwrapper link errors due to gnulib replacement functions.
49614         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49615         function.
49616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49618 2010-08-28  Bruno Haible  <bruno@clisp.org>
49620         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49621         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49622         defined.
49623         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49624         Suggested by Eric Blake.
49626 2010-08-28  Bruno Haible  <bruno@clisp.org>
49628         sys_socket, netdb: Ensure socklen_t gets defined.
49629         * modules/sys_socket (Depends-on): Add socklen.
49630         * modules/netdb (Depends-on): Likewise.
49631         * modules/getaddrinfo (Depends-on): Remove socklen.
49632         * modules/getsockopt (Depends-on): Likewise.
49633         * modules/setsockopt (Depends-on): Likewise.
49634         * tests/test-sys_socket.c: Check that socklen_t is defined.
49635         * tests/test-netdb.c: Likewise.
49636         * m4/socklen.m4: Update comments.
49637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49639 2010-08-27  Eric Blake  <eblake@redhat.com>
49641         login_tty: add missing dependency
49642         * modules/login_tty (Depends-on): Add pty.
49644 2010-08-26  Eric Blake  <eblake@redhat.com>
49646         lib-symbol-versions: fix m4 quoting
49647         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49648         format for AC_LINK_IFELSE.
49650         glob: fix compile test
49651         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49653         btowc: fix missing file
49654         * modules/btowc (Files): Also ship locale-fr.m4.
49656         lseek: fix link test
49657         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49658         AC_LINK_IFELSE.
49660         include_next: silence autoconf 2.68 warning
49661         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49662         AC_COMPILE_IFELSE as special.
49663         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49664         autoconf < 2.68.
49666         acl: fix compilation test
49667         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49668         AC_COMPILE_IFELSE.
49670 2010-08-26  Bruno Haible  <bruno@clisp.org>
49672         Modernize AC_TRY_RUN invocations.
49673         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49674         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49675         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49676         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49677         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49678         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49679         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49681         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49682         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49684         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49685         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49686         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49688         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49689         gl_MBRLEN_NUL_RETVAL): Likewise.
49690         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49691         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49692         Likewise.
49693         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49694         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49695         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49696         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49697         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49698         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49699         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49700         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49701         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49702         Likewise.
49703         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49704         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49705         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49706         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49707         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49708         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49709         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49710         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49711         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49714 2010-08-26  Bruno Haible  <bruno@clisp.org>
49716         Modernize AC_TRY_LINK invocations.
49717         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49718         AC_TRY_LINK.
49719         * m4/argp.m4 (gl_ARGP): Likewise.
49720         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49721         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49722         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49723         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49724         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49725         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49726         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49727         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49728         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49729         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49730         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49731         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49732         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49733         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49734         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49735         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49736         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49737         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49738         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49739         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49740         Likewise.
49741         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49742         Likewise.
49743         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49744         Likewise.
49745         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49747         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49748         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49749         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49750         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49751         * m4/servent.m4 (gl_SERVENT): Likewise.
49752         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49753         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49754         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49755         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49756         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49757         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49759         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49760         * modules/tsearch-tests (configure.ac): Likewise.
49762 2010-08-26  Bruno Haible  <bruno@clisp.org>
49764         Modernize AC_TRY_COMPILE invocations.
49765         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49766         AC_TRY_COMPILE.
49767         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49768         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49769         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49770         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49771         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49772         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49773         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49774         * m4/lock.m4 (gl_LOCK): Likewise.
49775         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49776         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49777         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49779         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49780         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49781         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49782         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49783         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49784         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49785         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49786         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49787         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49788         extraneous semicolon.
49790 2010-08-26  Jim Meyering  <meyering@redhat.com>
49792         stat-time: relax license LGPL
49793         * modules/stat-time (License): Change from GPL to LGPL,
49794         with consent from all contributors, for use in libguile.
49795         Requested by Ludovic Courtès.
49797 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49799         poll: return immediately on POLLHUP.
49800         * lib/poll.c (poll): Always set timeout before wait_timeout is
49801         computed.
49803 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49805         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49806         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49807         rmdir ("dir/.//"), unlinkat.
49809 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49811         stdbool: avoid spurious failure with modern xlc
49812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49814 2010-08-24  Bruno Haible  <bruno@clisp.org>
49816         getloadavg: simplify code
49817         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49818         gl_have_func. Update comments.
49820 2010-08-24  Eric Blake  <eblake@redhat.com>
49822         getloadavg: don't define SVR4 on cygwin
49823         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49824         only define SVR4 when -lkvm is required.
49825         Reported by Yaakov Selkowitz.
49827 2010-08-24  Bruno Haible  <bruno@clisp.org>
49829         priv-set: fix comment
49830         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49832 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49834         priv-set: fix comments
49835         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49836         to match code, as suggested by David Bartley in:
49837         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49839 2010-08-23  Eric Blake  <eblake@redhat.com>
49841         stdbool: avoid rejecting clang
49842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49843         * tests/test-stdbool.c: Enable more tests if using the system
49844         <stdbool.h> instead of the gnulib replacement.
49845         (main): Move xlc bug test to a runtime test for all compilers.
49846         Reported by Anders Kaseorg.
49848         argz: fix shell quoting issue
49849         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49850         Reported by Charles Wilson.
49852 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49853             Erik Faye-Lund <kusmabite@gmail.com>
49855         poll, select: handle ERROR_BROKEN_PIPE.
49856         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49857         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49858         * lib/select.c (win32_compute_revents): Do not mark a pipe
49859         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49861 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49863         fts: allow compilation with C++
49864         * lib/fts_.h: Specify extern "C" linkage with C++.
49866 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49868         Fix gnulib-tool sed script de-commentation for AIX sed.
49869         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49870         sed.
49872 2010-08-17  Eric Blake  <eblake@redhat.com>
49874         test-stddef: test for (some) offsetof bugs
49875         * tests/test-stddef.c: Enhance test to ensure correct type of
49876         offsetof.
49877         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49878         that we are not fixing at this time.
49880 2010-08-15  Bruno Haible  <bruno@clisp.org>
49882         stpncpy: Allow stpncpy to be defined as a macro.
49883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49884         if it's already correctly declared.
49885         * lib/string.in.h (stpncpy): Undefine before redefining.
49886         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49888 2010-08-14  Bruno Haible  <bruno@clisp.org>
49890         Rename module 'memxfrm' to 'amemxfrm'.
49891         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49892         (amemxfrm): Renamed from memxfrm.
49893         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
49894         (amemxfrm): Renamed from memxfrm.
49895         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
49896         * NEWS: Mention the change.
49897         * MODULES.html.sh (String handling <string.h>): Update.
49898         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
49899         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
49900         * lib/unicase/u16-casexfrm.c: Likewise.
49901         * lib/unicase/u32-casexfrm.c: Likewise.
49902         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
49903         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
49904         * lib/uninorm/u16-normxfrm.c: Likewise.
49905         * lib/uninorm/u32-normxfrm.c: Likewise.
49906         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
49907         memxfrm.
49908         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
49909         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
49910         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
49911         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
49912         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
49913         Suggested by Paul Eggert.
49915 2010-08-14  Bruno Haible  <bruno@clisp.org>
49917         Tests for module 'astrxfrm'.
49918         * modules/astrxfrm-tests: New file.
49919         * tests/test-astrxfrm.c: New file.
49921         New module 'astrxfrm'.
49922         * lib/astrxfrm.h: New file.
49923         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
49924         * modules/astrxfrm: New file.
49926 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
49928         regex: Tweak doc.
49929         * doc/regex.texi (Overview): Don't mention regex.c.
49930         (GNU Regular Expression Compiling): Likewise.
49931         (Match-end-of-line Operator): Mention 'not_eol'.
49933 2010-08-14  Brian Gough  <bjg@gnu.org>
49934             Bruno Haible  <bruno@clisp.org>
49936         git-merge-changelog: add doc relating to use with bzr and hg.
49937         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
49939 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
49941         pthread: fix pthread.h creation for srcdir != builddir
49942         * modules/pthread (Makefile.am): Fix the rule to work also in a
49943         non-srcdir build.
49945 2010-08-13  Karl Berry  <karl@gnu.org>
49947         * doc/regex.texi (Predefined Syntaxes): @smallexample.
49948         * doc/posix-*/*: force line break before @url of POSIX
49949         specifications.
49950         Suggested by Werner Lemberg.
49952 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49954         strtod: fix const diagnostic
49955         * lib/strtod.c (strtod): Don't assign const char * to char *,
49956         as this elicits a warning from GCC when warnings are enabled.
49958 2010-08-10  Pádraig Brady  <P@draigbrady.com>
49959         and Eric Blake  <eblake@redhat.com>
49961         copy-acl: ignore ENOTSUP on HP-UX
49962         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
49963         so that it is available for HP-UX.
49964         * lib/copy-acl.c (qcopy_acl): Use it.
49965         Reported by Patrick M. Callahan.
49967 2010-08-10  Eric Blake  <eblake@redhat.com>
49969         open, chown: relax license
49970         * modules/open (License): Change to LGPLv2+, with consent by all
49971         authors, for use in augeas.
49972         * modules/chown (License): Likewise.
49973         * modules/lchown (Likewise): Likewise.
49974         Requested by Adam Stokes.
49976 2010-08-09  Karl Berry  <karl@gnu.org>
49978         * build-aux/ar-lib: new file, import from Automake.
49979         * config/srclist.txt: autocheck for updates.
49981 2010-08-09  Eric Blake  <eblake@redhat.com>
49983         readlinkat: adjust client modules
49984         * modules/areadlinkat (Depends-on): Use readlinkat, not
49985         symlinkat.
49986         * modules/areadlinkat-with-size (Depends-on): Likewise.
49988         mknod: be more vocal about danger of running tests as root
49989         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
49990         root, since that is just asking for problems.
49991         Suggested by Bruno Haible, based on a report by Rainer Tammer.
49993         readlinkat: split into its own module
49994         * modules/symlinkat: Split readlinkat...
49995         * modules/readlinkat: ...into separate module.
49996         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
49997         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
49998         * lib/symlinkat.c (readlinkat): Move...
49999         * lib/readlinkat.c: ...into new file.
50000         * modules/symlinkat-tests: Split readlinkat test...
50001         * modules/readlinkat-tests: ...into separate module.
50002         * tests/test-symlinkat.c: Split...
50003         * tests/test-readlinkat.c: ...into new file.
50004         * NEWS: Document the split.
50005         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50006         * lib/unistd.in.h (readlinkat): Likewise.
50007         Suggested by Bruno Haible.
50009 2010-08-08  Bruno Haible  <bruno@clisp.org>
50011         memxfrm: Speed up.
50012         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50013         that usually only one call to strxfrm is necessary for each string
50014         part.
50015         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50017 2010-08-07  Karl Berry  <karl@gnu.org>
50019         * doc/posix-headers/limits.texi,
50020         * doc/posix-functions/malloc.texi,
50021         * doc/posix-functions/strsignal.texi: missing @item.
50022         * doc/ld-version-script.texi: spurious leading i.
50023         * doc/regex.texi (Interval Operators): no commas inside @var.
50025 2010-08-01  Bruno Haible  <bruno@clisp.org>
50027         Integrate the regex documentation.
50028         * doc/gnulib.texi: Define 'cn' index.
50029         (Regular expressions): New a chapter that includes regex.texi and
50030         regexprops-generic.texi.
50031         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50032         syntax.
50034         Whitespace cleanup.
50035         * doc/regex.texi: Remove trailing spaces.
50037         Add regex documentation.
50038         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50039         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50040         Written by Kathy A. Hargreaves and Karl Berry.
50042 2010-08-01  Bruno Haible  <bruno@clisp.org>
50044         link: Update documentation.
50045         * doc/posix-functions/link.texi: Update regarding Solaris.
50047 2010-07-31  Bruno Haible  <bruno@clisp.org>
50049         Update modules list.
50050         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50051         (String handling <string.h>): Add memcmp2, memxfrm.
50052         (Container data structures): Add xlist, xsublist, xoset.
50053         (Core language properties): Add alignof, unused-parameter.
50054         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50055         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50056         (Unibyte characters <ctype.h>): New section.
50057         (String handling <string.h>): New section.
50058         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50059         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50060         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50061         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50062         tan, tanh, tanl, y0, y1, yn.
50063         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50064         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50065         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50066         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50067         unlockpt, vdprintf, vdprintf-posix.
50068         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50069         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50070         xconcat-filename.
50071         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50072         getdtablesize, pipe2, pipe2-safer.
50073         (Security): New section.
50074         (Networking functions): Add accept4.
50075         (Signal handling): Add sigpipe.
50076         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50077         mbmemcasecoll.
50078         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50079         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50080         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50081         pipe-filter-ii.
50082         (Misc): Add argp-version-etc, login_tty, parse-duration.
50084 2010-07-31  Bruno Haible  <bruno@clisp.org>
50086         Improve doc in MODULES.html.
50087         * modules/linkat (Description): Add the word "function".
50088         * modules/mkfifo (Description): Likewise.
50089         * modules/mknod (Description): Likewise.
50090         * modules/remove (Description): Likewise.
50091         * modules/renameat (Description): Likewise.
50092         * modules/stat (Description): Likewise.
50093         * modules/symlink (Description): Likewise.
50094         * modules/unlink (Description): Likewise.
50096 2010-07-31  Bruno Haible  <bruno@clisp.org>
50098         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50099         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50100         option --enable/disable-c++ instead of --enable/disable-cxx.
50101         * NEWS: Mention the change.
50103 2010-07-31  Bruno Haible  <bruno@clisp.org>
50105         readlink, areadlink: Relax test a bit.
50106         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50107         alternative to ENOTDIR.
50108         * tests/test-areadlink.h (test_areadlink): Likewise.
50109         Reported by Rainer Tammer.
50111 2010-07-31  Bruno Haible  <bruno@clisp.org>
50113         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50114         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50115         character, perform the search using U_STRCHR.
50116         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50117         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50118         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50119         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50120         Suggested by Paolo Bonzini.
50122 2010-07-31  Bruno Haible  <bruno@clisp.org>
50124         unistr/u*-strstr: Fix dependencies.
50125         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50126         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50127         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50129 2010-07-31  Bruno Haible  <bruno@clisp.org>
50131         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50132         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50133         the beginning of the loop.
50134         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50135         cases in 'switch' statement.
50137         unistr/u8-strchr: Fix several bugs.
50138         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50139         the string. When not found, return NULL, not a pointer near the end.
50141         More tests for unistr/u8-strchr.
50142         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50143         that the function does not read past the first occurrence of the byte
50144         being searched.
50145         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50146         * tests/unistr/test-u16-strchr.c (main): New function.
50147         * tests/unistr/test-u32-strchr.c (main): New function.
50149 2010-07-31  Bruno Haible  <bruno@clisp.org>
50151         posix-modules: Ignore backup files of documentation files.
50152         * posix-modules: grep only through files named *.texi.
50154 2010-07-31  Bruno Haible  <bruno@clisp.org>
50156         symlinkat: Fix documentation.
50157         * doc/posix-functions/readlinkat.texi: Fix module name.
50159 2010-07-31  Bruno Haible  <bruno@clisp.org>
50161         fchownat: Replace also when chown has the trailing slash bug.
50162         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50163         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50164         introduced on 2010-04-10.
50165         Reported by Rainer Tammer.
50167 2010-07-31  Bruno Haible  <bruno@clisp.org>
50169         linkat: Work around AIX 7.1 bug.
50170         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50171         whether linkat handles trailing slash correctly. If not, replace linkat
50172         and define LINKAT_TRAILING_SLASH_BUG.
50173         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50174         check whether (fd1,file1) points to a directory if file1 or file2 ends
50175         in a slash. Code taken from lib/link.c.
50176         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50177         Reported by Rainer Tammer.
50179 2010-07-31  Bruno Haible  <bruno@clisp.org>
50181         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50182         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50183         This disables an xlc optimization that was causing wrong test results.
50184         Reported by Rainer Tammer.
50186 2010-07-31  Bruno Haible  <bruno@clisp.org>
50188         iconv: Work around AIX 6.1..7.1 bug.
50189         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50190         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50191         cross-compiling, guess no on all versions of AIX.
50192         Reported by Rainer Tammer.
50194 2010-07-31  Bruno Haible  <bruno@clisp.org>
50196         readlink: Relax test a bit.
50197         * tests/test-readlink.h (test_readlink): Allow different errno value
50198         when readlink is called with a file name that ends in / and refers to
50199         a file.
50200         Suggested by Eric Blake.
50201         Reported by Rainer Tammer.
50203 2010-07-31  Bruno Haible  <bruno@clisp.org>
50205         copysign: Does not require -lm on glibc systems.
50206         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50207         gl_COMMON_DOUBLE_MATHFUNC.
50208         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50210 2010-07-31  Bruno Haible  <bruno@clisp.org>
50212         duplocale: Work around AIX 7.1 bug.
50213         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50214         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50215         * lib/duplocale.c (rpl_duplocale): Update comment.
50216         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50217         Reported by Rainer Tammer.
50219 2010-07-30  Bruno Haible  <bruno@clisp.org>
50221         dirfd: Avoid link error on AIX 7.1.
50222         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50223         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50224         exist, set REPLACE_DIRFD.
50225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50226         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50227         * doc/posix-functions/dirfd.texi: Update.
50228         Reported by Rainer Tammer.
50230 2010-07-30  Eric Blake  <eblake@redhat.com>
50232         strtod: next round of AIX fixes
50233         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50234         exponent.
50235         * tests/test-strtod.c (main): Enhance tests.
50236         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50237         Reported by Rainer Tammer.
50239         futimens: fix configure check
50240         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50241         Reported by Bruno Haible.
50243 2010-07-30  Bruno Haible  <bruno@clisp.org>
50245         getline: Update regarding AIX.
50246         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50247         Reported by Rainer Tammer.
50249 2010-07-30  Bruno Haible  <bruno@clisp.org>
50251         wcwidth: Drop replacement on AIX 7.
50252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50253         AIX 7.
50254         Reported by Rainer Tammer.
50256 2010-07-30  Bruno Haible  <bruno@clisp.org>
50258         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50259         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50260         a 'char *'.
50261         Reported by Rainer Tammer.
50263 2010-07-30  Bruno Haible  <bruno@clisp.org>
50265         unlink: Update regarding AIX.
50266         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50267         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50268         Reported by Rainer Tammer.
50270 2010-07-30  Bruno Haible  <bruno@clisp.org>
50272         symlink: Update regarding AIX.
50273         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50274         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50275         Reported by Rainer Tammer.
50277 2010-07-30  Bruno Haible  <bruno@clisp.org>
50279         strndup: Update regarding AIX.
50280         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50281         AIX 7.
50282         Reported by Rainer Tammer.
50284 2010-07-30  Bruno Haible  <bruno@clisp.org>
50286         stat: Update regarding AIX.
50287         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50288         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50289         Reported by Rainer Tammer.
50291 2010-07-30  Bruno Haible  <bruno@clisp.org>
50293         truncl: Fix autoconf test.
50294         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50295         whether truncl works.
50296         Reported by Rainer Tammer.
50298 2010-07-30  Bruno Haible  <bruno@clisp.org>
50300         round: Update regarding AIX.
50301         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50302         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50303         Reported by Rainer Tammer.
50305 2010-07-30  Bruno Haible  <bruno@clisp.org>
50307         rename: Update regarding AIX.
50308         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50309         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50310         Reported by Rainer Tammer.
50312 2010-07-30  Bruno Haible  <bruno@clisp.org>
50314         printf.m4: Update regarding AIX.
50315         * m4/printf.m4: Update comments regarding AIX.
50316         Reported by Rainer Tammer.
50318 2010-07-30  Bruno Haible  <bruno@clisp.org>
50320         iconv: Update regarding AIX.
50321         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50322         AIX 7.
50323         Reported by Rainer Tammer.
50325 2010-07-30  Bruno Haible  <bruno@clisp.org>
50327         getopt: Update regarding AIX.
50328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50329         no on AIX.
50330         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50331         Reported by Rainer Tammer.
50333 2010-07-30  Bruno Haible  <bruno@clisp.org>
50335         ldexpl; Update regarding AIX.
50336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50337         on AIX 7.
50338         Reported by Rainer Tammer.
50340 2010-07-30  Bruno Haible  <bruno@clisp.org>
50342         frexpl: Update regarding AIX.
50343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50344         on AIX 7.
50345         Reported by Rainer Tammer.
50347 2010-07-30  Bruno Haible  <bruno@clisp.org>
50349         open, fopen: Update regarding AIX.
50350         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50351         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50352         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50353         * doc/posix-functions/fopen.texi: Likewise.
50354         Reported by Rainer Tammer.
50356 2010-07-30  Bruno Haible  <bruno@clisp.org>
50358         chown: Update doc regarding AIX.
50359         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50360         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50361         Reported by Rainer Tammer.
50363 2010-07-30  Eric Blake  <eblake@redhat.com>
50365         strtod: fix bug in replacement function on AIX
50366         * lib/strtod.c (strtod): Special case broken "0x" parse in
50367         underlying strtod.
50368         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50369         * doc/posix-functions/strtod.texi (strtod): Likewise.
50370         Reported by Rainer Tammer.
50372 2010-07-30  Bruno Haible  <bruno@clisp.org>
50374         mbrlen: Fix cross-compilation guess for AIX.
50375         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50376         guess. Leftover from 2008-12-22.
50378 2010-07-30  Bruno Haible  <bruno@clisp.org>
50380         mbrtowc: Fix cross-compilation guess for AIX.
50381         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50382         guess. Leftover from 2008-12-21.
50384 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50386         init.sh: work around trap limitation of some shells
50387         * tests/init.sh (setup_): Move exit trap outside of shell function.
50389 2010-07-29  Eric Blake  <eblake@redhat.com>
50391         strtod: aid debugging
50392         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50393         understanding why strtod is rejected.
50395 2010-07-28  Bruno Haible  <bruno@clisp.org>
50397         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50398         * lib/unistr/u8-chr.c: Include <string.h>.
50399         * tests/unistr/test-u8-chr.c: Likewise.
50400         * tests/unistr/test-u16-chr.c: Likewise.
50401         * tests/unistr/test-u32-chr.c: Likewise.
50402         * tests/unistr/test-u8-strchr.c: Likewise.
50403         * tests/unistr/test-u16-strchr.c: Likewise.
50404         * tests/unistr/test-u32-strchr.c: Likewise.
50405         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50406         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50407         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50408         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50410 2010-07-28  Bruno Haible  <bruno@clisp.org>
50412         Use spaces for indentation, not tabs.
50413         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50415 2010-07-27  Bruno Haible  <bruno@clisp.org>
50417         mbspcasecmp: Fix function specification.
50418         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50419         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50420         Reported by Eric Blake <eblake@redhat.com>.
50422 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50424         timespec: use cast and not conditional, as truncation isn't possible
50425         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50426         instead of a conditional.  Comment about the situation in more detail.
50427         This undoes most of the 2009-10-29 patch.
50429 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50431         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50432         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50433         * lib/unistr/u8-strchr.c: Likewise.
50434         * modules/unistr/u8-chr: Depend on memchr.
50436         unistr/u*-strchr: add tests
50437         * modules/unistr/u8-strchr-tests: New file.
50438         * modules/unistr/u16-strchr-tests: New file.
50439         * modules/unistr/u32-strchr-tests: New file.
50440         * tests/unistr/test-strchr.h: New file.
50441         * tests/unistr/test-u8-strchr.c: New file.
50442         * tests/unistr/test-u16-strchr.c: New file.
50443         * tests/unistr/test-u32-strchr.c: New file.
50445         unistr/u*-chr: test multibyte sequences more
50446         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50447         test vector.
50448         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50449         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50450         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50452         unistr/u*-chr: test multibyte sequences
50453         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50455         unistr/u*-chr: prepare for multibyte tests
50456         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50457         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50458         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50459         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50460         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50461         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50463 2010-07-18  Bruno Haible  <bruno@clisp.org>
50465         unistr/u8-strchr: Optimize non-ASCII argument case.
50466         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50467         because the first byte often matches anyway.
50468         Reported by Pádraig Brady <P@draigbrady.com>.
50470 2010-07-15  Karl Berry  <karl@gnu.org>
50472         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50474 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50476         getcwd: on Solaris, work better if ancestors are inaccessible
50477         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50478         buffer and size, try again with a large buffer.  This works better
50479         on Solaris, since its getcwd succeeds even if the path to the root
50480         is inaccessible, and this is helpful in common cases such as .zfs
50481         hidden directories.  Problem reported by J Chapman Flack in
50482         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50483         Use system getcwd if it's declared, not merely if it's partly
50484         working; use the partly-working test only to avoid needless effort
50485         if the system getcwd fails.
50486         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50487         comment that was already obsolete and is now even more obsolete.
50488         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50489         now might call strdup.
50491 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50493         pthread: Add enough so that coreutils/src/sort.c compiles.
50494         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50495         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50496         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50497         Include <sys/types.h>, in case it defines pthread_t.
50498         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50499         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50500         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50501         (pthread_rwlockattr_t, pthread_spinlock_t):
50502         New typedefs, if HAVE_PTHREAD_T is not defined.
50503         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50504         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50505         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50506         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50507         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50508         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50509         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50510         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50511         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50512         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50513         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50514         New macros.
50515         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50516         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50517         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50518         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50519         (pthread_spin_unlock): New dummy functions.
50520         (pthread_create): Return EAGAIN; don't set errno.
50521         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50522         require AC_C_INLINE.
50523         * modules/pthread (Depends-on): Add sched, time.
50524         (pthread.h): Use AM_V_GEN.
50526 2010-07-13  Bruno Haible  <bruno@clisp.org>
50528         striconveh: Don't malloc memory if the result buffer is sufficient.
50529         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50530         buffer if its size is sufficient.
50531         Reported by Ludovic Courtès <ludo@gnu.org>.
50533 2010-07-13  Bruno Haible  <bruno@clisp.org>
50535         strtod: Add safety check.
50536         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50538 2010-07-12  Bruno Haible  <bruno@clisp.org>
50540         Unify tests that set gl_cv_func_ldexpl_no_libm.
50541         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50542         gl_FUNC_LDEXPL.
50543         (gl_FUNC_LDEXPL): Invoke it.
50544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50546 2010-07-12  Bruno Haible  <bruno@clisp.org>
50548         Unify tests that set gl_cv_func_ldexp_no_libm.
50549         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50550         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50551         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50552         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50553         * modules/strtod (Files): Add m4/ldexp.m4.
50555 2010-07-12  Bruno Haible  <bruno@clisp.org>
50557         Unify tests that set gl_cv_func_frexpl_no_libm.
50558         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50559         gl_FUNC_FREXPL_NO_LIBM.
50560         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50563 2010-07-12  Bruno Haible  <bruno@clisp.org>
50565         Unify tests that set gl_cv_func_frexp_no_libm.
50566         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50567         gl_FUNC_FREXP_NO_LIBM.
50568         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50569         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50571 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50573         memcoll: clarify sizes versus lengths, document better, and tweak perf
50574         * lib/memcoll.c (strcoll_loop, memcoll0):
50575         Improve quality of descriptive comments.  Name variables
50576         consistently as to whether they are lengths (which do not include
50577         terminating null) versus sizes (which do).
50578         * lib/xmemcoll.c (xmemcoll0): Likewise.
50579         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50580         returned when s1size == 0; this is easier to compile and saves
50581         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50583 2010-07-12  Bruno Haible  <bruno@clisp.org>
50585         Tests for module '_Exit'.
50586         * modules/_Exit-tests: New file.
50587         * tests/test-_Exit.sh: New file.
50588         * tests/test-_Exit.c: New file.
50590         New module '_Exit'.
50591         * lib/stdlib.in.h (__attribute__): New macro.
50592         (_Exit): New declaration.
50593         * lib/_Exit.c: New file.
50594         * m4/_Exit.m4: New file.
50595         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50596         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50597         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50598         * modules/_Exit: New file.
50599         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50600         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50602 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50604         strtod: make it more-accurate typically, and don't require libm
50605         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50606         Include limits.h.  Don't include string.h.
50607         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50608         (locale_isspace): New function, so that no casts are needed to
50609         check whether *s is a space.
50610         (ldexp): Provide an unused dummy if not available.
50611         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50612         (strtod): Use them.  This implementation prefers to use the
50613         underlying strtod if available, falling back on our own code
50614         only to fix known bugs.  This is more likely to produce an
50615         accurate result.  Also, it avoids the use of libm functions.
50616         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50617         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50618         was absent, but it caused a test failure with coreutils.
50619         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50620         with libm.
50621         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50622         * modules/strtod-tests (Makefile.am): Likewise.
50624 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50625             Bruno Haible  <bruno@clisp.org>
50627         unistr/u8-strchr: Optimize ASCII argument case.
50628         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50630 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50632         (x)memcoll: minor tweaks
50633         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50634         is after the type that it qualifies.
50635         (memcoll0): Likewise.
50636         * lib/memcoll.h (memcoll0): Likewise.
50637         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50638         * lib/xmemcoll.h (xmemcoll0): Likewise.
50639         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50640         differs from memcoll in that the NUL byte is part of the argument.
50641         Omit the abort-checks, as performance is a real issue here.  Plus,
50642         the checks were wrong anyway (an off-by-one error).  Omit local
50643         variable 'diff', as it's a bit clearer that way.
50644         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50645         no longer needed.
50647 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50649         (x)memcoll: speedup when input is known to be NUL delimited
50650         * lib/memcoll.c: Include stdlib.
50651         (memcoll0): New function.
50652         (strcoll_loop): New function, refactored for use in both memcoll
50653         and memcoll0.
50654         * lib/memcoll.h (memcoll0): Add prototype.
50655         * lib/xmemcoll.c (xmemcoll0): New function.
50656         (collate_error): New function, refactored for use in both xmemcoll
50657         and xmemcoll0.
50658         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50659         * m4/memcoll.m4: add inline invocation.
50661 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50663         * build-aux/bootstrap: Remove any local translations
50664         from the translation project synchronization directory,
50665         so that local only translations are not distributed.
50667 2010-07-04  Bruno Haible  <bruno@clisp.org>
50669         fsusage: Clarify which code applies to which platforms.
50670         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50671         platform.
50672         * lib/fsusage.c (get_fs_usage): Likewise.
50674 2010-07-04  Bruno Haible  <bruno@clisp.org>
50676         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50677         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50678         Reported by Martin Lambers <marlam@marlam.de>.
50680 2010-07-04  Jim Meyering  <meyering@redhat.com>
50682         hash: once again explicitly disallow insertion of NULL
50683         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50684         inserting a NULL pointer cannot work with these functions.
50685         Add a comment with details.
50686         This reverts part of the 2010-07-01 commit, 5bef1a35
50687         "hash: extend module to deal with non-pointer keys".
50689 2010-07-01  Bruno Haible  <bruno@clisp.org>
50691         stdbool: Update doc.
50692         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50693         Info from Christian Weisgerber <naddy@mips.inka.de>.
50695 2010-07-01  Jim Meyering  <meyering@redhat.com>
50697         hash: extend module to deal with non-pointer keys
50698         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50699         but that allows insertion of non-pointer entries.
50700         Do not disallow an ENTRY value of NULL.
50701         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50702         * lib/hash.h (hash_insert0): Declare.
50704 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50706         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50707         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50708         not present (i.e. with autoconf 2.59 and when using gettextize, not
50709         gnulib), require AC_GNU_SOURCE instead.
50711 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50713         idpriv-drop: Fix tests.
50714         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50715         not to the test-idpriv-droptemp program.
50717 2010-06-29  Bruno Haible  <bruno@clisp.org>
50719         string: Fix syntax error with g++ 2.96.
50720         * lib/string.in.h (__pure__): Remove definition.
50721         (_GL_ATTRIBUTE_PURE): New macro.
50722         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50723         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50724         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50726 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50728         unitypes: Fix bug introduced on 2010-05-18.
50729         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50731 2010-06-22  Eric Blake  <eblake@redhat.com>
50733         memmem: slight optimization
50734         * lib/str-two-way.h (critical_factorization): Update comments.
50735         Reduce work during factorization phase.
50736         Reported by Carlos Bueno <carlos@bueno.org>.
50738 2010-06-21  Bruno Haible  <bruno@clisp.org>
50740         Fix HAVE_CALLOC_POSIX misnomer.
50741         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50742         !HAVE_CALLOC_POSIX.
50743         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50744         HAVE_CALLOC_POSIX.
50745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50746         instead of HAVE_CALLOC_POSIX.
50747         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50748         HAVE_CALLOC_POSIX.
50750         Use modern idiom for calloc() replacement.
50751         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50752         AC_FUNC_CALLOC.
50753         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50754         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50755         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50756         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50757         (gl_REPLACE_CALLOC): New macro.
50759 2010-06-21  Bruno Haible  <bruno@clisp.org>
50761         Fix HAVE_REALLOC_POSIX misnomer.
50762         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50763         !HAVE_REALLOC_POSIX.
50764         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50765         HAVE_REALLOC_POSIX.
50766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50767         instead of HAVE_REALLOC_POSIX.
50768         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50769         HAVE_REALLOC_POSIX.
50771         Use modern idiom for realloc() replacement.
50772         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50773         AC_FUNC_REALLOC.
50774         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50775         Autoconf's AC_FUNC_REALLOC.
50776         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50777         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50778         (gl_REPLACE_REALLOC): New macro.
50779         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50781 2010-06-21  Bruno Haible  <bruno@clisp.org>
50783         Fix HAVE_MALLOC_POSIX misnomer.
50784         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50785         !HAVE_MALLOC_POSIX.
50786         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50787         HAVE_MALLOC_POSIX.
50788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50789         instead of HAVE_MALLOC_POSIX.
50790         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50791         HAVE_MALLOC_POSIX.
50793         Use modern idiom for malloc() replacement.
50794         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50795         AC_FUNC_MALLOC.
50796         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50797         Autoconf's AC_FUNC_MALLOC.
50798         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50799         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50800         (gl_REPLACE_MALLOC): New macro.
50801         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50803 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50805         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50806         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50807         This macro takes 3 arguments, not 4.
50809 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50811         ipv6: fix detection under mingw
50812         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50813         in6_addr.
50815 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50817         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50818         that strtod() works when cross-compiling to a glibc version known
50819         to work.
50821 2010-06-15  Bruno Haible  <bruno@clisp.org>
50823         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50825 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50827         select: Correct timeout.
50828         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50830 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50832         git-version-gen: init shell var to avoid env var influence
50833         * build-aux/git-version-gen (v): Init shell var to empty.
50835 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50837         priv-set: Don't assume that priv.h exists merely because getppriv does.
50838         See Jan Andersen's bug report about AIX 5L in
50839         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50840         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50841         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50842         * lib/priv-set.h: Likewise.
50843         * tests/test-priv-set.c: Likewise.
50845 2010-06-13  Bruno Haible  <bruno@clisp.org>
50847         relocatable: Make it easier to test whether to install wrappers.
50848         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50849         RELOCATABLE_VIA_WRAPPER.
50851 2010-06-13  Bruno Haible  <bruno@clisp.org>
50853         gnulib-tool: Display specified modules and dependencies differently.
50854         * gnulib-tool (func_show_module_list): New function.
50855         (func_import, func_create_testdir): Invoke it.
50856         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50858 2010-06-13  Bruno Haible  <bruno@clisp.org>
50860         gnulib-tool: Align code of func_import and func_create_testdir.
50861         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50862         specified_modules.
50864 2010-06-12  Jim Meyering  <meyering@redhat.com>
50866         test-inttostr: avoid spurious failure on Solaris 9
50867         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50868         to accept "%ju".  Reported by Bruno Haible.
50870 2010-06-11  Jim Meyering  <meyering@redhat.com>
50872         test-sys_socket: mark variables as used more readably
50873         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50874         as "used" explicitly via (void) statement casts.  This is more
50875         readable than using them in an artificial return expression.
50876         Suggestion from Bruno Haible.
50878 2010-06-11  Bruno Haible  <bruno@clisp.org>
50880         Avoid some more warnings from "gcc -Wwrite-strings".
50881         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50882         to 'const char *'.
50883         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50884         * tests/test-c-strcasestr.c (main): Likewise.
50885         * tests/test-mbscasestr1.c (main): Likewise.
50886         * tests/test-mbscasestr2.c (main): Likewise.
50887         * tests/test-memmem.c (main): Likewise.
50888         * tests/test-strstr.c (main): Likewise.
50889         * tests/test-strcasestr.c (main): Likewise.
50891 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50893         init.sh: change framework_failure_ to fail with status 99, not 1
50894         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
50895         automake's parallel-tests rule that this is an unexpected failure,
50896         even if the test is listed in XFAIL_TESTS.
50898 2010-06-11  Jim Meyering  <meyering@redhat.com>
50900         test-inttostr: avoid warnings about 4-6KB literal strings
50901         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
50902         Include "macros.h", for its definition of ASSERT.
50903         (CK): s/assert/ASSERT/
50904         * modules/inttostr-tests (Files): Add macros.h.
50906         init.sh: don't use $ME_ or skip_ before they are defined
50907         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
50908         their first uses.  Also hoist their companions: warn_, fail_,
50909         framework_failure_, $stderr_fileno.  Prompted by a patch from
50910         Stefano Lattarini.
50912         test-sys_socket: avoid set-but-not-used warnings from gcc
50913         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
50914         avoid warning about set-but-not-used variables.
50916         test-xvasprintf: avoid 'const' discard warnings
50917         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
50918         "const" when assigning from literal strings.
50919         (test_xasprintf): Add "void" in function argument list to placate
50920         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
50922         tests: avoid compilation warnings in argmatch and exclude tests...
50923         in packages that define ARGMATCH_DIE_DECL, like coreutils.
50924         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
50925         Since it always exits, declare with the "noreturn" attribute.
50926         * tests/test-argmatch.c: Likewise.
50928         tests: avoid 'const' discard warnings in mbsstr tests
50929         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
50930         * tests/test-mbsstr2.c (main): Likewise.
50932         test-verify: avoid warning from gcc's -Wmissing-declarations
50933         * tests/test-verify.c (function): Declare to be static.
50935         test-inttostr.c: include <string.h> for use of strcmp
50936         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
50938         test-linkat: avoid failed assertion on "other" architectures
50939         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
50940         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
50941         sparc: https://bugs.launchpad.net/bugs/591968
50943 2010-06-11  Jim Meyering  <meyering@redhat.com>
50945         printf.m4: avoid autoconf's "Expanded Before Required" warning
50946         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
50947         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
50948         autoconf warning.
50950 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
50952         Replacement header templates are now named with ".in", not "_".
50953         * doc/gnulib-intro.texi: Correct.
50955 2010-06-10  Jim Meyering  <meyering@redhat.com>
50957         inttostr-tests: depend on snprintf, not snprintf-posix
50958         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
50959         snprintf-posix, to avoid this aclocal failure:
50960           missing file gnulib-tests/vasnprintf.c
50961           configure.ac:45: error: expected source file, required through \
50962           AC_LIBSOURCES, not found
50964 2010-06-10  Jim Meyering  <meyering@redhat.com>
50966         inttostr: add a new function, inttostr, and tests
50967         The namesake function was not available.  The existence of the
50968         template file, inttostr.c makes its addition nontrivial.
50969         * lib/anytostr.c: Rename from inttostr.c.
50970         (anytostr): Rename from inttostr.
50971         * lib/inttostr.c: New file.
50972         * modules/inttostr (Files): Add anytostr.c.
50973         (Makefile.am): Set lib_SOURCES instead of ...
50974         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
50975         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
50976         * lib/offtostr.c: Likewise.
50977         * lib/uinttostr.c: Likewise.
50978         * lib/umaxtostr.c: Likewise.
50979         * modules/inttostr-tests: New file.
50980         * tests/test-inttostr.c: New file.  Test these functions.
50982 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
50983             Bruno Haible  <bruno@clisp.org>
50985         Add "Extending Gnulib" chapter to manual.
50986         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
50987         chapter.
50988         (Extending Gnulib): New chapter.
50989         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
50990         chapter.
50992 2010-06-09  Bruno Haible  <bruno@clisp.org>
50994         Avoid relocwrapper link errors due to gnulib replacement functions.
50995         * lib/areadlink.c: Use the system's malloc, realloc functions.
50996         (areadlink): Set errno to ENOMEM explicitly.
50997         * modules/areadlink (Depends-on): Remove malloc-posix.
50998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51000 2010-06-09  Bruno Haible  <bruno@clisp.org>
51002         Avoid relocwrapper link errors due to gnulib replacement functions.
51003         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51004         * lib/malloca.c: Likewise.
51005         * lib/relocatable.c: Likewise.
51006         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51007         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51008         * lib/setenv.c: Use the system's malloc, realloc functions.
51009         * lib/strerror.c: Use the system's sprintf function.
51010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51012 2010-06-04  Bruno Haible  <bruno@clisp.org>
51014         Prefer documented low-level autoconf macro names.
51015         * m4/lib-link.m4: Use m4_translit instead of translit.
51016         * m4/environ.m4: Likewise.
51017         * m4/mathfunc.m4: Likewise.
51018         * m4/onceonly.m4: Likewise.
51019         * m4/stdint.m4: Likewise.
51020         Suggested by Eric Blake.
51022 2010-06-04  Martin Lambers  <marlam@marlam.de>
51023             Bruno Haible  <bruno@clisp.org>
51025         havelib: Allow library names with '+' characters.
51026         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51027         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51029 2010-06-09  Bruno Haible  <bruno@clisp.org>
51031         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51032         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51033         realloc failed.
51035 2010-06-08  Peter Simons  <simons@cryp.to>
51037         maint.mk: make the news-check rule more configurable
51038         * top/maint.mk (news-check-lines-spec): New variable.
51039         (news-check): Use "sed -n 1,10p" in place of "head".
51041 2010-06-07  Jim Meyering  <meyering@redhat.com>
51043         do-release-commit-and-tag: fix typo in --help
51044         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51046         regex: avoid new dead-code warning with gcc-4.6.0
51047         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51048         if-block containing a while-loop.  It's been unused for at least
51049         5 years.
51051 2010-06-05  Bruno Haible  <bruno@clisp.org>
51053         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51054         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51056 2010-06-04  Bruno Haible  <bruno@clisp.org>
51058         Update to GNU gettext 0.18.1.
51059         * modules/gettext (configure.ac): Require gettext infrastructure from
51060         version 0.18.1.
51062 2010-06-03  Bruno Haible  <bruno@clisp.org>
51064         Don't use AC_LIBOBJ with file names in subdirectories.
51065         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51066         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51067         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51068         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51069         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51070         gl_LIBUNISTRING_LIBSOURCE.
51071         (Makefile.am): Augment lib_SOURCES here, conditionally.
51072         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51074 2010-06-03  Bruno Haible  <bruno@clisp.org>
51076         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51077         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51078         expansion does not end with a newline.
51079         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51080         unnecessary newline.
51082 2010-06-03  Bruno Haible  <bruno@clisp.org>
51084         Reduce dependencies.
51085         * tests/test-quotearg.h: New file, extracted from
51086         tests/test-quotearg.c.
51087         * tests/test-quotearg-simple.c: New file, extracted from
51088         tests/test-quotearg.c.
51089         * tests/test-quotearg.c: Don't include <ctype.h>.
51090         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51091         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51092         use_quote_double_quotes, use_quotearg_colon): Moved to
51093         tests/test-quotearg.h.
51094         (results_g, flag_results, custom_quotes, custom_results): Moved
51095         to tests/test-quotearg-simple.c.
51096         (main): Moved the part that does not depend on gettext to
51097         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51098         performed.
51099         * modules/quotearg-simple: New file.
51100         * modules/quotearg-simple-tests: New file.
51101         * modules/quotearg (Depends-on): Add quotearg-simple.
51102         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51103         (Files): Add tests/test-quotearg.h.
51104         Reported by Paolo Bonzini.
51106 2010-06-03  Bruno Haible  <bruno@clisp.org>
51108         Reduce dependencies.
51109         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51111 2010-06-03  Bruno Haible  <bruno@clisp.org>
51113         time: Undefine more broken macros.
51114         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51115         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51116         Reported by Eric Blake.
51118 2010-06-03  Bruno Haible  <bruno@clisp.org>
51120         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51121         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51122         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51123         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51124         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51125         Reported by Ludovic Courtès <ludo@gnu.org>.
51127 2010-06-02  Eric Blake  <eblake@redhat.com>
51129         time: work with mingw + pthreads-win32 library
51130         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51131         if timespec is defined only in pthread.h.
51132         * modules/time (Makefile.am): Substitute it.
51133         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51134         <pthread.h>, when needed.
51135         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51136         from the library.
51138 2010-05-31  Bruno Haible  <bruno@clisp.org>
51140         Avoid expanding two macros in the wrong order.
51141         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51142         gl_LIBUNISTRING if it is defined.
51143         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51144         autoconf >= 2.64.
51145         Reported by Ludovic Courtès <ludo@gnu.org>.
51147 2010-05-27  Jim Meyering  <meyering@redhat.com>
51149         maint.mk: also prohibit "#undef" of always-defined symbols
51150         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51151         Allow more than one space before the symbol name.
51152         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51153         the regexp uses alternation.
51155 2010-05-26  Eric Blake  <eblake@redhat.com>
51157         maint.mk: avoid echo -e
51158         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51159         Convert all uses of echo -* to printf.
51160         Reported by Matthias Bolte.
51162 2010-05-25  Bruno Haible  <bruno@clisp.org>
51164         Update to GNU gettext 0.18, part 2.
51165         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51166         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51168 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51170         Add missing include in test-pwrite.c.
51171         * tests/test-pwrite.c: Include string.h, for strcmp.
51173 2010-05-24  Bruno Haible  <bruno@clisp.org>
51175         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51177 2010-05-24  Bruno Haible  <bruno@clisp.org>
51179         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51180         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51181         iconveh_error argument.
51182         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51183         U_STRCONV_TO_LOCALE.
51184         * lib/unistr/u16-strcoll.c: Likewise.
51185         * lib/unistr/u32-strcoll.c: Likewise.
51186         * modules/unistr/u8-strcoll (Depends-on): Add
51187         uniconv/u8-strconv-to-enc, localcharset. Remove
51188         uniconv/u8-strconv-to-locale.
51189         (configure.ac): Bump version number.
51190         * modules/unistr/u16-strcoll (Depends-on): Add
51191         uniconv/u16-strconv-to-enc, localcharset. Remove
51192         uniconv/u16-strconv-to-locale.
51193         (configure.ac): Bump version number.
51194         * modules/unistr/u32-strcoll (Depends-on): Add
51195         uniconv/u32-strconv-to-enc, localcharset. Remove
51196         uniconv/u32-strconv-to-locale.
51197         (configure.ac): Bump version number.
51199 2010-05-24  Bruno Haible  <bruno@clisp.org>
51201         Avoid a test failure on NetBSD 5.0.
51202         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51203         an iconv() bug.
51205 2010-05-24  Bruno Haible  <bruno@clisp.org>
51207         Adjust #include directive style.
51208         * modules/regex (Includes): Recommend to write <regex.h>.
51210 2010-05-24  Bruno Haible  <bruno@clisp.org>
51212         regex: Don't require alloca.
51213         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51214         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51215         only inside if (0).
51217 2010-05-23  Jim Meyering  <meyering@redhat.com>
51219         test-renameat.c: include <sys/stat.h>
51220         * tests/test-renameat.c: Include <sys/stat.h>; required for
51221         definition of S_IS* macros.
51223 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51225         Update maintainer documentation for 'relocatable-prog' module.
51226         * doc/relocatable-maint.texi: Update.
51227         Comments by Bruno Haible.
51229 2010-05-23  Bruno Haible  <bruno@clisp.org>
51231         git-merge-changelog: Enable --split-merged-entry by default.
51232         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51233         (usage): Don't mention this option any more.
51234         Reported by Ralf Wildenhues.
51236 2010-05-23  Jim Meyering  <meyering@redhat.com>
51238         test-pwrite: do not leave behind a test file named "out"
51239         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51240         The trivial-looking use of init.sh is really necessary.
51241         It ensures that the temporary file, "out", is created in
51242         a temporary directory, and removed upon termination.
51243         * tests/test-pwrite.sh: Re-add file.
51244         * modules/pwrite-tests: Reference it.
51246 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51248         Fix output redirection buglet in init.sh.
51249         * tests/init.sh: Fix redirection of stderr.
51251 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51253         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51255 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51257         * modules/valgrind-tests: New file.
51258         * m4/valgrind-tests.m4: New file.
51259         * doc/valgrind-tests.texi: New file.
51260         * doc/gnulib.texi (Running self-tests under valgrind): New
51261         section.
51263 2010-05-19  Bruno Haible  <bruno@clisp.org>
51265         Clean up dead code in recent commit.
51266         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51267         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51268         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51269         Suggested by Paolo Bonzini.
51271 2010-05-19  Bruno Haible  <bruno@clisp.org>
51273         Avoid valgrind error reports from libunistring.
51274         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51275         * modules/libunistring (Files): Add it.
51276         * modules/libunistring-optional (Files): Likewise.
51278 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51279             Bruno Haible  <bruno@clisp.org>
51281         New module 'libunistring-optional'.
51282         * modules/libunistring-optional: New file.
51283         * m4/libunistring-base.m4: New file.
51284         * m4/libunistring-optional.m4: New file.
51285         * lib/unicase.in.h: Renamed from lib/unicase.h.
51286         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51287         * lib/unictype.in.h: Renamed from lib/unictype.h.
51288         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51289         * lib/uniname.in.h: Renamed from lib/uniname.h.
51290         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51291         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51292         * lib/unistr.in.h: Renamed from lib/unistr.h.
51293         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51294         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51295         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51296         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51297         gl_LIBUNISTRING. If the library was found, determine the installed
51298         version and set LIBUNISTRING_VERSION.
51299         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51300         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51301         handle a configuration option --with-included-libunistring.
51302         * modules/libunistring (Files): Add m4/absolute-header.m4.
51303         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51304         Add m4/libunistring-base.m4.
51305         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51306         (Makefile.am): Build unicase.h from unicase.in.h.
51307         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51308         Add m4/libunistring-base.m4.
51309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51310         (Makefile.am): Build uniconv.h from uniconv.in.h.
51311         * modules/unictype/base (Files): Use unictype.in.h instead of
51312         unictype.h. Add m4/libunistring-base.m4.
51313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51314         (Makefile.am): Build unictype.h from unictype.in.h.
51315         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51316         Add m4/libunistring-base.m4.
51317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51318         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51319         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51320         Add m4/libunistring-base.m4.
51321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51322         (Makefile.am): Build uniname.h from uniname.in.h.
51323         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51324         Add m4/libunistring-base.m4.
51325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51326         (Makefile.am): Build uninorm.h from uninorm.in.h.
51327         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51328         unistdio.h. Add m4/libunistring-base.m4.
51329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51330         (Makefile.am): Build unistdio.h from unistdio.in.h.
51331         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51332         Add m4/libunistring-base.m4.
51333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51334         (Makefile.am): Build unistr.h from unistr.in.h.
51335         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51336         Add m4/libunistring-base.m4.
51337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51338         (Makefile.am): Build unitypes.h from unitypes.in.h.
51339         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51340         Add m4/libunistring-base.m4.
51341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51342         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51343         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51344         uniwidth.h. Add m4/libunistring-base.m4.
51345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51346         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51347         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51348         instead of augmenting lib_SOURCES.
51349         * modules/unicase/empty-suffix-context: Likewise.
51350         * modules/unicase/locale-language: Likewise.
51351         * modules/unicase/tolower: Likewise.
51352         * modules/unicase/totitle: Likewise.
51353         * modules/unicase/toupper: Likewise.
51354         * modules/unicase/u8-casecmp: Likewise.
51355         * modules/unicase/u8-casecoll: Likewise.
51356         * modules/unicase/u8-casefold: Likewise.
51357         * modules/unicase/u8-casexfrm: Likewise.
51358         * modules/unicase/u8-ct-casefold: Likewise.
51359         * modules/unicase/u8-ct-tolower: Likewise.
51360         * modules/unicase/u8-ct-totitle: Likewise.
51361         * modules/unicase/u8-ct-toupper: Likewise.
51362         * modules/unicase/u8-is-cased: Likewise.
51363         * modules/unicase/u8-is-casefolded: Likewise.
51364         * modules/unicase/u8-is-lowercase: Likewise.
51365         * modules/unicase/u8-is-titlecase: Likewise.
51366         * modules/unicase/u8-is-uppercase: Likewise.
51367         * modules/unicase/u8-prefix-context: Likewise.
51368         * modules/unicase/u8-suffix-context: Likewise.
51369         * modules/unicase/u8-tolower: Likewise.
51370         * modules/unicase/u8-totitle: Likewise.
51371         * modules/unicase/u8-toupper: Likewise.
51372         * modules/unicase/u16-casecmp: Likewise.
51373         * modules/unicase/u16-casecoll: Likewise.
51374         * modules/unicase/u16-casefold: Likewise.
51375         * modules/unicase/u16-casexfrm: Likewise.
51376         * modules/unicase/u16-ct-casefold: Likewise.
51377         * modules/unicase/u16-ct-tolower: Likewise.
51378         * modules/unicase/u16-ct-totitle: Likewise.
51379         * modules/unicase/u16-ct-toupper: Likewise.
51380         * modules/unicase/u16-is-cased: Likewise.
51381         * modules/unicase/u16-is-casefolded: Likewise.
51382         * modules/unicase/u16-is-lowercase: Likewise.
51383         * modules/unicase/u16-is-titlecase: Likewise.
51384         * modules/unicase/u16-is-uppercase: Likewise.
51385         * modules/unicase/u16-prefix-context: Likewise.
51386         * modules/unicase/u16-suffix-context: Likewise.
51387         * modules/unicase/u16-tolower: Likewise.
51388         * modules/unicase/u16-totitle: Likewise.
51389         * modules/unicase/u16-toupper: Likewise.
51390         * modules/unicase/u32-casecmp: Likewise.
51391         * modules/unicase/u32-casecoll: Likewise.
51392         * modules/unicase/u32-casefold: Likewise.
51393         * modules/unicase/u32-casexfrm: Likewise.
51394         * modules/unicase/u32-ct-casefold: Likewise.
51395         * modules/unicase/u32-ct-tolower: Likewise.
51396         * modules/unicase/u32-ct-totitle: Likewise.
51397         * modules/unicase/u32-ct-toupper: Likewise.
51398         * modules/unicase/u32-is-cased: Likewise.
51399         * modules/unicase/u32-is-casefolded: Likewise.
51400         * modules/unicase/u32-is-lowercase: Likewise.
51401         * modules/unicase/u32-is-titlecase: Likewise.
51402         * modules/unicase/u32-is-uppercase: Likewise.
51403         * modules/unicase/u32-prefix-context: Likewise.
51404         * modules/unicase/u32-suffix-context: Likewise.
51405         * modules/unicase/u32-tolower: Likewise.
51406         * modules/unicase/u32-totitle: Likewise.
51407         * modules/unicase/u32-toupper: Likewise.
51408         * modules/unicase/ulc-casecmp: Likewise.
51409         * modules/unicase/ulc-casecoll: Likewise.
51410         * modules/unicase/ulc-casexfrm: Likewise.
51411         * modules/uniconv/u8-conv-from-enc: Likewise.
51412         * modules/uniconv/u8-conv-to-enc: Likewise.
51413         * modules/uniconv/u8-strconv-from-enc: Likewise.
51414         * modules/uniconv/u8-strconv-from-locale: Likewise.
51415         * modules/uniconv/u8-strconv-to-enc: Likewise.
51416         * modules/uniconv/u8-strconv-to-locale: Likewise.
51417         * modules/uniconv/u16-conv-from-enc: Likewise.
51418         * modules/uniconv/u16-conv-to-enc: Likewise.
51419         * modules/uniconv/u16-strconv-from-enc: Likewise.
51420         * modules/uniconv/u16-strconv-from-locale: Likewise.
51421         * modules/uniconv/u16-strconv-to-enc: Likewise.
51422         * modules/uniconv/u16-strconv-to-locale: Likewise.
51423         * modules/uniconv/u32-conv-from-enc: Likewise.
51424         * modules/uniconv/u32-conv-to-enc: Likewise.
51425         * modules/uniconv/u32-strconv-from-enc: Likewise.
51426         * modules/uniconv/u32-strconv-from-locale: Likewise.
51427         * modules/uniconv/u32-strconv-to-enc: Likewise.
51428         * modules/uniconv/u32-strconv-to-locale: Likewise.
51429         * modules/unictype/bidicategory-byname: Likewise.
51430         * modules/unictype/bidicategory-name: Likewise.
51431         * modules/unictype/bidicategory-of: Likewise.
51432         * modules/unictype/bidicategory-test: Likewise.
51433         * modules/unictype/block-list: Likewise.
51434         * modules/unictype/block-test: Likewise.
51435         * modules/unictype/category-C: Likewise.
51436         * modules/unictype/category-Cc: Likewise.
51437         * modules/unictype/category-Cf: Likewise.
51438         * modules/unictype/category-Cn: Likewise.
51439         * modules/unictype/category-Co: Likewise.
51440         * modules/unictype/category-Cs: Likewise.
51441         * modules/unictype/category-L: Likewise.
51442         * modules/unictype/category-Ll: Likewise.
51443         * modules/unictype/category-Lm: Likewise.
51444         * modules/unictype/category-Lo: Likewise.
51445         * modules/unictype/category-Lt: Likewise.
51446         * modules/unictype/category-Lu: Likewise.
51447         * modules/unictype/category-M: Likewise.
51448         * modules/unictype/category-Mc: Likewise.
51449         * modules/unictype/category-Me: Likewise.
51450         * modules/unictype/category-Mn: Likewise.
51451         * modules/unictype/category-N: Likewise.
51452         * modules/unictype/category-Nd: Likewise.
51453         * modules/unictype/category-Nl: Likewise.
51454         * modules/unictype/category-No: Likewise.
51455         * modules/unictype/category-P: Likewise.
51456         * modules/unictype/category-Pc: Likewise.
51457         * modules/unictype/category-Pd: Likewise.
51458         * modules/unictype/category-Pe: Likewise.
51459         * modules/unictype/category-Pf: Likewise.
51460         * modules/unictype/category-Pi: Likewise.
51461         * modules/unictype/category-Po: Likewise.
51462         * modules/unictype/category-Ps: Likewise.
51463         * modules/unictype/category-S: Likewise.
51464         * modules/unictype/category-Sc: Likewise.
51465         * modules/unictype/category-Sk: Likewise.
51466         * modules/unictype/category-Sm: Likewise.
51467         * modules/unictype/category-So: Likewise.
51468         * modules/unictype/category-Z: Likewise.
51469         * modules/unictype/category-Zl: Likewise.
51470         * modules/unictype/category-Zp: Likewise.
51471         * modules/unictype/category-Zs: Likewise.
51472         * modules/unictype/category-and: Likewise.
51473         * modules/unictype/category-and-not: Likewise.
51474         * modules/unictype/category-byname: Likewise.
51475         * modules/unictype/category-name: Likewise.
51476         * modules/unictype/category-none: Likewise.
51477         * modules/unictype/category-of: Likewise.
51478         * modules/unictype/category-or: Likewise.
51479         * modules/unictype/category-test: Likewise.
51480         * modules/unictype/combining-class: Likewise.
51481         * modules/unictype/ctype-alnum: Likewise.
51482         * modules/unictype/ctype-alpha: Likewise.
51483         * modules/unictype/ctype-blank: Likewise.
51484         * modules/unictype/ctype-cntrl: Likewise.
51485         * modules/unictype/ctype-digit: Likewise.
51486         * modules/unictype/ctype-graph: Likewise.
51487         * modules/unictype/ctype-lower: Likewise.
51488         * modules/unictype/ctype-print: Likewise.
51489         * modules/unictype/ctype-punct: Likewise.
51490         * modules/unictype/ctype-space: Likewise.
51491         * modules/unictype/ctype-upper: Likewise.
51492         * modules/unictype/ctype-xdigit: Likewise.
51493         * modules/unictype/decimal-digit: Likewise.
51494         * modules/unictype/digit: Likewise.
51495         * modules/unictype/mirror: Likewise.
51496         * modules/unictype/numeric: Likewise.
51497         * modules/unictype/property-alphabetic: Likewise.
51498         * modules/unictype/property-ascii-hex-digit: Likewise.
51499         * modules/unictype/property-bidi-arabic-digit: Likewise.
51500         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51501         * modules/unictype/property-bidi-block-separator: Likewise.
51502         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51503         * modules/unictype/property-bidi-common-separator: Likewise.
51504         * modules/unictype/property-bidi-control: Likewise.
51505         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51506         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51507         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51508         * modules/unictype/property-bidi-european-digit: Likewise.
51509         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51510         * modules/unictype/property-bidi-left-to-right: Likewise.
51511         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51512         * modules/unictype/property-bidi-other-neutral: Likewise.
51513         * modules/unictype/property-bidi-pdf: Likewise.
51514         * modules/unictype/property-bidi-segment-separator: Likewise.
51515         * modules/unictype/property-bidi-whitespace: Likewise.
51516         * modules/unictype/property-byname: Likewise.
51517         * modules/unictype/property-combining: Likewise.
51518         * modules/unictype/property-composite: Likewise.
51519         * modules/unictype/property-currency-symbol: Likewise.
51520         * modules/unictype/property-dash: Likewise.
51521         * modules/unictype/property-decimal-digit: Likewise.
51522         * modules/unictype/property-default-ignorable-code-point: Likewise.
51523         * modules/unictype/property-deprecated: Likewise.
51524         * modules/unictype/property-diacritic: Likewise.
51525         * modules/unictype/property-extender: Likewise.
51526         * modules/unictype/property-format-control: Likewise.
51527         * modules/unictype/property-grapheme-base: Likewise.
51528         * modules/unictype/property-grapheme-extend: Likewise.
51529         * modules/unictype/property-grapheme-link: Likewise.
51530         * modules/unictype/property-hex-digit: Likewise.
51531         * modules/unictype/property-hyphen: Likewise.
51532         * modules/unictype/property-id-continue: Likewise.
51533         * modules/unictype/property-id-start: Likewise.
51534         * modules/unictype/property-ideographic: Likewise.
51535         * modules/unictype/property-ids-binary-operator: Likewise.
51536         * modules/unictype/property-ids-trinary-operator: Likewise.
51537         * modules/unictype/property-ignorable-control: Likewise.
51538         * modules/unictype/property-iso-control: Likewise.
51539         * modules/unictype/property-join-control: Likewise.
51540         * modules/unictype/property-left-of-pair: Likewise.
51541         * modules/unictype/property-line-separator: Likewise.
51542         * modules/unictype/property-logical-order-exception: Likewise.
51543         * modules/unictype/property-lowercase: Likewise.
51544         * modules/unictype/property-math: Likewise.
51545         * modules/unictype/property-non-break: Likewise.
51546         * modules/unictype/property-not-a-character: Likewise.
51547         * modules/unictype/property-numeric: Likewise.
51548         * modules/unictype/property-other-alphabetic: Likewise.
51549         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51550         * modules/unictype/property-other-grapheme-extend: Likewise.
51551         * modules/unictype/property-other-id-continue: Likewise.
51552         * modules/unictype/property-other-id-start: Likewise.
51553         * modules/unictype/property-other-lowercase: Likewise.
51554         * modules/unictype/property-other-math: Likewise.
51555         * modules/unictype/property-other-uppercase: Likewise.
51556         * modules/unictype/property-paired-punctuation: Likewise.
51557         * modules/unictype/property-paragraph-separator: Likewise.
51558         * modules/unictype/property-pattern-syntax: Likewise.
51559         * modules/unictype/property-pattern-white-space: Likewise.
51560         * modules/unictype/property-private-use: Likewise.
51561         * modules/unictype/property-punctuation: Likewise.
51562         * modules/unictype/property-quotation-mark: Likewise.
51563         * modules/unictype/property-radical: Likewise.
51564         * modules/unictype/property-sentence-terminal: Likewise.
51565         * modules/unictype/property-soft-dotted: Likewise.
51566         * modules/unictype/property-space: Likewise.
51567         * modules/unictype/property-terminal-punctuation: Likewise.
51568         * modules/unictype/property-test: Likewise.
51569         * modules/unictype/property-titlecase: Likewise.
51570         * modules/unictype/property-unassigned-code-value: Likewise.
51571         * modules/unictype/property-unified-ideograph: Likewise.
51572         * modules/unictype/property-uppercase: Likewise.
51573         * modules/unictype/property-variation-selector: Likewise.
51574         * modules/unictype/property-white-space: Likewise.
51575         * modules/unictype/property-xid-continue: Likewise.
51576         * modules/unictype/property-xid-start: Likewise.
51577         * modules/unictype/property-zero-width: Likewise.
51578         * modules/unictype/scripts: Likewise.
51579         * modules/unictype/syntax-c-ident: Likewise.
51580         * modules/unictype/syntax-c-whitespace: Likewise.
51581         * modules/unictype/syntax-java-ident: Likewise.
51582         * modules/unictype/syntax-java-whitespace: Likewise.
51583         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51584         * modules/unilbrk/u8-width-linebreaks: Likewise.
51585         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51586         * modules/unilbrk/u16-width-linebreaks: Likewise.
51587         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51588         * modules/unilbrk/u32-width-linebreaks: Likewise.
51589         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51590         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51591         * modules/uniname/uniname: Likewise.
51592         * modules/uninorm/canonical-decomposition: Likewise.
51593         * modules/uninorm/composition: Likewise.
51594         * modules/uninorm/decomposing-form: Likewise.
51595         * modules/uninorm/decomposition: Likewise.
51596         * modules/uninorm/filter: Likewise.
51597         * modules/uninorm/nfc: Likewise.
51598         * modules/uninorm/nfd: Likewise.
51599         * modules/uninorm/nfkc: Likewise.
51600         * modules/uninorm/nfkd: Likewise.
51601         * modules/uninorm/u8-normalize: Likewise.
51602         * modules/uninorm/u8-normcmp: Likewise.
51603         * modules/uninorm/u8-normcoll: Likewise.
51604         * modules/uninorm/u8-normxfrm: Likewise.
51605         * modules/uninorm/u16-normalize: Likewise.
51606         * modules/uninorm/u16-normcmp: Likewise.
51607         * modules/uninorm/u16-normcoll: Likewise.
51608         * modules/uninorm/u16-normxfrm: Likewise.
51609         * modules/uninorm/u32-normalize: Likewise.
51610         * modules/uninorm/u32-normcmp: Likewise.
51611         * modules/uninorm/u32-normcoll: Likewise.
51612         * modules/uninorm/u32-normxfrm: Likewise.
51613         * modules/unistdio/u8-asnprintf: Likewise.
51614         * modules/unistdio/u8-asprintf: Likewise.
51615         * modules/unistdio/u8-snprintf: Likewise.
51616         * modules/unistdio/u8-sprintf: Likewise.
51617         * modules/unistdio/u8-u8-asnprintf: Likewise.
51618         * modules/unistdio/u8-u8-asprintf: Likewise.
51619         * modules/unistdio/u8-u8-snprintf: Likewise.
51620         * modules/unistdio/u8-u8-sprintf: Likewise.
51621         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51622         * modules/unistdio/u8-u8-vasprintf: Likewise.
51623         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51624         * modules/unistdio/u8-u8-vsprintf: Likewise.
51625         * modules/unistdio/u8-vasnprintf: Likewise.
51626         * modules/unistdio/u8-vasprintf: Likewise.
51627         * modules/unistdio/u8-vsnprintf: Likewise.
51628         * modules/unistdio/u8-vsprintf: Likewise.
51629         * modules/unistdio/u16-asnprintf: Likewise.
51630         * modules/unistdio/u16-asprintf: Likewise.
51631         * modules/unistdio/u16-snprintf: Likewise.
51632         * modules/unistdio/u16-sprintf: Likewise.
51633         * modules/unistdio/u16-u16-asnprintf: Likewise.
51634         * modules/unistdio/u16-u16-asprintf: Likewise.
51635         * modules/unistdio/u16-u16-snprintf: Likewise.
51636         * modules/unistdio/u16-u16-sprintf: Likewise.
51637         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51638         * modules/unistdio/u16-u16-vasprintf: Likewise.
51639         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51640         * modules/unistdio/u16-u16-vsprintf: Likewise.
51641         * modules/unistdio/u16-vasnprintf: Likewise.
51642         * modules/unistdio/u16-vasprintf: Likewise.
51643         * modules/unistdio/u16-vsnprintf: Likewise.
51644         * modules/unistdio/u16-vsprintf: Likewise.
51645         * modules/unistdio/u32-asnprintf: Likewise.
51646         * modules/unistdio/u32-asprintf: Likewise.
51647         * modules/unistdio/u32-snprintf: Likewise.
51648         * modules/unistdio/u32-sprintf: Likewise.
51649         * modules/unistdio/u32-u32-asnprintf: Likewise.
51650         * modules/unistdio/u32-u32-asprintf: Likewise.
51651         * modules/unistdio/u32-u32-snprintf: Likewise.
51652         * modules/unistdio/u32-u32-sprintf: Likewise.
51653         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51654         * modules/unistdio/u32-u32-vasprintf: Likewise.
51655         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51656         * modules/unistdio/u32-u32-vsprintf: Likewise.
51657         * modules/unistdio/u32-vasnprintf: Likewise.
51658         * modules/unistdio/u32-vasprintf: Likewise.
51659         * modules/unistdio/u32-vsnprintf: Likewise.
51660         * modules/unistdio/u32-vsprintf: Likewise.
51661         * modules/unistdio/ulc-asnprintf: Likewise.
51662         * modules/unistdio/ulc-asprintf: Likewise.
51663         * modules/unistdio/ulc-fprintf: Likewise.
51664         * modules/unistdio/ulc-snprintf: Likewise.
51665         * modules/unistdio/ulc-sprintf: Likewise.
51666         * modules/unistdio/ulc-vasnprintf: Likewise.
51667         * modules/unistdio/ulc-vasprintf: Likewise.
51668         * modules/unistdio/ulc-vfprintf: Likewise.
51669         * modules/unistdio/ulc-vsnprintf: Likewise.
51670         * modules/unistdio/ulc-vsprintf: Likewise.
51671         * modules/unistr/u8-check: Likewise.
51672         * modules/unistr/u8-chr: Likewise.
51673         * modules/unistr/u8-cmp: Likewise.
51674         * modules/unistr/u8-cmp2: Likewise.
51675         * modules/unistr/u8-cpy: Likewise.
51676         * modules/unistr/u8-cpy-alloc: Likewise.
51677         * modules/unistr/u8-endswith: Likewise.
51678         * modules/unistr/u8-mblen: Likewise.
51679         * modules/unistr/u8-mbsnlen: Likewise.
51680         * modules/unistr/u8-mbtouc: Likewise.
51681         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51682         * modules/unistr/u8-mbtoucr: Likewise.
51683         * modules/unistr/u8-move: Likewise.
51684         * modules/unistr/u8-next: Likewise.
51685         * modules/unistr/u8-prev: Likewise.
51686         * modules/unistr/u8-set: Likewise.
51687         * modules/unistr/u8-startswith: Likewise.
51688         * modules/unistr/u8-stpcpy: Likewise.
51689         * modules/unistr/u8-stpncpy: Likewise.
51690         * modules/unistr/u8-strcat: Likewise.
51691         * modules/unistr/u8-strchr: Likewise.
51692         * modules/unistr/u8-strcmp: Likewise.
51693         * modules/unistr/u8-strcoll: Likewise.
51694         * modules/unistr/u8-strcpy: Likewise.
51695         * modules/unistr/u8-strcspn: Likewise.
51696         * modules/unistr/u8-strdup: Likewise.
51697         * modules/unistr/u8-strlen: Likewise.
51698         * modules/unistr/u8-strmblen: Likewise.
51699         * modules/unistr/u8-strmbtouc: Likewise.
51700         * modules/unistr/u8-strncat: Likewise.
51701         * modules/unistr/u8-strncmp: Likewise.
51702         * modules/unistr/u8-strncpy: Likewise.
51703         * modules/unistr/u8-strnlen: Likewise.
51704         * modules/unistr/u8-strpbrk: Likewise.
51705         * modules/unistr/u8-strrchr: Likewise.
51706         * modules/unistr/u8-strspn: Likewise.
51707         * modules/unistr/u8-strstr: Likewise.
51708         * modules/unistr/u8-strtok: Likewise.
51709         * modules/unistr/u8-to-u16: Likewise.
51710         * modules/unistr/u8-to-u32: Likewise.
51711         * modules/unistr/u8-uctomb: Likewise.
51712         * modules/unistr/u16-check: Likewise.
51713         * modules/unistr/u16-chr: Likewise.
51714         * modules/unistr/u16-cmp: Likewise.
51715         * modules/unistr/u16-cmp2: Likewise.
51716         * modules/unistr/u16-cpy: Likewise.
51717         * modules/unistr/u16-cpy-alloc: Likewise.
51718         * modules/unistr/u16-endswith: Likewise.
51719         * modules/unistr/u16-mblen: Likewise.
51720         * modules/unistr/u16-mbsnlen: Likewise.
51721         * modules/unistr/u16-mbtouc: Likewise.
51722         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51723         * modules/unistr/u16-mbtoucr: Likewise.
51724         * modules/unistr/u16-move: Likewise.
51725         * modules/unistr/u16-next: Likewise.
51726         * modules/unistr/u16-prev: Likewise.
51727         * modules/unistr/u16-set: Likewise.
51728         * modules/unistr/u16-startswith: Likewise.
51729         * modules/unistr/u16-stpcpy: Likewise.
51730         * modules/unistr/u16-stpncpy: Likewise.
51731         * modules/unistr/u16-strcat: Likewise.
51732         * modules/unistr/u16-strchr: Likewise.
51733         * modules/unistr/u16-strcmp: Likewise.
51734         * modules/unistr/u16-strcoll: Likewise.
51735         * modules/unistr/u16-strcpy: Likewise.
51736         * modules/unistr/u16-strcspn: Likewise.
51737         * modules/unistr/u16-strdup: Likewise.
51738         * modules/unistr/u16-strlen: Likewise.
51739         * modules/unistr/u16-strmblen: Likewise.
51740         * modules/unistr/u16-strmbtouc: Likewise.
51741         * modules/unistr/u16-strncat: Likewise.
51742         * modules/unistr/u16-strncmp: Likewise.
51743         * modules/unistr/u16-strncpy: Likewise.
51744         * modules/unistr/u16-strnlen: Likewise.
51745         * modules/unistr/u16-strpbrk: Likewise.
51746         * modules/unistr/u16-strrchr: Likewise.
51747         * modules/unistr/u16-strspn: Likewise.
51748         * modules/unistr/u16-strstr: Likewise.
51749         * modules/unistr/u16-strtok: Likewise.
51750         * modules/unistr/u16-to-u32: Likewise.
51751         * modules/unistr/u16-to-u8: Likewise.
51752         * modules/unistr/u16-uctomb: Likewise.
51753         * modules/unistr/u32-check: Likewise.
51754         * modules/unistr/u32-chr: Likewise.
51755         * modules/unistr/u32-cmp: Likewise.
51756         * modules/unistr/u32-cmp2: Likewise.
51757         * modules/unistr/u32-cpy: Likewise.
51758         * modules/unistr/u32-cpy-alloc: Likewise.
51759         * modules/unistr/u32-endswith: Likewise.
51760         * modules/unistr/u32-mblen: Likewise.
51761         * modules/unistr/u32-mbsnlen: Likewise.
51762         * modules/unistr/u32-mbtouc: Likewise.
51763         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51764         * modules/unistr/u32-mbtoucr: Likewise.
51765         * modules/unistr/u32-move: Likewise.
51766         * modules/unistr/u32-next: Likewise.
51767         * modules/unistr/u32-prev: Likewise.
51768         * modules/unistr/u32-set: Likewise.
51769         * modules/unistr/u32-startswith: Likewise.
51770         * modules/unistr/u32-stpcpy: Likewise.
51771         * modules/unistr/u32-stpncpy: Likewise.
51772         * modules/unistr/u32-strcat: Likewise.
51773         * modules/unistr/u32-strchr: Likewise.
51774         * modules/unistr/u32-strcmp: Likewise.
51775         * modules/unistr/u32-strcoll: Likewise.
51776         * modules/unistr/u32-strcpy: Likewise.
51777         * modules/unistr/u32-strcspn: Likewise.
51778         * modules/unistr/u32-strdup: Likewise.
51779         * modules/unistr/u32-strlen: Likewise.
51780         * modules/unistr/u32-strmblen: Likewise.
51781         * modules/unistr/u32-strmbtouc: Likewise.
51782         * modules/unistr/u32-strncat: Likewise.
51783         * modules/unistr/u32-strncmp: Likewise.
51784         * modules/unistr/u32-strncpy: Likewise.
51785         * modules/unistr/u32-strnlen: Likewise.
51786         * modules/unistr/u32-strpbrk: Likewise.
51787         * modules/unistr/u32-strrchr: Likewise.
51788         * modules/unistr/u32-strspn: Likewise.
51789         * modules/unistr/u32-strstr: Likewise.
51790         * modules/unistr/u32-strtok: Likewise.
51791         * modules/unistr/u32-to-u16: Likewise.
51792         * modules/unistr/u32-to-u8: Likewise.
51793         * modules/unistr/u32-uctomb: Likewise.
51794         * modules/uniwbrk/u8-wordbreaks: Likewise.
51795         * modules/uniwbrk/u16-wordbreaks: Likewise.
51796         * modules/uniwbrk/u32-wordbreaks: Likewise.
51797         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51798         * modules/uniwbrk/wordbreak-property: Likewise.
51799         * modules/uniwidth/u8-strwidth: Likewise.
51800         * modules/uniwidth/u8-width: Likewise.
51801         * modules/uniwidth/u16-strwidth: Likewise.
51802         * modules/uniwidth/u16-width: Likewise.
51803         * modules/uniwidth/u32-strwidth: Likewise.
51804         * modules/uniwidth/u32-width: Likewise.
51805         * modules/uniwidth/width: Likewise.
51806         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51807         with $(LIBUNISTRING).
51808         * modules/unicase/ignorable-tests: Likewise.
51809         * modules/unicase/locale-language-tests: Likewise.
51810         * modules/unicase/tolower-tests: Likewise.
51811         * modules/unicase/totitle-tests: Likewise.
51812         * modules/unicase/toupper-tests: Likewise.
51813         * modules/unicase/u8-casecmp-tests: Likewise.
51814         * modules/unicase/u8-casecoll-tests: Likewise.
51815         * modules/unicase/u8-casefold-tests: Likewise.
51816         * modules/unicase/u8-is-cased-tests: Likewise.
51817         * modules/unicase/u8-is-casefolded-tests: Likewise.
51818         * modules/unicase/u8-is-lowercase-tests: Likewise.
51819         * modules/unicase/u8-is-titlecase-tests: Likewise.
51820         * modules/unicase/u8-is-uppercase-tests: Likewise.
51821         * modules/unicase/u8-tolower-tests: Likewise.
51822         * modules/unicase/u8-totitle-tests: Likewise.
51823         * modules/unicase/u8-toupper-tests: Likewise.
51824         * modules/unicase/u16-casecmp-tests: Likewise.
51825         * modules/unicase/u16-casecoll-tests: Likewise.
51826         * modules/unicase/u16-casefold-tests: Likewise.
51827         * modules/unicase/u16-is-cased-tests: Likewise.
51828         * modules/unicase/u16-is-casefolded-tests: Likewise.
51829         * modules/unicase/u16-is-lowercase-tests: Likewise.
51830         * modules/unicase/u16-is-titlecase-tests: Likewise.
51831         * modules/unicase/u16-is-uppercase-tests: Likewise.
51832         * modules/unicase/u16-tolower-tests: Likewise.
51833         * modules/unicase/u16-totitle-tests: Likewise.
51834         * modules/unicase/u16-toupper-tests: Likewise.
51835         * modules/unicase/u32-casecmp-tests: Likewise.
51836         * modules/unicase/u32-casecoll-tests: Likewise.
51837         * modules/unicase/u32-casefold-tests: Likewise.
51838         * modules/unicase/u32-is-cased-tests: Likewise.
51839         * modules/unicase/u32-is-casefolded-tests: Likewise.
51840         * modules/unicase/u32-is-lowercase-tests: Likewise.
51841         * modules/unicase/u32-is-titlecase-tests: Likewise.
51842         * modules/unicase/u32-is-uppercase-tests: Likewise.
51843         * modules/unicase/u32-tolower-tests: Likewise.
51844         * modules/unicase/u32-totitle-tests: Likewise.
51845         * modules/unicase/u32-toupper-tests: Likewise.
51846         * modules/unicase/ulc-casecmp-tests: Likewise.
51847         * modules/unicase/ulc-casecoll-tests: Likewise.
51848         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51849         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51850         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51851         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51852         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51853         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51854         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51855         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51856         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51857         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51858         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51859         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51860         * modules/unictype/bidicategory-byname-tests: Likewise.
51861         * modules/unictype/bidicategory-name-tests: Likewise.
51862         * modules/unictype/bidicategory-of-tests: Likewise.
51863         * modules/unictype/bidicategory-test-tests: Likewise.
51864         * modules/unictype/block-list-tests: Likewise.
51865         * modules/unictype/block-of-tests: Likewise.
51866         * modules/unictype/block-test-tests: Likewise.
51867         * modules/unictype/category-C-tests: Likewise.
51868         * modules/unictype/category-Cc-tests: Likewise.
51869         * modules/unictype/category-Cf-tests: Likewise.
51870         * modules/unictype/category-Cn-tests: Likewise.
51871         * modules/unictype/category-Co-tests: Likewise.
51872         * modules/unictype/category-Cs-tests: Likewise.
51873         * modules/unictype/category-L-tests: Likewise.
51874         * modules/unictype/category-Ll-tests: Likewise.
51875         * modules/unictype/category-Lm-tests: Likewise.
51876         * modules/unictype/category-Lo-tests: Likewise.
51877         * modules/unictype/category-Lt-tests: Likewise.
51878         * modules/unictype/category-Lu-tests: Likewise.
51879         * modules/unictype/category-M-tests: Likewise.
51880         * modules/unictype/category-Mc-tests: Likewise.
51881         * modules/unictype/category-Me-tests: Likewise.
51882         * modules/unictype/category-Mn-tests: Likewise.
51883         * modules/unictype/category-N-tests: Likewise.
51884         * modules/unictype/category-Nd-tests: Likewise.
51885         * modules/unictype/category-Nl-tests: Likewise.
51886         * modules/unictype/category-No-tests: Likewise.
51887         * modules/unictype/category-P-tests: Likewise.
51888         * modules/unictype/category-Pc-tests: Likewise.
51889         * modules/unictype/category-Pd-tests: Likewise.
51890         * modules/unictype/category-Pe-tests: Likewise.
51891         * modules/unictype/category-Pf-tests: Likewise.
51892         * modules/unictype/category-Pi-tests: Likewise.
51893         * modules/unictype/category-Po-tests: Likewise.
51894         * modules/unictype/category-Ps-tests: Likewise.
51895         * modules/unictype/category-S-tests: Likewise.
51896         * modules/unictype/category-Sc-tests: Likewise.
51897         * modules/unictype/category-Sk-tests: Likewise.
51898         * modules/unictype/category-Sm-tests: Likewise.
51899         * modules/unictype/category-So-tests: Likewise.
51900         * modules/unictype/category-Z-tests: Likewise.
51901         * modules/unictype/category-Zl-tests: Likewise.
51902         * modules/unictype/category-Zp-tests: Likewise.
51903         * modules/unictype/category-Zs-tests: Likewise.
51904         * modules/unictype/category-and-not-tests: Likewise.
51905         * modules/unictype/category-and-tests: Likewise.
51906         * modules/unictype/category-byname-tests: Likewise.
51907         * modules/unictype/category-name-tests: Likewise.
51908         * modules/unictype/category-none-tests: Likewise.
51909         * modules/unictype/category-of-tests: Likewise.
51910         * modules/unictype/category-or-tests: Likewise.
51911         * modules/unictype/category-test-withtable-tests: Likewise.
51912         * modules/unictype/combining-class-tests: Likewise.
51913         * modules/unictype/ctype-alnum-tests: Likewise.
51914         * modules/unictype/ctype-alpha-tests: Likewise.
51915         * modules/unictype/ctype-blank-tests: Likewise.
51916         * modules/unictype/ctype-cntrl-tests: Likewise.
51917         * modules/unictype/ctype-digit-tests: Likewise.
51918         * modules/unictype/ctype-graph-tests: Likewise.
51919         * modules/unictype/ctype-lower-tests: Likewise.
51920         * modules/unictype/ctype-print-tests: Likewise.
51921         * modules/unictype/ctype-punct-tests: Likewise.
51922         * modules/unictype/ctype-space-tests: Likewise.
51923         * modules/unictype/ctype-upper-tests: Likewise.
51924         * modules/unictype/ctype-xdigit-tests: Likewise.
51925         * modules/unictype/decimal-digit-tests: Likewise.
51926         * modules/unictype/digit-tests: Likewise.
51927         * modules/unictype/mirror-tests: Likewise.
51928         * modules/unictype/numeric-tests: Likewise.
51929         * modules/unictype/property-alphabetic-tests: Likewise.
51930         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
51931         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
51932         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
51933         * modules/unictype/property-bidi-block-separator-tests: Likewise.
51934         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
51935         * modules/unictype/property-bidi-common-separator-tests: Likewise.
51936         * modules/unictype/property-bidi-control-tests: Likewise.
51937         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
51938         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
51939         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
51940         * modules/unictype/property-bidi-european-digit-tests: Likewise.
51941         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
51942         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
51943         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
51944         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
51945         * modules/unictype/property-bidi-pdf-tests: Likewise.
51946         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
51947         * modules/unictype/property-bidi-whitespace-tests: Likewise.
51948         * modules/unictype/property-byname-tests: Likewise.
51949         * modules/unictype/property-combining-tests: Likewise.
51950         * modules/unictype/property-composite-tests: Likewise.
51951         * modules/unictype/property-currency-symbol-tests: Likewise.
51952         * modules/unictype/property-dash-tests: Likewise.
51953         * modules/unictype/property-decimal-digit-tests: Likewise.
51954         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
51955         * modules/unictype/property-deprecated-tests: Likewise.
51956         * modules/unictype/property-diacritic-tests: Likewise.
51957         * modules/unictype/property-extender-tests: Likewise.
51958         * modules/unictype/property-format-control-tests: Likewise.
51959         * modules/unictype/property-grapheme-base-tests: Likewise.
51960         * modules/unictype/property-grapheme-extend-tests: Likewise.
51961         * modules/unictype/property-grapheme-link-tests: Likewise.
51962         * modules/unictype/property-hex-digit-tests: Likewise.
51963         * modules/unictype/property-hyphen-tests: Likewise.
51964         * modules/unictype/property-id-continue-tests: Likewise.
51965         * modules/unictype/property-id-start-tests: Likewise.
51966         * modules/unictype/property-ideographic-tests: Likewise.
51967         * modules/unictype/property-ids-binary-operator-tests: Likewise.
51968         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
51969         * modules/unictype/property-ignorable-control-tests: Likewise.
51970         * modules/unictype/property-iso-control-tests: Likewise.
51971         * modules/unictype/property-join-control-tests: Likewise.
51972         * modules/unictype/property-left-of-pair-tests: Likewise.
51973         * modules/unictype/property-line-separator-tests: Likewise.
51974         * modules/unictype/property-logical-order-exception-tests: Likewise.
51975         * modules/unictype/property-lowercase-tests: Likewise.
51976         * modules/unictype/property-math-tests: Likewise.
51977         * modules/unictype/property-non-break-tests: Likewise.
51978         * modules/unictype/property-not-a-character-tests: Likewise.
51979         * modules/unictype/property-numeric-tests: Likewise.
51980         * modules/unictype/property-other-alphabetic-tests: Likewise.
51981         * modules/unictype/property-other-default-ignorable-code-point-tests:
51982         Likewise.
51983         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
51984         * modules/unictype/property-other-id-continue-tests: Likewise.
51985         * modules/unictype/property-other-id-start-tests: Likewise.
51986         * modules/unictype/property-other-lowercase-tests: Likewise.
51987         * modules/unictype/property-other-math-tests: Likewise.
51988         * modules/unictype/property-other-uppercase-tests: Likewise.
51989         * modules/unictype/property-paired-punctuation-tests: Likewise.
51990         * modules/unictype/property-paragraph-separator-tests: Likewise.
51991         * modules/unictype/property-pattern-syntax-tests: Likewise.
51992         * modules/unictype/property-pattern-white-space-tests: Likewise.
51993         * modules/unictype/property-private-use-tests: Likewise.
51994         * modules/unictype/property-punctuation-tests: Likewise.
51995         * modules/unictype/property-quotation-mark-tests: Likewise.
51996         * modules/unictype/property-radical-tests: Likewise.
51997         * modules/unictype/property-sentence-terminal-tests: Likewise.
51998         * modules/unictype/property-soft-dotted-tests: Likewise.
51999         * modules/unictype/property-space-tests: Likewise.
52000         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52001         * modules/unictype/property-test-tests: Likewise.
52002         * modules/unictype/property-titlecase-tests: Likewise.
52003         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52004         * modules/unictype/property-unified-ideograph-tests: Likewise.
52005         * modules/unictype/property-uppercase-tests: Likewise.
52006         * modules/unictype/property-variation-selector-tests: Likewise.
52007         * modules/unictype/property-white-space-tests: Likewise.
52008         * modules/unictype/property-xid-continue-tests: Likewise.
52009         * modules/unictype/property-xid-start-tests: Likewise.
52010         * modules/unictype/property-zero-width-tests: Likewise.
52011         * modules/unictype/scripts-tests: Likewise.
52012         * modules/unictype/syntax-c-ident-tests: Likewise.
52013         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52014         * modules/unictype/syntax-java-ident-tests: Likewise.
52015         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52016         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52017         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52018         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52019         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52020         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52021         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52022         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52023         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52024         * modules/uniname/uniname-tests: Likewise.
52025         * modules/uninorm/canonical-decomposition-tests: Likewise.
52026         * modules/uninorm/compat-decomposition-tests: Likewise.
52027         * modules/uninorm/composition-tests: Likewise.
52028         * modules/uninorm/decomposing-form-tests: Likewise.
52029         * modules/uninorm/decomposition-tests: Likewise.
52030         * modules/uninorm/filter-tests: Likewise.
52031         * modules/uninorm/nfc-tests: Likewise.
52032         * modules/uninorm/nfd-tests: Likewise.
52033         * modules/uninorm/nfkc-tests: Likewise.
52034         * modules/uninorm/nfkd-tests: Likewise.
52035         * modules/uninorm/u8-normcmp-tests: Likewise.
52036         * modules/uninorm/u8-normcoll-tests: Likewise.
52037         * modules/uninorm/u16-normcmp-tests: Likewise.
52038         * modules/uninorm/u16-normcoll-tests: Likewise.
52039         * modules/uninorm/u32-normcmp-tests: Likewise.
52040         * modules/uninorm/u32-normcoll-tests: Likewise.
52041         * modules/unistdio/u8-asnprintf-tests: Likewise.
52042         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52043         * modules/unistdio/u8-vasprintf-tests: Likewise.
52044         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52045         * modules/unistdio/u8-vsprintf-tests: Likewise.
52046         * modules/unistdio/u16-asnprintf-tests: Likewise.
52047         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52048         * modules/unistdio/u16-vasprintf-tests: Likewise.
52049         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52050         * modules/unistdio/u16-vsprintf-tests: Likewise.
52051         * modules/unistdio/u32-asnprintf-tests: Likewise.
52052         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52053         * modules/unistdio/u32-vasprintf-tests: Likewise.
52054         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52055         * modules/unistdio/u32-vsprintf-tests: Likewise.
52056         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52057         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52058         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52059         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52060         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52061         * modules/unistr/u8-check-tests: Likewise.
52062         * modules/unistr/u8-chr-tests: Likewise.
52063         * modules/unistr/u8-cmp-tests: Likewise.
52064         * modules/unistr/u8-cmp2-tests: Likewise.
52065         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52066         * modules/unistr/u8-cpy-tests: Likewise.
52067         * modules/unistr/u8-mblen-tests: Likewise.
52068         * modules/unistr/u8-mbsnlen-tests: Likewise.
52069         * modules/unistr/u8-mbtouc-tests: Likewise.
52070         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52071         * modules/unistr/u8-mbtoucr-tests: Likewise.
52072         * modules/unistr/u8-move-tests: Likewise.
52073         * modules/unistr/u8-next-tests: Likewise.
52074         * modules/unistr/u8-prev-tests: Likewise.
52075         * modules/unistr/u8-set-tests: Likewise.
52076         * modules/unistr/u8-stpcpy-tests: Likewise.
52077         * modules/unistr/u8-stpncpy-tests: Likewise.
52078         * modules/unistr/u8-strcat-tests: Likewise.
52079         * modules/unistr/u8-strcmp-tests: Likewise.
52080         * modules/unistr/u8-strcoll-tests: Likewise.
52081         * modules/unistr/u8-strcpy-tests: Likewise.
52082         * modules/unistr/u8-strdup-tests: Likewise.
52083         * modules/unistr/u8-strlen-tests: Likewise.
52084         * modules/unistr/u8-strmblen-tests: Likewise.
52085         * modules/unistr/u8-strmbtouc-tests: Likewise.
52086         * modules/unistr/u8-strncat-tests: Likewise.
52087         * modules/unistr/u8-strncmp-tests: Likewise.
52088         * modules/unistr/u8-strncpy-tests: Likewise.
52089         * modules/unistr/u8-strnlen-tests: Likewise.
52090         * modules/unistr/u8-to-u16-tests: Likewise.
52091         * modules/unistr/u8-to-u32-tests: Likewise.
52092         * modules/unistr/u8-uctomb-tests: Likewise.
52093         * modules/unistr/u16-check-tests: Likewise.
52094         * modules/unistr/u16-chr-tests: Likewise.
52095         * modules/unistr/u16-cmp-tests: Likewise.
52096         * modules/unistr/u16-cmp2-tests: Likewise.
52097         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52098         * modules/unistr/u16-cpy-tests: Likewise.
52099         * modules/unistr/u16-mblen-tests: Likewise.
52100         * modules/unistr/u16-mbsnlen-tests: Likewise.
52101         * modules/unistr/u16-mbtouc-tests: Likewise.
52102         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52103         * modules/unistr/u16-mbtoucr-tests: Likewise.
52104         * modules/unistr/u16-move-tests: Likewise.
52105         * modules/unistr/u16-next-tests: Likewise.
52106         * modules/unistr/u16-prev-tests: Likewise.
52107         * modules/unistr/u16-set-tests: Likewise.
52108         * modules/unistr/u16-stpcpy-tests: Likewise.
52109         * modules/unistr/u16-stpncpy-tests: Likewise.
52110         * modules/unistr/u16-strcat-tests: Likewise.
52111         * modules/unistr/u16-strcmp-tests: Likewise.
52112         * modules/unistr/u16-strcoll-tests: Likewise.
52113         * modules/unistr/u16-strcpy-tests: Likewise.
52114         * modules/unistr/u16-strdup-tests: Likewise.
52115         * modules/unistr/u16-strlen-tests: Likewise.
52116         * modules/unistr/u16-strmblen-tests: Likewise.
52117         * modules/unistr/u16-strmbtouc-tests: Likewise.
52118         * modules/unistr/u16-strncat-tests: Likewise.
52119         * modules/unistr/u16-strncmp-tests: Likewise.
52120         * modules/unistr/u16-strncpy-tests: Likewise.
52121         * modules/unistr/u16-strnlen-tests: Likewise.
52122         * modules/unistr/u16-to-u32-tests: Likewise.
52123         * modules/unistr/u16-to-u8-tests: Likewise.
52124         * modules/unistr/u16-uctomb-tests: Likewise.
52125         * modules/unistr/u32-check-tests: Likewise.
52126         * modules/unistr/u32-chr-tests: Likewise.
52127         * modules/unistr/u32-cmp-tests: Likewise.
52128         * modules/unistr/u32-cmp2-tests: Likewise.
52129         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52130         * modules/unistr/u32-cpy-tests: Likewise.
52131         * modules/unistr/u32-mblen-tests: Likewise.
52132         * modules/unistr/u32-mbsnlen-tests: Likewise.
52133         * modules/unistr/u32-mbtouc-tests: Likewise.
52134         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52135         * modules/unistr/u32-mbtoucr-tests: Likewise.
52136         * modules/unistr/u32-move-tests: Likewise.
52137         * modules/unistr/u32-next-tests: Likewise.
52138         * modules/unistr/u32-prev-tests: Likewise.
52139         * modules/unistr/u32-set-tests: Likewise.
52140         * modules/unistr/u32-stpcpy-tests: Likewise.
52141         * modules/unistr/u32-stpncpy-tests: Likewise.
52142         * modules/unistr/u32-strcat-tests: Likewise.
52143         * modules/unistr/u32-strcmp-tests: Likewise.
52144         * modules/unistr/u32-strcoll-tests: Likewise.
52145         * modules/unistr/u32-strcpy-tests: Likewise.
52146         * modules/unistr/u32-strdup-tests: Likewise.
52147         * modules/unistr/u32-strlen-tests: Likewise.
52148         * modules/unistr/u32-strmblen-tests: Likewise.
52149         * modules/unistr/u32-strmbtouc-tests: Likewise.
52150         * modules/unistr/u32-strncat-tests: Likewise.
52151         * modules/unistr/u32-strncmp-tests: Likewise.
52152         * modules/unistr/u32-strncpy-tests: Likewise.
52153         * modules/unistr/u32-strnlen-tests: Likewise.
52154         * modules/unistr/u32-to-u16-tests: Likewise.
52155         * modules/unistr/u32-to-u8-tests: Likewise.
52156         * modules/unistr/u32-uctomb-tests: Likewise.
52157         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52158         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52159         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52160         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52161         * modules/uniwidth/u8-strwidth-tests: Likewise.
52162         * modules/uniwidth/u8-width-tests: Likewise.
52163         * modules/uniwidth/u16-strwidth-tests: Likewise.
52164         * modules/uniwidth/u16-width-tests: Likewise.
52165         * modules/uniwidth/u32-strwidth-tests: Likewise.
52166         * modules/uniwidth/u32-width-tests: Likewise.
52167         * modules/uniwidth/width-tests: Likewise.
52169 2010-05-18  Richard Jones  <rjones@redhat.com>
52171         doc: users.txt: list hivex
52172         * users.txt: Add hivex.
52174 2010-05-18  Richard Jones  <rjones@redhat.com>
52176         doc: users.txt: list febootstrap
52177         * users.txt: Add febootstrap.
52179 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52181         bootstrap: fix an error when gnulib is not used as a git submodule
52182         * build-aux/bootstrap (gnulib_path): If its length is zero then
52183         assign "gnulib" to it.
52184         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52186 2010-05-16  Bruno Haible  <bruno@clisp.org>
52188         Avoid autoconf warnings about AM_ICONV.
52189         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52190         2.64.
52192 2010-05-16  Bruno Haible  <bruno@clisp.org>
52194         absolute-header: Make the macro usable in more situations.
52195         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52196         from gl_ABSOLUTE_HEADER.
52197         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52199 2010-05-16  James Youngman  <jay@gnu.org>
52201         doc: update users.txt
52202         * users.txt: Add CSSC.
52204 2010-05-16  Jim Meyering  <meyering@redhat.com>
52206         init.sh: fix an error in the previous change; add more comments
52207         * tests/init.sh: Compare exit code in loop against 9, not 2.
52208         Patch by Bruno Haible.
52209         Make the two tests more similar by adding an empty "then" clause.
52210         Add comments.
52212         init.sh: avoid unnecessary shell re-exec
52213         * tests/init.sh: Improve the re-exec-required check to first test the
52214         current shell.  If it passes the test, do not search for a shell that
52215         does pass, and do not re-exec.  This test is particularly contorted to
52216         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52217         of $(...) evokes a syntax error and causes immediate shell exit with
52218         status 2.  Bruno Haible reported that the re-exec made it impossible
52219         to single-step through any init.sh-using script.
52221 2010-05-16  Bruno Haible  <bruno@clisp.org>
52223         Fix collision between gnulib's and libintl's printf replacements.
52224         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52225         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52226         (printf): When using GNU C, map the __printf__ function to rpl_printf
52227         via __asm__. When not using GNU C, define rpl_printf instead of
52228         __printf__.
52229         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52230         commit.
52231         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52232         commit.
52233         * m4/asm-underscore.m4: New file.
52234         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52235         * modules/stdio (Files): Add m4/asm-underscore.m4.
52236         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52237         Reported by Ben Pfaff.
52239 2010-05-16  Bruno Haible  <bruno@clisp.org>
52241         verify: Avoid skipping the test on openSUSE 11.0.
52242         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52244 2010-05-13  Bruno Haible  <bruno@clisp.org>
52246         Avoid useless warnings from G++.
52247         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52248         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52249         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52251 2010-05-11  Jim Meyering  <meyering@redhat.com>
52253         maint.mk: tweak preceding change
52254         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52255         regexps tighter by anchoring at EOL, and make the new group "shy"
52256         for slightly decreased overhead.
52258 2010-05-11  Eric Blake  <eblake@redhat.com>
52260         maint.mk: gnulib doesn't guarantee NSIG
52261         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52263 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52265         test-pwrite.c: Remove unused variable declaration.
52266         * tests/test-pwrite.c (main): Remove read_buf declaration.
52268         Remove useless test-pwrite.sh file.
52269         * tests/test-pwrite.sh: Delete file.
52270         * modules/pwrite-tests: Remove references.
52271         Reported by Bruno Haible.
52273 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52275         init.sh: fix a typo
52276         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52278 2010-05-10  Jim Meyering  <meyering@redhat.com>
52280         maint.mk: avoid using a temporary file in the always-defined-macros check
52281         * top/maint.mk (.re-defmac): Remove rule.
52282         (gl_trap_): Remove definition.
52283         (sc_prohibit_always-defined_macros): Rewrite not to create and
52284         depend on a temporary file.  Instead, depend on GNU grep's ability
52285         to read a list of regular expressions from stdin when given "-f -".
52287 2010-05-09  Bruno Haible  <bruno@clisp.org>
52289         Update to GNU gettext 0.18, part 1.
52290         * m4/gettext.m4: Update to GNU gettext 0.18.
52291         * m4/intl.m4: Likewise.
52292         * m4/po.m4: Likewise.
52293         * modules/gettext (Files): Add m4/fcntl-o.m4.
52294         (configure.ac): Require gettext infrastructure from version 0.18.
52296 2010-05-09  Jim Meyering  <meyering@redhat.com>
52298         init.sh: enable MALLOC_PERTURB_
52299         * tests/init.sh: Enable glibc's malloc-perturbing option.
52301         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52302         With my recent change in init.sh from the two-line form:
52303             -#   : ${srcdir=.}
52304             -#   . "$srcdir/init.sh"; path_prepend_ .
52305             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52306         I noticed that using the one-line form would cause this test
52307         to fail with a false-positive, or to stop working altogether,
52308         depending on whether help-version changed or all the tests did.
52309         * top/maint.mk (_hv_regex): Remove this definition.
52310         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52311         (_hv_regex_strong): Use a stronger regex to check for conformance.
52312         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52313         Give a separate diagnostic for lack of conforming use.
52315         maint.mk: prohibit definition of symbols defined by gnulib
52316         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52317         definition of symbols defined by gnulib.
52319 2010-05-09  Bruno Haible  <bruno@clisp.org>
52321         acl: Avoid test failure on Cygwin-hosted mingw.
52322         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52324 2010-05-09  Bruno Haible  <bruno@clisp.org>
52326         error: Use system's fcntl function.
52327         * lib/error.c (fcntl): Undefine.
52329 2010-05-09  Jim Meyering  <meyering@redhat.com>
52331         verify: adjust formatting to be more consistent
52332         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52333         argument-list '('s, and after one comma.
52335 2010-05-09  Bruno Haible  <bruno@clisp.org>
52337         error: More reliable output on mingw.
52338         * lib/error.c: Include <windows.h>.
52339         (is_open): New function.
52340         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52341         defined.
52343 2010-05-09  Bruno Haible  <bruno@clisp.org>
52345         vasnprintf: Fix syntax errors in libintl build on mingw.
52346         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52347         pad_ourselves and prec_ourselves after use.
52349 2010-05-08  Bruno Haible  <bruno@clisp.org>
52351         * lib/config.charset: Update comments for Cygwin 1.7.
52352         * lib/localcharset.c: Likewise.
52354 2010-05-07  Jim Meyering  <meyering@redhat.com>
52356         init.sh: improve comments
52357         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52358         . "${srcdir=.}/init.sh"; path_prepend_ .
52359         Add a note about path_prepend_ and the alternative of using
52360         TESTS_ENVIRONMENT.
52362 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52364         exclude: Unescape hashed patterns in wildcard mode.
52365         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52366         to the hash list.
52367         * tests/test-exclude8.sh: New test case.
52368         * modules/exclude-tests: Add new test.
52370 2010-05-05  Eric Blake  <eblake@redhat.com>
52372         verify: automate tests
52373         * modules/verify-tests: New module.
52374         * tests/test-verify.sh: New file.
52375         * tests/test-verify.c: Guard each negative test with a unique id.
52376         Also avoid warning about unused left hand of comma expressions.
52378 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52380         Further improvements to verify.h, suggested by Eric Blake.
52381         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52382         the GL_* versions, to avoid collision with OpenGL.
52383         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52384         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52385         than testing merely whether it's defined.
52387         Modify verify.h to pacify gcc -Wredundant_decls.
52388         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52389         These use the prefix "GL_" since they're likely to be useful elsewhere.
52390         We may need to break them out into a different .h file.
52391         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52392         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52393         of verify_function__.
52395 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52397         Tests for module pwrite.
52398         * modules/pwrite-tests: New file.
52399         * tests/test-pwrite.sh: New file.
52400         * tests/test-pwrite.c: New file.
52402         New module pwrite.
52403         * lib/unistd.in.h (pwrite): New declaration.
52404         * lib/pwrite.c: New file, from glibc with modifications.
52405         * m4/pwrite.m4: New file.
52406         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52407         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52408         REPLACE_PWRITE.
52409         * modules/pwrite: New file.
52410         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52411         REPLACE_PWRITE.
52412         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52413         * doc/posix-functions/pwrite.texi: Mention the new module.
52415 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52417         pread: Update documentation.
52418         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52420 2010-05-04  Eric Blake  <eblake@redhat.com>
52422         docs: update cygwin progress
52423         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52424         this bug.
52425         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52426         Added in cygwin 1.7.2.
52427         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52428         Likewise.
52429         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52430         Likewise.
52431         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52432         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52433         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52434         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52435         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52436         Mention nproc module.
52437         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52438         bug in cygwin 1.7.5 addition.
52439         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52440         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52441         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52442         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52443         1.7.5.
52444         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52445         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52446         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52447         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52448         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52449         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52450         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52451         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52452         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52453         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52454         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52455         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52456         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52457         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52458         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52459         Likewise.
52460         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52461         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52462         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52463         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52464         Likewise.
52465         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52466         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52467         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52468         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52469         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52470         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52471         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52472         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52473         Likewise.
52474         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52475         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52476         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52477         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52478         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52479         Likewise.
52480         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52481         Likewise.
52482         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52483         Likewise.
52484         * doc/glibc-functions/xdrrec_endofrecord.texi
52485         (xdrrec_endofrecord): Likewise.
52486         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52487         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52488         Likewise.
52489         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52490         Likewise.
52492 2010-05-04  Jim Meyering  <meyering@redhat.com>
52494         gendocs.sh: make its "-s FILE" option more useful
52495         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52496         $PACKAGE to reflect the probably-different basename of "FILE".
52498 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52500         bootstrap: don't ignore download_po_files failure
52501         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52502         failure.
52504 2010-05-03  Jim Meyering  <meyering@redhat.com>
52506         maint.mk: allow to pass options to gendocs.sh
52507         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52508         (gendocs_options_): New overridable variable.
52510         gnu-web-doc-update: don't ignore configure or build failure
52511         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52513         announce-gen: backslash-escape '@'s in --help output
52514         * build-aux/announce-gen: Fix syntax errors.
52516         maint.mk, announce-gen: allow project-specific announcement mail headers
52517         * top/maint.mk (translation_project_): Define default.
52518         (announcement_Cc_, announcement_mail_headers_): Likewise.
52519         (announcement): Invoke announce-gen with new --mail-headers option.
52520         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52522         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52523         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52524         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52525         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52526         line in the "err2" output file when running "make check" in verbose
52527         mode (i.e., with set -x enabled).
52529 2010-05-03  Bruno Haible  <bruno@clisp.org>
52531         wctob: Fix for weird platforms.
52532         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52533         argument value.
52535 2010-05-03  Jim Meyering  <meyering@redhat.com>
52537         maint.mk: prohibit unwarranted use of <strings.h>
52538         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52539         strings.h in a file that does not also use strcasecmp, strncasecmp,
52540         ffs or ffsll.
52542         maint.mk: remove obsolete comments
52543         * top/maint.mk: Remove stale, commented-out rules.
52545 2010-05-02  Bruno Haible  <bruno@clisp.org>
52547         wcwidth: Declare also when it's aliased.
52548         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52549         macro.
52551 2010-05-02  Bruno Haible  <bruno@clisp.org>
52553         Fix regression from 2010-04-25.
52554         * gnulib-tool (func_modules_transitive_closure): Check the status of
52555         all modules, not only of the tests that are of the form foo-tests where
52556         foo is a module.
52558 2010-05-02  Bruno Haible  <bruno@clisp.org>
52560         wctob: Work around nasty Cygwin 1.7.2 bug.
52561         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52562         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52564 2010-05-01  Bruno Haible  <bruno@clisp.org>
52566         fpurge: Sharper test.
52567         * tests/test-fpurge.c (main): Add one more ftell check.
52568         * modules/fpurge-tests (Depends-on): Add ftell.
52569         Suggested by Eric Blake.
52571 2010-05-01  Bruno Haible  <bruno@clisp.org>
52573         ftello: Another test.
52574         * tests/test-ftello3.c: New file.
52575         * modules/ftello-tests (Files): Add it.
52576         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52577         MOSTLYCLEANFILES.
52579         ftell: Another test.
52580         * tests/test-ftell3.c: New file.
52581         * modules/ftell-tests (Files): Add it.
52582         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52583         MOSTLYCLEANFILES.
52585 2010-05-01  Bruno Haible  <bruno@clisp.org>
52587         ftell, ftello: Work around Solaris bug.
52588         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52589         * lib/ftello.c: Include stdio-impl.h.
52590         (ftello): On Solaris, when _IOWRT is set, compute the result without
52591         looking at _IOREAD.
52592         * modules/ftello (Files): Add lib/stdio-impl.h.
52593         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52594         * doc/posix-functions/ftello.texi: Likewise.
52595         Reported by Eric Blake.
52597 2010-05-01  Bruno Haible  <bruno@clisp.org>
52599         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52600         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52601         the _IOWRT flag is also set.
52603 2010-05-01  Bruno Haible  <bruno@clisp.org>
52605         Fix doc about a HP-UX stdio bug.
52606         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52607         * doc/posix-functions/ftello.texi: Likewise.
52609 2010-05-01  Bruno Haible  <bruno@clisp.org>
52611         lseek test: Fix failure on Solaris.
52612         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52613         output.
52615 2010-04-30  Jim Meyering  <meyering@redhat.com>
52617         bootstrap: don't ignore failure to generate po*/Makevars
52618         * build-aux/bootstrap (with_gettext): Don't ignore failure
52619         to create po/Makevars or runtime-po/Makevars.
52621 2010-04-29  Eric Blake  <eblake@redhat.com>
52623         headers: relax license to LGPLv2+
52624         * modules/fcntl-h (License): Relax license.
52625         * modules/getopt-posix (License): Likewise.
52626         * modules/locale (License): Likewise.
52627         * modules/math (License): Likewise.
52628         * modules/pty (License): Likewise.
52629         * modules/sched (License): Likewise.
52630         * modules/search (License): Likewise.
52631         * modules/spawn (License): Likewise.
52632         * modules/stdarg (License): Likewise.
52633         * modules/sysexits (License): Likewise.
52635 2010-04-29  Jim Meyering  <meyering@redhat.com>
52637         inttypes: relax license to LGPLv2+
52638         * modules/inttypes (License): Relax license.
52640 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52642         * top/maint.mk (indent): Run twice to produce idempotent results.
52644 2010-04-28  Bruno Haible  <bruno@clisp.org>
52646         getdate: Generate getdate.c in the source directory.
52647         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52648         MOSTLYCLEANFILES.
52649         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52651 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52653         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52654         is not declared as a const *; avoid warnings in that case.
52656 2010-04-28  Eric Blake  <eblake@redhat.com>
52658         canonicalize-lgpl: avoid compiler warning
52659         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52660         declaration' / 'extraneous semicolon' warning with some compilers.
52661         Reported by Andreas Gruenbacher.
52663 2010-04-28  Jim Meyering  <meyering@redhat.com>
52665         init.sh: ensure a more reliable exit status when exiting via trap
52666         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52667         Inspired by patches from Dmitry V. Levin.
52668         Also trap on signal 3 (SIGQUIT).
52670 2010-04-27  Bruno Haible  <bruno@clisp.org>
52672         Update doc about utimes().
52673         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52674         'utimens' module.
52675         Reported by Andreas Gruenbacher <agruen@suse.de>.
52677 2010-04-27  Eric Blake  <eblake@redhat.com>
52679         full-read, full-write: relax license
52680         * modules/full-read (License): Drop to LGPLv2+.
52681         * modules/full-write (License): Likewise.
52682         * modules/safe-read (License): Likewise.
52683         * modules/safe-write (License): Likewise.
52685         pthread: mention library for linking
52686         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52688 2010-04-27  Jim Meyering  <meyering@redhat.com>
52690         maint.mk: fix a bug introduced in last change
52691         * top/maint.mk (gl_assured_headers_): Now that all names are on
52692         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52693         is not anchored to end of word, it should be adequate.
52695         maint.mk: avoid side-effect in latest syntax-check
52696         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52697         to run commands via $(shell...), and hence to incur cost only when
52698         the new rule is actually run.
52700         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52701         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52702         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52703         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52704         (gl_assured_headers_, az_, AZ_): Define.
52705         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52707 2010-04-26  Jim Meyering  <jim@meyering.net>
52708             Bruno Haible  <bruno@clisp.org>
52710         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52711         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52712         Prompted by an exchange with Gilles Espinasse.
52714 2010-04-26  Jim Meyering  <meyering@redhat.com>
52716         git-version-gen: aesthetic tweak
52717         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52718         so that the command remains on a single line.
52720 2010-04-26  Eric Blake  <eblake@redhat.com>
52722         git-version-gen: allow use on EBCDIC hosts
52723         * build-aux/git-version-gen (dirty): Use literal rather than tying
52724         ourselves to ascii.
52725         Reported by Steve Goetze.
52727 2010-04-25  Bruno Haible  <bruno@clisp.org>
52729         netdb: Add support for GNULIB_POSIXCHECK.
52730         * lib/netdb.in.h: Include warn-on-use.h.
52731         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52732         functions are used when GNULIB_POSIXCHECK is defined and the
52733         getaddrinfo module is not in use.
52734         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52735         freeaddrinfo, gai_strerror, getnameinfo are declared.
52736         * modules/netdb (Depends-on): Add warn-on-use.
52737         (Makefile.am): Include warn-on-use.h in netdb.h.
52739 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52741         build: avoid "make check" failure without .git/ directory
52742         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52743         there is no .git/ directory.
52745 2010-04-25  Bruno Haible  <bruno@clisp.org>
52747         ptsname: Fix misuse of ttyname_r.
52748         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52749         of errno.
52751 2010-04-25  Bruno Haible  <bruno@clisp.org>
52753         ttyname_r: Make it work on Solaris 10.
52754         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52755         if the system function has the POSIX declaration. Test whether the
52756         function fails if the buffer is less than 128 bytes large.
52757         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52758         system's ttyname_r function. Provide a reasonably large buffer.
52759         * modules/ttyname_r (Depends-on): Add extensions.
52760         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52762 2010-04-25  Bruno Haible  <bruno@clisp.org>
52764         Use the 'extensions' module for some more functions on Solaris.
52765         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52766         module.
52767         * doc/posix-functions/ctime_r.texi: Likewise.
52768         * doc/posix-functions/getgrgid_r.texi: Likewise.
52769         * doc/posix-functions/getgrnam_r.texi: Likewise.
52770         * doc/posix-functions/getpwnam_r.texi: Likewise.
52771         * doc/posix-functions/getpwuid_r.texi: Likewise.
52772         * doc/posix-functions/readdir_r.texi: Likewise.
52773         * doc/posix-functions/sigwait.texi: Likewise.
52774         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52775         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52777 2010-04-25  Bruno Haible  <bruno@clisp.org>
52779         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52780         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52781         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52782         * lib/ttyname_r.c: Include <limits.h>.
52783         (ttyname_r): Define using the system's ttyname_r function, if it exists
52784         and not on Solaris.
52785         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52786         set.
52787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52788         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52789         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52790         Reported by Simon Josefsson.
52792 2010-04-25  Bruno Haible  <bruno@clisp.org>
52794         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52795         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52796         * doc/posix-functions/ctime_r.texi: Likewise.
52797         * doc/posix-functions/getgrgid_r.texi: Likewise.
52798         * doc/posix-functions/getgrnam_r.texi: Likewise.
52799         * doc/posix-functions/getlogin_r.texi: Likewise.
52800         * doc/posix-functions/getpwnam_r.texi: Likewise.
52801         * doc/posix-functions/getpwuid_r.texi: Likewise.
52802         * doc/posix-functions/readdir_r.texi: Likewise.
52803         * doc/posix-functions/sigwait.texi: Likewise.
52804         * doc/posix-functions/ttyname_r.texi: Likewise.
52805         Reported by Simon Josefsson.
52807 2010-04-25  Bruno Haible  <bruno@clisp.org>
52809         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52810         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52811         also to --create-testdir.
52812         (func_acceptable): Don't consider the status of *-tests modules here.
52813         (func_modules_transitive_closure): Consider it here, before including a
52814         test module.
52815         (func_import, func_create_testdir): Set inc_all_direct_tests,
52816         inc_all_indirect_tests.
52817         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52818         --create-testdir and --create-megatestdir.
52820 2010-04-25  Bruno Haible  <bruno@clisp.org>
52822         gnulib-tool: Add --without-*-tests options.
52823         * gnulib-tool (func_usage): Document the --without-*-tests options.
52824         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52825         excl_unportable_tests): New variables.
52826         Fail if they are specified with --import or --update.
52827         (func_acceptable): Respect the excl_*_tests variables.
52828         (func_import): Set the excl_*_tests variables to empty.
52830 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52831             Bruno Haible  <bruno@clisp.org>
52833         Work around a MacOS X 10.4 bug with openpty.
52834         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52835         * tests/test-openpty.c (main): Close the master side explicitly.
52837 2010-04-25  Bruno Haible  <bruno@clisp.org>
52839         strnlen: Fix a C++ test error on MacOS X and Solaris.
52840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52841         the function is not declared.
52842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52843         Simon Josefsson.
52845 2010-04-24  Bruno Haible  <bruno@clisp.org>
52847         Avoid a gcc warning.
52848         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52849         of correct type for %08lx directive.
52850         Reported by Eric Blake.
52852 2010-04-24  Bruno Haible  <bruno@clisp.org>
52854         vasnprintf: Correct errno value in case of out-of-memory.
52855         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52856         or sprintf. Use the errno value from SNPRINTF or sprintf.
52857         Reported by Ian Beckwith <ianb@erislabs.net>.
52859 2010-04-24  Bruno Haible  <bruno@clisp.org>
52861         ansi-c++-opt: Find correct compiler when cross-compiling.
52862         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52863         AC_CHECK_PROGS.
52864         Reported by Simon Josefsson.
52866 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52868         vc-list-files: Add support for subversion
52869         * build-aux/vc-list-files: Use "svn list" to generate the list of
52870         files controlled by subversion.
52872 2010-04-23  Jim Meyering  <meyering@redhat.com>
52874         vc-list-files tests: convert to use init.sh
52875         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52876         path_prepend_.
52877         Use Exit, not exit.
52878         Use skip_ rather than open coding it.
52879         Remove trap set-up and compare definitions.
52880         * tests/test-vc-list-files-git.sh: Likewise.
52881         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52883 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52885         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52886         backup files.
52888 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52890         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52892 2010-04-20  Eric Blake  <eblake@redhat.com>
52894         tests: be robust to ignored SIGPIPE
52895         * tests/test-select-in.sh: Consume all output.
52896         * tests/test-lseek.sh: Check correct exit status, while avoiding
52897         EPIPE.
52899 2010-04-20  Simon Josefsson  <simon@josefsson.org>
52900             Bruno Haible  <bruno@clisp.org>
52902         visibility: Don't use -fvisibility if it leads to a warning.
52903         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
52904         yes, don't pretend that visibility works if it leads to a warning.
52905         Reported by Mike Gran <spk121@yahoo.com>.
52907 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
52909         * build-aux/bootstrap: Use "git -h" for testing for supported options
52910         instead of "git --help".  The short-form option only shows a summary,
52911         and doesn't layout the full man page.  Grep for the full option name
52912         in the summary, too.
52914 2010-04-19  Bruno Haible  <bruno@clisp.org>
52916         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
52917         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
52918         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
52919         mention of RELOCATABLE_STRIP.
52920         Reported by Sylvain Beucler <beuc@beuc.net>.
52922 2010-04-19  Bruno Haible  <bruno@clisp.org>
52924         * lib/diffseq.h: Fix typo in comment.
52925         Reported by Eric Blake.
52927 2010-04-19  Bruno Haible  <bruno@clisp.org>
52929         ioctl: Move autoconf macro to a .m4 file.
52930         * m4/ioctl.m4: New file, extracted from modules/ioctl.
52931         * modules/ioctl (Files): Add it.
52932         (configure.ac): Simply invoke gl_FUNC_IOCTL.
52933         Reported by Ian Beckwith <ianb@erislabs.net>.
52935 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
52936             Bruno Haible  <bruno@clisp.org>
52938         diffseq: Accommodate use-case with abstract arrays.
52939         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
52940         is not defined.
52941         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
52942         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
52944 2010-04-18  Bruno Haible  <bruno@clisp.org>
52946         * doc/posix-headers/stdbool.texi: More precise wording.
52948 2010-04-17  Jim Meyering  <meyering@redhat.com>
52950         maint.mk: use gnu-style indentation in an embedded perl script
52951         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
52952         Rename variable: s/two/last_two_bytes/
52954 2010-04-16  Eric Blake  <eblake@redhat.com>
52956         test-stdbool: skip test that fails with Solaris CC
52957         * tests/test-stdbool.c (f): Skip test that causes compilation
52958         error under buggy C++ compiler.
52959         * lib/stdbool.in.h: Document the limitation.
52960         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
52962         setenv: allow compilation with C++
52963         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
52964         register keyword.
52966         stdint: allow test to pass with C++
52967         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
52969         getopt: allow compilation with C++
52970         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
52971         struct.
52972         * lib/getopt.c (_getopt_internal_r): Use correct type.
52973         Reported by Dagobert Michelson, via Joel E. Denny.
52975 2010-04-16  Bruno Haible  <bruno@clisp.org>
52977         Override netdb.h always.
52978         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
52979         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
52980         Reported by Ludovic Courtès <ludo@gnu.org>.
52982 2010-04-15  Bruno Haible  <bruno@clisp.org>
52984         openpty: Fix mistake from 2010-03-21.
52985         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
52986         Reported by Simon Josefsson.
52988 2010-04-15  Eric Blake  <eblake@redhat.com>
52990         test-forkpty: fix expected signature
52991         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
52992         Reported by Simon Josefsson.
52994 2010-04-15  Jim Meyering  <meyering@redhat.com>
52996         maint.mk: texinfo_suffix_re_: correct the default regexp
52997         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
52999         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53000         make it configurable via texinfo_suffix_re_.
53002 2010-04-14  Eric Blake  <eblake@redhat.com>
53004         strtok_r: relax license to LGPLv2+
53005         * modules/strtok_r (License): Relax license.
53006         Reported by Matthias Bolte.
53008 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53010         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53011         version 1.4.4 by default instead of requiring the libgcrypt
53012         version used during build.  This makes it possible to use the
53013         application with older but still binary compatible libgcrypt
53014         versions.
53016 2010-04-13  Eric Blake  <eblake@redhat.com>
53018         getopt-gnu: match recent glibc fixes and posix ruling
53019         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53020         '+' handling, when requesting extensions.
53021         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53022         'W;' handling.
53023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53024         * doc/posix-functions/getopt.texi (getopt): Document this.
53025         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53026         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53027         Likewise.
53029         getopt: merge bug fixes from glibc
53030         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53031         diagnostics.  Honor '+:' correctly.  Reject ';'.
53033         getopt-posix: detect MacOS bug
53034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53035         optind when missing a required argument.
53036         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53037         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53038         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53039         Likewise.
53041         getopt-posix: avoid spurious failure on Solaris
53042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53043         an indicator that setting optind=1 is sufficient for reset.
53045         getopt-posix: avoid spurious failure on FreeBSD
53046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53047         in POSIX mode, since the m4 test uses it.
53049         gnulib-tool: silence warning on BSD sh
53050         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53052 2010-04-13  Jim Meyering  <meyering@redhat.com>
53054         doc: users.txt: GNU patch now uses gnulib
53055         * users.txt: Add patch.
53057 2010-04-12  Jim Meyering  <meyering@redhat.com>
53059         maint.mk: generate more concise timing data for syntax-check rules
53060         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53061         " done" from each line that reports a syntax-check test duration.
53063 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53065         git-version-gen: use "git update-index..." rather than "git status"
53066         * build-aux/git-version-gen: Use git update-index --refresh, not
53067         "git status".  With some versions of git, "git status" would fail
53068         to update the index and result in an unwarranted "-dirty" suffix.
53070 2010-04-11  Jim Meyering  <meyering@redhat.com>
53072         openat: correct formatting (no semantic change)
53073         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53074         Suggested by Bruno Haible.
53076 2010-04-11  Bruno Haible  <bruno@clisp.org>
53078         Stricter declaration checking in testdirs.
53079         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53080         If for_tests is true, augment AM_CPPFLAGS to define
53081         GNULIB_STRICT_CHECKING.
53082         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53083         GNULIB_STRICT_CHECKING is defined, verify that the function is
53084         declared.
53086 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53087             Bruno Haible  <bruno@clisp.org>
53089         libunistring: Improve configure output.
53090         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53091         Don't say "consider installing GNU libunistring" when checking again
53092         with libiconv.
53094 2010-04-11  Bruno Haible  <bruno@clisp.org>
53096         libunistring: Correct value of $LTLIBUNISTRING.
53097         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53098         correct the value of $LTLIBUNISTRING.
53100 2010-04-11  Bruno Haible  <bruno@clisp.org>
53102         havelib: Add static libraries to LIBS in the right order.
53103         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53104         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53106 2010-04-11  Bruno Haible  <bruno@clisp.org>
53108         libunistring: Detect libunistring also when it depends on libiconv.
53109         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53110         the second AC_LIB_HAVE_LINKFLAGS invocation.
53112 2010-04-11  James Youngman  <jay@gnu.org>
53114         close-stream: declare local scalars to be "const"
53115         * lib/close-stream.c (close_stream): Make boolean variables const
53116         to document the fact that we set but do not change them.
53118 2010-04-11  Bruno Haible  <bruno@clisp.org>
53120         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53122 2010-04-11  Jim Meyering  <meyering@redhat.com>
53124         maint.mk: don't include dist-check.mk
53125         * top/maint.mk: Remove bogus include directive.
53127         maint.mk: improve empty-line-at-EOF check
53128         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53129         solution, rather than tail+Perl-based one.  The latter would read
53130         a few kilobytes from the end of each file, and did not handle empty
53131         files properly.
53133         maint.mk: print the elapsed time for each syntax-check rule
53134         * top/maint.mk (sc_m_rules_): Save start time in a file.
53135         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53136         (local-check): Interpose the .z rules
53138 2010-04-11  Jim Meyering  <meyering@redhat.com>
53140         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53141         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53142         empty file with one that ends in an empty line.
53144 2010-04-10  Bruno Haible  <bruno@clisp.org>
53146         mkdir: Make it work on mingw64.
53147         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53148         * lib/mkdir.c: Update comment.
53149         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53151 2010-04-10  Bruno Haible  <bruno@clisp.org>
53153         Don't override improved macro from newer autoconf.
53154         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53155         autoconf >= 2.62.
53156         Reported by Joel E. Denny <jdenny@clemson.edu>.
53158 2010-04-10  Jim Meyering  <meyering@redhat.com>
53160         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53161         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53163         maint.mk: correct a diagnostic
53164         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53165         in diagnostic; now use $prohibit.
53167 2010-04-10  Bruno Haible  <address@hidden>
53169         fchownat: Fix a C++ test error on Solaris 8.
53170         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53171         the function does not exist.
53173 2010-04-10  Bruno Haible  <bruno@clisp.org>
53175         vasnprintf: Add more tests.
53176         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53177         (test_function): Test converting an invalid wide string.
53179         vasnprintf: Correct handling of unconvertible wide string arguments.
53180         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53181         VASNPRINTF.
53182         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53183         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53184         smaller than the expected maximum need for the directive. Set errno to
53185         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53186         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53188         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53189         * modules/vasnprintf (Files): Add m4/printf.m4.
53190         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53192 2010-04-10  Bruno Haible  <bruno@clisp.org>
53194         vasnprintf: Fix crash in %ls directive.
53195         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53196         string is passed as argument to %ls, with no precision and no width.
53197         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53199 2010-04-10  Bruno Haible  <bruno@clisp.org>
53201         vasnprintf: Fix multiple test failures on mingw.
53202         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53203         _snprintf, or snwprintf, not _snwprintf.
53205 2010-04-10  Bruno Haible  <bruno@clisp.org>
53207         write: Fix a C++ test error on mingw.
53208         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53210 2010-04-10  Bruno Haible  <bruno@clisp.org>
53212         vasnprintf test: Reduce code duplication.
53213         * tests/test-vasnprintf.c (test_function): New function, extracted from
53214         test_vasnprintf.
53215         (test_vasnprintf, test_asnprintf): Invoke it.
53217 2010-04-10  Bruno Haible  <bruno@clisp.org>
53219         strnlen: Fix warning in C++ mode on MacOS X.
53220         * lib/string.in.h (strnlen): Use the modern idiom.
53221         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53222         defining strnlen as a macro already in <config.h>.
53223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53224         REPLACE_STRNLEN.
53225         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53226         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53228 2010-04-08  James Youngman  <jay@gnu.org>
53230         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53231         the example.
53233 2010-04-09  Jim Meyering  <meyering@redhat.com>
53235         maint.mk: print better diagnostic when there is no $(_hv_file)
53236         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53237         announce that when $(_hv_file) (aka help-version) does not exist.
53239         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53240         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53241         not try to interpret its random input bytes.  Jarno Rajahalme reported
53242         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53243         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53244         (mktempd_): Likewise, just in case.
53246         ftruncate: add two years to projected module removal date: 2012
53247         * m4/ftruncate.m4: Adjust comments.
53249         ftruncate: mark module as obsolete; even MinGW provides it, now
53250         * modules/ftruncate (Status): Obsolete.
53251         (Notice): Say that.
53252         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53253         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53255 2010-04-08  Bruno Haible  <bruno@clisp.org>
53257         Fix side effects from tests-related modules.
53258         * modules/dprintf-posix (Comment): New section.
53259         * modules/fprintf-posix (Comment): Likewise.
53260         * modules/obstack-printf-posix (Comment): Likewise.
53261         * modules/printf-posix (Comment): Likewise.
53262         * modules/snprintf-posix (Comment): Likewise.
53263         * modules/sprintf-posix (Comment): Likewise.
53264         * modules/vasnprintf-posix (Comment): Likewise.
53265         * modules/vasprintf-posix (Comment): Likewise.
53266         * modules/vdprintf-posix (Comment): Likewise.
53267         * modules/vfprintf-posix (Comment): Likewise.
53268         * modules/vprintf-posix (Comment): Likewise.
53269         * modules/vsnprintf-posix (Comment): Likewise.
53270         * modules/vsprintf-posix (Comment): Likewise.
53271         * modules/xprintf-posix (Comment): Likewise.
53272         * modules/xvasprintf-posix (Comment): Likewise.
53273         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53274         * modules/floorf-tests (Depends-on): Likewise.
53275         * modules/round-tests (Depends-on): Likewise.
53276         * modules/roundf-tests (Depends-on): Likewise.
53277         * modules/trunc-tests (Depends-on): Likewise.
53278         * modules/truncf-tests (Depends-on): Likewise.
53279         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53280         'fprintf-posix' module is not present.
53281         * tests/test-floorf2.c (check): Likewise.
53282         * tests/test-trunc2.c (check): Likewise.
53283         * tests/test-truncf2.c (check): Likewise.
53284         * tests/test-round2.c (equal): Likewise.
53285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53287 2010-04-07  Karl Berry  <karl@gnu.org>
53289         * config/srclist.txt,
53290         * config/srclistvars.sh,
53291         * config/srclist-update: doc fixes.
53293 2010-04-07  Jim Meyering  <meyering@redhat.com>
53295         maint.mk: add a PATH crosschecking syntax-check rule
53296         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53297         Useful if you use a test like the one in help-version (coreutils,
53298         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53299         printed by prog --version.
53301 2010-04-06  Bruno Haible  <bruno@clisp.org>
53303         Fix link error on mingw.
53304         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53305         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53307 2010-04-06  Bruno Haible  <bruno@clisp.org>
53309         Assume rmdir exists.
53310         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53312 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53314         doc: update users.txt
53315         * users.txt: Add gcal.
53317 2010-04-06  Jim Meyering  <meyering@redhat.com>
53319         init.sh: simply unset TMPDIR rather than risking env -i
53320         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53321         although it probably works fine on all Unix-based systems, some
53322         systems (Cygwin?) cannot tolerate a totally cleared environment.
53323         Suggestion from Eric Blake.
53325 2010-04-06  Jim Meyering  <meyering@redhat.com>
53327         init.sh: portability fix: use env's POSIX-specified -i option not -u
53328         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53329         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53331 2010-04-05  Bruno Haible  <bruno@clisp.org>
53333         btowc: Work around Cygwin 1.7.2 bug.
53334         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53335         does not map NUL to 0.
53336         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53338 2010-04-05  Bruno Haible  <bruno@clisp.org>
53340         Make the multithread modules work on Cygwin 1.7.2.
53341         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53342         imported symbols can be declared weak, so that it returns "no" on
53343         Cygwin 1.7.2.
53345 2010-04-05  Bruno Haible  <bruno@clisp.org>
53347         Use the module 'strncat'.
53348         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53350         Tests for module 'strncat'.
53351         * modules/strncat-tests: New file.
53352         * tests/test-strncat.c: New file.
53354         New module 'strncat'.
53355         * lib/string.in.h (strncat): New declaration.
53356         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53357         * m4/strncat.m4: New file, based on m4/memchr.m4.
53358         * modules/strncat: New file.
53359         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53360         is declared.
53361         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53362         REPLACE_STRNCAT.
53363         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53364         REPLACE_STRNCAT.
53365         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53366         module.
53367         * tests/test-string-c++.cc: Check signature of strncat.
53369 2010-04-05  Jim Meyering  <meyering@redhat.com>
53371         xstrtoumax-tests: convert to use init.sh
53372         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53373         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53374         Use Exit, not exit.
53375         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53377         xstrtoimax-tests: convert to use init.sh
53378         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53379         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53380         Use Exit, not exit.
53381         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53383 2010-04-05  Bruno Haible  <bruno@clisp.org>
53385         sys_socket: Avoid #define replacements in C++ mode.
53386         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53387         warning to the function if possible, rather than #defining the symbol
53388         to a dysfunctional alias.
53390 2010-04-05  Bruno Haible  <bruno@clisp.org>
53392         fseeko: Fix C++ test error on mingw.
53393         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53394         gl_FUNC_FSEEKO.
53395         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53396         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53398         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53400 2010-04-05  Bruno Haible  <bruno@clisp.org>
53402         duplocale: Improve test output.
53403         * tests/test-duplocale.c (main): Print reason for skipped test.
53405 2010-04-05  Bruno Haible  <bruno@clisp.org>
53407         Assume rmdir exists.
53408         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53409         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53411 2010-04-05  Bruno Haible  <bruno@clisp.org>
53413         Fix link error on Solaris 8 with cc.
53414         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53416 2010-04-05  Bruno Haible  <bruno@clisp.org>
53418         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53419         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53421 2010-04-05  Bruno Haible  <bruno@clisp.org>
53423         vasprintf: Update documentation.
53424         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53426 2010-04-05  Bruno Haible  <bruno@clisp.org>
53428         ptsname: Improve test.
53429         * tests/test-ptsname.c (main): Also try the various master names of BSD
53430         systems.
53432 2010-04-05  Bruno Haible  <bruno@clisp.org>
53434         memchr: Avoid a possible C++ test error.
53435         * lib/string.in.h (memchr): Provide declaration if function is missing.
53436         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53437         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53439         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53441 2010-04-05  Bruno Haible  <bruno@clisp.org>
53443         strtok_r: Improve idiom.
53444         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53445         AC_LIBOBJ is used.
53447 2010-04-05  Bruno Haible  <bruno@clisp.org>
53449         strdup: Improve idiom.
53450         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53451         AC_LIBOBJ is used.
53452         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53453         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53454         when AC_LIBOBJ is used.
53456 2010-04-05  Bruno Haible  <bruno@clisp.org>
53458         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53459         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53460         don't set REPLACE_MBSINIT to 1.
53461         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53462         don't set REPLACE_MBRTOWC to 1.
53463         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53464         exist, don't set REPLACE_MBSRTOWCS to 1.
53465         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53466         exist, don't set REPLACE_MBSNRTOWCS to 1.
53467         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53468         don't set REPLACE_WCRTOMB to 1.
53469         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53470         exist, don't set REPLACE_WCSRTOMBS to 1.
53471         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53472         exist, don't set REPLACE_WCSNRTOMBS to 1.
53474 2010-04-05  Bruno Haible  <bruno@clisp.org>
53476         ldexpl: Improve idiom.
53477         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53478         make sure to set HAVE_DECL_LDEXPL to 0.
53480 2010-04-05  Jim Meyering  <meyering@redhat.com>
53482         xstrtol-tests: convert to use init.sh
53483         * modules/xstrtol-tests (Files): Add tests/init.sh.
53484         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53485         Use Exit, not exit.
53486         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53488         atexit-tests: convert to use init.sh
53489         * modules/atexit-tests (Files): Add tests/init.sh.
53490         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53491         Use Exit, not exit.
53492         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53494         init.sh: fix typo
53495         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53497         init.sh: make it easier for a test script to write to the tty, ...
53498         when using automake's parallel-tests mode.
53499         * tests/init.sh (stderr_fileno_): Define overridable variable.
53500         (warn_): New function, to use it.
53501         (fail_, skip_, framework_failure_): Use warn_.
53503 2010-04-04  Bruno Haible  <bruno@clisp.org>
53505         btowc: Avoid warning.
53506         * lib/btowc.c: Include <stdlib.h>.
53507         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53509 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53510             Bruno Haible  <bruno@clisp.org>
53512         wchar: Port to NetBSD 1.5.
53513         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53514         * lib/wctype.in.h (WEOF): Likewise.
53516 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53517             Bruno Haible  <bruno@clisp.org>
53519         Port extended stdio to NetBSD 1.5.
53520         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53521         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53522         older.
53524 2010-04-04  Bruno Haible  <bruno@clisp.org>
53526         string: Remove unused substitution.
53527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53528         HAVE_DECL_STRERROR.
53529         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53531 2010-04-04  Bruno Haible  <bruno@clisp.org>
53533         strtod: Avoid a possible C++ test error.
53534         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53535         set REPLACE_STRTOD.
53537 2010-04-04  Bruno Haible  <bruno@clisp.org>
53539         strerror: Update documentation.
53540         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53542 2010-04-04  Bruno Haible  <bruno@clisp.org>
53544         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53545         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53546         _GL_CXXALIAS_SYS_CAST.
53548 2010-04-04  Bruno Haible  <bruno@clisp.org>
53550         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53551         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53552         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53553         REPLACE_FREXPL to 1.
53554         * doc/posix-functions/frexpl.texi: Update documentation.
53556 2010-04-04  Bruno Haible  <bruno@clisp.org>
53558         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53559         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53561 2010-04-04  Bruno Haible  <bruno@clisp.org>
53563         Implement nanosleep for native Windows.
53564         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53566 2010-04-04  Bruno Haible  <bruno@clisp.org>
53568         math: Fix some C++ test errors on Solaris 8.
53569         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53571 2010-04-04  Bruno Haible  <bruno@clisp.org>
53573         math: Fix some C++ test errors on Cygwin.
53574         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53575         truncl): Provide declaration if the system does not have it.
53576         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53577         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53578         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53579         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53580         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53581         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53582         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53583         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53584         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53585         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53586         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53587         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53588         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53589         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53590         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53591         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53593         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53594         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53595         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53596         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53597         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53599 2010-04-04  Bruno Haible  <bruno@clisp.org>
53601         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53602         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53603         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53604         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53605         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53606         * m4/isinf.m4 (gl_ISINF): Likewise.
53607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53609 2010-04-04  Bruno Haible  <bruno@clisp.org>
53611         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53612         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53614 2010-04-04  Bruno Haible  <bruno@clisp.org>
53616         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53617         * modules/tmpfile (configure.ac): Update.
53619         tmpfile: Fix C++ test error on mingw.
53620         * lib/stdio.in.h (tmpfile): New declaration.
53621         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53622         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53623         * modules/tmpfile (Depends-on): Add stdio.
53624         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53625         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53626         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53627         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53628         REPLACE_TMPFILE.
53629         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53631 2010-04-04  Bruno Haible  <bruno@clisp.org>
53633         ioctl: Fix C++ test error on mingw.
53634         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53635         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53636         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53638 2010-04-03  Bruno Haible  <bruno@clisp.org>
53640         wcwidth: Fix C++ test error on mingw.
53641         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53643         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53645 2010-04-03  Bruno Haible  <bruno@clisp.org>
53647         nanosleep: Fix C++ test error on mingw.
53648         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53649         * lib/time.in.h (nanosleep): Use modern idiom.
53650         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53651         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53652         REPLACE_NANOSLEEP to 1.
53653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53654         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53656 2010-04-03  Bruno Haible  <bruno@clisp.org>
53658         strptime: Fix C++ test error on mingw.
53659         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53660         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53661         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53662         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53663         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53664         not REPLACE_STRPTIME.
53665         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53666         REPLACE_STRPTIME.
53668 2010-04-03  Bruno Haible  <bruno@clisp.org>
53670         timegm: Fix C++ test error on mingw.
53671         * lib/time.in.h (timegm): Use modern idiom.
53672         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53673         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53675         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53677 2010-04-03  Bruno Haible  <bruno@clisp.org>
53679         timegm: Assume declaration if function exists.
53680         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53681         if it exists. Don't clobber ac_cv_func_timegm.
53683 2010-04-03  Bruno Haible  <bruno@clisp.org>
53685         time_r: Fix C++ test error on mingw.
53686         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53687         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53688         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53690         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53692 2010-04-03  Bruno Haible  <bruno@clisp.org>
53694         time_r: Minor updates.
53695         * modules/time_r (Description): Mention the provided functions.
53696         * lib/time_r.c: Don't include <string.h>.
53697         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53698         * doc/posix-functions/localtime_r.texi: Likewise.
53700 2010-04-03  Bruno Haible  <bruno@clisp.org>
53702         time: Fix regression introduced on 2010-03-08.
53703         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53704         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53706 2010-04-03  Jim Meyering  <meyering@redhat.com>
53708         maint.mk: don't silently disable project-specific syntax-check rules
53709         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53710         that they need to convert their project-specific syntax-check rules
53711         to use the new _sc_search_regexp.
53713 2010-04-03  Bruno Haible  <bruno@clisp.org>
53715         fchdir: Fix regression introduced on 2010-03-08.
53716         * lib/unistd.in.h (fchdir): Fix declaration.
53717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53719         REPLACE_FCHDIR.
53720         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53721         REPLACE_FCHDIR.
53723 2010-04-03  Bruno Haible  <bruno@clisp.org>
53725         getpagesize: Fix C++ test error on mingw.
53726         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53727         system does not declare the function.
53728         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53729         declared.
53730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53731         HAVE_DECL_GETPAGESIZE.
53732         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53734 2010-04-03  Bruno Haible  <bruno@clisp.org>
53736         stdio: Make C++ tests work on mingw.
53737         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53738         does not declare the function.
53740 2010-04-03  Bruno Haible  <bruno@clisp.org>
53742         ftello: Fix C++ test error on mingw.
53743         * lib/stdio.in.h (ftello): Use modern idiom.
53744         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53745         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53746         is missing and that it needs to be replaced.
53747         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53749         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53751 2010-04-03  Bruno Haible  <bruno@clisp.org>
53753         fseeko: Fix C++ test error on mingw.
53754         * lib/stdio.in.h (fseeko): Use modern idiom.
53755         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53757         is missing and that it needs to be replaced.
53758         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53760         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53762 2010-04-03  Bruno Haible  <bruno@clisp.org>
53764         mkstemp: Fix C++ test error on mingw.
53765         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53767         function is missing and that it needs to be replaced.
53768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53769         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53771 2010-04-03  Bruno Haible  <bruno@clisp.org>
53773         stpncpy: Fix C++ test error on mingw.
53774         * lib/string.in.h (stpncpy): Use modern idiom.
53775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53776         function is missing and that it needs to be replaced.
53777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53778         REPLACE_STPNCPY.
53779         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53781 2010-04-03  Bruno Haible  <bruno@clisp.org>
53783         sys_stat: Fix C++ test error on mingw.
53784         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53785         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53787 2010-04-03  Bruno Haible  <bruno@clisp.org>
53789         pty: Update doc.
53790         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53792 2010-04-03  Bruno Haible  <bruno@clisp.org>
53794         unistd: Fix C++ test error on mingw.
53795         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53797 2010-04-03  Bruno Haible  <bruno@clisp.org>
53799         Update doc regarding mingw.
53800         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53801         * doc/glibc-functions/login_tty.texi: Likewise.
53802         * doc/glibc-functions/forkpty.texi: Likewise.
53804 2010-04-03  Bruno Haible  <bruno@clisp.org>
53806         stdlib: Avoid compilation failure of c-strtold on mingw.
53807         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53809 2010-04-03  Bruno Haible  <bruno@clisp.org>
53811         locale: Make C++ tests work on Cygwin and mingw.
53812         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53813         cannot provide the function.
53814         Reported by Simon Josefsson.
53816 2010-04-03  Bruno Haible  <bruno@clisp.org>
53818         localename: Port to MacOS X 10.6.
53819         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53820         memory layout of the locales in MacOS X 10.6 as well.
53821         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53823 2010-04-02  Bruno Haible  <bruno@clisp.org>
53825         gnulib-tool: Ensure that long-running tests are executed last.
53826         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53827         running tests after the one for the other tests.
53829 2010-04-02  Bruno Haible  <bruno@clisp.org>
53831         gnulib-tool: Ensure the tests in the main directory are executed first.
53832         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53833         start with the current directory.
53835 2010-04-02  Bruno Haible  <bruno@clisp.org>
53837         Tests for module 'havelib', moved here from GNU gettext.
53838         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53839         modifications.
53840         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53841         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53842         with modifications.
53843         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53844         modifications.
53845         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53846         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53847         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53848         with modifications.
53849         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53850         with modifications.
53851         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53852         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53853         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53854         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53855         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53856         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53857         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53858         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53859         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53860         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53861         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53862         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53863         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53864         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53865         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53866         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53867         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53868         with modifications.
53869         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53870         with modifications.
53871         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53872         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53873         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53874         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53875         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53876         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53877         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53878         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53879         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53880         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53881         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53882         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53883         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53884         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53885         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53886         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53887         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53888         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53889         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53890         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53891         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53892         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53893         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
53894         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
53895         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
53896         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
53897         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
53898         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
53899         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
53900         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
53901         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
53902         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
53903         * tests/havelib/rpathx/rpathx.c: New file, from
53904         gettext/autoconf-lib-link.
53905         * tests/havelib/rpathx/Makefile.am: New file, from
53906         gettext/autoconf-lib-link.
53907         * tests/havelib/rpathx/configure.ac: New file, from
53908         gettext/autoconf-lib-link with modifications.
53909         * tests/havelib/rpathy/rpathy.c: New file, from
53910         gettext/autoconf-lib-link.
53911         * tests/havelib/rpathy/Makefile.am: New file, from
53912         gettext/autoconf-lib-link.
53913         * tests/havelib/rpathy/configure.ac: New file, from
53914         gettext/autoconf-lib-link with modifications.
53915         * tests/havelib/rpathz/rpathz.c: New file, from
53916         gettext/autoconf-lib-link.
53917         * tests/havelib/rpathz/Makefile.am: New file, from
53918         gettext/autoconf-lib-link.
53919         * tests/havelib/rpathz/configure.ac: New file, from
53920         gettext/autoconf-lib-link with modifications.
53921         * tests/havelib/rpathlx/usex.c: New file, from
53922         gettext/autoconf-lib-link.
53923         * tests/havelib/rpathlx/Makefile.am: New file, from
53924         gettext/autoconf-lib-link.
53925         * tests/havelib/rpathlx/configure.ac: New file, from
53926         gettext/autoconf-lib-link with modifications.
53927         * tests/havelib/rpathly/usey.c: New file, from
53928         gettext/autoconf-lib-link.
53929         * tests/havelib/rpathly/Makefile.am: New file, from
53930         gettext/autoconf-lib-link.
53931         * tests/havelib/rpathly/configure.ac: New file, from
53932         gettext/autoconf-lib-link with modifications.
53933         * tests/havelib/rpathlz/usez.c: New file, from
53934         gettext/autoconf-lib-link.
53935         * tests/havelib/rpathlz/Makefile.am: New file, from
53936         gettext/autoconf-lib-link.
53937         * tests/havelib/rpathlz/configure.ac: New file, from
53938         gettext/autoconf-lib-link with modifications.
53939         * tests/havelib/rpathlyx/usey.c: New file, from
53940         gettext/autoconf-lib-link.
53941         * tests/havelib/rpathlyx/Makefile.am: New file, from
53942         gettext/autoconf-lib-link.
53943         * tests/havelib/rpathlyx/configure.ac: New file, from
53944         gettext/autoconf-lib-link with modifications.
53945         * tests/havelib/rpathlzyx/usez.c: New file, from
53946         gettext/autoconf-lib-link.
53947         * tests/havelib/rpathlzyx/Makefile.am: New file, from
53948         gettext/autoconf-lib-link.
53949         * tests/havelib/rpathlzyx/configure.ac: New file, from
53950         gettext/autoconf-lib-link with modifications.
53951         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
53952         with modifications.
53954 2010-04-02  Bruno Haible  <bruno@clisp.org>
53956         gnulib-tool: Create distributed built sources also for the tests.
53957         * gnulib-tool (func_create_testdir): Also generate distributed built
53958         sources in the tests directory.
53960 2010-04-02  Bruno Haible  <bruno@clisp.org>
53962         gnulib-tool: Obey user's environment variables.
53963         * gnulib-tool (func_create_testdir): When creating built sources,
53964         respect the environment variables for autoconf, automake, etc. given by
53965         the user.
53967 2010-04-02  Bruno Haible  <bruno@clisp.org>
53969         gnulib-tool: Provide the value of --m4-base to modules.
53970         * gnulib-tool (func_import, func_create_testdir): Emit a definition
53971         of gl_m4_base.
53973 2010-04-02  Eric Blake  <eblake@redhat.com>
53975         maint.mk: fix some fallout
53976         * NEWS: Document the incompatible change, and its effect on cfg.mk.
53977         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
53979 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53981         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
53982         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
53983         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
53984         (sc_cast_of_x_alloc_return_value): Likewise.
53985         (sc_cast_of_alloca_return_value): Likewise.
53986         (sc_space_tab): Likewise.
53987         (sc_prohibit_atoi_atof): Likewise.
53988         (sc_prohibit_magic_number_exit): Likewise.
53989         (sc_error_exit_success): Likewise.
53990         (sc_file_system): Likewise.
53991         (sc_prohibit_have_config_h): Likewise.
53992         (sc_require_config_h): Likewise.
53993         (sc_prohibit_HAVE_MBRTOWC): Likewise.
53994         (sc_obsolete_symbols): Likewise.
53995         (sc_changelog): Likewise.
53996         (sc_program_name): Likewise.
53997         (sc_the_the): Likewise.
53998         (sc_trailing_blank): Likewise.
53999         (sc_two_space_separator_in_usage): Likewise.
54000         (sc_useless_cpp_parens): Likewise.
54001         (sc_GPL_version): Likewise.
54002         (sc_GFDL_version): Likewise.
54003         (sc_texinfo_acronym): Likewise.
54004         (sc_prohibit_cvs_keyword): Likewise.
54005         (sc_prohibit_stat_st_blocks): Likewise.
54006         (sc_prohibit_S_IS_definition): Likewise.
54007         (sc_redundant_const): Likewise.
54008         (sc_makefile_TAB_only_indentation): Likewise.
54009         (sc_m4_quote_check): Likewise.
54010         (sc_makefile_path_separator_check): Likewise.
54011         (sc_copyright_check): Likewise.
54012         (sc_Wundef_boolean): Likewise.
54013         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54015         maint.mk: match 0 or more whitespace-before-function-call '('
54016         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54017         that have zero or two-and-more spaces between the function name
54018         and the open parenthesis.
54019         (sc_error_message_warn_fatal): Likewise.
54020         (sc_error_message_uppercase): Likewise.
54021         (sc_error_message_period): Likewise.
54023 2010-03-31  Eric Blake  <eblake@redhat.com>
54025         maint.mk: check for [ as well as test
54026         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54027         Based on a libvirt report by Matthias Bolte.
54029         gnumakefile: don't squelch _version output
54030         * top/GNUmakefile (_version): Create one-shot dependency rather
54031         than using $(shell) when version must be regenerated.
54032         (_autoreconf): Run verbosely, by default.
54034         sys_time: avoid compiler warnings
54035         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54036         unconditional, fixing regression from 2010-03-29.
54037         Reported by Simon Josefsson.
54039 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54041         maint.mk: s/_header_without_use/_sc_header_without_use/
54042         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54043         (sc_prohibit_assert_without_use): Use the new name.
54044         (sc_prohibit_close_stream_without_use): Likewise.
54045         (sc_prohibit_getopt_without_use): Likewise.
54046         (sc_prohibit_quotearg_without_use): Likewise.
54047         (sc_prohibit_quote_without_use): Likewise.
54048         (sc_prohibit_long_options_without_use): Likewise.
54049         (sc_prohibit_inttostr_without_use): Likewise.
54050         (sc_prohibit_ignore_value_without_use): Likewise.
54051         (sc_prohibit_error_without_use): Likewise.
54052         (sc_prohibit_xalloc_without_use): Likewise.
54053         (sc_prohibit_hash_without_use): Likewise.
54054         (sc_prohibit_hash_pjw_without_use): Likewise.
54055         (sc_prohibit_safe_read_without_use): Likewise.
54056         (sc_prohibit_argmatch_without_use): Likewise.
54057         (sc_prohibit_canonicalize_without_use): Likewise.
54058         (sc_prohibit_root_dev_ino_without_use): Likewise.
54059         (sc_prohibit_openat_without_use): Likewise.
54060         (sc_prohibit_c_ctype_without_use): Likewise.
54061         (sc_prohibit_signal_without_use): Likewise.
54062         (sc_prohibit_intprops_without_use): Likewise.
54064 2010-03-30  Eric Blake  <eblake@redhat.com>
54066         maint: improve module indicators
54067         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54068         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54069         columns, and avoid extra macro expansion.
54071         fdopendir: work around FreeBSD bug
54072         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54073         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54074         * modules/dirent (Makefile.am): Substitute it.
54075         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54076         declaration.
54077         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54078         fix.
54079         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54081 2010-03-29  Bruno Haible  <bruno@clisp.org>
54083         Emit #pragma system_header after the inclusion guard, not before.
54084         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54085         guard that spans the entire file, not before. This enables an
54086         optimization in GCC's preprocessor.
54087         * lib/ctype.in.h: Likewise.
54088         * lib/dirent.in.h: Likewise.
54089         * lib/errno.in.h: Likewise.
54090         * lib/float.in.h: Likewise.
54091         * lib/getopt.in.h: Likewise.
54092         * lib/iconv.in.h: Likewise.
54093         * lib/langinfo.in.h: Likewise.
54094         * lib/locale.in.h: Likewise.
54095         * lib/math.in.h: Likewise.
54096         * lib/netdb.in.h: Likewise.
54097         * lib/netinet_in.in.h: Likewise.
54098         * lib/pty.in.h: Likewise.
54099         * lib/sched.in.h: Likewise.
54100         * lib/se-selinux.in.h: Likewise.
54101         * lib/search.in.h: Likewise.
54102         * lib/spawn.in.h: Likewise.
54103         * lib/stdarg.in.h: Likewise.
54104         * lib/stdint.in.h: Likewise.
54105         * lib/string.in.h: Likewise.
54106         * lib/strings.in.h: Likewise.
54107         * lib/sys_file.in.h: Likewise.
54108         * lib/sys_ioctl.in.h: Likewise.
54109         * lib/sys_time.in.h: Likewise.
54110         * lib/sys_times.in.h: Likewise.
54111         * lib/sys_utsname.in.h: Likewise.
54112         * lib/sys_wait.in.h: Likewise.
54113         * lib/sysexits.in.h: Likewise.
54114         * lib/wctype.in.h: Likewise.
54116 2010-03-28  James Youngman  <jay@gnu.org>
54118         save-cwd: don't leak a file descriptor when the caller execs.
54119         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54120         saved file descriptor.
54121         * modules/save-cwd (Depends-on): Depend on cloexec.
54123 2010-03-29  Bruno Haible  <bruno@clisp.org>
54125         Remove vestiges of fts-lgpl module.
54126         * lib/fts_.h: Assume GNULIB_FTS is 1.
54127         * lib/fts.c: Likewise.
54128         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54130 2010-03-28  Bruno Haible  <bruno@clisp.org>
54132         Fix definition of tests witness macro.
54133         * gnulib-tool (func_import): Fix definition of witness macro.
54135 2010-03-28  Bruno Haible  <bruno@clisp.org>
54137         Fix ioctl's protoype on glibc systems.
54138         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54139         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54140         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54141         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54142         signature. If not, arrange to replace the ioctl function.
54143         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54144         REPLACE_IOCTL.
54145         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54146         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54147         Reported by Ludovic Courtès <ludo@gnu.org>.
54149 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54151         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54152         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54153         made it so grep -r --include=GLOB* ... did not work.
54155 2010-03-26  Jim Meyering  <meyering@redhat.com>
54156             Eric Blake  <eblake@redhat.com>
54158         maint.mk: prohibit use of test's -o and -a operators
54159         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54161 2010-03-28  Bruno Haible  <bruno@clisp.org>
54163         Remove unused GNULIB_XYZ macro definitions.
54164         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54165         invocation.
54167 2010-03-28  Bruno Haible  <bruno@clisp.org>
54169         Mark privileged tests modules.
54170         * modules/idpriv-drop-tests (Status): New section.
54171         * modules/idpriv-droptemp-tests (Status): New section.
54173 2010-03-28  Bruno Haible  <bruno@clisp.org>
54175         Split C++ tests into separate tests modules.
54176         * modules/dirent-c++-tests: New file, extracted from
54177         modules/dirent-tests.
54178         * modules/dirent-tests: Depend on it.
54179         * modules/fcntl-h-c++-tests: New file, extracted from
54180         modules/fcntl-h-tests.
54181         * modules/fcntl-h-tests: Depend on it.
54182         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54183         * modules/glob-tests: Depend on it.
54184         * modules/iconv-h-c++-tests: New file, extracted from
54185         modules/iconv-h-tests.
54186         * modules/iconv-h-tests: Depend on it.
54187         * modules/langinfo-c++-tests: New file, extracted from
54188         modules/langinfo-tests.
54189         * modules/langinfo-tests: Depend on it.
54190         * modules/locale-c++-tests: New file, extracted from
54191         modules/locale-tests.
54192         * modules/locale-tests: Depend on it.
54193         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54194         * modules/math-tests: Depend on it.
54195         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54196         * modules/pty-tests: Depend on it.
54197         * modules/search-c++-tests: New file, extracted from
54198         modules/search-tests.
54199         * modules/search-tests: Depend on it.
54200         * modules/signal-c++-tests: New file, extracted from
54201         modules/signal-tests.
54202         * modules/signal-tests: Depend on it.
54203         * modules/spawn-c++-tests: New file, extracted from
54204         modules/spawn-tests.
54205         * modules/spawn-tests: Depend on it.
54206         * modules/stdio-c++-tests: New file, extracted from
54207         modules/stdio-tests.
54208         * modules/stdio-tests: Depend on it.
54209         * modules/stdlib-c++-tests: New file, extracted from
54210         modules/stdlib-tests.
54211         * modules/stdlib-tests: Depend on it.
54212         * modules/string-c++-tests: New file, extracted from
54213         modules/string-tests.
54214         * modules/string-tests: Depend on it.
54215         * modules/sys_ioctl-c++-tests: New file, extracted from
54216         modules/sys_ioctl-tests.
54217         * modules/sys_ioctl-tests: Depend on it.
54218         * modules/sys_select-c++-tests: New file, extracted from
54219         modules/sys_select-tests.
54220         * modules/sys_select-tests: Depend on it.
54221         * modules/sys_socket-c++-tests: New file, extracted from
54222         modules/sys_socket-tests.
54223         * modules/sys_socket-tests: Depend on it.
54224         * modules/sys_stat-c++-tests: New file, extracted from
54225         modules/sys_stat-tests.
54226         * modules/sys_stat-tests: Depend on it.
54227         * modules/sys_time-c++-tests: New file, extracted from
54228         modules/sys_time-tests.
54229         * modules/sys_time-tests: Depend on it.
54230         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54231         * modules/time-tests: Depend on it.
54232         * modules/unistd-c++-tests: New file, extracted from
54233         modules/unistd-tests.
54234         * modules/unistd-tests: Depend on it.
54235         * modules/wchar-c++-tests: New file, extracted from
54236         modules/wchar-tests.
54237         * modules/wchar-tests: Depend on it.
54238         * modules/wctype-c++-tests: New file, extracted from
54239         modules/wctype-tests.
54240         * modules/wctype-tests: Depend on it.
54241         Reported by Simon Josefsson.
54243 2010-03-28  Bruno Haible  <bruno@clisp.org>
54245         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54246         * gnulib-tool (func_exists_module): New function, extracted from
54247         func_verify_module.
54248         (func_verify_module): Use it.
54249         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54250         'foo' only if 'foo' exists.
54251         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54252         module.
54254 2010-03-28  Bruno Haible  <bruno@clisp.org>
54256         gnulib-tool: Add support for special categories of tests.
54257         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54258         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54259         (func_usage): Document them.
54260         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54261         inc_unportable_tests, inc_all_tests): New variables.
54262         (func_acceptable): Consider these variables.
54263         (func_modules_transitive_closure): Make it work when the 'Status' field
54264         consists of multiple words.
54265         (func_import): Store and restore the values of inc_cxx_tests,
54266         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54267         inc_all_tests in gnulib-comp.m4.
54268         (func_create_testdir): Set inc_all_tests to true.
54269         * doc/gnulib.texi (Extra tests modules): New section.
54270         Suggested by Jim Meyering.
54272 2010-03-28  Bruno Haible  <bruno@clisp.org>
54274         ansi-c++-opt: Allow turning off the C++ build by default.
54275         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54276         gl_CXX_CHOICE_DEFAULT_NO is defined.
54277         Requested by Eric Blake.
54279 2010-03-28  Bruno Haible  <bruno@clisp.org>
54281         unistd: Avoid #define replacements in C++ mode.
54282         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54283         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54284         setsockopt, shutdown, select): In C++, attach a warning to the function
54285         if possible, rather than #defining the symbol to a dysfunctional alias.
54286         Reported by John W. Eaton <jwe@gnu.org>.
54288 2010-03-28  Bruno Haible  <bruno@clisp.org>
54290         Fix link errors on mingw.
54291         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54292         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54293         $(LIBSOCKET).
54294         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54295         $(LIBSOCKET).
54297 2010-03-28  Bruno Haible  <bruno@clisp.org>
54298             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54300         lib-ignore: Determine different options for different compilers.
54301         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54302         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54303         Add comments.
54304         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54305         * NEWS: Mention the change.
54307 2010-03-27  Bruno Haible  <bruno@clisp.org>
54309         Remove unused GNULIB_XYZ macro definitions.
54310         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54311         * modules/fseek (configure.ac): Likewise.
54312         * modules/ioctl (configure.ac): Likewise.
54313         * modules/open (configure.ac): Likewise.
54314         * modules/stdlib-safer (configure.ac): Likewise.
54316 2010-03-27  Bruno Haible  <bruno@clisp.org>
54318         Add a remark about certain modules.
54319         * modules/malloc (Comment): New section.
54320         * modules/realloc (Comment): Likewise.
54321         * modules/sigpipe (Comment): Likewise.
54323 2010-03-27  Bruno Haible  <bruno@clisp.org>
54325         Resolve conflict between the two kinds of module indicators.
54326         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54327         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54328         * modules/canonicalize (configure.ac): Invoke
54329         gl_MODULE_INDICATOR_FOR_TESTS.
54330         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54331         GNULIB_XYZ.
54332         * tests/test-dirent-c++.cc: Likewise.
54333         * tests/test-dirent-safer.c: Likewise.
54334         * tests/test-dup2.c: Likewise.
54335         * tests/test-fchdir.c: Likewise.
54336         * tests/test-fcntl-h-c++.cc: Likewise.
54337         * tests/test-getopt.c: Likewise.
54338         * tests/test-getopt.h: Likewise.
54339         * tests/test-langinfo-c++.cc: Likewise.
54340         * tests/test-locale-c++.cc: Likewise.
54341         * tests/test-math-c++.cc: Likewise.
54342         * tests/test-pty-c++.cc: Likewise.
54343         * tests/test-search-c++.cc: Likewise.
54344         * tests/test-signal-c++.cc: Likewise.
54345         * tests/test-spawn-c++.cc: Likewise.
54346         * tests/test-stdio-c++.cc: Likewise.
54347         * tests/test-stdlib-c++.cc: Likewise.
54348         * tests/test-string-c++.cc: Likewise.
54349         * tests/test-sys_ioctl-c++.cc: Likewise.
54350         * tests/test-sys_select-c++.cc: Likewise.
54351         * tests/test-sys_socket-c++.cc: Likewise.
54352         * tests/test-sys_stat-c++.cc: Likewise.
54353         * tests/test-sys_time-c++.cc: Likewise.
54354         * tests/test-time-c++.cc: Likewise.
54355         * tests/test-unistd-c++.cc: Likewise.
54356         * tests/test-wchar-c++.cc: Likewise.
54357         * tests/uninorm/test-u8-nfc.c: Likewise.
54358         * tests/uninorm/test-u8-nfd.c: Likewise.
54359         * tests/uninorm/test-u8-nfkc.c: Likewise.
54360         * tests/uninorm/test-u8-nfkd.c: Likewise.
54361         * tests/uninorm/test-u16-nfc.c: Likewise.
54362         * tests/uninorm/test-u16-nfd.c: Likewise.
54363         * tests/uninorm/test-u16-nfkc.c: Likewise.
54364         * tests/uninorm/test-u16-nfkd.c: Likewise.
54365         * tests/uninorm/test-u32-nfc.c: Likewise.
54366         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54367         * tests/uninorm/test-u32-nfd.c: Likewise.
54368         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54369         * tests/uninorm/test-u32-nfkc.c: Likewise.
54370         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54371         * tests/uninorm/test-u32-nfkd.c: Likewise.
54372         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54373         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54375 2010-03-27  Bruno Haible  <bruno@clisp.org>
54377         Distinguish two kinds of module indicators.
54378         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54379         gl_MODULE_INDICATOR.
54380         (gl_MODULE_INDICATOR): New macro.
54381         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54382         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54383         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54384         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54385         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54386         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54387         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54388         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54389         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54390         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54391         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54392         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54394         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54395         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54396         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54397         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54398         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54399         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54400         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54401         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54402         * modules/cloexec (configure.ac): Likewise.
54403         * modules/getopt-gnu (configure.ac): Likewise.
54404         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54405         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54406         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54407         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54409 2010-03-27  Bruno Haible  <bruno@clisp.org>
54411         New module description field 'Comment'.
54412         * gnulib-tool: New option --extract-comment.
54413         (func_usage): Document it.
54414         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54415         (func_get_comment): New function.
54416         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54418 2010-03-27  Bruno Haible  <bruno@clisp.org>
54420         Addendum to 2010-02-07 commit.
54421         * gnulib-tool (func_usage): Document --extract-applicability option.
54423 2010-03-27  Bruno Haible  <bruno@clisp.org>
54425         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54426         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54427         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54428         rather than link errors.
54430 2010-03-27  Bruno Haible  <bruno@clisp.org>
54432         Avoid side effects from tests-related modules on the compilation of lib.
54433         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54434         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54435         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54436         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54437         macro.
54438         (func_import): Define a witness macro. Assign it a value that depends
54439         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54440         tests-related modules.
54441         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54442         Reported by Jim Meyering.
54444 2010-03-27  Bruno Haible  <bruno@clisp.org>
54446         Factorize common .m4 code.
54447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54448         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54449         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54450         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54451         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54452         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54453         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54454         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54455         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54456         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54457         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54458         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54459         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54460         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54461         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54462         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54463         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54464         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54466         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54467         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54468         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54469         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54471         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54472         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54473         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54474         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54475         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54477         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54478         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54480 2010-03-27  Bruno Haible  <bruno@clisp.org>
54482         Fix a compilation error on Cygwin with g++ >= 4.3.
54483         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54484         if it is undefined or if we alias it to chmod.
54485         (lstat): Don't warn about the use of this function if it is undefined
54486         or if we alias it to stat.
54487         Reported by Simon Josefsson.
54489 2010-03-27  Bruno Haible  <bruno@clisp.org>
54491         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54492         * modules/getlogin (configure.ac): Update.
54494         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54495         * modules/getlogin_r (configure.ac): Update.
54497         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54499         * modules/inet_ntop (configure.ac): Update.
54501         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54502         * modules/inet_pton (configure.ac): Update.
54504         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54505         * modules/mbslen (configure.ac): Update.
54507         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54508         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54509         * modules/forkpty (configure.ac): Update.
54510         * modules/openpty (configure.ac): Update.
54512 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54514         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54515         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54517 2010-03-25  Eric Blake  <eblake@redhat.com>
54519         maint: use pragma consistently across replacement headers
54520         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54521         * lib/dirent.in.h (system_header): Likewise.
54522         * lib/errno.in.h (system_header): Likewise.
54523         * lib/float.in.h (system_header): Likewise.
54524         * lib/getopt.in.h (system_header): Likewise.
54525         * lib/iconv.in.h (system_header): Likewise.
54526         * lib/inttypes.in.h (system_header): Likewise.
54527         * lib/langinfo.in.h (system_header): Likewise.
54528         * lib/locale.in.h (system_header): Likewise.
54529         * lib/math.in.h (system_header): Likewise.
54530         * lib/netdb.in.h (system_header): Likewise.
54531         * lib/netinet_in.in.h (system_header): Likewise.
54532         * lib/pty.in.h (system_header): Likewise.
54533         * lib/sched.in.h (system_header): Likewise.
54534         * lib/se-selinux.in.h (system_header): Likewise.
54535         * lib/search.in.h (system_header): Likewise.
54536         * lib/spawn.in.h (system_header): Likewise.
54537         * lib/stdarg.in.h (system_header): Likewise.
54538         * lib/stdint.in.h (system_header): Likewise.
54539         * lib/string.in.h (system_header): Likewise.
54540         * lib/strings.in.h (system_header): Likewise.
54541         * lib/sys_file.in.h (system_header): Likewise.
54542         * lib/sys_ioctl.in.h (system_header): Likewise.
54543         * lib/sys_socket.in.h (system_header): Likewise.
54544         * lib/sys_times.in.h (system_header): Likewise.
54545         * lib/sys_utsname.in.h (system_header): Likewise.
54546         * lib/sys_wait.in.h (system_header): Likewise.
54547         * lib/sysexits.in.h (system_header): Likewise.
54548         * lib/unistd.in.h (system_header): Likewise.
54549         * lib/wctype.in.h (system_header): Likewise.
54551         arpa/inet: fix mingw compilation warning
54552         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54553         Reported by Matthew Bolte.
54555 2010-03-25  Bruno Haible  <bruno@clisp.org>
54557         Avoid collision between gnulib wrapper and libintl wrapper.
54558         * lib/printf.c (printf): Don't define if a printf wrapper is already
54559         defined in intl/printf.c.
54560         Reported by Michel Boaventura <michel@michelboaventura.com>.
54562 2010-03-25  Bruno Haible  <bruno@clisp.org>
54564         Use ANSI C.
54565         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54567 2010-03-25  Bruno Haible  <bruno@clisp.org>
54569         Minor formatting changes.
54570         * lib/acosl.c: Insert space before function argument list.
54571         * lib/argz.c: Likewise.
54572         * lib/asinl.c: Likewise.
54573         * lib/expl.c: Likewise.
54574         * lib/gen-uni-tables.c: Likewise.
54575         * lib/gettext.h: Likewise.
54576         * lib/glthread/lock.h: Likewise.
54577         * lib/tanl.c: Likewise.
54578         * lib/uniname/uniname.c: Likewise.
54579         * tests/test-idpriv-drop.c: Likewise.
54580         * tests/test-idpriv-droptemp.c: Likewise.
54581         * tests/test-lock.c: Likewise.
54582         * tests/test-tls.c: Likewise.
54583         * lib/argp-help.c: Insert space before function-like macro argument
54584         list.
54585         * lib/memcmp.c: Likewise.
54586         * tests/test-base64.c: Likewise.
54587         * lib/localename.c: Insert space before sizeof's argument list.
54588         * lib/safe-alloc.h: Likewise.
54589         * lib/file-set.h: Insert space before macro argument list.
54590         * tests/test-argp.c: Likewise.
54591         * lib/argp-namefrob.h: Insert space before function parameter list.
54592         * lib/getaddrinfo.c: Likewise.
54593         * lib/netdb.in.h: Likewise.
54594         * lib/parse-duration.h: Likewise.
54595         * lib/parse-duration.c: Likewise.
54596         * lib/poll.c: Likewise.
54597         * lib/select.c: Likewise.
54598         * lib/trim.h: Likewise.
54599         * tests/test-usleep.c: Likewise.
54600         * lib/ldexpl.c: Insert space before function parameter list and before
54601         function argument list.
54602         * lib/logl.c: Likewise.
54603         * lib/sqrtl.c: Likewise.
54604         * lib/trim.c: Likewise.
54605         * lib/cosl.c: Use GNU style indentation. Insert space before function
54606         argument list.
54607         * lib/sinl.c: Likewise.
54608         * lib/tsearch.c: Insert space after 'for'.
54609         Reported by Jim Meyering.
54611 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54613         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54614         config header before grepping, as it's not present before
54615         autoreconf/configure are run.  Reported by Simon Josefsson.
54617 2010-03-23  Bruno Haible  <bruno@clisp.org>
54619         pt_chown: Make it work with automake < 1.11.
54620         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54621         Reported by Simon Josefsson.
54623 2010-03-23  Bruno Haible  <bruno@clisp.org>
54625         pt_chown: Don't depend on GPLed modules.
54626         * lib/pt_chown.c: Don't include idpriv.h.
54627         (main): Don't drop privileges.
54628         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54629         Reported by Simon Josefsson.
54631 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54633         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54634         suggestions from karl@freefriends.org (Karl Berry).
54636 2010-03-22  Eric Blake  <eblake@redhat.com>
54638         gethostname: further tweaks
54639         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54640         are overriding gethostname.
54641         Suggested by Bruno Haible.
54643 2010-03-21  Bruno Haible  <bruno@clisp.org>
54645         Fix comments.
54646         * lib/forkpty.c (rpl_forkpty): Fix comment.
54647         * lib/openpty.c (rpl_openpty): Likewise.
54648         Reported by Eric Blake.
54650 2010-03-22  Eric Blake  <eblake@redhat.com>
54652         gethostname: fix build on mingw
54653         * lib/unistd.in.h (includes): Work around fact that mingw
54654         <winsock2.h> re-includes <unistd.h>, by avoiding any
54655         redeclarations if we are being included by <winsock2.h>.
54656         Reported by Matthias Bolte.
54658 2010-03-21  Bruno Haible  <bruno@clisp.org>
54660         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54661         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54662         modifications.
54663         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54664         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54665         provide the replacement.
54666         * modules/forkpty (Depends-on): Add openpty, login_tty.
54667         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54668         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54669         * doc/glibc-functions/forkpty.texi: More supported platforms.
54670         * config/srclist.txt: Add forkpty.c (commented).
54672 2010-03-21  Bruno Haible  <bruno@clisp.org>
54674         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54675         (Makefile.am): Verify that PTY_LIB is defined.
54677         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54679 2010-03-21  Bruno Haible  <bruno@clisp.org>
54681         Tests for module 'login_tty'.
54682         * modules/login_tty-tests: New file.
54683         * tests/test-login_tty.c: New file.
54685         New module 'login_tty'.
54686         * lib/login_tty.c: New file.
54687         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54688         * modules/login_tty: New file.
54689         * doc/glibc-functions/login_tty.texi: Mention the new module.
54691 2010-03-21  Bruno Haible  <bruno@clisp.org>
54693         login_tty: Documentation.
54694         * doc/glibc-functions/login_tty.texi: New file.
54695         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54697 2010-03-21  Bruno Haible  <bruno@clisp.org>
54699         pty: Consistent macro naming.
54700         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54701         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54702         * modules/pty (configure.ac): Update.
54704 2010-03-21  Bruno Haible  <bruno@clisp.org>
54706         Tests for openpty: Make stricter.
54707         * tests/test-openpty.c (main): Add test of canonical processing and
54708         erase.
54709         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54711         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54712         * lib/openpty.c (openpty): New replacement function.
54713         * lib/pty.in.h: Include <termios.h>.
54714         (openpty): Update declaration. Add comments.
54715         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54716         is not declared, arrange to provide the replacement. Check for _getpty
54717         and posix_openpt.
54718         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54719         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54720         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54721         * modules/pty-tests (test_pty_c___LDADD): New variable.
54722         * doc/glibc-functions/openpty.texi: More supported platforms.
54724 2010-03-21  Bruno Haible  <bruno@clisp.org>
54726         setenv: Tweaks.
54727         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54728         the test program.
54729         * doc/posix-functions/setenv.texi: Update platforms list.
54731 2010-03-21  Bruno Haible  <bruno@clisp.org>
54733         New module 'unlockpt'.
54734         * lib/unlockpt.c: New file, from glibc with modifications.
54735         * m4/unlockpt.m4: New file.
54736         * modules/unlockpt: New file.
54737         * lib/stdlib.in.h (unlockpt): New declaration.
54738         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54739         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54740         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54741         HAVE_UNLOCKPT.
54742         * doc/posix-functions/unlockpt.texi: Mention the new module.
54743         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54744         * config/srclist.txt: Add unlockpt.c (commented).
54746 2010-03-21  Jim Meyering  <meyering@redhat.com>
54748         maint.mk: prohibit inclusion of "intprops.h" without use
54749         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54751 2010-03-21  Bruno Haible  <bruno@clisp.org>
54753         New module 'grantpt'.
54754         * lib/grantpt.c: New file, from glibc with modifications.
54755         * m4/grantpt.m4: New file.
54756         * modules/grantpt: New file.
54757         * lib/stdlib.in.h (grantpt): New declaration.
54758         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54759         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54760         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54761         HAVE_GRANTPT.
54762         * doc/posix-functions/grantpt.texi: Mention the new module.
54763         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54764         * config/srclist.txt: Add grantpt.c (commented).
54766 2010-03-21  Bruno Haible  <bruno@clisp.org>
54768         New module 'pt_chown'.
54769         * lib/pt_chown.c: New file, from glibc with modifications.
54770         * lib/pty-private.h: New file, from glibc with modifications.
54771         * modules/pt_chown: New file.
54772         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54774 2010-03-21  Bruno Haible  <bruno@clisp.org>
54776         Tests for module 'ptsname'.
54777         * modules/ptsname-tests: New file.
54778         * tests/test-ptsname.c: New file.
54780         New module 'ptsname'.
54781         * lib/ptsname.c: New file, from glibc with modifications.
54782         * m4/ptsname.m4: New file.
54783         * modules/ptsname: New file.
54784         * lib/stdlib.in.h (ptsname): New declaration.
54785         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54786         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54787         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54788         HAVE_PTSNAME.
54789         * doc/posix-functions/ptsname.texi: Mention the new module.
54790         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54791         * config/srclist.txt: Add ptsname.c (commented).
54793 2010-03-21  Bruno Haible  <bruno@clisp.org>
54795         Tests for module 'ttyname_r'.
54796         * modules/ttyname_r-tests: New file.
54797         * tests/test-ttyname_r.c: New file.
54799         New module 'ttyname_r'.
54800         * lib/ttyname_r.c: New file.
54801         * m4/ttyname_r.m4: New file.
54802         * modules/ttyname_r: New file.
54803         * lib/unistd.in.h (ttyname_r): New declaration.
54804         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54805         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54806         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54807         HAVE_TTYNAME_R.
54808         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54809         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54811 2010-03-20  Bruno Haible  <bruno@clisp.org>
54813         signal: Undefine macro definitions in C++ mode.
54814         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54815         sigfillset): Undefine macro definitions from the system header in C++
54816         mode.
54817         Reported by John W. Eaton <jwe@gnu.org>.
54819 2010-03-20  Bruno Haible  <bruno@clisp.org>
54821         Ensure no #include statements inside extern "C" { ... }.
54822         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54823         contain #include statements.
54824         * lib/time.in.h: Likewise.
54826 2010-03-20  Bruno Haible  <bruno@clisp.org>
54828         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54829         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54830         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54831         Reported by John W. Eaton <jwe@gnu.org>.
54833 2010-03-20  Bruno Haible  <bruno@clisp.org>
54835         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54836         Reported by Jim Meyering.
54838 2010-03-20  Bruno Haible  <bruno@clisp.org>
54840         pipe: Set errno upon failure.
54841         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54842         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54843         errno value in error message.
54845 2010-03-20  Bruno Haible  <bruno@clisp.org>
54846             Jim Meyering  <meyering@redhat.com>
54848         lchown: Avoid "unused variable" warning.
54849         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54851 2010-03-20  Bruno Haible  <bruno@clisp.org>
54853         Work around unlink() bug on MacOS X 10.5.6.
54854         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54855         attempting to unlink a parent directory.
54856         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54857         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54858         activate for the replacement function.
54859         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54861 2010-03-20  Bruno Haible  <bruno@clisp.org>
54863         Fix link errors on Solaris 8.
54864         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54865         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54867 2010-03-19  Jim Meyering  <meyering@redhat.com>
54869         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54870         The _LIBC implementation of build_range_exp correctly honors the
54871         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54872         However, the non-_LIBC implementation would ignore that syntax-bit
54873         flag and return REG_ERANGE unconditionally.
54874         This change makes it honor that flag.
54875         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54876         Make two pointer parameters "const".
54877         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54878         (parse_bracket_exp): Update caller.
54880         regex.m4: correct the reversed range endpoint ([b-a]) test
54881         * m4/regex.m4: When requiring that [b-a] evoke failure,
54882         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54883         test pass once again for x86-based systems.
54885 2010-03-19  Bruno Haible  <bruno@clisp.org>
54887         scandir: Fix link error on Solaris 8.
54888         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54889         macros.
54891 2010-03-19  Bruno Haible  <bruno@clisp.org>
54893         getusershell: Fix documentation.
54894         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
54895         module.
54896         * doc/glibc-functions/setusershell.texi: Likewise.
54898         getusershell: Provide declaration, missing on Solaris 9.
54899         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
54900         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
54901         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
54902         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
54903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54904         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
54905         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
54906         HAVE_GETUSERSHELL.
54907         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
54909 2010-03-19  Bruno Haible  <bruno@clisp.org>
54911         wctype: Provide iswblank function.
54912         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
54913         exists and is fine.
54914         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
54915         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
54916         * tests/test-wctype.c (main): Re-enable the iswblank tests.
54917         * doc/posix-functions/iswblank.texi: Update.
54919 2010-03-19  Bruno Haible  <bruno@clisp.org>
54921         Tests of module 'pty' in C++ mode.
54922         * modules/pty-tests: New file.
54923         * tests/test-pty-c++.cc: New file.
54924         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54926 2010-03-19  Eric Blake  <eblake@redhat.com>
54928         logb: fix documentation
54929         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
54930         1.5 declaration bug.
54932         forkpty, openpty: prefer glibc's const-safe prototype
54933         * lib/forkpty.c (rpl_forkpty): New file.
54934         * lib/openpty.c (rpl_openpty): Likewise.
54935         * modules/forkpty (Files): Distribute it.
54936         * modules/openpty (Files): Likewise.
54937         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
54938         check...
54939         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
54940         replacement for non-const BSD signature.
54941         * modules/pty (Makefile.am): Substitute witnesses.
54942         * lib/pty.in.h (forkpty, openpty): Declare replacements.
54943         * tests/test-forkpty.c: Update signature check.
54944         * tests/test-openpty.c: Likewise.
54945         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
54946         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54948         forkpty, openpty: split functions into new modules
54949         * modules/pty (Makefile.am): Substitute new witnesses.
54950         (Libraries): Move library detection...
54951         * modules/forkpty: ...into new module.
54952         * modules/openpty: Another new module.
54953         * modules/pty-tests: Rename and split...
54954         * modules/forkpty-tests: ...to this...
54955         * modules/openpty-tests: ...and this.
54956         * tests/test-pty.c: Rename and split...
54957         * tests/test-forkpty.c: ...to this...
54958         * tests/test-openpty.c: ...and this.
54959         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
54960         (gl_PTY): Split library searching...
54961         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
54962         (gl_FORKPTY, gl_OPENPTY): New macros.
54963         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
54964         * NEWS: Mention the split.
54965         * MODULES.html.sh (Misc): Document the modules.
54966         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
54967         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54969         pty: improve replacement header
54970         * lib/pty.in.h: New file.
54971         * modules/pty (Files): Ship it.
54972         (Makefile.am): Always build replacement.
54973         * m4/pty.m4: Rename...
54974         * m4/pty_h.m4: ...to this.
54975         (gl_PTY): Modernize setting of witness macros; update check of
54976         forkpty to take proper advantage of cache.
54977         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
54979         getopt: avoid compiler warning
54980         * lib/getopt.c (attribute_hidden): Remove unused macro.
54982 2010-03-18  Bruno Haible  <bruno@clisp.org>
54984         Fix link errors on Solaris 8.
54985         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
54986         * modules/search-tests (test_search_c___LDADD): Likewise.
54987         * modules/signal-tests (test_signal_c___LDADD): Likewise.
54988         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
54989         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
54990         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
54991         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
54992         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
54993         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
54995 2010-03-18  Bruno Haible  <bruno@clisp.org>
54997         Fix bug introduced on 2010-03-14.
54998         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
54999         (gl_SPAWN_H): Require it.
55000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55001         Reported by Simon Josefsson.
55003 2010-03-18  Bruno Haible  <bruno@clisp.org>
55005         Fix typo introduced on 2009-12-31.
55006         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55007         posix_spawn_file_actions_adddup2.
55009 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55010         and Eric Blake  <eblake@redhat.com>
55012         test-vc-list-files-git: make more robust
55013         * tests/test-vc-list-files-git.sh: Unset problematic environment
55014         variables.  Chain commands together.
55016 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55018         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55019         `AC_CHECK_DECL' invocation.
55021 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55023         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55024         appears before executable statements. Suggested by Petr Sumbera
55025         <Petr.Sumbera@Sun.COM>.
55027 2010-03-14  Bruno Haible  <bruno@clisp.org>
55029         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55030         portability problems. Instead use a simpler test.
55031         (main): Check that invalid arguments are rejected only on Linux.
55033 2010-03-14  Bruno Haible  <bruno@clisp.org>
55035         Fix bug introduced on 2009-12-31.
55036         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55037         gl_PREREQ_SYS_H_WINSOCK2 always.
55038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55039         SYS_SOCKET_H variable.
55040         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55041         Update comments.
55042         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55043         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55044         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55046         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55048 2010-03-14  Bruno Haible  <bruno@clisp.org>
55050         Fix values returned by sinl, cosl.
55051         * lib/trigl.h: Add specification comments.
55052         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55053         that combines the values from the precomputed table with the values of
55054         the Chebyshev polynomials.
55056 2010-03-14  Bruno Haible  <bruno@clisp.org>
55058         Fix compilation error when modules 'posix_spawn[p]' are not used.
55059         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55062 2010-03-14  Bruno Haible  <bruno@clisp.org>
55064         Fix compilation error on mingw when module 'time_r' is not used.
55065         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55066         is 1.
55067         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55068         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55069         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55072 2010-03-14  Bruno Haible  <bruno@clisp.org>
55074         Fix compilation error with Sun C.
55075         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55076         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55077         instead of GCC specific ULONG_LONG_MAX.
55078         * lib/xstrtoll.c: Likewise.
55079         * lib/xstrtoull.c: Likewise.
55081 2010-03-13  Bruno Haible  <bruno@clisp.org>
55083         Allow the user to disable C++ code and tests.
55084         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55085         (gl_PROG_ANSI_CXX): Require it.
55087 2010-03-13  Bruno Haible  <bruno@clisp.org>
55089         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55090         cases.
55092 2010-03-13  Bruno Haible  <bruno@clisp.org>
55094         Test that gnulib does not break the standard C++ headers.
55095         * tests/test-locale-c++2.cc: New file.
55096         * modules/locale-tests (Files): Add it.
55097         (Makefile.am): Compile it for test-locale-c++.
55098         * tests/test-math-c++2.cc: New file.
55099         * modules/math-tests (Files): Add it.
55100         (Makefile.am): Compile it for test-math-c++.
55101         * tests/test-signal-c++2.cc: New file.
55102         * modules/signal-tests (Files): Add it.
55103         (Makefile.am): Compile it for test-signal-c++.
55104         * tests/test-stdio-c++2.cc: New file.
55105         * modules/stdio-tests (Files): Add it.
55106         (Makefile.am): Compile it for test-stdio-c++.
55107         * tests/test-stdlib-c++2.cc: New file.
55108         * modules/stdlib-tests (Files): Add it.
55109         (Makefile.am): Compile it for test-stdlib-c++.
55110         * tests/test-string-c++2.cc: New file.
55111         * modules/string-tests (Files): Add it.
55112         (Makefile.am): Compile it for test-string-c++.
55113         * tests/test-time-c++2.cc: New file.
55114         * modules/time-tests (Files): Add it.
55115         (Makefile.am): Compile it for test-time-c++.
55116         Reported by John W. Eaton <jwe@gnu.org>.
55118 2010-03-13  Bruno Haible  <bruno@clisp.org>
55120         * gnulib-tool (func_usage): Clarify which options are available for
55121         --create-testdir and --create-megatestdir.
55123 2010-03-13  Bruno Haible  <bruno@clisp.org>
55125         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55126         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55127         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55128         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55129         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55130         when appropriate.
55131         Reported by Jim Meyering.
55133 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55135         * gnulib-tool (func_import): Explain origin of code.
55137 2010-03-12  Bruno Haible  <bruno@clisp.org>
55139         Fix problem with automake's definition of CXXLINK.
55140         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55141         Reported by Simon Josefsson and Ludovic Courtès.
55143 2010-03-12  Bruno Haible  <bruno@clisp.org>
55145         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55146         stable releases.
55148 2010-03-11  Bruno Haible  <bruno@clisp.org>
55150         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55151         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55152         whether the system provides one variant or multiple variants of the
55153         function.
55154         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55155         C++ compilers.
55156         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55157         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55158         Reported by Jim Meyering.
55160 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55162         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55164 2010-03-08  Bruno Haible  <bruno@clisp.org>
55166         gnulib-tool: Add support for --libtool in --create-testdir.
55167         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55168         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55170 2010-03-08  Eric Blake  <eblake@redhat.com>
55172         gnulib-tool.texi: mention possibility of git submodule
55173         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55174         submodules.
55175         * doc/.gitignore: Ignore another generated file.
55177 2010-03-08  Karl Berry  <karl@gnu.org>
55179         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55180         of committing gnulib files while skipping others.
55182 2010-03-07  Bruno Haible  <bruno@clisp.org>
55184         Tests of module 'wctype' in C++ mode.
55185         * tests/test-wctype-c++.cc: New file.
55186         * modules/wctype-tests (Files): Add it and tests/signature.h.
55187         (Depends-on): Add ansi-c++-opt.
55188         (Makefile.am): Arrange to compile and run test-wctype-c++.
55190         Tests of module 'wchar' in C++ mode.
55191         * tests/test-wchar-c++.cc: New file.
55192         * modules/wchar-tests (Files): Add it and tests/signature.h.
55193         (Depends-on): Add ansi-c++-opt.
55194         (Makefile.am): Arrange to compile and run test-wchar-c++.
55195         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55196         gl_MODULE_INDICATOR.
55198         Tests of module 'unistd' in C++ mode.
55199         * tests/test-unistd-c++.cc: New file.
55200         * modules/unistd-tests (Files): Add it and tests/signature.h.
55201         (Depends-on): Add ansi-c++-opt.
55202         (Makefile.am): Arrange to compile and run test-unistd-c++.
55203         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55204         gl_MODULE_INDICATOR.
55206         Tests of module 'time' in C++ mode.
55207         * tests/test-time-c++.cc: New file.
55208         * modules/time-tests (Files): Add it and tests/signature.h.
55209         (Depends-on): Add ansi-c++-opt.
55210         (Makefile.am): Arrange to compile and run test-time-c++.
55211         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55213         Tests of module 'sys_time' in C++ mode.
55214         * tests/test-sys_time-c++.cc: New file.
55215         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55216         (Depends-on): Add ansi-c++-opt.
55217         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55218         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55219         gl_MODULE_INDICATOR.
55221         Tests of module 'sys_stat' in C++ mode.
55222         * tests/test-sys_stat-c++.cc: New file.
55223         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55224         (Depends-on): Add ansi-c++-opt.
55225         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55226         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55227         gl_MODULE_INDICATOR.
55229         Tests of module 'sys_socket' in C++ mode.
55230         * tests/test-sys_socket-c++.cc: New file.
55231         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55232         (Depends-on): Add ansi-c++-opt.
55233         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55234         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55235         gl_MODULE_INDICATOR.
55237         Tests of module 'sys_select' in C++ mode.
55238         * tests/test-sys_select-c++.cc: New file.
55239         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55240         (Depends-on): Add ansi-c++-opt.
55241         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55242         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55243         gl_MODULE_INDICATOR.
55245         Tests of module 'sys_ioctl' in C++ mode.
55246         * tests/test-sys_ioctl-c++.cc: New file.
55247         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55248         (Depends-on): Add ansi-c++-opt.
55249         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55250         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55251         gl_MODULE_INDICATOR.
55253         Tests of module 'string' in C++ mode.
55254         * tests/test-string-c++.cc: New file.
55255         * modules/string-tests (Files): Add it and tests/signature.h.
55256         (Depends-on): Add ansi-c++-opt.
55257         (Makefile.am): Arrange to compile and run test-string-c++.
55258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55259         gl_MODULE_INDICATOR.
55261         Tests of module 'stdlib' in C++ mode.
55262         * tests/test-stdlib-c++.cc: New file.
55263         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55264         (Depends-on): Add ansi-c++-opt.
55265         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55266         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55267         gl_MODULE_INDICATOR.
55269         Tests of module 'stdio' in C++ mode.
55270         * tests/test-stdio-c++.cc: New file.
55271         * modules/stdio-tests (Files): Add it and tests/signature.h.
55272         (Depends-on): Add ansi-c++-opt.
55273         (Makefile.am): Arrange to compile and run test-stdio-c++.
55274         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55275         gl_MODULE_INDICATOR.
55277         Tests of module 'spawn' in C++ mode.
55278         * tests/test-spawn-c++.cc: New file.
55279         * modules/spawn-tests (Files): Add it and tests/signature.h.
55280         (Depends-on): Add ansi-c++-opt.
55281         (Makefile.am): Arrange to compile and run test-spawn-c++.
55282         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55283         gl_MODULE_INDICATOR.
55285         Tests of module 'signal' in C++ mode.
55286         * tests/test-signal-c++.cc: New file.
55287         * modules/signal-tests (Files): Add it and tests/signature.h.
55288         (Depends-on): Add ansi-c++-opt.
55289         (Makefile.am): Arrange to compile and run test-signal-c++.
55290         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55291         gl_MODULE_INDICATOR.
55293         Tests of module 'search' in C++ mode.
55294         * tests/test-search-c++.cc: New file.
55295         * modules/search-tests (Files): Add it and tests/signature.h.
55296         (Depends-on): Add ansi-c++-opt.
55297         (Makefile.am): Arrange to compile and run test-search-c++.
55298         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55299         gl_MODULE_INDICATOR.
55301         Tests of module 'math' in C++ mode.
55302         * tests/test-math-c++.cc: New file.
55303         * modules/math-tests (Files): Add it and tests/signature.h.
55304         (Depends-on): Add ansi-c++-opt.
55305         (Makefile.am): Arrange to compile and run test-math-c++.
55306         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55308         Tests of module 'locale' in C++ mode.
55309         * tests/test-locale-c++.cc: New file.
55310         * modules/locale-tests (Files): Add it and tests/signature.h.
55311         (Depends-on): Add ansi-c++-opt.
55312         (Makefile.am): Arrange to compile and run test-locale-c++.
55313         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55314         gl_MODULE_INDICATOR.
55316         Tests of module 'langinfo' in C++ mode.
55317         * tests/test-langinfo-c++.cc: New file.
55318         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55319         (Depends-on): Add ansi-c++-opt.
55320         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55321         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55322         gl_MODULE_INDICATOR.
55324         Tests of module 'iconv-h' in C++ mode.
55325         * tests/test-iconv-h-c++.cc: New file.
55326         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55327         (Depends-on): Add ansi-c++-opt.
55328         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55330         Tests of module 'glob' in C++ mode.
55331         * tests/test-glob-c++.cc: New file.
55332         * modules/glob-tests (Files): Add it.
55333         (Depends-on): Add ansi-c++-opt.
55334         (Makefile.am): Arrange to compile and run test-glob-c++.
55336         Tests of module 'fcntl-h' in C++ mode.
55337         * tests/test-fcntl-h-c++.cc: New file.
55338         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55339         (Depends-on): Add ansi-c++-opt.
55340         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55341         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55342         gl_MODULE_INDICATOR.
55344         Tests of module 'dirent' in C++ mode.
55345         * tests/test-dirent-c++.cc: New file.
55346         * modules/dirent-tests (Files): Add it and tests/signature.h.
55347         (Depends-on): Add ansi-c++-opt.
55348         (Makefile.am): Arrange to compile and run test-dirent-c++.
55349         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55350         gl_MODULE_INDICATOR.
55352         New module 'ansi-c++-opt'.
55353         * modules/ansi-c++-opt: New file.
55354         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55356         Document C++ namespace mode.
55357         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55359         wctype: Avoid #define replacements in C++ mode.
55360         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55361         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55362         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55363         In C++, define a namespaced alias symbol.
55364         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55365         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55366         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55367         rule.
55369         wchar: Avoid #define replacements in C++ mode.
55370         * lib/wchar.in.h: Include c++defs.h.
55371         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55372         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55373         symbol.
55374         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55375         * modules/wchar (Depends-on): Add c++defs.
55376         (Makefile.am): Update wchar.h rule.
55378         unistd: Avoid #define replacements in C++ mode.
55379         * lib/unistd.in.h: Include c++defs.h.
55380         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55381         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55382         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55383         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55384         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55385         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55386         symbol.
55387         (environ): Update.
55388         * modules/unistd (Depends-on): Add c++defs.
55389         (Makefile.am): Update unistd.h rule.
55391         time: Avoid #define replacements in C++ mode.
55392         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55393         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55394         define a namespaced alias symbol.
55395         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55396         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55397         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55398         * modules/time (Depends-on): Add c++defs, warn-on-use.
55399         (Makefile.am): Update time.h rule.
55400         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55401         * modules/nanosleep (configure.ac): Likewise.
55402         * modules/strptime (configure.ac): Likewise.
55403         * modules/timegm (configure.ac): Likewise.
55405         sys_time: Avoid #define replacements in C++ mode.
55406         * lib/sys_time.in.h: Include c++defs.h.
55407         (gettimeofday): In C++, define a namespaced alias symbol.
55408         * modules/sys_time (Depends-on): Add c++defs.
55409         (Makefile.am): Update sys/time.h rule.
55411         sys_stat: Avoid #define replacements in C++ mode.
55412         * lib/sys_stat.in.h: Include c++defs.h.
55413         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55414         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55415         namespaced alias symbol.
55416         In C++, define a namespaced alias symbol.
55417         * modules/sys_stat (Depends-on): Add c++defs.
55418         (Makefile.am): Update sys/stat.h rule.
55420         sys_socket: Avoid #define replacements in C++ mode.
55421         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55422         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55423         definitions also when the system has a <sys/socket.h>.
55424         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55425         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55426         In C++, define a namespaced alias symbol.
55427         * modules/sys_socket (Depends-on): Add c++defs.
55428         (Makefile.am): Update sys/socket.h rule.
55430         sys_select: Avoid #define replacements in C++ mode.
55431         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55432         definitions also when the system has a <sys/select.h>.
55433         (select): In C++, define a namespaced alias symbol.
55434         * modules/sys_select (Depends-on): Add c++defs.
55435         (Makefile.am): Update sys/select.h rule.
55437         sys_ioctl: Avoid #define replacements in C++ mode.
55438         * lib/sys_ioctl.in.h: Include c++defs.h.
55439         (ioctl): In C++, define a namespaced alias symbol.
55440         * modules/sys_ioctl (Depends-on): Add c++defs.
55441         (Makefile.am): Update sys/ioctl.h rule.
55443         string: Avoid #define replacements in C++ mode.
55444         * lib/string.in.h: Include c++defs.h.
55445         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55446         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55447         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55448         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55449         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55450         * modules/string (Depends-on): Add c++defs.
55451         (Makefile.am): Update string.h rule.
55453         stdlib: Avoid #define replacements in C++ mode.
55454         * lib/stdlib.in.h: Include c++defs.h.
55455         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55456         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55457         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55458         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55459         symbol.
55460         * modules/stdlib (Depends-on): Add c++defs.
55461         (Makefile.am): Update stdlib.h rule.
55463         stdio: Avoid #define replacements in C++ mode.
55464         * lib/stdio.in.h: Include c++defs.h.
55465         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55466         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55467         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55468         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55469         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55470         namespaced alias symbol.
55471         * modules/stdio (Depends-on): Add c++defs.
55472         (Makefile.am): Update stdio.h rule.
55474         spawn: Avoid #define replacements in C++ mode.
55475         * lib/spawn.in.h: Include c++defs.h.
55476         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55477         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55478         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55479         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55480         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55481         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55482         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55483         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55484         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55485         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55486         In C++, define a namespaced alias symbol.
55487         * modules/spawn (Depends-on): Add c++defs.
55488         (Makefile.am): Update spawn.h rule.
55490         signal: Avoid #define replacements in C++ mode.
55491         * lib/signal.in.h: Include c++defs.h.
55492         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55493         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55494         namespaced alias symbol.
55495         * modules/signal (Depends-on): Add c++defs.
55496         (Makefile.am): Update signal.h rule.
55498         search: Avoid #define replacements in C++ mode.
55499         * lib/search.in.h: Include c++defs.h.
55500         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55501         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55502         symbol.
55503         * modules/search (Depends-on): Add c++defs.
55504         (Makefile.am): Update search.h rule.
55506         math: Avoid #define replacements in C++ mode.
55507         * lib/math.in.h: Include c++defs.h.
55508         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55509         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55510         trunc, truncl): In C++, define a namespaced alias symbol.
55511         * modules/math (Depends-on): Add c++defs.
55512         (Makefile.am): Update math.h rule.
55514         locale: Avoid #define replacements in C++ mode.
55515         * lib/locale.in.h: Include c++defs.h.
55516         (duplocale): In C++, define a namespaced alias symbol.
55517         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55519         * modules/locale (Depends-on): Add c++defs.
55520         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55522         langinfo: Avoid #define replacements in C++ mode.
55523         * lib/langinfo.in.h: Include c++defs.h.
55524         (nl_langinfo): In C++, define a namespaced alias symbol.
55525         * modules/langinfo (Depends-on): Add c++defs.
55526         (Makefile.am): Update langinfo.h rule.
55528         iconv-h: Avoid #define replacements in C++ mode.
55529         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55530         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55531         symbol.
55532         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55533         whenever iconv is present.
55534         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55535         (Makefile.am): Update iconv.h rule.
55537         glob: Avoid #define replacements in C++ mode.
55538         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55539         (_gl_glob_errfunc_fn): New type.
55540         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55541         symbol.
55542         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55543         (Makefile.am): Update glob.h rule.
55545         fcntl-h: Avoid #define replacements in C++ mode.
55546         * lib/fcntl.in.h: Include c++defs.h.
55547         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55548         * modules/fcntl-h (Depends-on): Add c++defs.
55549         (Makefile.am): Update fcntl.h rule.
55551         dirent: Avoid #define replacements in C++ mode.
55552         * lib/dirent.in.h: Include c++defs.h.
55553         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55554         namespaced alias symbol.
55555         (dirfd): Update declaration.
55556         * modules/dirent (Depends-on): Add c++defs.
55557         (Makefile.am): Update dirent.h rule.
55559         ctype: Make it usable in C++ code.
55560         * lib/ctype.in.h: Include c++defs.h.
55561         (isblank): Declare as extern "C".
55562         * modules/ctype (Depends-on): Add c++defs.
55563         (Makefile.am): Update ctype.h rule.
55565         New module 'c++defs'.
55566         * modules/c++defs: New file.
55567         * build-aux/c++defs.h: New file.
55568         Reported by John W. Eaton <jwe@gnu.org>.
55570 2010-03-07  Bruno Haible  <bruno@clisp.org>
55572         logb: Provide missing declaration for Cygwin.
55573         * lib/math.in.h (logb): New declaration.
55574         * m4/logb.m4: New file.
55575         * modules/logb (Files): Add m4/logb.m4.
55576         (Depends-on): Add math.
55577         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55578         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55580         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55581         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55583 2010-03-07  Bruno Haible  <bruno@clisp.org>
55585         Fix test-cond link error.
55586         * tests/test-cond.c: Include <stdio.h>.
55588 2010-03-07  Bruno Haible  <bruno@clisp.org>
55590         Fix test-dirent-safer link error.
55591         * modules/dirent-safer-tests (Makefile.am): Define
55592         test_dirent_safer_LDADD.
55594 2010-03-07  Bruno Haible  <bruno@clisp.org>
55596         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55597         among default module list.
55599 2010-03-07  Bruno Haible  <bruno@clisp.org>
55601         Fix link error on platforms with GNU libiconv.
55602         * modules/unistr/u8-strcoll-tests (Makefile): Define
55603         test_u8_strcoll_LDADD.
55604         * modules/unistr/u16-strcoll-tests (Makefile): Define
55605         test_u16_strcoll_LDADD.
55606         * modules/unistr/u32-strcoll-tests (Makefile): Define
55607         test_u32_strcoll_LDADD.
55609 2010-03-07  Bruno Haible  <bruno@clisp.org>
55611         Use POSIX declarations for socket functions.
55612         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55613         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55614         rpl_sendto): Change declaration to match POSIX.
55615         * lib/connect.c (rpl_connect): Likewise.
55616         * lib/accept.c (rpl_accept): Likewise.
55617         * lib/bind.c (rpl_bind): Likewise.
55618         * lib/getpeername.c (rpl_getpeername): Likewise.
55619         * lib/getsockname.c (rpl_getsockname): Likewise.
55620         * lib/recv.c (rpl_recv): Likewise.
55621         * lib/send.c (rpl_send): Likewise.
55622         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55623         * lib/sendto.c (rpl_sendto): Likewise.
55625 2010-03-06  Bruno Haible  <bruno@clisp.org>
55627         Clarify access, euidaccess, faccessat.
55628         * doc/posix-functions/faccessat.texi: Mention security problem under
55629         "Other problems", not "Portability problems".
55630         * doc/posix-functions/access.texi: Likewise. Mention a related security
55631         problem.
55632         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55633         * lib/euidaccess.c: Add comments about platforms.
55634         * lib/unistd.in.h (access, euidaccess): Add warnings.
55636 2010-03-07  Bruno Haible  <bruno@clisp.org>
55638         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55639         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55640         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55641         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55642         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55643         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55644         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55645         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55646         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55647         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55648         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55649         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55650         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55651         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55652         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55653         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55654         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55655         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55656         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55657         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55658         Likewise.
55659         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55660         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55661         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55662         Likewise.
55663         * tests/test-spawn.c (main): Make it work when
55664         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55666 2010-03-07  Bruno Haible  <bruno@clisp.org>
55668         Fix incorrect Makefile.am generation in German locale.
55669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55670         Execute sed command with character range in C locale.
55672 2010-03-06  Bruno Haible  <bruno@clisp.org>
55674         Tests for module 'iconv-h'.
55675         * modules/iconv-h-tests: New file.
55676         * tests/test-iconv-h.c: New file.
55678         New module 'iconv-h'.
55679         * modules/iconv-h: New file.
55680         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55681         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55682         (configure.ac): Remove gl_ICONV_H.
55683         (Makefile.am): Remove rule for iconv.h.
55685 2010-03-06  Bruno Haible  <bruno@clisp.org>
55687         More consistent naming of *.m4 files.
55688         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55689         * modules/wctype (Files): Update.
55691         More consistent naming of *.m4 files.
55692         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55693         * modules/wchar (Files): Update.
55695 2010-03-06  Jim Meyering  <meyering@redhat.com>
55697         euidaccess: relax license to LGPLv2+
55698         * modules/euidaccess (License): Relax to LGPLv2+.
55700 2010-03-06  Bruno Haible  <bruno@clisp.org>
55702         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55703         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55704         (Makefile.am): Augment lib_SOURCES instead.
55706 2010-03-04  Jim Meyering  <meyering@redhat.com>
55708         utime: remove obsolete module
55709         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55710         unnecessary for years, and has been marked as obsolete for 10 months.
55711         * modules/utime: Remove file.
55712         * lib/utime.c: Remove file.
55713         * m4/utime.m4: Remove file.
55714         * m4/utimes-null.m4: Remove file.
55715         * doc/posix-functions/utime.texi (utime): Remove reference to
55716         the module.  Move the sole "fixed by gnulib" item into the
55717         "problems not fixed by Gnulib" list.
55718         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55720 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55722         * modules/exit (License): Relax license to LGPLv2+.
55723         (Status): Mark as obsolete.
55724         * NEWS: Mention deprecated 'exit' module.
55725         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55726         of now obsolete 'exit'.
55728 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55730         fts-lgpl: remove unused module
55731         * modules/fts-lgpl: Remove.
55732         * MODULES.html.sh (func_all_modules): Adjust.
55733         * check-module (find_included_lib_files): Adjust.
55734         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55736 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55738         copy-acl: enhance Solaris ACL error handling
55739         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55740         * lib/set-mode-acl.c (qset_acl): Likewise.
55742 2010-03-02  Bruno Haible  <bruno@clisp.org>
55744         spawn: Don't override the system defined values on FreeBSD 8.
55745         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55746         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55747         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55748         if HAVE_POSIX_SPAWN is 1.
55749         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55751 2010-03-01  Bruno Haible  <bruno@clisp.org>
55753         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55754         regarding Automake.
55756 2010-02-25  Bruno Haible  <bruno@clisp.org>
55758         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55759         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55760         setting, not afterwards.
55761         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55763 2010-02-24  Eric Blake  <eblake@redhat.com>
55765         bootstrap, git-version-gen: use timestamp
55766         * build-aux/git-version-gen (scriptversion): Force UTC.
55767         * build-aux/bootstrap (scriptversion): New variable.
55769         bootstrap: allow older git
55770         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55771         older than 1.6.4.  Requested by the libvirt project.
55773 2010-02-23  Eric Blake  <eblake@redhat.com>
55775         warn-on-use: work with old autoconf
55776         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55777         AS_VAR semantics of autoconf 2.60.
55778         Reported by Bruno Haible.
55780         bootstrap: improve some comments
55781         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55782         clarification comments.
55784         gettimeofday: provide correct function
55785         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55786         when replacement is declared, otherwise provide gettimeofday.
55787         Reported by Michael Goffioul.
55789 2010-02-23  Jim Meyering  <meyering@redhat.com>
55791         lib-ignore: relax license to "unlimited", not LGPLv2+
55792         * modules/lib-ignore (License): Relax to "unlimited".
55794 2010-02-23  Jim Meyering  <meyering@redhat.com>
55796         lib-ignore: relax license to LGPLv2+
55797         * modules/lib-ignore (License): Relax to LGPLv2+.
55799 2010-02-22  Eric Blake  <eblake@redhat.com>
55801         lseek: avoid bash 3.2 broken pipe bug
55802         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55803         warning from bash 3.2.
55804         Reported by Ben Pfaff, with analysis from Bruno Haible.
55806         bootstrap: support non-FSF copyright holder
55807         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55808         bootstrap.conf override of COPYRIGHT_HOLDER.
55809         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55811         bootstrap: interoperate with gettext 0.14.1
55812         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55814         bootstrap: allow for alternate submodule location
55815         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55816         hardcoding submodule location.
55817         (gnulib_mk): Allow direct use of Makefile.am.
55819         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55820         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55821         rather than reconfiguring where the submodule points.
55823         gettimeofday: restore support for platforms that lack function
55824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55825         replacement if function is missing.
55826         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55827         * modules/sys_time (Makefile.am): Substitute it.
55828         * lib/sys_time.in.h (gettimeofday): Check it.
55829         Reported by Michael Goffioul.
55831 2010-02-21  Bruno Haible  <bruno@clisp.org>
55833         * lib/stdio.in.h (obstack_printf): Fix typo.
55835 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55837         vc-list-files: use bzr ls's -R option
55838         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55839         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55841 2010-02-21  Jim Meyering  <meyering@redhat.com>
55843         init.sh: fix EXEEXT shims to work also for names like test-prog
55844         * tests/init.sh: Re-exec a better shell, when needed.
55845         If the current shell lacks support for posix $(...), an init.sh-using
55846         test will now try to find a shell that supports that.  If EXEEXT is
55847         nonempty, we also require support for hyphen-in-alias-name and shell
55848         substitutions like ${var#glob}.  Failure to find such a shell results
55849         in a skipped test.
55851 2010-02-21  Bruno Haible  <bruno@clisp.org>
55853         Really work around "broken pipe" error message from bash 3.2.
55854         * gnulib-tool (func_reset_sigpipe): Remove function.
55855         (echo): In bash 3.2, define to a function that uses printf.
55856         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55858 2010-02-20  Bruno Haible  <bruno@clisp.org>
55860         Restore support for automake 1.9.6 with autoconf 2.61.
55861         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55862         Reported by James Youngman <jay@gnu.org>.
55864 2010-02-20  Bruno Haible  <bruno@clisp.org>
55866         Improve *printf warning condition.
55867         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55868         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55869         and the function is overridden due to SIGPIPE emulation.
55871 2010-02-20  Bruno Haible  <bruno@clisp.org>
55873         * lib/stdio.in.h: Tweak comments.
55875 2010-02-19  Bruno Haible  <bruno@clisp.org>
55877         Make it easier to find modules. New gnulib-tool option '--find'.
55878         * gnulib-tool: New option --find.
55879         (func_usage): Document it.
55880         (func_sanitize_modulelist): New function, extracted from
55881         func_all_modules.
55882         (func_all_modules): Invoke it.
55883         * doc/gnulib-tool.texi (Which modules?): New node.
55885 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55887         * lib/sys_select.in.h: Provide select replacement even if
55888         sys/select.h exists on a system, for Interix.
55890 2010-02-18  Jim Meyering  <meyering@redhat.com>
55892         init.sh: don't use $(...) just yet
55893         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
55894         to accommodate e.g., Solaris' /bin/sh.
55896 2010-02-17  Bruno Haible  <bruno@clisp.org>
55898         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
55899         Reported by Ludovic Courtès <ludo@gnu.org>.
55901 2010-02-16  Simon Josefsson  <simon@josefsson.org>
55903         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
55904         linking with -lintl.
55906 2010-02-17  Simon Josefsson  <simon@josefsson.org>
55908         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
55909         if not provided by the system's netdb.h.  Reported by
55910         ludo@gnu.org (Ludovic Courtès).
55912 2010-02-15  Jim Meyering  <meyering@redhat.com>
55914         init.sh: improve portability and efficiency
55915         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
55916         "dummy" in a for loop.
55917         Use '!', not '^' to select the complement of a character set used
55918         in a "case" statement.
55919         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
55920         Suggestions from Eric Blake.
55922         init.sh: automatically accommodate programs with the .exe suffix
55923         Automatically arrange for an invocation of "prog" to execute the
55924         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
55925         may use the simpler "prog", yet still work when built on a system
55926         that requires specifying the added suffix.
55927         Do this by constructing a function named "prog" that invokes
55928         "prog.exe" for each .exe file in selected directories.
55929         * tests/init.sh (find_exe_basenames_): New function.
55930         (create_exe_shim_functions_): New function.
55931         (path_prepend_): Use it.
55933         maint.mk: mark syntax-check sc_*.m rules as .PHONY
55934         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
55935         "make -t syntax-check" doesn't create a ton of sc_*.m files.
55937 2010-02-14  Jim Meyering  <meyering@redhat.com>
55939         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
55940         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
55941         (sc_prohibit_hash_pjw_without_use): New rule.
55943         maint.mk: allow the default upload destination dir to be overridden
55944         * top/maint.mk (upload_dest_dir_): Define with a default that
55945         preserves the status quo.
55946         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
55947         Reported by Peter Simons.
55949         maint.mk: prohibit inclusion of "hash.h" without_use
55950         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
55952 2010-02-10  Jim Meyering  <meyering@redhat.com>
55954         maint.mk: prohibit inclusion of "ignore-value.h" without_use
55955         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
55957 2010-02-09  Eric Blake  <ebb9@byu.net>
55958         and Bruno Haible  <bruno@clisp.org>
55960         obstack-printf-posix: ensure declaration
55961         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
55962         extracted from gl_FUNC_OBSTACK_PRINTF.
55963         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
55964         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55965         Likewise.
55966         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
55967         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
55968         0.
55970 2010-02-08  Bruno Haible  <bruno@clisp.org>
55972         gnulib-tool: Fix typo in 2010-02-07 commit.
55973         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
55974         Reported by Eric Blake.
55976 2010-02-07  Bruno Haible  <bruno@clisp.org>
55978         gnulib-tool: Fix up caching patches.
55979         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
55980         option --no-cache. Use associative arrays when supported by the shell.
55981         (sed_comments): New variable.
55982         (modcache): Renamed from do_cache.
55983         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
55984         abbreviate unnecessarily.
55985         (have_associative): New variable.
55986         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
55987         way also for ksh and zsh.
55988         (func_init_sed_convert_to_cache_statements): New function, extracted
55989         from func_cache_lookup_module. Add support for associative arrays.
55990         Don't set the c_MODULE_cached variable here. Ignore all lines before
55991         the first field header. Remove only the final newline, not all trailing
55992         newlines. Support empty fields correctly. Limit the use of 'eval' to
55993         assignments.
55994         (func_get_description, func_get_status, func_get_notice,
55995         func_get_applicability, func_get_filelist, func_get_dependencies,
55996         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
55997         func_get_automake_snippet, func_get_include_directive,
55998         func_get_link_directive, func_get_license, func_get_maintainer):
55999         Update documentation. List the unoptimized code first. Add support for
56000         associative arrays. Limit the use of 'eval' to assignments.
56001         (func_get_applicability): Undo stylistic pessimisations.
56002         (func_get_automake_snippet, func_get_include_directive): Reduce code
56003         duplication.
56004         (func_modules_transitive_closure, func_modules_add_dummy,
56005         func_modules_notice, func_modules_to_filelist, func_add_file,
56006         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56007         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56008         func_create_testdir, func_create_megatestdir): Update documentation.
56010 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56012         * gnulib-tool (func_cache_lookup_module): Store the module name
56013         belonging to the cache variable; error out if two different
56014         module names map to the same cache variable name.
56016 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56018         gnulib-tool: Make caching optional.
56019         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56020         Update matching short versions of --no-changelog.
56021         (func_usage): Update.
56022         (sed_extract_cache_prog): Renamed from ...
56023         (sed_extract_prog): ... this; revert to old extraction script.
56024         (func_get_description, func_get_status)
56025         (func_get_notice, func_get_applicability, func_get_filelist)
56026         (func_get_dependencies, func_get_autoconf_early_snippet)
56027         (func_get_autoconf_snippet, func_get_automake_snippet)
56028         (func_get_include_directive, func_get_link_directive)
56029         (func_get_license, func_get_maintainer): If $do_cache is false,
56030         use old, non-caching extraction scripts.
56031         Suggestion by Bruno Haible.
56033 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56035         gnulib-tool: cache module metainformation.
56036         * gnulib-tool (sed_extract_prog): Match newline before each
56037         header, and rewrite header to a shell variable suffix.
56038         (func_cache_var, func_cache_lookup_module): New functions,
56039         to turn a module name into a cache variable prefix, and to
56040         look up and cache module metainformation.
56041         (func_get_description, func_get_status)
56042         (func_get_notice, func_get_applicability, func_get_filelist)
56043         (func_get_dependencies, func_get_autoconf_early_snippet)
56044         (func_get_autoconf_snippet, func_get_automake_snippet)
56045         (func_get_include_directive, func_get_link_directive)
56046         (func_get_license, func_get_maintainer): Use
56047         func_cache_lookup_module.
56049 2010-02-07  Bruno Haible  <bruno@clisp.org>
56051         fnctl: Fix missing dependency.
56052         * modules/fcntl (Depends-on): Add getdtablesize.
56053         Reported by John W. Eaton <jwe@gnu.org>.
56055 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56057         Argp: fix recognition of short alias options.
56059         * lib/argp-parse.c (convert_options): Fix improper use of
56060         `|' between character values.
56061         * tests/test-argp.c (group1_option): New alias option
56062         --read (-r).
56063         (group1_parser): Special handling for 'r'.
56064         (test15): New test case.
56065         (test_fun): Add test15.
56066         * tests/test-argp-2.sh: Update expected --help and --usage
56067         outputs.
56069 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56071         * tests/test-argp.c: Fix indentation.
56073 2010-02-04  Eric Blake  <ebb9@byu.net>
56075         gettimeofday: expose type of second argument
56076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56077         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56078         * tests/test-gettimeofday.c: Use it to silence warning.
56079         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56080         the issue.
56082 2010-02-03  Jim Meyering  <meyering@redhat.com>
56084         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56085         * lib/regcomp.c (TYPE_SIGNED): Define.
56086         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56088         regcomp.c: avoid a new -Wshadow warning
56089         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56091 2010-02-01  Jim Meyering  <meyering@redhat.com>
56093         removing useless parentheses in cpp #define directives
56094         For motivation, see commit c0221df4, "define STREQ(a,b)
56095         consistently, removing useless parentheses"
56096         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56097         * lib/mountlist.c (MNT_IGNORE): Likewise.
56098         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56100 2010-02-01  Eric Blake  <ebb9@byu.net>
56102         sys_time: use link-warning
56103         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56104         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56105         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56106         * modules/sys_time (Depends-on): Add warn-on-use.
56107         (Makefile.am): Always build replacement.
56108         (configure.ac): Update substitutions.
56109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56110         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56111         bother with SYS_TIME_H.
56112         * modules/gettimeofday (configure.ac): Declare indicator.
56113         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56114         in use.
56116         closein-tests: silence compiler warning
56117         * tests/test-closein.c (main): Ignore fread result.
56118         * modules/closein-tests (Depends-on): Add ignore-value.
56120         tests: silence warning about system return
56121         * tests/test-areadlink-with-size.c (main): Ignore system result.
56122         * tests/test-areadlink.c (main): Likewise.
56123         * tests/test-areadlinkat-with-size.c (main): Likewise.
56124         * tests/test-areadlinkat.c (main): Likewise.
56125         * tests/test-canonicalize-lgpl.c (main): Likewise.
56126         * tests/test-canonicalize.c (main): Likewise.
56127         * tests/test-chown.c (main): Likewise.
56128         * tests/test-fchownat.c (main): Likewise.
56129         * tests/test-fdutimensat.c (main): Likewise.
56130         * tests/test-fstatat.c (main): Likewise.
56131         * tests/test-futimens.c (main): Likewise.
56132         * tests/test-lchown.c (main): Likewise.
56133         * tests/test-link.c (main): Likewise.
56134         * tests/test-linkat.c (main): Likewise.
56135         * tests/test-lstat.c (main): Likewise.
56136         * tests/test-mkdir.c (main): Likewise.
56137         * tests/test-mkdirat.c (main): Likewise.
56138         * tests/test-mkfifo.c (main): Likewise.
56139         * tests/test-mkfifoat.c (main): Likewise.
56140         * tests/test-mknod.c (main): Likewise.
56141         * tests/test-readlink.c (main): Likewise.
56142         * tests/test-remove.c (main): Likewise.
56143         * tests/test-rename.c (main): Likewise.
56144         * tests/test-renameat.c (main): Likewise.
56145         * tests/test-rmdir.c (main): Likewise.
56146         * tests/test-symlink.c (main): Likewise.
56147         * tests/test-symlinkat.c (main): Likewise.
56148         * tests/test-unlink.c (main): Likewise.
56149         * tests/test-unlinkat.c (main): Likewise.
56150         * tests/test-utimens.c (main): Likewise.
56151         * tests/test-utimensat.c (main): Likewise.
56152         * modules/areadlink-tests (Depends-on): Add ignore-value.
56153         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56154         * modules/areadlinkat-tests (Depends-on): Likewise.
56155         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56156         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56157         * modules/canonicalize-tests (Depends-on): Likewise.
56158         * modules/chown-tests (Depends-on): Likewise.
56159         * modules/fdutimensat-tests (Depends-on): Likewise.
56160         * modules/futimens-tests (Depends-on): Likewise.
56161         * modules/lchown-tests (Depends-on): Likewise.
56162         * modules/link-tests (Depends-on): Likewise.
56163         * modules/linkat-tests (Depends-on): Likewise.
56164         * modules/lstat-tests (Depends-on): Likewise.
56165         * modules/mkdir-tests (Depends-on): Likewise.
56166         * modules/mkfifo-tests (Depends-on): Likewise.
56167         * modules/mkfifoat-tests (Depends-on): Likewise.
56168         * modules/mknod-tests (Depends-on): Likewise.
56169         * modules/openat-tests (Depends-on): Likewise.
56170         * modules/readlink-tests (Depends-on): Likewise.
56171         * modules/remove-tests (Depends-on): Likewise.
56172         * modules/rename-tests (Depends-on): Likewise.
56173         * modules/renameat-tests (Depends-on): Likewise.
56174         * modules/rmdir-tests (Depends-on): Likewise.
56175         * modules/symlink-tests (Depends-on): Likewise.
56176         * modules/symlinkat-tests (Depends-on): Likewise.
56177         * modules/unlink-tests (Depends-on): Likewise.
56178         * modules/utimens-tests (Depends-on): Likewise.
56179         * modules/utimensat-tests (Depends-on): Likewise.
56181 2010-01-31  Bruno Haible  <bruno@clisp.org>
56183         Perform the same test for many <math.h> functions.
56184         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56185         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56186         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56187         of gl_MATHFUNC.
56188         * modules/acos (configure.ac): Likewise.
56189         * modules/asin (configure.ac): Likewise.
56190         * modules/atan (configure.ac): Likewise.
56191         * modules/atan2 (configure.ac): Likewise.
56192         * modules/cbrt (configure.ac): Likewise.
56193         * modules/copysign (configure.ac): Likewise.
56194         * modules/cos (configure.ac): Likewise.
56195         * modules/cosh (configure.ac): Likewise.
56196         * modules/erf (configure.ac): Likewise.
56197         * modules/erfc (configure.ac): Likewise.
56198         * modules/exp (configure.ac): Likewise.
56199         * modules/fmod (configure.ac): Likewise.
56200         * modules/hypot (configure.ac): Likewise.
56201         * modules/j0 (configure.ac): Likewise.
56202         * modules/j1 (configure.ac): Likewise.
56203         * modules/jn (configure.ac): Likewise.
56204         * modules/lgamma (configure.ac): Likewise.
56205         * modules/log (configure.ac): Likewise.
56206         * modules/log10 (configure.ac): Likewise.
56207         * modules/log1p (configure.ac): Likewise.
56208         * modules/pow (configure.ac): Likewise.
56209         * modules/remainder (configure.ac): Likewise.
56210         * modules/sin (configure.ac): Likewise.
56211         * modules/sinh (configure.ac): Likewise.
56212         * modules/tan (configure.ac): Likewise.
56213         * modules/tanh (configure.ac): Likewise.
56214         * modules/y0 (configure.ac): Likewise.
56215         * modules/y1 (configure.ac): Likewise.
56216         * modules/yn (configure.ac): Likewise.
56217         Suggested by Paolo Bonzini.
56219 2010-01-31  Bruno Haible  <bruno@clisp.org>
56221         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56223 2010-01-31  Bruno Haible  <bruno@clisp.org>
56225         Work around getdelim() bug on FreeBSD 8.0.
56226         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56227         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56228         not work.
56229         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56230         is 1.
56231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56232         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56233         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56234         a non-zero size.
56235         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56237 2010-01-31  Bruno Haible  <bruno@clisp.org>
56239         Work around getline() bug on FreeBSD 8.0.
56240         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56241         and a non-zero size.
56242         * tests/test-getline.c (main): Likewise.
56243         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56244         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56246 2010-01-28  Eric Blake  <ebb9@byu.net>
56248         regex: fix build failure
56249         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56250         platforms.
56252 2010-01-28  Jim Meyering  <meyering@redhat.com>
56254         regex: do not ignore memory allocation failure
56255         * lib/regex_internal.c (create_cd_newstate): Detect
56256         re_node_set_init_copy failure.   Extracted from glibc commit
56257         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56259         regex: sync more white-space changes from libc
56260         * lib/regex_internal.c: White-space only changes.
56261         * lib/regexec.c: Likewise.
56263         regex: add many uses of __attribute_warn_unused_result__
56264         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56265         * lib/regexec.c: Likewise.
56266         Extracted from a messy glibc commit.
56268         regcomp.c: spelling and merge-artifact from glibc
56269         * lib/regcomp.c: Merge remainder of glibc's
56270         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56272         regcomp.c: sync white-space changes from glibc
56273         * lib/regcomp.c: Merge to accommodate white space
56274         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56276         regcomp.c: do not ignore internal return values
56277         * lib/regcomp.c: Do not ignore internal return values.
56278         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56279         but without its white-space changes and spelling fixes.
56281         regex_internal.h: define __attribute_warn_unused_result__
56282         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56284         maint: add a syntax-check rule to check for vulnerable Makefile.in
56285         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56287 2010-01-27  Jim Meyering  <meyering@redhat.com>
56289         ncftpput-ftp: clean up spaces
56290         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56291         Remove trailing blanks.
56293 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56295         * build-aux/git-version-gen: Fix copyright statement.
56296         * build-aux/gnupload: Likewise.
56297         * tests/test-arcfour.c: Likewise.
56298         * tests/test-arctwo.c: Likewise.
56299         * tests/test-count-one-bits.c: Likewise.
56300         * tests/test-crc.c: Likewise.
56301         * tests/test-des.c: Likewise.
56302         * tests/test-gc-arcfour.c: Likewise.
56303         * tests/test-gc-arctwo.c: Likewise.
56304         * tests/test-gc-des.c: Likewise.
56305         * tests/test-gc-hmac-md5.c: Likewise.
56306         * tests/test-gc-hmac-sha1.c: Likewise.
56307         * tests/test-gc-md2.c: Likewise.
56308         * tests/test-gc-md4.c: Likewise.
56309         * tests/test-gc-md5.c: Likewise.
56310         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56311         * tests/test-gc-rijndael.c: Likewise.
56312         * tests/test-gc-sha1.c: Likewise.
56313         * tests/test-gc.c: Likewise.
56314         * tests/test-gethostname.c: Likewise.
56315         * tests/test-gettimeofday.c: Likewise.
56316         * tests/test-hash.c: Likewise.
56317         * tests/test-hmac-md5.c: Likewise.
56318         * tests/test-hmac-sha1.c: Likewise.
56319         * tests/test-md2.c: Likewise.
56320         * tests/test-md4.c: Likewise.
56321         * tests/test-md5.c: Likewise.
56322         * tests/test-memchr.c: Likewise.
56323         * tests/test-memchr2.c: Likewise.
56324         * tests/test-memcmp.c: Likewise.
56325         * tests/test-memmem.c: Likewise.
56326         * tests/test-memrchr.c: Likewise.
56327         * tests/test-rawmemchr.c: Likewise.
56328         * tests/test-read-file.c: Likewise.
56329         * tests/test-rijndael.c: Likewise.
56330         * tests/test-sockets.c: Likewise.
56331         * tests/test-strchrnul.c: Likewise.
56332         * tests/test-strstr.c: Likewise.
56333         * tests/test-strtod.c: Likewise.
56334         * build-aux/ncftpput-ftp: Likewise.
56336 2010-01-26  Eric Blake  <ebb9@byu.net>
56338         ignore-value: update recommended header name
56339         * modules/ignore-value (Include): Only use <> for headers that
56340         exist in glibc.
56342 2010-01-26  Jim Meyering  <meyering@redhat.com>
56344         test-userspec.c: avoid compiler warnings
56345         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56346         and "initialization discards qualifiers..." warnings.
56347         Put the first "uid" in its own scope, and make char* members "const".
56349 2010-01-25  Bruno Haible  <bruno@clisp.org>
56351         gnulib-tool: Make warning diagnostics consistent.
56352         * gnulib-tool (func_warning): New function.
56353         Use it everywhere where gnulib-tool produces output to stderr and it is
56354         not a fatal error.
56356 2010-01-25  Bruno Haible  <bruno@clisp.org>
56358         Fix test dependencies.
56359         * modules/xstrtol-tests (Depends-on): Add inttypes.
56360         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56362 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56364         syntax-check: detect incorrect boolean macro values in config.h
56365         * modules/maintainer-makefile (configure.ac): Parameterize the location
56366         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56367         The logic is from Eric Blake and the location indicated by Jim Meyering.
56368         Note the more natural CONFIG_HEADER name is prohibited by automake
56369         for backwards compatibility reasons.
56370         * top/maint.mk (sc_Wundef_boolean): New rule.
56372 2010-01-25  Jim Meyering  <meyering@redhat.com>
56374         bootstrap: detect MacOS 10.6's shasum, too
56375         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56376         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56378 2010-01-23  Jim Meyering  <meyering@redhat.com>
56380         xstrtoll: new module
56381         * modules/xstrtoll: New file.
56382         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56383         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56384         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56385         ./configure fails if you use this module and lack "long long".
56386         * modules/xstrtoll-tests: New module.
56387         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56388         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56389         new init.sh-based test framework.
56391 2010-01-24  Bruno Haible  <bruno@clisp.org>
56393         Tests for module 'yn'.
56394         * modules/yn-tests: New file.
56395         * tests/test-yn.c: New file.
56397         Tests for module 'y1'.
56398         * modules/y1-tests: New file.
56399         * tests/test-y1.c: New file.
56401         Tests for module 'y0'.
56402         * modules/y0-tests: New file.
56403         * tests/test-y0.c: New file.
56405         Tests for module 'tanh'.
56406         * modules/tanh-tests: New file.
56407         * tests/test-tanh.c: New file.
56409         Tests for module 'tan'.
56410         * modules/tan-tests: New file.
56411         * tests/test-tan.c: New file.
56413         Tests for module 'sqrt'.
56414         * modules/sqrt-tests: New file.
56415         * tests/test-sqrt.c: New file.
56417         Tests for module 'sinh'.
56418         * modules/sinh-tests: New file.
56419         * tests/test-sinh.c: New file.
56421         Tests for module 'sin'.
56422         * modules/sin-tests: New file.
56423         * tests/test-sin.c: New file.
56425         Tests for module 'rint'.
56426         * modules/rint-tests: New file.
56427         * tests/test-rint.c: New file.
56429         Tests for module 'remainder'.
56430         * modules/remainder-tests: New file.
56431         * tests/test-remainder.c: New file.
56433         Tests for module 'pow'.
56434         * modules/pow-tests: New file.
56435         * tests/test-pow.c: New file.
56437         Tests for module 'nextafter'.
56438         * modules/nextafter-tests: New file.
56439         * tests/test-nextafter.c: New file.
56441         Tests for module 'modf'.
56442         * modules/modf-tests: New file.
56443         * tests/test-modf.c: New file.
56445         Tests for module 'logb'.
56446         * modules/logb-tests: New file.
56447         * tests/test-logb.c: New file.
56449         Tests for module 'log1p'.
56450         * modules/log1p-tests: New file.
56451         * tests/test-log1p.c: New file.
56453         Tests for module 'log10'.
56454         * modules/log10-tests: New file.
56455         * tests/test-log10.c: New file.
56457         Tests for module 'log'.
56458         * modules/log-tests: New file.
56459         * tests/test-log.c: New file.
56461         Tests for module 'lgamma'.
56462         * modules/lgamma-tests: New file.
56463         * tests/test-lgamma.c: New file.
56465         Tests for module 'ldexp'.
56466         * modules/ldexp-tests: New file.
56467         * tests/test-ldexp.c: New file.
56469         Tests for module 'jn'.
56470         * modules/jn-tests: New file.
56471         * tests/test-jn.c: New file.
56473         Tests for module 'j1'.
56474         * modules/j1-tests: New file.
56475         * tests/test-j1.c: New file.
56477         Tests for module 'j0'.
56478         * modules/j0-tests: New file.
56479         * tests/test-j0.c: New file.
56481         Tests for module 'hypot'.
56482         * modules/hypot-tests: New file.
56483         * tests/test-hypot.c: New file.
56485         Tests for module 'fmod'.
56486         * modules/fmod-tests: New file.
56487         * tests/test-fmod.c: New file.
56489         Tests for module 'fabs'.
56490         * modules/fabs-tests: New file.
56491         * tests/test-fabs.c: New file.
56493         Tests for module 'exp'.
56494         * modules/exp-tests: New file.
56495         * tests/test-exp.c: New file.
56497         Tests for module 'erfc'.
56498         * modules/erfc-tests: New file.
56499         * tests/test-erfc.c: New file.
56501         Tests for module 'erf'.
56502         * modules/erf-tests: New file.
56503         * tests/test-erf.c: New file.
56505         Tests for module 'cosh'.
56506         * modules/cosh-tests: New file.
56507         * tests/test-cosh.c: New file.
56509         Tests for module 'cos'.
56510         * modules/cos-tests: New file.
56511         * tests/test-cos.c: New file.
56513         Tests for module 'copysign'.
56514         * modules/copysign-tests: New file.
56515         * tests/test-copysign.c: New file.
56517         Tests for module 'cbrt'.
56518         * modules/cbrt-tests: New file.
56519         * tests/test-cbrt.c: New file.
56521         Tests for module 'atan2'.
56522         * modules/atan2-tests: New file.
56523         * tests/test-atan2.c: New file.
56525         Tests for module 'atan'.
56526         * modules/atan-tests: New file.
56527         * tests/test-atan.c: New file.
56529         Tests for module 'asin'.
56530         * modules/asin-tests: New file.
56531         * tests/test-asin.c: New file.
56533         Tests for module 'acos'.
56534         * modules/acos-tests: New file.
56535         * tests/test-acos.c: New file.
56537 2010-01-24  Bruno Haible  <bruno@clisp.org>
56539         Fix tests for common <math.h> functions.
56540         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56541         code snippet that references the function pointer, rather than merely
56542         calling the function. Substitute the FUNC_LIBM variable.
56543         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56544         * modules/acos (configure.ac): Likewise.
56545         * modules/asin (configure.ac): Likewise.
56546         * modules/atan (configure.ac): Likewise.
56547         * modules/atan2 (configure.ac): Likewise.
56548         * modules/cbrt (configure.ac): Likewise.
56549         * modules/copysign (configure.ac): Likewise.
56550         * modules/cos (configure.ac): Likewise.
56551         * modules/cosh (configure.ac): Likewise.
56552         * modules/erf (configure.ac): Likewise.
56553         * modules/erfc (configure.ac): Likewise.
56554         * modules/exp (configure.ac): Likewise.
56555         * modules/fabs (configure.ac): Likewise.
56556         * modules/fmod (configure.ac): Likewise.
56557         * modules/hypot (configure.ac): Likewise.
56558         * modules/j0 (configure.ac): Likewise.
56559         * modules/j1 (configure.ac): Likewise.
56560         * modules/jn (configure.ac): Likewise.
56561         * modules/ldexp (configure.ac): Likewise.
56562         * modules/lgamma (configure.ac): Likewise.
56563         * modules/log (configure.ac): Likewise.
56564         * modules/log10 (configure.ac): Likewise.
56565         * modules/log1p (configure.ac): Likewise.
56566         * modules/logb (configure.ac): Likewise.
56567         * modules/modf (configure.ac): Likewise.
56568         * modules/nextafter (configure.ac): Likewise.
56569         * modules/pow (configure.ac): Likewise.
56570         * modules/remainder (configure.ac): Likewise.
56571         * modules/rint (configure.ac): Likewise.
56572         * modules/sin (configure.ac): Likewise.
56573         * modules/sinh (configure.ac): Likewise.
56574         * modules/tan (configure.ac): Likewise.
56575         * modules/tanh (configure.ac): Likewise.
56576         * modules/y0 (configure.ac): Likewise.
56577         * modules/y1 (configure.ac): Likewise.
56578         * modules/yn (configure.ac): Likewise.
56580 2010-01-24  Bruno Haible  <bruno@clisp.org>
56582         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56583         * tests/test-acosl.c (x): New variable.
56584         (main): Store argument in x and fetch it from x.
56585         * tests/test-asinl.c (x): New variable.
56586         (main): Store argument in x and fetch it from x.
56587         * tests/test-atanl.c (x): New variable.
56588         (main): Store argument in x and fetch it from x.
56589         * tests/test-cosl.c (x): New variable.
56590         (main): Store argument in x and fetch it from x.
56591         * tests/test-expl.c (x): New variable.
56592         (main): Store argument in x and fetch it from x.
56593         * tests/test-logl.c (x): New variable.
56594         (main): Store argument in x and fetch it from x.
56595         * tests/test-sinl.c (x): New variable.
56596         (main): Store argument in x and fetch it from x.
56597         * tests/test-sqrtl.c (x): New variable.
56598         (main): Store argument in x and fetch it from x.
56599         * tests/test-tanl.c (x): New variable.
56600         (main): Store argument in x and fetch it from x.
56602 2010-01-24  Bruno Haible  <bruno@clisp.org>
56604         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56605         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56606         assignments to the initial TESTS_ENVIRONMENT.
56607         * doc/gnulib.texi (Unit test modules): Document it.
56608         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56609         TESTS_ENVIRONMENT.
56610         * modules/btowc-tests (Makefile.am): Likewise.
56611         * modules/c-stack-tests (Makefile.am): Likewise.
56612         * modules/c-strcase-tests (Makefile.am): Likewise.
56613         * modules/copy-file-tests (Makefile.am): Likewise.
56614         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56615         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56616         * modules/mbrtowc-tests (Makefile.am): Likewise.
56617         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56618         * modules/mbscasestr-tests (Makefile.am): Likewise.
56619         * modules/mbschr-tests (Makefile.am): Likewise.
56620         * modules/mbscspn-tests (Makefile.am): Likewise.
56621         * modules/mbsinit-tests (Makefile.am): Likewise.
56622         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56623         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56624         * modules/mbspbrk-tests (Makefile.am): Likewise.
56625         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56626         * modules/mbsrchr-tests (Makefile.am): Likewise.
56627         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56628         * modules/mbsspn-tests (Makefile.am): Likewise.
56629         * modules/mbsstr-tests (Makefile.am): Likewise.
56630         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56631         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56632         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56633         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56634         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56635         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56636         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56637         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56638         * modules/wcrtomb-tests (Makefile.am): Likewise.
56639         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56640         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56641         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56642         assignments from TESTS_ENVIRONMENT.
56643         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56644         augmentation.
56645         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56646         * modules/atexit-tests (Makefile.am): Likewise.
56647         * modules/binary-io-tests (Makefile.am): Likewise.
56648         * modules/closein-tests (Makefile.am): Likewise.
56649         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56650         * modules/exclude-tests (Makefile.am): Likewise.
56651         * modules/fflush-tests (Makefile.am): Likewise.
56652         * modules/fpending-tests (Makefile.am): Likewise.
56653         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56654         * modules/freadahead-tests (Makefile.am): Likewise.
56655         * modules/freadptr-tests (Makefile.am): Likewise.
56656         * modules/freadseek-tests (Makefile.am): Likewise.
56657         * modules/fseek-tests (Makefile.am): Likewise.
56658         * modules/fseeko-tests (Makefile.am): Likewise.
56659         * modules/ftell-tests (Makefile.am): Likewise.
56660         * modules/ftello-tests (Makefile.am): Likewise.
56661         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56662         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56663         * modules/lseek-tests (Makefile.am): Likewise.
56664         * modules/parse-duration-tests (Makefile.am): Likewise.
56665         * modules/perror-tests (Makefile.am): Likewise.
56666         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56667         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56668         * modules/pipe-tests (Makefile.am): Likewise.
56669         * modules/pread-tests (Makefile.am): Likewise.
56670         * modules/printf-posix-tests (Makefile.am): Likewise.
56671         * modules/select-tests (Makefile.am): Likewise.
56672         * modules/sigpipe-tests (Makefile.am): Likewise.
56673         * modules/tsearch-tests (Makefile.am): Likewise.
56674         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56675         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56676         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56677         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56678         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56679         * modules/version-etc-tests (Makefile.am): Likewise.
56680         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56681         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56682         * modules/xalloc-die-tests (Makefile.am): Likewise.
56683         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56684         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56685         * modules/xstrtol-tests (Makefile.am): Likewise.
56686         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56687         * modules/yesno-tests (Makefile.am): Likewise.
56688         Suggested by Jim Meyering.
56690 2010-01-24  Bruno Haible  <bruno@clisp.org>
56692         More documentation.
56693         * doc/gnulib.texi (Writing modules): New chapter.
56694         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56695         the new chapter.
56697 2010-01-24  Jim Meyering  <meyering@redhat.com>
56699         maint.mk: do not prepend "./" after filtering
56700         * top/maint.mk (_prepend_srcdir_prefix): New variable
56701         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56702         "./" when $(srcdir) is ".".
56704         define STREQ(a,b) consistently, removing useless parentheses
56705         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56706         since the only risk is that "a" or "b" contains an unparenthesized
56707         comma, but if either did that, STREQ would have 3 or more arguments.
56708         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56709         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56710         * lib/hash-triple.c (STREQ): Likewise.
56711         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56712         * lib/getugroups.c (STREQ): Likewise.
56714 2010-01-23  Jim Meyering  <meyering@redhat.com>
56716         maint.mk: fix syntax-check in a non-srcdir build directory
56717         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56718         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56720 2010-01-22  Jim Meyering  <meyering@redhat.com>
56722         userspec: add unit tests
56723         * tests/test-userspec.c: New file.
56724         * modules/userspec-tests: Likewise.
56726 2010-01-21  Jim Meyering  <meyering@redhat.com>
56728         maint.mk: handle source file names containing "." robustly
56729         * top/maint.mk (_dot_escaped_srcdir): Define.
56730         (VC_LIST): Use it in LHS of sed substitution.
56732 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56734         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56735         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56736         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56737         from a non-srcdir build.
56739 2010-01-20  Eric Blake  <ebb9@byu.net>
56741         warn-on-use: use instead of link-warning
56742         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56743         * modules/unistd (Depends-on, Makefile.am): Likewise.
56744         * modules/arpa_inet (Depends-on): Replace link-warning with
56745         warn-on-use.
56746         (Makefile.am): Update rules accordingly.
56747         * modules/ctype (Depends-on, Makefile.am): Likewise.
56748         * modules/dirent (Depends-on, Makefile.am): Likewise.
56749         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56750         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56751         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56752         * modules/locale (Depends-on, Makefile.am): Likewise.
56753         * modules/math (Depends-on, Makefile.am): Likewise.
56754         * modules/search (Depends-on, Makefile.am): Likewise.
56755         * modules/signal (Depends-on, Makefile.am): Likewise.
56756         * modules/spawn (Depends-on, Makefile.am): Likewise.
56757         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56758         * modules/string (Depends-on, Makefile.am): Likewise.
56759         * modules/strings (Depends-on, Makefile.am): Likewise.
56760         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56761         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56762         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56763         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56764         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56765         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56766         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56767         * modules/wchar (Depends-on, Makefile.am): Likewise.
56768         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56769         should be poisoned.
56770         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56771         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56772         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56773         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56774         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56775         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56776         * m4/math_h.m4 (gl_MATH_H): Likewise.
56777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56778         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56779         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56781         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56783         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56784         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56785         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56789         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56790         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56791         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56792         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56793         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56794         GL_LINK_WARNING.
56795         * lib/ctype.in.h: Likewise.
56796         * lib/dirent.in.h: Likewise.
56797         * lib/fcntl.in.h: Likewise.
56798         * lib/inttypes.in.h: Likewise.
56799         * lib/langinfo.in.h: Likewise.
56800         * lib/locale.in.h: Likewise.
56801         * lib/math.in.h: Likewise.
56802         * lib/search.in.h: Likewise.
56803         * lib/signal.in.h: Likewise.
56804         * lib/spawn.in.h: Likewise.
56805         * lib/stdio.in.h: Likewise.
56806         * lib/stdlib.in.h: Likewise.
56807         * lib/string.in.h: Likewise.
56808         * lib/strings.in.h: Likewise.
56809         * lib/sys_file.in.h: Likewise.
56810         * lib/sys_ioctl.in.h: Likewise.
56811         * lib/sys_select.in.h: Likewise.
56812         * lib/sys_socket.in.h: Likewise.
56813         * lib/sys_stat.in.h: Likewise.
56814         * lib/sys_times.in.h: Likewise.
56815         * lib/sys_utsname.in.h: Likewise.
56816         * lib/unistd.in.h: Likewise.
56817         * lib/wchar.in.h: Likewise.
56819 2010-01-20  Bruno Haible  <bruno@clisp.org>
56821         Avoid duplicate -lm.
56822         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56823         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56825         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56826         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56827         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56828         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56829         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56830         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56831         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56832         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56833         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56834         Reported by Paolo Bonzini.
56836 2010-01-19  Bruno Haible  <bruno@clisp.org>
56838         langinfo, nl_langinfo: Relicense under LGPLv2+.
56839         * modules/langinfo (License): Change to LGPLv2+.
56840         * modules/nl_langinfo (License): Likewise.
56841         Patch by David Lutterkort <lutter@redhat.com>.
56843 2010-01-19  Bruno Haible  <bruno@clisp.org>
56845         Avoid compilation error with cc on OSF/1 5.1.
56846         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56847         statement, not before.
56848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56850 2010-01-18  Bruno Haible  <bruno@clisp.org>
56852         Avoid a link error due to the __printf__ symbol.
56853         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56854         and 2.6.x.
56855         (__format__, __printf__): Remove definitions.
56856         * lib/argp-fmtstream.h: Likewise.
56857         * lib/argp.h: Likewise.
56858         * lib/error.h: Likewise.
56859         * lib/vasnprintf.h: Likewise.
56860         * lib/xprintf.h: Likewise.
56861         * lib/xvasprintf.h: Likewise.
56862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56864 2010-01-18  Bruno Haible  <bruno@clisp.org>
56866         Tests for module 'tanl'.
56867         * modules/tanl-tests: New file.
56868         * tests/test-tanl.c: New file.
56870         Tests for module 'sqrtl'.
56871         * modules/sqrtl-tests: New file.
56872         * tests/test-sqrtl.c: New file.
56874         Tests for module 'sinl'.
56875         * modules/sinl-tests: New file.
56876         * tests/test-sinl.c: New file.
56878         Tests for module 'logl'.
56879         * modules/logl-tests: New file.
56880         * tests/test-logl.c: New file.
56882         Tests for module 'expl'.
56883         * modules/expl-tests: New file.
56884         * tests/test-expl.c: New file.
56886         Tests for module 'cosl'.
56887         * modules/cosl-tests: New file.
56888         * tests/test-cosl.c: New file.
56890         Tests for module 'atanl'.
56891         * modules/atanl-tests: New file.
56892         * tests/test-atanl.c: New file.
56894         Tests for module 'asinl'.
56895         * modules/asinl-tests: New file.
56896         * tests/test-asinl.c: New file.
56898         Tests for module 'acosl'.
56899         * modules/acosl-tests: New file.
56900         * tests/test-acosl.c: New file.
56902         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56903         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
56904         tanl): Use the standard gnulib idiom.
56905         * lib/cosl.c: Don't include trigl.c and sincosl.c.
56906         * lib/sinl.c: Likewise.
56907         * lib/tanl.c: Don't include trigl.c.
56908         (kernel_tanl): Make static.
56909         * lib/sincosl.c: Include trigl.h first.
56910         * lib/trigl.c: Likewise.
56911         * m4/acosl.m4: New file.
56912         * m4/asinl.m4: New file.
56913         * m4/atanl.m4: New file.
56914         * m4/cosl.m4: New file.
56915         * m4/expl.m4: New file.
56916         * m4/logl.m4: New file.
56917         * m4/sinl.m4: New file.
56918         * m4/sqrtl.m4: New file.
56919         * m4/tanl.m4: New file.
56920         * m4/mathl.m4: Remove file.
56921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
56922         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56923         Don't initialize GNULIB_MATHL.
56924         * modules/acosl: New file.
56925         * modules/asinl: New file.
56926         * modules/atanl: New file.
56927         * modules/cosl: New file.
56928         * modules/expl: New file.
56929         * modules/logl: New file.
56930         * modules/sinl: New file.
56931         * modules/sqrtl: New file.
56932         * modules/tanl: New file.
56933         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
56934         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
56935         substitute GNULIB_MATHL.
56936         * modules/mathl: Rewritten.
56937         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
56938         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
56939         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
56940         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
56941         * doc/posix-functions/expl.texi: Mention the 'expl' module.
56942         * doc/posix-functions/logl.texi: Mention the 'logl' module.
56943         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
56944         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
56945         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
56947 2010-01-18  Bruno Haible  <bruno@clisp.org>
56949         sqrt: Make gl_FUNC_SQRT requirable.
56950         * m4/sqrt.m4: New file.
56951         * modules/sqrt (Files): Add it.
56952         (configure.ac): Invoke gl_FUNC_SQRT.
56954 2010-01-18  Bruno Haible  <bruno@clisp.org>
56956         New modules for common <math.h> functions.
56957         * m4/mathfunc.m4: New file.
56958         * modules/acos: New file.
56959         * modules/asin: New file.
56960         * modules/atan: New file.
56961         * modules/atan2: New file.
56962         * modules/cbrt: New file.
56963         * modules/copysign: New file.
56964         * modules/cos: New file.
56965         * modules/cosh: New file.
56966         * modules/erf: New file.
56967         * modules/erfc: New file.
56968         * modules/exp: New file.
56969         * modules/fabs: New file.
56970         * modules/fmod: New file.
56971         * modules/hypot: New file.
56972         * modules/j0: New file.
56973         * modules/j1: New file.
56974         * modules/jn: New file.
56975         * modules/ldexp: New file.
56976         * modules/lgamma: New file.
56977         * modules/log: New file.
56978         * modules/log10: New file.
56979         * modules/log1p: New file.
56980         * modules/logb: New file.
56981         * modules/modf: New file.
56982         * modules/nextafter: New file.
56983         * modules/pow: New file.
56984         * modules/remainder: New file.
56985         * modules/rint: New file.
56986         * modules/sin: New file.
56987         * modules/sinh: New file.
56988         * modules/sqrt: New file.
56989         * modules/tan: New file.
56990         * modules/tanh: New file.
56991         * modules/y0: New file.
56992         * modules/y1: New file.
56993         * modules/yn: New file.
56994         * doc/posix-functions/acos.texi: Mention the 'acos' module.
56995         * doc/posix-functions/asin.texi: Mention the 'asin' module.
56996         * doc/posix-functions/atan.texi: Mention the 'atan' module.
56997         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
56998         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
56999         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57000         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57001         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57002         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57003         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57004         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57005         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57006         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57007         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57008         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57009         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57010         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57011         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57012         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57013         * doc/posix-functions/log.texi: Mention the 'log' module.
57014         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57015         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57016         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57017         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57018         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57019         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57020         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57021         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57022         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57023         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57024         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57025         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57026         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57027         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57028         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57029         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57031 2010-01-18  Jim Meyering  <meyering@redhat.com>
57033         ignore-value: relax license to LGPLv2+
57034         * modules/ignore-value (License): Relax to LGPLv2+.
57036         getdate: don't leak when TZ contains two or more '"'s
57037         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57038         double quote in TZ after the first one.
57040         readtokens: do not leak internal token_lengths buffer
57041         * lib/readtokens.c (readtokens): Free the local, lengths,
57042         when the supplied "token_lengths" parameter is NULL.
57044 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57046         Fix a couple of missing LIBTHREAD link failures on AIX.
57047         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57048         $(LIBTHREAD).
57049         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57051         Link test-poll against INET_PTON_LIB.
57052         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57053         for inet_pton on Solaris 10.
57055 2010-01-17  Bruno Haible  <bruno@clisp.org>
57057         unistdio/*-sprintf: Fix typo in module description.
57058         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57059         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57060         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57061         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57062         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57063         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57064         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57067 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57069         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57070         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57071         variables in shell case patterns, for AIX and HP-UX ksh.
57073         Split large sed scripts, for HP-UX sed.
57074         * modules/stdio: Split sed scripts around 50 sed commands,
57075         to avoid HP-UX limit of 99 commands, in the near future.
57076         * modules/string: Likewise.
57077         * modules/unistd: Likewise.
57079         gnulib-tool: avoid writing in the current directory.
57080         * gnulib-tool (func_emit_lib_Makefile_am)
57081         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57082         not in the current directory, so concurrent gnulib-tool
57083         instances do not interfere.
57085 2010-01-16  Jim Meyering  <meyering@redhat.com>
57087         doc: update users.txt
57088         * users.txt: Add grep.
57089         (diffutils, gzip): Update URLs.
57091 2010-01-12  Bruno Haible  <bruno@clisp.org>
57093         posix_spawn: Avoid test failure on Cygwin.
57094         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57095         characters.
57096         Reported by Simon Josefsson.
57098 2010-01-12  Bruno Haible  <bruno@clisp.org>
57100         * tests/test-cond.c (main): When skipping the test, show the reason.
57102 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57104         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57108         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57109         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57111 2010-01-12  Eric Blake  <ebb9@byu.net>
57113         build: guarantee AS_VAR_IF
57114         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57115         (gl_AS_VAR_IF): Move...
57116         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57117         Reported by Simon Josefsson.
57119 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57121         * lib/stdio.in.h: Fix typo.
57123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57125         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57126         libgpg-error.
57128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57130         * tests/test-xalloc-die.sh: Use $EXEEXT.
57132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57133             Bruno Haible  <bruno@clisp.org>
57135         getlogin, getlogin_r: Avoid test failure.
57136         * tests/test-getlogin.c: Include <stdio.h>.
57137         (main): Skip the test when the function fails because stdin is not a
57138         tty.
57139         * tests/test-getlogin_r.c: Include <stdio.h>.
57140         (main): Skip the test when the function fails because stdin is not a
57141         tty.
57143 2010-01-11  Eric Blake  <ebb9@byu.net>
57145         tests: avoid more large file warnings
57146         * tests/test-fflush.c: Avoid warning about ftell use.
57147         * tests/test-fseek.c: Avoid warning about fseek use.
57149 2010-01-10  Bruno Haible  <bruno@clisp.org>
57151         nproc: Work better on Linux when /proc and /sys are not mounted.
57152         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57153         as lower bound when, on glibc/Linux systems,
57154         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57155         Suggested by Pádraig Brady <P@draigbrady.com>.
57156         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57158         nproc: Refactor.
57159         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57160         extracted from num_processors.
57161         (num_processors): Call it.
57163 2010-01-11  Jim Meyering  <meyering@redhat.com>
57165         utimecmp: avoid new warning from upcoming gcc-4.5.0
57166         * lib/utimecmp.c (BILLION): Define using #define rather than an
57167         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57169 2010-01-11  Eric Blake  <ebb9@byu.net>
57171         math: add portability warnings for classification macros
57172         * modules/math (Depends-on): Add warn-on-use.
57173         (Makefile.am): Provide new substitutions.
57174         * m4/math_h.m4 (gl_MATH_H): Require inline.
57175         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57176         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57177         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57178         implement warnings.
57180         unistd: warn on use of environ without module
57181         * modules/unistd (Depends-on): Add warn-on-use.
57182         (Makefile.am): Provide new substitutions.
57183         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57184         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57186         stdio: warn on suspicious uses
57187         * modules/stdio (Depends-on): Add warn-on-use.
57188         (Makefile.am): Provide new substitutions.
57189         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57190         fseeko.
57191         * lib/stdio.in.h (gets): Always warn on use.
57192         (fseek, ftell): Adjust when warnings are issued, and honor
57193         _GL_NO_LARGE_FILES as a way to silence the warning.
57194         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57195         any warning about large file offsets.
57196         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57197         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57198         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57199         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57200         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57201         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57202         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57203         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57205         warn-on-use: new module
57206         * modules/warn-on-use: New file.
57207         * build-aux/warn-on-use.h: Likewise.
57208         * m4/warn-on-use.m4: Likewise.
57209         * MODULES.html.sh (Support for building): Mention it.
57211 2010-01-10  Bruno Haible  <bruno@clisp.org>
57213         Tests for module 'unistr/u32-strdup'.
57214         * modules/unistr/u32-strdup-tests: New file.
57215         * tests/unistr/test-u32-strdup.c: New file.
57217         Tests for module 'unistr/u16-strdup'.
57218         * modules/unistr/u16-strdup-tests: New file.
57219         * tests/unistr/test-u16-strdup.c: New file.
57221         Tests for module 'unistr/u8-strdup'.
57222         * modules/unistr/u8-strdup-tests: New file.
57223         * tests/unistr/test-u8-strdup.c: New file.
57224         * tests/unistr/test-strdup.h: New file.
57226         Tests for module 'unistr/u32-strncmp'.
57227         * modules/unistr/u32-strncmp-tests: New file.
57228         * tests/unistr/test-u32-strncmp.c: New file.
57230         Tests for module 'unistr/u16-strncmp'.
57231         * modules/unistr/u16-strncmp-tests: New file.
57232         * tests/unistr/test-u16-strncmp.c: New file.
57234         Tests for module 'unistr/u8-strncmp'.
57235         * modules/unistr/u8-strncmp-tests: New file.
57236         * tests/unistr/test-u8-strncmp.c: New file.
57237         * tests/unistr/test-strncmp.h: New file.
57239         Tests for module 'unistr/u32-strcoll'.
57240         * modules/unistr/u32-strcoll-tests: New file.
57241         * tests/unistr/test-u32-strcoll.c: New file.
57243         Tests for module 'unistr/u16-strcoll'.
57244         * modules/unistr/u16-strcoll-tests: New file.
57245         * tests/unistr/test-u16-strcoll.c: New file.
57247         Tests for module 'unistr/u8-strcoll'.
57248         * modules/unistr/u8-strcoll-tests: New file.
57249         * tests/unistr/test-u8-strcoll.c: New file.
57251         Tests for module 'unistr/u32-strcmp'.
57252         * modules/unistr/u32-strcmp-tests: New file.
57253         * tests/unistr/test-u32-strcmp.c: New file.
57254         * tests/unistr/test-u32-strcmp.h: New file.
57256         Tests for module 'unistr/u16-strcmp'.
57257         * modules/unistr/u16-strcmp-tests: New file.
57258         * tests/unistr/test-u16-strcmp.c: New file.
57259         * tests/unistr/test-u16-strcmp.h: New file.
57261         Tests for module 'unistr/u8-strcmp'.
57262         * modules/unistr/u8-strcmp-tests: New file.
57263         * tests/unistr/test-u8-strcmp.c: New file.
57264         * tests/unistr/test-u8-strcmp.h: New file.
57265         * tests/unistr/test-strcmp.h: New file.
57267         Tests for module 'unistr/u32-strncat'.
57268         * modules/unistr/u32-strncat-tests: New file.
57269         * tests/unistr/test-u32-strncat.c: New file.
57271         Tests for module 'unistr/u16-strncat'.
57272         * modules/unistr/u16-strncat-tests: New file.
57273         * tests/unistr/test-u16-strncat.c: New file.
57275         Tests for module 'unistr/u8-strncat'.
57276         * modules/unistr/u8-strncat-tests: New file.
57277         * tests/unistr/test-u8-strncat.c: New file.
57278         * tests/unistr/test-strncat.h: New file.
57280         Tests for module 'unistr/u32-strcat'.
57281         * modules/unistr/u32-strcat-tests: New file.
57282         * tests/unistr/test-u32-strcat.c: New file.
57284         Tests for module 'unistr/u16-strcat'.
57285         * modules/unistr/u16-strcat-tests: New file.
57286         * tests/unistr/test-u16-strcat.c: New file.
57288         Tests for module 'unistr/u8-strcat'.
57289         * modules/unistr/u8-strcat-tests: New file.
57290         * tests/unistr/test-u8-strcat.c: New file.
57291         * tests/unistr/test-strcat.h: New file.
57293         Tests for module 'unistr/u32-stpncpy'.
57294         * modules/unistr/u32-stpncpy-tests: New file.
57295         * tests/unistr/test-u32-stpncpy.c: New file.
57297         Tests for module 'unistr/u16-stpncpy'.
57298         * modules/unistr/u16-stpncpy-tests: New file.
57299         * tests/unistr/test-u16-stpncpy.c: New file.
57301         Tests for module 'unistr/u8-stpncpy'.
57302         * modules/unistr/u8-stpncpy-tests: New file.
57303         * tests/unistr/test-u8-stpncpy.c: New file.
57304         * tests/unistr/test-stpncpy.h: New file.
57306         Tests for module 'unistr/u32-strncpy'.
57307         * modules/unistr/u32-strncpy-tests: New file.
57308         * tests/unistr/test-u32-strncpy.c: New file.
57310         Tests for module 'unistr/u16-strncpy'.
57311         * modules/unistr/u16-strncpy-tests: New file.
57312         * tests/unistr/test-u16-strncpy.c: New file.
57314         Tests for module 'unistr/u8-strncpy'.
57315         * modules/unistr/u8-strncpy-tests: New file.
57316         * tests/unistr/test-u8-strncpy.c: New file.
57317         * tests/unistr/test-strncpy.h: New file.
57319         Tests for module 'unistr/u32-stpcpy'.
57320         * modules/unistr/u32-stpcpy-tests: New file.
57321         * tests/unistr/test-u32-stpcpy.c: New file.
57323         Tests for module 'unistr/u16-stpcpy'.
57324         * modules/unistr/u16-stpcpy-tests: New file.
57325         * tests/unistr/test-u16-stpcpy.c: New file.
57327         Tests for module 'unistr/u8-stpcpy'.
57328         * modules/unistr/u8-stpcpy-tests: New file.
57329         * tests/unistr/test-u8-stpcpy.c: New file.
57330         * tests/unistr/test-stpcpy.h: New file.
57332         Tests for module 'unistr/u32-strcpy'.
57333         * modules/unistr/u32-strcpy-tests: New file.
57334         * tests/unistr/test-u32-strcpy.c: New file.
57336         Tests for module 'unistr/u16-strcpy'.
57337         * modules/unistr/u16-strcpy-tests: New file.
57338         * tests/unistr/test-u16-strcpy.c: New file.
57340         Tests for module 'unistr/u8-strcpy'.
57341         * modules/unistr/u8-strcpy-tests: New file.
57342         * tests/unistr/test-u8-strcpy.c: New file.
57343         * tests/unistr/test-strcpy.h: New file.
57345         Tests for module 'unistr/u32-strnlen'.
57346         * modules/unistr/u32-strnlen-tests: New file.
57347         * tests/unistr/test-u32-strnlen.c: New file.
57349         Tests for module 'unistr/u16-strnlen'.
57350         * modules/unistr/u16-strnlen-tests: New file.
57351         * tests/unistr/test-u16-strnlen.c: New file.
57353         Tests for module 'unistr/u8-strnlen'.
57354         * modules/unistr/u8-strnlen-tests: New file.
57355         * tests/unistr/test-u8-strnlen.c: New file.
57356         * tests/unistr/test-strnlen.h: New file.
57358         Tests for module 'unistr/u32-strlen'.
57359         * modules/unistr/u32-strlen-tests: New file.
57360         * tests/unistr/test-u32-strlen.c: New file.
57362         Tests for module 'unistr/u16-strlen'.
57363         * modules/unistr/u16-strlen-tests: New file.
57364         * tests/unistr/test-u16-strlen.c: New file.
57366         Tests for module 'unistr/u8-strlen'.
57367         * modules/unistr/u8-strlen-tests: New file.
57368         * tests/unistr/test-u8-strlen.c: New file.
57370         Tests for module 'unistr/u32-prev'.
57371         * modules/unistr/u32-prev-tests: New file.
57372         * tests/unistr/test-u32-prev.c: New file.
57374         Tests for module 'unistr/u16-prev'.
57375         * modules/unistr/u16-prev-tests: New file.
57376         * tests/unistr/test-u16-prev.c: New file.
57378         Tests for module 'unistr/u8-prev'.
57379         * modules/unistr/u8-prev-tests: New file.
57380         * tests/unistr/test-u8-prev.c: New file.
57382         Tests for module 'unistr/u32-next'.
57383         * modules/unistr/u32-next-tests: New file.
57384         * tests/unistr/test-u32-next.c: New file.
57386         Tests for module 'unistr/u16-next'.
57387         * modules/unistr/u16-next-tests: New file.
57388         * tests/unistr/test-u16-next.c: New file.
57390         Tests for module 'unistr/u8-next'.
57391         * modules/unistr/u8-next-tests: New file.
57392         * tests/unistr/test-u8-next.c: New file.
57394         Tests for module 'unistr/u32-strmbtouc'.
57395         * modules/unistr/u32-strmbtouc-tests: New file.
57396         * tests/unistr/test-u32-strmbtouc.c: New file.
57398         Tests for module 'unistr/u16-strmbtouc'.
57399         * modules/unistr/u16-strmbtouc-tests: New file.
57400         * tests/unistr/test-u16-strmbtouc.c: New file.
57402         Tests for module 'unistr/u8-strmbtouc'.
57403         * modules/unistr/u8-strmbtouc-tests: New file.
57404         * tests/unistr/test-u8-strmbtouc.c: New file.
57406         Tests for module 'unistr/u32-strmblen'.
57407         * modules/unistr/u32-strmblen-tests: New file.
57408         * tests/unistr/test-u32-strmblen.c: New file.
57410         Tests for module 'unistr/u16-strmblen'.
57411         * modules/unistr/u16-strmblen-tests: New file.
57412         * tests/unistr/test-u16-strmblen.c: New file.
57414         Tests for module 'unistr/u8-strmblen'.
57415         * modules/unistr/u8-strmblen-tests: New file.
57416         * tests/unistr/test-u8-strmblen.c: New file.
57418         Tests for module 'unistr/u32-cpy-alloc'.
57419         * modules/unistr/u32-cpy-alloc-tests: New file.
57420         * tests/unistr/test-u32-cpy-alloc.c: New file.
57422         Tests for module 'unistr/u16-cpy-alloc'.
57423         * modules/unistr/u16-cpy-alloc-tests: New file.
57424         * tests/unistr/test-u16-cpy-alloc.c: New file.
57426         Tests for module 'unistr/u8-cpy-alloc'.
57427         * modules/unistr/u8-cpy-alloc-tests: New file.
57428         * tests/unistr/test-u8-cpy-alloc.c: New file.
57429         * tests/unistr/test-cpy-alloc.h: New file.
57431         Tests for module 'unistr/u32-mbsnlen'.
57432         * modules/unistr/u32-mbsnlen-tests: New file.
57433         * tests/unistr/test-u32-mbsnlen.c: New file.
57435         Tests for module 'unistr/u16-mbsnlen'.
57436         * modules/unistr/u16-mbsnlen-tests: New file.
57437         * tests/unistr/test-u16-mbsnlen.c: New file.
57439         Tests for module 'unistr/u8-mbsnlen'.
57440         * modules/unistr/u8-mbsnlen-tests: New file.
57441         * tests/unistr/test-u8-mbsnlen.c: New file.
57443         Tests for module 'unistr/u32-chr'.
57444         * modules/unistr/u32-chr-tests: New file.
57445         * tests/unistr/test-u32-chr.c: New file.
57447         Tests for module 'unistr/u16-chr'.
57448         * modules/unistr/u16-chr-tests: New file.
57449         * tests/unistr/test-u16-chr.c: New file.
57451         Tests for module 'unistr/u8-chr'.
57452         * modules/unistr/u8-chr-tests: New file.
57453         * tests/unistr/test-u8-chr.c: New file.
57454         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57456         Tests for module 'unistr/u32-cmp2'.
57457         * modules/unistr/u32-cmp2-tests: New file.
57458         * tests/unistr/test-u32-cmp2.c: New file.
57460         Tests for module 'unistr/u16-cmp2'.
57461         * modules/unistr/u16-cmp2-tests: New file.
57462         * tests/unistr/test-u16-cmp2.c: New file.
57464         Tests for module 'unistr/u8-cmp2'.
57465         * modules/unistr/u8-cmp2-tests: New file.
57466         * tests/unistr/test-u8-cmp2.c: New file.
57467         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57469         Tests for module 'unistr/u32-cmp'.
57470         * modules/unistr/u32-cmp-tests: New file.
57471         * tests/unistr/test-u32-cmp.c: New file.
57473         Tests for module 'unistr/u16-cmp'.
57474         * modules/unistr/u16-cmp-tests: New file.
57475         * tests/unistr/test-u16-cmp.c: New file.
57477         Tests for module 'unistr/u8-cmp'.
57478         * modules/unistr/u8-cmp-tests: New file.
57479         * tests/unistr/test-u8-cmp.c: New file.
57480         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57482         Tests for module 'unistr/u32-set'.
57483         * modules/unistr/u32-set-tests: New file.
57484         * tests/unistr/test-u32-set.c: New file.
57486         Tests for module 'unistr/u16-set'.
57487         * modules/unistr/u16-set-tests: New file.
57488         * tests/unistr/test-u16-set.c: New file.
57490         Tests for module 'unistr/u8-set'.
57491         * modules/unistr/u8-set-tests: New file.
57492         * tests/unistr/test-u8-set.c: New file.
57493         * tests/unistr/test-set.h: New file.
57495         Tests for module 'unistr/u32-move'.
57496         * modules/unistr/u32-move-tests: New file.
57497         * tests/unistr/test-u32-move.c: New file.
57499         Tests for module 'unistr/u16-move'.
57500         * modules/unistr/u16-move-tests: New file.
57501         * tests/unistr/test-u16-move.c: New file.
57503         Tests for module 'unistr/u8-move'.
57504         * modules/unistr/u8-move-tests: New file.
57505         * tests/unistr/test-u8-move.c: New file.
57506         * tests/unistr/test-move.h: New file.
57508         Tests for module 'unistr/u32-cpy'.
57509         * modules/unistr/u32-cpy-tests: New file.
57510         * tests/unistr/test-u32-cpy.c: New file.
57512         Tests for module 'unistr/u16-cpy'.
57513         * modules/unistr/u16-cpy-tests: New file.
57514         * tests/unistr/test-u16-cpy.c: New file.
57516         Tests for module 'unistr/u8-cpy'.
57517         * modules/unistr/u8-cpy-tests: New file.
57518         * tests/unistr/test-u8-cpy.c: New file.
57519         * tests/unistr/test-cpy.h: New file.
57521 2010-01-09  Bruno Haible  <bruno@clisp.org>
57523         Tests for module 'unistr/u32-uctomb'.
57524         * modules/unistr/u32-uctomb-tests: New file.
57525         * tests/unistr/test-u32-uctomb.c: New file.
57527         Tests for module 'unistr/u16-uctomb'.
57528         * modules/unistr/u16-uctomb-tests: New file.
57529         * tests/unistr/test-u16-uctomb.c: New file.
57531         Tests for module 'unistr/u8-uctomb'.
57532         * modules/unistr/u8-uctomb-tests: New file.
57533         * tests/unistr/test-u8-uctomb.c: New file.
57535         Tests for module 'unistr/u32-mbtoucr'.
57536         * modules/unistr/u32-mbtoucr-tests: New file.
57537         * tests/unistr/test-u32-mbtoucr.c: New file.
57539         Tests for module 'unistr/u16-mbtoucr'.
57540         * modules/unistr/u16-mbtoucr-tests: New file.
57541         * tests/unistr/test-u16-mbtoucr.c: New file.
57543         Tests for module 'unistr/u8-mbtoucr'.
57544         * modules/unistr/u8-mbtoucr-tests: New file.
57545         * tests/unistr/test-u8-mbtoucr.c: New file.
57547         Tests for module 'unistr/u32-mbtouc'.
57548         * modules/unistr/u32-mbtouc-tests: New file.
57549         * tests/unistr/test-u32-mbtouc.c: New file.
57551         Tests for module 'unistr/u16-mbtouc'.
57552         * modules/unistr/u16-mbtouc-tests: New file.
57553         * tests/unistr/test-u16-mbtouc.c: New file.
57555         Tests for module 'unistr/u8-mbtouc'.
57556         * modules/unistr/u8-mbtouc-tests: New file.
57557         * tests/unistr/test-u8-mbtouc.c: New file.
57559         Tests for module 'unistr/u32-mbtouc-unsafe'.
57560         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57561         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57562         * tests/unistr/test-u32-mbtouc.h: New file.
57564         Tests for module 'unistr/u16-mbtouc-unsafe'.
57565         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57566         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57567         * tests/unistr/test-u16-mbtouc.h: New file.
57569         Tests for module 'unistr/u8-mbtouc-unsafe'.
57570         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57571         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57572         * tests/unistr/test-u8-mbtouc.h: New file.
57574         Tests for module 'unistr/u32-mblen'.
57575         * modules/unistr/u32-mblen-tests: New file.
57576         * tests/unistr/test-u32-mblen.c: New file.
57578         Tests for module 'unistr/u16-mblen'.
57579         * modules/unistr/u16-mblen-tests: New file.
57580         * tests/unistr/test-u16-mblen.c: New file.
57582         Tests for module 'unistr/u8-mblen'.
57583         * modules/unistr/u8-mblen-tests: New file.
57584         * tests/unistr/test-u8-mblen.c: New file.
57586         Tests for module 'unistr/u32-to-u16'.
57587         * modules/unistr/u32-to-u16-tests: New file.
57588         * tests/unistr/test-u32-to-u16.c: New file.
57590         Tests for module 'unistr/u32-to-u8'.
57591         * modules/unistr/u32-to-u8-tests: New file.
57592         * tests/unistr/test-u32-to-u8.c: New file.
57594         Tests for module 'unistr/u16-to-u32'.
57595         * modules/unistr/u16-to-u32-tests: New file.
57596         * tests/unistr/test-u16-to-u32.c: New file.
57598         Tests for module 'unistr/u16-to-u8'.
57599         * modules/unistr/u16-to-u8-tests: New file.
57600         * tests/unistr/test-u16-to-u8.c: New file.
57602         Tests for module 'unistr/u8-to-u32'.
57603         * modules/unistr/u8-to-u32-tests: New file.
57604         * tests/unistr/test-u8-to-u32.c: New file.
57606         Tests for module 'unistr/u8-to-u16'.
57607         * modules/unistr/u8-to-u16-tests: New file.
57608         * tests/unistr/test-u8-to-u16.c: New file.
57610         Tests for module 'unistr/u32-check'.
57611         * modules/unistr/u32-check-tests: New file.
57612         * tests/unistr/test-u32-check.c: New file.
57614         Tests for module 'unistr/u16-check'.
57615         * modules/unistr/u16-check-tests: New file.
57616         * tests/unistr/test-u16-check.c: New file.
57618         Tests for module 'unistr/u8-check'.
57619         * modules/unistr/u8-check-tests: New file.
57620         * tests/unistr/test-u8-check.c: New file.
57622         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57623         (category_equals): New function.
57624         (main): Add more tests.
57625         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57627         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57629 2010-01-10  Bruno Haible  <bruno@clisp.org>
57631         unistr/u*-strcoll: Try harder to distinguish different strings.
57632         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57633         compare s1 and s2 to see if they are different.
57635 2010-01-10  Bruno Haible  <bruno@clisp.org>
57637         unistr/u*-stpncpy: Fix the return value.
57638         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57639         description of the return value consistent with stpncpy in glibc.
57640         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57641         written non-NUL unit.
57643 2010-01-10  Bruno Haible  <bruno@clisp.org>
57645         unistr/u*-next: Add missing dependencies.
57646         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57647         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57648         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57650 2010-01-10  Bruno Haible  <bruno@clisp.org>
57652         unistr/u8-mbsnlen: Fix return value for incomplete character.
57653         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57654         u8_mblen.
57655         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57656         Remove unistr/u8-mblen.
57657         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57658         u16_mblen.
57659         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57660         Remove unistr/u16-mblen.
57662 2010-01-10  Bruno Haible  <bruno@clisp.org>
57664         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57665         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57666         Reported by Brian Gough <bjg@gnu.org> and
57667         Chris Clayton <chris2553@googlemail.com> via
57668         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57670 2010-01-09  Bruno Haible  <bruno@clisp.org>
57672         unistr/u16-to-u32: Reject invalid input.
57673         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57674         u16_mbtouc.
57675         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57676         Remove unistr/u16-mbtouc.
57678         unistr/u16-to-u8: Reject invalid input.
57679         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57680         u16_mbtouc.
57681         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57682         Remove unistr/u16-mbtouc.
57684         unistr/u8-to-u32: Reject invalid input.
57685         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57686         u8_mbtouc.
57687         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57688         Remove unistr/u8-mbtouc.
57690         unistr/u8-to-u16: Reject invalid input.
57691         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57692         u8_mbtouc.
57693         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57694         Remove unistr/u8-mbtouc.
57696 2010-01-09  Bruno Haible  <bruno@clisp.org>
57698         Tests for module 'getlogin'.
57699         * modules/getlogin-tests: New file.
57700         * tests/test-getlogin.c: New file.
57702         New module 'getlogin'.
57703         * lib/unistd.in.h (getlogin): New declaration.
57704         * lib/getlogin.c: New file.
57705         * m4/getlogin.m4: New file.
57706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57707         HAVE_GETLOGIN.
57708         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57709         HAVE_GETLOGIN.
57710         * modules/getlogin: New file.
57711         * doc/posix-functions/getlogin.texi: Mention the new module.
57712         Reported by John W. Eaton <jwe@gnu.org>.
57714 2010-01-09  Bruno Haible  <bruno@clisp.org>
57716         getlogin_r: Support for native Windows.
57717         * lib/getlogin_r.c: Include <windows.h>
57718         (getlogin_r): Implement for native Windows.
57719         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57720         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57721         via John W. Eaton <jwe@gnu.org>.
57723 2010-01-09  Bruno Haible  <bruno@clisp.org>
57725         getlogin_r: Small fixes.
57726         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57727         succeeds.
57728         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57729         before testing whether getlogin_r is declared. No need to set
57730         HAVE_DECL_GETLOGIN_R to 1.
57731         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57733 2010-01-09  Bruno Haible  <bruno@clisp.org>
57735         * lib/unistd.in.h (getlogin_r): Add comment.
57737 2010-01-09  Bruno Haible  <bruno@clisp.org>
57739         Tests for module 'getlogin_r'.
57740         * modules/getlogin_r-tests: New file.
57741         * tests/test-getlogin_r.c: New file.
57743 2010-01-09  Jim Meyering  <meyering@redhat.com>
57745         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57746         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57747         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57749 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57751         * lib/dup2.c (rpl_dup2): Improve comment.
57753 2010-01-08  Eric Blake  <ebb9@byu.net>
57755         maint.mk: allow packages to add makefile @@ exceptions
57756         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57757         (sc_makefile_check): Rename...
57758         (sc_makefile_at_at_check): ...to this, and use hook.
57760         dup2: work around mingw bug
57761         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57762         Reported by Simon Josefsson.
57764 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57766         glob: Fix C++ compilation.
57767         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57768         C++.
57770 2010-01-07  Bruno Haible  <bruno@clisp.org>
57772         Fix indentation of wctype.in.h, broken since 2007-01-06.
57773         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57775 2010-01-07  Bruno Haible  <bruno@clisp.org>
57777         mbslen: Avoid collision with system function.
57778         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57779         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57780         * m4/mbslen.m4: New file.
57781         * modules/mbslen (Files): Add it.
57782         (configure.ac): Invoke gl_MBSLEN.
57783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57784         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57785         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57786         via Ian Beckwith <ianb@erislabs.net>.
57788 2010-01-07  Bruno Haible  <bruno@clisp.org>
57790         dirent: Document the last fix.
57791         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57793 2010-01-07  Bruno Haible  <bruno@clisp.org>
57795         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57796         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57797         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57798         va_list are defined.
57799         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57800         Reported by Eric Blake.
57802 2010-01-07  Bruno Haible  <bruno@clisp.org>
57804         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57805         * modules/xlist (Depends-on): Add 'list',
57806         * modules/xoset (Depends-on): Add 'oset'.
57807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57809 2010-01-07  Bruno Haible  <bruno@clisp.org>
57811         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57812         * doc/posix-functions/strncasecmp.texi: Likewise.
57814 2010-01-07  Bruno Haible  <bruno@clisp.org>
57816         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57818 2010-01-07  John W. Eaton  <jwe@octave.org>
57820         wctype: allow C++ use
57821         * lib/wctype.in.h: Add extern "C" block for C++.
57823 2010-01-06  Eric Blake  <ebb9@byu.net>
57825         maint.mk: detect incorrect GFDL usage
57826         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57828 2010-01-06  Jim Meyering  <meyering@redhat.com>
57829         and Eric Blake  <ebb9@byu.net>
57831         maint.mk: ignore multi-line copyright in NEWS
57832         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57834 2010-01-06  Eric Blake  <ebb9@byu.net>
57836         select: add missing dependency
57837         * modules/select-tests (Depends-on): Move sockets dependency...
57838         * modules/select (Depends-on): ...here.
57839         Reported by Ian Beckwith.
57841         doc: regenerate INSTALL
57842         * doc/INSTALL: Reflect recent autoconf update.
57843         * doc/INSTALL.ISO: Likewise.
57844         * doc/INSTALL.UTF-8: Likewise.
57846         pread: fix compilation on glibc
57847         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57848         Reported by Ralf Wildenhues.
57850         dirent: fix test failure
57851         * lib/dirent.in.h (includes): Guarantee ino_t.
57852         Reported by Ralf Wildenhues.
57854 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57856         linkat, renameat: avoid bad free
57857         * lib/at-func2.c (at_func2): Fix typo.
57858         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57860 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57862         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57863         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57864         to avoid failure of symlink test later.
57866 2010-01-06  Eric Blake  <ebb9@byu.net>
57868         stdio, unistd: guarantee ssize_t
57869         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57870         2008 are exposed when needed.
57871         * lib/stdio.in.h (includes): Likewise.
57872         Reported by Ralf Wildenhues.
57874 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57876         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57877         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57878         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57880 2010-01-06  Jim Meyering  <meyering@redhat.com>
57882         readtokens: this module *does* require xalloc.h
57883         It uses only functions that were omitted by the old syntax-check rule.
57884         * lib/readtokens.c: Include "xalloc.h" once again.
57885         * modules/readtokens (Depends-on): Add xalloc.
57886         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57888 2010-01-05  Eric Blake  <ebb9@byu.net>
57890         maint: support 'make announcement' from a VPATH build
57891         * top/maint.mk (announcement): Look for correct NEWS file.
57893 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
57895         utimens (fdutimens): ignore a negative FD, per contract
57896         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
57897         when we have a valid file descriptor.  Otherwise, using a brand
57898         new glibc (with just-patched futimens that now fails with EBADF)
57899         would cause this function to fail with ENOSYS.
57900         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
57901         See also http://bugzilla.redhat.com/552320.
57903 2010-01-05  Eric Blake  <ebb9@byu.net>
57905         strcase: document what it provides
57906         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
57907         gnulib module.
57908         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
57909         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
57911 2010-01-05  Jim Meyering  <meyering@redhat.com>
57913         maint: remove useless inclusions of "xalloc.h"
57914         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
57915         * lib/readtokens.c: Likewise.
57916         * lib/same.c: Likewise.
57917         * modules/getloadavg (Depends-on): Remove xalloc.
57918         * modules/readtokens: Likewise.
57919         * modules/same: Likewise.
57921         maint.mk: include 4 more function names in alloca.h-checking regexp
57922         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
57923         regexp.  Before, we would give a false-positive (saying alloca.h
57924         is included unnecessarily) when the only uses involved omitted symbols.
57926         xalloc.h: use consistent formatting
57927         * lib/xalloc.h: Move declarations to start in the first column.
57929 2010-01-05  Eric Blake  <ebb9@byu.net>
57931         mkdir: avoid xalloc
57932         * lib/mkdir.c (includes): Drop unused header.
57933         Reported by John W. Eaton.
57935 2010-01-04  Jim Meyering  <meyering@redhat.com>
57937         nl_langinfo: avoid configure-time syntax error
57938         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
57939         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
57940         the empty string.  Don't let that provoke a shell syntax error.
57942         regcomp, regexec, fnmatch: avoid array bounds read error
57943         * lib/regcomp.c (build_equiv_class): From glibc:
57944         Use only the low 24 bits of a findidx return value as an index
57945         into the weights array.  Patch by Ulrich Drepper:
57946         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
57947         * lib/regexec.c (check_node_accept_bytes): Likewise.
57948         * lib/fnmatch_loop.c (FCT): Likewise.
57950         regcomp: skip collseq lookup when there are no rules
57951         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
57952         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
57954         regcomp: recognize ill-formed { } expressions
57955         * lib/regcomp.c (parse_dup_op): From glibc:
57956         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
57958         regcomp: fix typo in comment
57959         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
57960         s/satisfy/satisfies/.
57962         regcomp: sync from glibc: remove dead store
57963         * lib/regcomp.c (duplicate_node_closure): Remove useless
57964         search_duplicated_node call and dead store.
57966         regcomp: sync from glibc; always use nl_langinfo
57967         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
57968         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
57969         * modules/regex (Depends-on): Add nl_langinfo.
57971 2010-01-04  Eric Blake  <ebb9@byu.net>
57973         fdopendir: fix configure test
57974         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
57976 2010-01-01  Bruno Haible  <bruno@clisp.org>
57978         wchar: Remove unused configure check.
57979         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
57981 2010-01-01  Eric Blake  <ebb9@byu.net>
57983         headers: make check of system header explicit
57984         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
57985         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
57986         ourselves.
57987         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57990         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
57991         internals.
57992         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
57993         missing.
57994         Suggested by Bruno Haible.
57996 2010-01-01  Jim Meyering  <meyering@redhat.com>
57998         ChangeLog: tweak to eliminate unnecessary copyright line
57999         * ChangeLog: Remove a copyright line that was mistakenly updated
58000         by today's update-copyright run.  Reported by Eric Blake.
58002         test-update-copyright: don't let envvar setting cause test failure
58003         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58005 2010-01-01  Bruno Haible  <bruno@clisp.org>
58007         localename: Avoid gcc warning.
58008         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58009         function if it is not used.
58011 2010-01-01  Jim Meyering  <meyering@redhat.com>
58013         update nearly all FSF copyright year lists to include 2010
58014         Use the same procedure as for 2009, outlined in
58015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58017         version-etc: set COPYRIGHT_YEAR to 2010
58018         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58020 2009-12-31  Eric Blake  <ebb9@byu.net>
58022         doc: correct availability of cygwin 1.5.x getopt
58023         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58024         variables.
58025         * doc/posix-functions/opterr.texi (opterr): Likewise.
58026         * doc/posix-functions/optind.texi (optind): Likewise.
58027         * doc/posix-functions/optopt.texi (optopt): Likewise.
58028         * doc/posix-functions/tzname.texi (tzname): Likewise.
58030         openat: update maintainer
58031         * modules/openat (Maintainer): Add myself.
58033         utimens: avoid shadowing warning
58034         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58035         buffers into one, to avoid shadowing, as well as avoiding a
58036         redundant stat.
58037         Reported by Jim Meyering.
58039         test-dup2: avoid compiler warning
58040         * tests/test-dup2.c (is_inheritable): Only define if used.
58042 2010-01-01  Bruno Haible  <bruno@clisp.org>
58044         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58045         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58046         defined, use wctomb instead of wcrtomb.
58048 2010-01-01  Bruno Haible  <bruno@clisp.org>
58050         iconv: Reject native Solaris iconv.
58051         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58052         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58054 2009-12-31  Bruno Haible  <bruno@clisp.org>
58056         * tests/test-signal.c (main): Remove test of 'SIG'.
58058 2009-12-31  Bruno Haible  <bruno@clisp.org>
58060         spawn: Fix incomplete fix.
58061         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58062         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58063         warnings for GNULIB_POSIXCHECK again.
58064         Reported by Eric Blake.
58066 2009-12-31  Bruno Haible  <bruno@clisp.org>
58068         Avoid namespace pollution on glibc systems.
58069         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58070         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58071         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58072         glibc systems.
58074 2009-12-31  Bruno Haible  <bruno@clisp.org>
58076         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58077         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58078         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58079         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58080         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58081         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58082         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58084 2009-12-31  Bruno Haible  <bruno@clisp.org>
58086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58087         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58088         afterwards.
58090 2009-12-31  Bruno Haible  <bruno@clisp.org>
58092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58093         SYS_UTSNAME_H.
58095 2009-12-31  Bruno Haible  <bruno@clisp.org>
58097         spawn: Fix misapplied patch.
58098         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58099         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58100         warnings for GNULIB_POSIXCHECK.
58102 2009-12-31  Bruno Haible  <bruno@clisp.org>
58104         times: Update after sys_times changed.
58105         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58106         * modules/times (Files): Add it.
58107         (configure.ac): Invoke gl_FUNC_TIMES.
58109 2009-12-31  Bruno Haible  <bruno@clisp.org>
58111         Use AC_C_INLINE where necessary.
58112         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58113         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58114         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58115         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58116         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58117         * m4/mbiter.m4 (gl_MBITER): Likewise.
58118         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58119         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58120         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58121         * modules/u64 (configure.ac): Likewise.
58123 2009-12-31  Bruno Haible  <bruno@clisp.org>
58125         Use AC_C_INLINE instead of module 'inline' where possible.
58126         * modules/inline (Description): Clarify purpose.
58127         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58128         * modules/count-one-bits (Depends-on): Remove inline.
58129         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58130         * modules/openat (Depends-on): Remove inline.
58131         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58132         instead of depending on module 'inline'.
58133         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58134         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58135         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58136         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58137         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58138         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58139         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58140         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58141         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58142         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58143         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58144         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58145         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58146         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58147         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58148         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58149         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58150         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58151         Likewise.
58152         * modules/unictype/property-ascii-hex-digit (Depends-on,
58153         configure.ac): Likewise.
58154         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58155         configure.ac): Likewise.
58156         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58157         configure.ac): Likewise.
58158         * modules/unictype/property-bidi-block-separator (Depends-on,
58159         configure.ac): Likewise.
58160         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58161         configure.ac): Likewise.
58162         * modules/unictype/property-bidi-common-separator (Depends-on,
58163         configure.ac): Likewise.
58164         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58165         Likewise.
58166         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58167         configure.ac): Likewise.
58168         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58169         configure.ac): Likewise.
58170         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58171         configure.ac): Likewise.
58172         * modules/unictype/property-bidi-european-digit (Depends-on,
58173         configure.ac): Likewise.
58174         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58175         configure.ac): Likewise.
58176         * modules/unictype/property-bidi-left-to-right (Depends-on,
58177         configure.ac): Likewise.
58178         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58179         configure.ac): Likewise.
58180         * modules/unictype/property-bidi-other-neutral (Depends-on,
58181         configure.ac): Likewise.
58182         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58183         Likewise.
58184         * modules/unictype/property-bidi-segment-separator (Depends-on,
58185         configure.ac): Likewise.
58186         * modules/unictype/property-bidi-whitespace (Depends-on,
58187         configure.ac): Likewise.
58188         * modules/unictype/property-combining (Depends-on, configure.ac):
58189         Likewise.
58190         * modules/unictype/property-composite (Depends-on, configure.ac):
58191         Likewise.
58192         * modules/unictype/property-currency-symbol (Depends-on,
58193         configure.ac): Likewise.
58194         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58195         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58196         Likewise.
58197         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58198         configure.ac): Likewise.
58199         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58200         Likewise.
58201         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58202         Likewise.
58203         * modules/unictype/property-extender (Depends-on, configure.ac):
58204         Likewise.
58205         * modules/unictype/property-format-control (Depends-on, configure.ac):
58206         Likewise.
58207         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58208         Likewise.
58209         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58210         Likewise.
58211         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58212         Likewise.
58213         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58214         Likewise.
58215         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58216         Likewise.
58217         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58218         Likewise.
58219         * modules/unictype/property-id-start (Depends-on, configure.ac):
58220         Likewise.
58221         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58222         Likewise.
58223         * modules/unictype/property-ids-binary-operator (Depends-on,
58224         configure.ac): Likewise.
58225         * modules/unictype/property-ids-trinary-operator (Depends-on,
58226         configure.ac): Likewise.
58227         * modules/unictype/property-ignorable-control (Depends-on,
58228         configure.ac): Likewise.
58229         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58230         Likewise.
58231         * modules/unictype/property-join-control (Depends-on, configure.ac):
58232         Likewise.
58233         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58234         Likewise.
58235         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58236         Likewise.
58237         * modules/unictype/property-logical-order-exception (Depends-on,
58238         configure.ac): Likewise.
58239         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58240         Likewise.
58241         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58242         * modules/unictype/property-non-break (Depends-on, configure.ac):
58243         Likewise.
58244         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58245         Likewise.
58246         * modules/unictype/property-numeric (Depends-on, configure.ac):
58247         Likewise.
58248         * modules/unictype/property-other-alphabetic (Depends-on,
58249         configure.ac): Likewise.
58250         * modules/unictype/property-other-default-ignorable-code-point
58251         (Depends-on, configure.ac): Likewise.
58252         * modules/unictype/property-other-grapheme-extend (Depends-on,
58253         configure.ac): Likewise.
58254         * modules/unictype/property-other-id-continue (Depends-on,
58255         configure.ac): Likewise.
58256         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58257         Likewise.
58258         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58259         Likewise.
58260         * modules/unictype/property-other-math (Depends-on, configure.ac):
58261         Likewise.
58262         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58263         Likewise.
58264         * modules/unictype/property-paired-punctuation (Depends-on,
58265         configure.ac): Likewise.
58266         * modules/unictype/property-paragraph-separator (Depends-on,
58267         configure.ac): Likewise.
58268         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58269         Likewise.
58270         * modules/unictype/property-pattern-white-space (Depends-on,
58271         configure.ac): Likewise.
58272         * modules/unictype/property-private-use (Depends-on, configure.ac):
58273         Likewise.
58274         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58275         Likewise.
58276         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58277         Likewise.
58278         * modules/unictype/property-radical (Depends-on, configure.ac):
58279         Likewise.
58280         * modules/unictype/property-sentence-terminal (Depends-on,
58281         configure.ac): Likewise.
58282         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58283         Likewise.
58284         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58285         * modules/unictype/property-terminal-punctuation (Depends-on,
58286         configure.ac): Likewise.
58287         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58288         Likewise.
58289         * modules/unictype/property-unassigned-code-value (Depends-on,
58290         configure.ac): Likewise.
58291         * modules/unictype/property-unified-ideograph (Depends-on,
58292         configure.ac): Likewise.
58293         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58294         Likewise.
58295         * modules/unictype/property-variation-selector (Depends-on,
58296         configure.ac): Likewise.
58297         * modules/unictype/property-white-space (Depends-on, configure.ac):
58298         Likewise.
58299         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58300         Likewise.
58301         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58302         Likewise.
58303         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58304         Likewise.
58305         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58306         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58307         Likewise.
58309 2009-12-31  Bruno Haible  <bruno@clisp.org>
58311         Remove unnecessary AC_C_INLINE invocation.
58312         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58313         since 2009-08-21.
58315 2009-12-31  Jim Meyering  <meyering@redhat.com>
58317         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58318         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58319         With this change, we can all remove the gpg_key_ID = ... definition
58320         from our respective cfg.mk files.
58322         maint.mk: create announcement template in ~/, not in /tmp
58323         * top/maint.mk (emit_upload_commands): Adjust.
58324         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58325         Remove temporary file, .ci-msg.
58327 2009-12-31  Eric Blake  <ebb9@byu.net>
58329         link-warning: always build headers with link warnings
58330         * modules/arpa_inet (Makefile.am): Always build replacement
58331         header.
58332         * modules/ctype (Makefile.am): Likewise.
58333         * modules/dirent (Makefile.am): Likewise.
58334         * modules/inttypes (Makefile.am): Likewise.
58335         * modules/langinfo (Makefile.am): Likewise.
58336         * modules/locale (Makefile.am): Likewise.
58337         * modules/spawn (Makefile.am): Likewise.
58338         * modules/sys_file (Makefile.am): Likewise.
58339         * modules/sys_ioctl (Makefile.am): Likewise.
58340         * modules/sys_select (Makefile.am): Likewise.
58341         * modules/sys_socket (Makefile.am): Likewise.
58342         * modules/sys_times (Makefile.am): Likewise.
58343         * modules/sys_utsname (Makefile.am): Likewise.
58344         * modules/sys_wait (Makefile.am): Likewise.
58345         * modules/wchar (Makefile.am): Likewise.
58346         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58347         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58348         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58349         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58350         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58351         Likewise.
58352         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58353         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58354         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58355         Likewise.
58356         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58357         Likewise.
58358         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58359         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58360         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58362         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58363         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58364         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58365         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58366         (gl_WCHAR_H_DEFAULTS): Likewise.
58368 2009-12-31  Eric Blake  <ebb9@byu.net>
58370         signal, spawn: use link warnings
58371         * lib/signal.in.h (sigset_t): Make unconditional.
58372         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58373         (sigpending, sigprocmask, sigaction): Add link warnings.
58374         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58375         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58376         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58377         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58378         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58379         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58380         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58381         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58382         (posix_spawn_file_actions_destroy)
58383         (posix_spawn_file_actions_addopen)
58384         (posix_spawn_file_actions_addclose)
58385         (posix_spawn_file_actions_adddup2): Likewise.
58386         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58387         * tests/test-signal.c (main): Enhance test.
58389         spawn: improve wrapper support
58390         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58391         (gl_SPAWN_H_DEFAULTS): New defaults.
58392         * modules/spawn (Makefile.am): Substitute them.
58393         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58394         Only declare if missing or broken.
58396         sys_times, sys_utsname: use include_next
58397         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58398         header.
58399         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58400         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58401         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58402         * modules/sys_times (Depends-on): Add include_next.
58403         (Makefile.am): Substitute additional values.
58404         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58405         * lib/sys_times.in.h (includes): Include native header, if
58406         available.
58407         * lib/sys_utsname.in.h (includes): Likewise.
58408         * tests/test-sys_times.c (main): Enhance test.
58410         fdutimensat: revert prior patch
58411         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58412         utimens.h.
58413         Reported by Bruno Haible.
58415 2009-12-30  Eric Blake  <ebb9@byu.net>
58417         sys_wait: drop link-warning dependency
58418         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58419         link-warning efforts.
58420         * lib/sys_wait.in.h: Likewise.
58422         fdutimensat: remove bogus dependency
58423         * modules/fdutimensat (Depends-on): Drop inline.
58425         unistd: fix typo
58426         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58428 2009-12-30  Bruno Haible  <bruno@clisp.org>
58430         Fix compilation error with Solaris cc.
58431         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58432         * lib/unicase/u16-is-invariant.c: Likewise.
58433         * lib/unicase/u32-is-invariant.c: Likewise.
58434         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58436 2009-12-30  Bruno Haible  <bruno@clisp.org>
58438         Fix test crash.
58439         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58440         locales.
58441         Reported by Simon Josefsson <simon@josefsson.org>.
58443 2009-12-30  Bruno Haible  <bruno@clisp.org>
58445         Fix compilation error on most platforms.
58446         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58447         Reported by Simon Josefsson <simon@josefsson.org>
58448         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58450 2009-12-30  Eric Blake  <ebb9@byu.net>
58452         futimens, utimensat: work around ntfs-3g bug
58453         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58454         a ctime bug is present, and expand workaround to cover ntfs-3g.
58455         * lib/utimens.c (fdutimens, lutimens): Likewise.
58456         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58457         (validate_timespec): Adjust return value.
58458         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58459         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58460         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58462 2009-12-29  Eric Blake  <ebb9@byu.net>
58464         link-warning: make usage consistent
58465         * modules/ctype (Depends-on): Add link-warning.
58466         (Makefile.am): Update rules accordingly.
58467         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58468         * modules/locale (Depends-on, Makefile.am): Likewise.
58469         * modules/sys_file (Makefile.am): Likewise.
58470         * modules/getopt-posix (Makefile.am): Delete unused link warning
58471         efforts.
58472         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58473         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58474         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58475         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58477         stdio: remove unused variables
58478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58480         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58482         tests: test more substitute headers
58483         * modules/ctype-tests: New file.
58484         * modules/dirent-tests: Likewise.
58485         * modules/spawn-tests: Likewise.
58486         * modules/sys_file-tests: Likewise.
58487         * modules/sys_ioctl-tests: Likewise.
58488         * modules/sys_wait-tests: Likewise.
58489         * tests/test-ctype.c: Likewise.
58490         * tests/test-dirent.c: Likewise.
58491         * tests/test-spawn.c: Likewise.
58492         * tests/test-sys_file.c: Likewise.
58493         * tests/test-sys_ioctl.c: Likewise.
58494         * tests/test-sys_wait.c: Likewise.
58495         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58496         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58497         whether or not flock is in use.
58499         tests: remove License section from module
58500         * modules/arpa_inet-tests: Remove unneeded section.
58501         * modules/byteswap-tests: Likewise.
58502         * modules/ceilf-tests: Likewise.
58503         * modules/ceill-tests: Likewise.
58504         * modules/crypto/des-tests: Likewise.
58505         * modules/crypto/gc-arcfour-tests: Likewise.
58506         * modules/crypto/gc-arctwo-tests: Likewise.
58507         * modules/crypto/gc-des-tests: Likewise.
58508         * modules/crypto/gc-hmac-md5-tests: Likewise.
58509         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58510         * modules/crypto/gc-md2-tests: Likewise.
58511         * modules/crypto/gc-md4-tests: Likewise.
58512         * modules/crypto/gc-md5-tests: Likewise.
58513         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58514         * modules/crypto/gc-rijndael-tests: Likewise.
58515         * modules/crypto/gc-sha1-tests: Likewise.
58516         * modules/crypto/gc-tests: Likewise.
58517         * modules/crypto/md2-tests: Likewise.
58518         * modules/crypto/md4-tests: Likewise.
58519         * modules/fcntl-h-tests: Likewise.
58520         * modules/floorf-tests: Likewise.
58521         * modules/floorl-tests: Likewise.
58522         * modules/frexp-nolibm-tests: Likewise.
58523         * modules/frexp-tests: Likewise.
58524         * modules/frexpl-nolibm-tests: Likewise.
58525         * modules/frexpl-tests: Likewise.
58526         * modules/getaddrinfo-tests: Likewise.
58527         * modules/inttypes-tests: Likewise.
58528         * modules/isfinite-tests: Likewise.
58529         * modules/isinf-tests: Likewise.
58530         * modules/ldexpl-tests: Likewise.
58531         * modules/locale-tests: Likewise.
58532         * modules/math-tests: Likewise.
58533         * modules/netdb-tests: Likewise.
58534         * modules/netinet_in-tests: Likewise.
58535         * modules/printf-frexp-tests: Likewise.
58536         * modules/printf-frexpl-tests: Likewise.
58537         * modules/priv-set-tests: Likewise.
58538         * modules/random_r-tests: Likewise.
58539         * modules/round-tests: Likewise.
58540         * modules/roundf-tests: Likewise.
58541         * modules/roundl-tests: Likewise.
58542         * modules/search-tests: Likewise.
58543         * modules/select-tests: Likewise.
58544         * modules/signal-tests: Likewise.
58545         * modules/stdbool-tests: Likewise.
58546         * modules/stddef-tests: Likewise.
58547         * modules/stdint-tests: Likewise.
58548         * modules/stdio-tests: Likewise.
58549         * modules/stdlib-tests: Likewise.
58550         * modules/string-tests: Likewise.
58551         * modules/strings-tests: Likewise.
58552         * modules/sys_select-tests: Likewise.
58553         * modules/sys_socket-tests: Likewise.
58554         * modules/sys_stat-tests: Likewise.
58555         * modules/sys_time-tests: Likewise.
58556         * modules/sys_utsname-tests: Likewise.
58557         * modules/sysexits-tests: Likewise.
58558         * modules/time-tests: Likewise.
58559         * modules/trunc-tests: Likewise.
58560         * modules/truncf-tests: Likewise.
58561         * modules/truncl-tests: Likewise.
58562         * modules/tsearch-tests: Likewise.
58563         * modules/unistd-tests: Likewise.
58564         * modules/wchar-tests: Likewise.
58565         * modules/wctype-tests: Likewise.
58567         tests: fix license on several tests
58568         * tests/test-des.c: Update to GPLv3+.
58569         * tests/test-flock.c: Likewise.
58570         * tests/test-fsync.c: Likewise.
58571         * tests/test-futimens.h: Likewise.
58572         * tests/test-gc-arcfour.c: Likewise.
58573         * tests/test-gc-arctwo.c: Likewise.
58574         * tests/test-gc-des.c: Likewise.
58575         * tests/test-gc-hmac-md5.c: Likewise.
58576         * tests/test-gc-hmac-sha1.c: Likewise.
58577         * tests/test-gc-md2.c: Likewise.
58578         * tests/test-gc-md4.c: Likewise.
58579         * tests/test-gc-md5.c: Likewise.
58580         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58581         * tests/test-gc-rijndael.c: Likewise.
58582         * tests/test-gc-sha1.c: Likewise.
58583         * tests/test-gc.c: Likewise.
58584         * tests/test-getcwd.c: Likewise.
58585         * tests/test-link.c: Likewise.
58586         * tests/test-link.h: Likewise.
58587         * tests/test-lutimens.h: Likewise.
58588         * tests/test-md2.c: Likewise.
58589         * tests/test-md4.c: Likewise.
58590         * tests/test-mkdir.h: Likewise.
58591         * tests/test-rename.c: Likewise.
58592         * tests/test-rename.h: Likewise.
58593         * tests/test-safe-alloc.c: Likewise.
58594         * tests/test-utimens-common.h: Likewise.
58595         * tests/test-utimens.h: Likewise.
58597         maint: sync license texts
58598         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58599         * doc/gpl-3.0.texi: Revert copyright year update.
58600         * doc/lgpl-3.0.texi: Likewise.
58602 2009-12-29  Jim Meyering  <meyering@redhat.com>
58604         update nearly all FSF copyright year lists to include 2009
58605         The files named by the following are exempted:
58606             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58607               test -f "$dst" && { echo "$dst"; continue; }
58608               test -d "$dst" || continue
58609               echo "$dst"/$(basename "$src")
58610             done > exempt
58611             git ls-files tests/unictype >> exempt
58612         In the remaining files, convert to all-interval notation if
58613         - there is already at least one year interval like 2000-2003
58614         - the file is maintained by me
58615         - the file is in lib/uni*/, where that style already prevails
58616         Otherwise, use update-copyright's default.
58618 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58619         and Eric Blake  <ebb9@byu.net>
58621         tests: don't require debug system() to pass
58622         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58623         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58624         * tests/test-unlink.h (test_unlink_func): Likewise.
58625         * tests/test-fstatat.c (main): ...into callers.
58626         * tests/test-lstat.c (main): Likewise.
58627         * tests/test-rmdir.c (main): Likewise.
58628         * tests/test-unlink.c (main): Likewise.
58629         * tests/test-unlinkat.c (main): Likewise.
58630         * tests/test-areadlink-with-size.c (main): Don't require a
58631         debug-only system call to pass, aiding cross-testing to mingw.
58632         * tests/test-areadlink.c (main): Likewise.
58633         * tests/test-areadlinkat-with-size.c (main): Likewise.
58634         * tests/test-areadlinkat.c (main): Likewise.
58635         * tests/test-canonicalize-lgpl.c (main): Likewise.
58636         * tests/test-canonicalize.c (main): Likewise.
58637         * tests/test-chown.c (main): Likewise.
58638         * tests/test-fchownat.c (main): Likewise.
58639         * tests/test-lchown.c (main): Likewise.
58640         * tests/test-fdutimensat.c (main): Likewise.
58641         * tests/test-futimens.c (main): Likewise.
58642         * tests/test-link.c (main): Likewise.
58643         * tests/test-linkat.c (main): Likewise.
58644         * tests/test-mkdir.c (main): Likewise.
58645         * tests/test-mkdirat.c (main): Likewise.
58646         * tests/test-mkfifo.c (main): Likewise.
58647         * tests/test-mkfifoat.c (main): Likewise.
58648         * tests/test-mknod.c (main): Likewise.
58649         * tests/test-readlink.c (main): Likewise.
58650         * tests/test-remove.c (main): Likewise.
58651         * tests/test-rename.c (main): Likewise.
58652         * tests/test-renameat.c (main): Likewise.
58653         * tests/test-symlink.c (main): Likewise.
58654         * tests/test-symlinkat.c (main): Likewise.
58655         * tests/test-utimens.c (main): Likewise.
58656         * tests/test-utimensat.c (main): Likewise.
58658 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58660         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58661         on $(UNUSED_PARAMETER_H) to avoid build failure.
58663 2009-12-28  Jim Meyering  <meyering@redhat.com>
58665         update-copyright: you may specify a max. line length other than 72
58666         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58668         maint: use consistent FSF copyright line syntax
58669         * lib/posixtm.c: Add missing comma in FSF copyright line.
58670         * lib/posixtm.h: Likewise.
58671         * lib/getugroups.c: Add missing ", Inc.".
58673         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58674         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58675         FSF copyright line.  Remove trailing blanks.
58677 2009-12-28  Eric Blake  <ebb9@byu.net>
58679         test-dup2: reduce dependencies
58680         * modules/cloexec (Configure.ac): Set witness.
58681         * modules/dup2-tests (Depends-on): Drop cloexec.
58682         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58683         not present.
58684         Suggested by Bruno Haible.
58686 2009-12-26  Bruno Haible  <bruno@clisp.org>
58688         Remove an unneeded dependency.
58689         * modules/fseterr (Depends-on): Remove dup2.
58691 2009-12-26  Eric Blake  <ebb9@byu.net>
58693         tests: use macros.h in more places
58694         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58695         (ASSERT_STREAM): Provide default of stderr.
58696         * tests/test-dirent-safer.c: Include macros.h, using alternate
58697         stream for assertions.
58698         * tests/test-dup-safer.c: Likewise.
58699         * tests/test-freopen-safer.c: Likewise.
58700         * tests/test-getopt.c: Likewise.
58701         * tests/test-openat-safer.c: Likewise.
58702         * tests/test-pipe.c: Likewise.
58703         * tests/test-popen-safer.c: Likewise.
58704         * modules/dirent-safer-tests (Files): Include macros.h.
58705         * modules/unistd-safer-tests (Files): Likewise.
58706         * modules/freopen-safer-tests (Files): Likewise.
58707         * modules/getopt-posix-tests (Files): Likewise.
58708         * modules/openat-safer-tests (Files): Likewise.
58709         * modules/pipe-tests (Files): Likewise.
58711 2009-12-26  Bruno Haible  <bruno@clisp.org>
58713         javacomp-script: Portability fix.
58714         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58715         that it also works on Solaris.
58717 2009-12-26  Bruno Haible  <bruno@clisp.org>
58719         localename: Fix storage allocation of gl_locale_name_thread's result.
58720         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58721         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58722         all platforms that have 'uselocale'.
58723         (gl_locale_name_thread_unsafe): New function, extracted from
58724         gl_locale_name_thread.
58725         (gl_locale_name_thread): Call struniq on all platforms that have
58726         'uselocale'.
58727         * tests/test-localename.c (test_locale_name_thread): Check that the
58728         resulting strings are permanently allocated.
58729         * modules/localename-tests (Depends-on): Add strdup.
58731 2009-12-26  Bruno Haible  <bruno@clisp.org>
58733         * tests/test-localename.c (categories): Fill in the strings.
58735 2009-12-26  Jim Meyering  <meyering@redhat.com>
58737         isdir: complete the removal of m4/isdir.m4
58738         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58740         isdir: clean up, since at least grep still uses it
58741         * lib/isdir.c: Include "isdir.h".
58742         (S_ISDIR): Remove now-unneeded definition.
58743         * modules/isdir (Files): Add lib/isdir.h.
58744         * lib/isdir.h: New file, with declaration.
58745         * m4/isdir.m4: Remove file -- unneeded.
58747 2009-12-25  Bruno Haible  <bruno@clisp.org>
58749         selinux-h: Make generated .h files standalone.
58750         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58751         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58752         * lib/se-selinux.in.h: Likewise.
58753         * modules/selinux-h (Depends-on): Add unused-parameter.
58754         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58755         selinux/selinux.h and selinux/context.h.
58756         Suggested by Eric Blake.
58758 2009-12-25  Bruno Haible  <bruno@clisp.org>
58760         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58761         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58762         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58763         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58764         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58766 2009-12-24  Bruno Haible  <bruno@clisp.org>
58768         openat: Fix warning.
58769         * lib/openat-proc.c: Include <unistd.h>.
58771 2009-12-24  Bruno Haible  <bruno@clisp.org>
58773         New module 'unused-parameter'.
58774         * build-aux/unused-parameter.h: New file, extracted from earlier
58775         gnulib-common.m4.
58776         * modules/unused-parameter: New file.
58777         * lib/unistr.h: Include unused-parameter.h.
58778         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58779         _GL_UNUSED.
58780         * modules/unistr/base (Depends-on): Add unused-parameter.
58782 2009-12-24  Bruno Haible  <bruno@clisp.org>
58784         Add missing dependencies to 'extensions' module.
58785         * m4/extensions.m4: Add comment.
58786         * modules/accept4 (Depends-on): Add extensions.
58787         * modules/dup3 (Depends-on): Likewise.
58788         * modules/fcntl (Depends-on): Likewise.
58789         * modules/futimens (Depends-on): Likewise.
58790         * modules/mknod (Depends-on): Likewise.
58791         * modules/pipe2 (Depends-on): Likewise.
58792         * modules/stat-time (Depends-on): Likewise.
58793         * modules/strcasestr-simple (Depends-on): Likewise.
58794         * modules/strsignal (Depends-on): Likewise.
58795         * modules/utimensat (Depends-on): Likewise.
58796         * modules/localcharset (Depends-on): Likewise. Needed because of
58797         gl_FCNTL_O_FLAGS.
58798         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58799         AC_TYPE_MBSTATE_T.
58800         * modules/wcsnrtombs (Depends-on): Likewise.
58801         * modules/wcsrtombs (Depends-on): Likewise.
58803 2009-12-24  Bruno Haible  <bruno@clisp.org>
58805         binary-io: Avoid gcc warning due to SET_BINARY.
58806         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58807         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58809 2009-12-24  Bruno Haible  <bruno@clisp.org>
58811         Avoid future namespace pollution on glibc systems.
58812         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58813         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58814         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58815         glibc systems.
58817 2009-12-24  Bruno Haible  <bruno@clisp.org>
58819         Refactor common macros used in tests.
58820         * tests/macros.h: New file.
58821         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58822         and/or <stdlib.h>, if appropriate.
58823         (ASSERT, SIZEOF): Remove macros.
58824         * tests/test-areadlink-with-size.c: Likewise.
58825         * tests/test-areadlinkat.c: Likewise.
58826         * tests/test-areadlinkat-with-size.c: Likewise.
58827         * tests/test-argmatch.c: Likewise.
58828         * tests/test-argv-iter.c: Likewise.
58829         * tests/test-array-mergesort.c: Likewise.
58830         * tests/test-array_list.c: Likewise.
58831         * tests/test-array_oset.c: Likewise.
58832         * tests/test-avltree_list.c: Likewise.
58833         * tests/test-avltree_oset.c: Likewise.
58834         * tests/test-avltreehash_list.c: Likewise.
58835         * tests/test-base64.c: Likewise.
58836         * tests/test-binary-io.c: Likewise.
58837         * tests/test-bitrotate.c: Likewise.
58838         * tests/test-btowc.c: Likewise.
58839         * tests/test-byteswap.c: Likewise.
58840         * tests/test-c-ctype.c: Likewise.
58841         * tests/test-c-stack.c: Likewise.
58842         * tests/test-c-strcasecmp.c: Likewise.
58843         * tests/test-c-strcasestr.c: Likewise.
58844         * tests/test-c-strncasecmp.c: Likewise.
58845         * tests/test-c-strstr.c: Likewise.
58846         * tests/test-canonicalize-lgpl.c: Likewise.
58847         * tests/test-canonicalize.c: Likewise.
58848         * tests/test-carray_list.c: Likewise.
58849         * tests/test-ceilf1.c: Likewise.
58850         * tests/test-ceilf2.c: Likewise.
58851         * tests/test-ceill.c: Likewise.
58852         * tests/test-chown.c: Likewise.
58853         * tests/test-cloexec.c: Likewise.
58854         * tests/test-copy-acl.c: Likewise.
58855         * tests/test-copy-file.c: Likewise.
58856         * tests/test-count-one-bits.c: Likewise.
58857         * tests/test-dprintf-posix.c: Likewise.
58858         * tests/test-dup2.c: Likewise.
58859         * tests/test-dup3.c: Likewise.
58860         * tests/test-duplocale.c: Likewise.
58861         * tests/test-fbufmode.c: Likewise.
58862         * tests/test-fchdir.c: Likewise.
58863         * tests/test-fchownat.c: Likewise.
58864         * tests/test-fcntl-safer.c: Likewise.
58865         * tests/test-fcntl.c: Likewise.
58866         * tests/test-fdopendir.c: Likewise.
58867         * tests/test-fdutimensat.c: Likewise.
58868         * tests/test-fflush2.c: Likewise.
58869         * tests/test-file-has-acl.c: Likewise.
58870         * tests/test-filevercmp.c: Likewise.
58871         * tests/test-flock.c: Likewise.
58872         * tests/test-floorf1.c: Likewise.
58873         * tests/test-floorf2.c: Likewise.
58874         * tests/test-floorl.c: Likewise.
58875         * tests/test-fnmatch.c: Likewise.
58876         * tests/test-fopen.h: Likewise.
58877         * tests/test-fpending.c: Likewise.
58878         * tests/test-fprintf-posix.c: Likewise.
58879         * tests/test-fpurge.c: Likewise.
58880         * tests/test-freadable.c: Likewise.
58881         * tests/test-freadahead.c: Likewise.
58882         * tests/test-freading.c: Likewise.
58883         * tests/test-freadptr.c: Likewise.
58884         * tests/test-freadptr2.c: Likewise.
58885         * tests/test-freadseek.c: Likewise.
58886         * tests/test-freopen.c: Likewise.
58887         * tests/test-frexp.c: Likewise.
58888         * tests/test-frexpl.c: Likewise.
58889         * tests/test-fseek.c: Likewise.
58890         * tests/test-fseeko.c: Likewise.
58891         * tests/test-fstatat.c: Likewise.
58892         * tests/test-fstrcmp.c: Likewise.
58893         * tests/test-fsync.c: Likewise.
58894         * tests/test-ftell.c: Likewise.
58895         * tests/test-ftello.c: Likewise.
58896         * tests/test-func.c: Likewise.
58897         * tests/test-futimens.c: Likewise.
58898         * tests/test-fwritable.c: Likewise.
58899         * tests/test-fwriting.c: Likewise.
58900         * tests/test-getcwd.c: Likewise.
58901         * tests/test-getdate.c: Likewise.
58902         * tests/test-getdelim.c: Likewise.
58903         * tests/test-getdtablesize.c: Likewise.
58904         * tests/test-getgroups.c: Likewise.
58905         * tests/test-getline.c: Likewise.
58906         * tests/test-getndelim2.c: Likewise.
58907         * tests/test-glob.c: Likewise.
58908         * tests/test-hash.c: Likewise.
58909         * tests/test-i-ring.c: Likewise.
58910         * tests/test-iconv-utf.c: Likewise.
58911         * tests/test-iconv.c: Likewise.
58912         * tests/test-idpriv-drop.c: Likewise.
58913         * tests/test-idpriv-droptemp.c: Likewise.
58914         * tests/test-inet_ntop.c: Likewise.
58915         * tests/test-inet_pton.c: Likewise.
58916         * tests/test-isblank.c: Likewise.
58917         * tests/test-isfinite.c: Likewise.
58918         * tests/test-isinf.c: Likewise.
58919         * tests/test-isnan.c: Likewise.
58920         * tests/test-isnand.h: Likewise.
58921         * tests/test-isnanf.h: Likewise.
58922         * tests/test-isnanl.h: Likewise.
58923         * tests/test-lchown.c: Likewise.
58924         * tests/test-ldexpl.c: Likewise.
58925         * tests/test-link.c: Likewise.
58926         * tests/test-linkat.c: Likewise.
58927         * tests/test-linked_list.c: Likewise.
58928         * tests/test-linkedhash_list.c: Likewise.
58929         * tests/test-localename.c: Likewise.
58930         * tests/test-lseek.c: Likewise.
58931         * tests/test-lstat.c: Likewise.
58932         * tests/test-mbmemcasecmp.c: Likewise.
58933         * tests/test-mbmemcasecoll.c: Likewise.
58934         * tests/test-mbrtowc.c: Likewise.
58935         * tests/test-mbscasecmp.c: Likewise.
58936         * tests/test-mbscasestr1.c: Likewise.
58937         * tests/test-mbscasestr2.c: Likewise.
58938         * tests/test-mbscasestr3.c: Likewise.
58939         * tests/test-mbscasestr4.c: Likewise.
58940         * tests/test-mbschr.c: Likewise.
58941         * tests/test-mbscspn.c: Likewise.
58942         * tests/test-mbsinit.c: Likewise.
58943         * tests/test-mbsncasecmp.c: Likewise.
58944         * tests/test-mbsnrtowcs.c: Likewise.
58945         * tests/test-mbspbrk.c: Likewise.
58946         * tests/test-mbspcasecmp.c: Likewise.
58947         * tests/test-mbsrchr.c: Likewise.
58948         * tests/test-mbsrtowcs.c: Likewise.
58949         * tests/test-mbsspn.c: Likewise.
58950         * tests/test-mbsstr1.c: Likewise.
58951         * tests/test-mbsstr2.c: Likewise.
58952         * tests/test-mbsstr3.c: Likewise.
58953         * tests/test-memchr.c: Likewise.
58954         * tests/test-memchr2.c: Likewise.
58955         * tests/test-memcmp.c: Likewise.
58956         * tests/test-memmem.c: Likewise.
58957         * tests/test-memrchr.c: Likewise.
58958         * tests/test-mkdir.c: Likewise.
58959         * tests/test-mkdirat.c: Likewise.
58960         * tests/test-mkfifo.c: Likewise.
58961         * tests/test-mkfifoat.c: Likewise.
58962         * tests/test-mknod.c: Likewise.
58963         * tests/test-nanosleep.c: Likewise.
58964         * tests/test-nl_langinfo.c: Likewise.
58965         * tests/test-obstack-printf.c: Likewise.
58966         * tests/test-open.c: Likewise.
58967         * tests/test-openat.c: Likewise.
58968         * tests/test-pipe-filter-gi1.c: Likewise.
58969         * tests/test-pipe-filter-gi2-main.c: Likewise.
58970         * tests/test-pipe-filter-ii1.c: Likewise.
58971         * tests/test-pipe-filter-ii2-main.c: Likewise.
58972         * tests/test-pipe2.c: Likewise.
58973         * tests/test-popen.h: Likewise.
58974         * tests/test-posixtm.c: Likewise.
58975         * tests/test-pread.c: Likewise.
58976         * tests/test-printf-frexp.c: Likewise.
58977         * tests/test-printf-frexpl.c: Likewise.
58978         * tests/test-printf-posix.c: Likewise.
58979         * tests/test-priv-set.c: Likewise.
58980         * tests/test-quotearg.c: Likewise.
58981         * tests/test-random_r.c: Likewise.
58982         * tests/test-rawmemchr.c: Likewise.
58983         * tests/test-rbtree_list.c: Likewise.
58984         * tests/test-rbtree_oset.c: Likewise.
58985         * tests/test-rbtreehash_list.c: Likewise.
58986         * tests/test-readlink.c: Likewise.
58987         * tests/test-remove.c: Likewise.
58988         * tests/test-rename.c: Likewise.
58989         * tests/test-renameat.c: Likewise.
58990         * tests/test-rmdir.c: Likewise.
58991         * tests/test-round1.c: Likewise.
58992         * tests/test-roundf1.c: Likewise.
58993         * tests/test-roundl.c: Likewise.
58994         * tests/test-safe-alloc.c: Likewise.
58995         * tests/test-sameacls.c: Likewise.
58996         * tests/test-set-mode-acl.c: Likewise.
58997         * tests/test-setenv.c: Likewise.
58998         * tests/test-sigaction.c: Likewise.
58999         * tests/test-signbit.c: Likewise.
59000         * tests/test-sleep.c: Likewise.
59001         * tests/test-snprintf-posix.c: Likewise.
59002         * tests/test-snprintf.c: Likewise.
59003         * tests/test-sprintf-posix.c: Likewise.
59004         * tests/test-stat-time.c: Likewise.
59005         * tests/test-stat.c: Likewise.
59006         * tests/test-strcasestr.c: Likewise.
59007         * tests/test-strchrnul.c: Likewise.
59008         * tests/test-strerror.c: Likewise.
59009         * tests/test-striconv.c: Likewise.
59010         * tests/test-striconveh.c: Likewise.
59011         * tests/test-striconveha.c: Likewise.
59012         * tests/test-strsignal.c: Likewise.
59013         * tests/test-strstr.c: Likewise.
59014         * tests/test-strtod.c: Likewise.
59015         * tests/test-strverscmp.c: Likewise.
59016         * tests/test-symlink.c: Likewise.
59017         * tests/test-symlinkat.c: Likewise.
59018         * tests/test-trunc1.c: Likewise.
59019         * tests/test-trunc2.c: Likewise.
59020         * tests/test-truncf1.c: Likewise.
59021         * tests/test-truncf2.c: Likewise.
59022         * tests/test-truncl.c: Likewise.
59023         * tests/test-uname.c: Likewise.
59024         * tests/test-unlink.c: Likewise.
59025         * tests/test-unlinkat.c: Likewise.
59026         * tests/test-unsetenv.c: Likewise.
59027         * tests/test-usleep.c: Likewise.
59028         * tests/test-utimens.c: Likewise.
59029         * tests/test-utimensat.c: Likewise.
59030         * tests/test-vasnprintf-posix.c: Likewise.
59031         * tests/test-vasnprintf-posix2.c: Likewise.
59032         * tests/test-vasnprintf.c: Likewise.
59033         * tests/test-vasprintf-posix.c: Likewise.
59034         * tests/test-vasprintf.c: Likewise.
59035         * tests/test-vdprintf-posix.c: Likewise.
59036         * tests/test-vfprintf-posix.c: Likewise.
59037         * tests/test-vprintf-posix.c: Likewise.
59038         * tests/test-vsnprintf-posix.c: Likewise.
59039         * tests/test-vsnprintf.c: Likewise.
59040         * tests/test-vsprintf-posix.c: Likewise.
59041         * tests/test-wcrtomb.c: Likewise.
59042         * tests/test-wcsnrtombs.c: Likewise.
59043         * tests/test-wcsrtombs.c: Likewise.
59044         * tests/test-wctype.c: Likewise.
59045         * tests/test-wcwidth.c: Likewise.
59046         * tests/test-xfprintf-posix.c: Likewise.
59047         * tests/test-xmemdup0.c: Likewise.
59048         * tests/test-xprintf-posix.c: Likewise.
59049         * tests/test-xvasprintf.c: Likewise.
59050         * tests/unicase/test-locale-language.c: Likewise.
59051         * tests/unicase/test-mapping-part1.h: Likewise.
59052         * tests/unicase/test-predicate-part1.h: Likewise.
59053         * tests/unicase/test-u8-casecmp.c: Likewise.
59054         * tests/unicase/test-u8-casecoll.c: Likewise.
59055         * tests/unicase/test-u8-casefold.c: Likewise.
59056         * tests/unicase/test-u8-is-cased.c: Likewise.
59057         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59058         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59059         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59060         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59061         * tests/unicase/test-u8-tolower.c: Likewise.
59062         * tests/unicase/test-u8-totitle.c: Likewise.
59063         * tests/unicase/test-u8-toupper.c: Likewise.
59064         * tests/unicase/test-u16-casecmp.c: Likewise.
59065         * tests/unicase/test-u16-casecoll.c: Likewise.
59066         * tests/unicase/test-u16-casefold.c: Likewise.
59067         * tests/unicase/test-u16-is-cased.c: Likewise.
59068         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59069         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59070         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59071         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59072         * tests/unicase/test-u16-tolower.c: Likewise.
59073         * tests/unicase/test-u16-totitle.c: Likewise.
59074         * tests/unicase/test-u16-toupper.c: Likewise.
59075         * tests/unicase/test-u32-casecmp.c: Likewise.
59076         * tests/unicase/test-u32-casecoll.c: Likewise.
59077         * tests/unicase/test-u32-casefold.c: Likewise.
59078         * tests/unicase/test-u32-is-cased.c: Likewise.
59079         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59080         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59081         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59082         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59083         * tests/unicase/test-u32-tolower.c: Likewise.
59084         * tests/unicase/test-u32-totitle.c: Likewise.
59085         * tests/unicase/test-u32-toupper.c: Likewise.
59086         * tests/unicase/test-ulc-casecmp.c: Likewise.
59087         * tests/unicase/test-ulc-casecoll.c: Likewise.
59088         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59089         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59090         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59091         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59092         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59093         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59094         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59095         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59096         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59097         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59098         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59099         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59100         * tests/unictype/test-bidi_byname.c: Likewise.
59101         * tests/unictype/test-bidi_name.c: Likewise.
59102         * tests/unictype/test-bidi_of.c: Likewise.
59103         * tests/unictype/test-bidi_test.c: Likewise.
59104         * tests/unictype/test-block_list.c: Likewise.
59105         * tests/unictype/test-block_of.c: Likewise.
59106         * tests/unictype/test-block_test.c: Likewise.
59107         * tests/unictype/test-categ_and.c: Likewise.
59108         * tests/unictype/test-categ_and_not.c: Likewise.
59109         * tests/unictype/test-categ_byname.c: Likewise.
59110         * tests/unictype/test-categ_name.c: Likewise.
59111         * tests/unictype/test-categ_none.c: Likewise.
59112         * tests/unictype/test-categ_of.c: Likewise.
59113         * tests/unictype/test-categ_or.c: Likewise.
59114         * tests/unictype/test-categ_test_withtable.c: Likewise.
59115         * tests/unictype/test-combining.c: Likewise.
59116         * tests/unictype/test-decdigit.c: Likewise.
59117         * tests/unictype/test-digit.c: Likewise.
59118         * tests/unictype/test-mirror.c: Likewise.
59119         * tests/unictype/test-numeric.c: Likewise.
59120         * tests/unictype/test-pr_byname.c: Likewise.
59121         * tests/unictype/test-pr_test.c: Likewise.
59122         * tests/unictype/test-predicate-part1.h: Likewise.
59123         * tests/unictype/test-scripts.c: Likewise.
59124         * tests/unictype/test-sy_c_ident.c: Likewise.
59125         * tests/unictype/test-sy_java_ident.c: Likewise.
59126         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59127         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59128         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59129         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59130         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59131         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59132         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59133         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59134         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59135         * tests/uninorm/test-compat-decomposition.c: Likewise.
59136         * tests/uninorm/test-composition.c: Likewise.
59137         * tests/uninorm/test-decomposing-form.c: Likewise.
59138         * tests/uninorm/test-decomposition.c: Likewise.
59139         * tests/uninorm/test-u8-nfc.c: Likewise.
59140         * tests/uninorm/test-u8-nfd.c: Likewise.
59141         * tests/uninorm/test-u8-nfkc.c: Likewise.
59142         * tests/uninorm/test-u8-nfkd.c: Likewise.
59143         * tests/uninorm/test-u8-normcmp.c: Likewise.
59144         * tests/uninorm/test-u8-normcoll.c: Likewise.
59145         * tests/uninorm/test-u16-nfc.c: Likewise.
59146         * tests/uninorm/test-u16-nfd.c: Likewise.
59147         * tests/uninorm/test-u16-nfkc.c: Likewise.
59148         * tests/uninorm/test-u16-nfkd.c: Likewise.
59149         * tests/uninorm/test-u16-normcmp.c: Likewise.
59150         * tests/uninorm/test-u16-normcoll.c: Likewise.
59151         * tests/uninorm/test-u32-nfc.c: Likewise.
59152         * tests/uninorm/test-u32-nfd.c: Likewise.
59153         * tests/uninorm/test-u32-nfkc.c: Likewise.
59154         * tests/uninorm/test-u32-nfkd.c: Likewise.
59155         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59156         * tests/uninorm/test-u32-normcmp.c: Likewise.
59157         * tests/uninorm/test-u32-normcoll.c: Likewise.
59158         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59159         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59160         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59161         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59162         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59163         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59164         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59165         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59166         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59167         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59168         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59169         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59170         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59171         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59172         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59173         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59174         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59175         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59176         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59177         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59178         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59179         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59180         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59181         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59182         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59183         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59184         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59185         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59186         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59187         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59188         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59189         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59190         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59191         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59192         * tests/uniwidth/test-u8-width.c: Likewise.
59193         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59194         * tests/uniwidth/test-u16-width.c: Likewise.
59195         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59196         * tests/uniwidth/test-u32-width.c: Likewise.
59197         * tests/uniwidth/test-uc_width.c: Likewise.
59198         * tests/uniwidth/test-uc_width2.c: Likewise.
59199         * modules/acl-tests (Files): Add tests/macros.h.
59200         * modules/areadlink-tests (Files): Likewise.
59201         * modules/areadlink-with-size-tests (Files): Likewise.
59202         * modules/areadlinkat-tests (Files): Likewise.
59203         * modules/areadlinkat-with-size-tests (Files): Likewise.
59204         * modules/argmatch-tests (Files): Likewise.
59205         * modules/argv-iter-tests (Files): Likewise.
59206         * modules/array-list-tests (Files): Likewise.
59207         * modules/array-mergesort-tests (Files): Likewise.
59208         * modules/array-oset-tests (Files): Likewise.
59209         * modules/avltree-list-tests (Files): Likewise.
59210         * modules/avltree-oset-tests (Files): Likewise.
59211         * modules/avltreehash-list-tests (Files): Likewise.
59212         * modules/base64-tests (Files): Likewise.
59213         * modules/binary-io-tests (Files): Likewise.
59214         * modules/bitrotate-tests (Files): Likewise.
59215         * modules/btowc-tests (Files): Likewise.
59216         * modules/byteswap-tests (Files): Likewise.
59217         * modules/c-ctype-tests (Files): Likewise.
59218         * modules/c-stack-tests (Files): Likewise.
59219         * modules/c-strcase-tests (Files): Likewise.
59220         * modules/c-strcasestr-tests (Files): Likewise.
59221         * modules/c-strstr-tests (Files): Likewise.
59222         * modules/canonicalize-lgpl-tests (Files): Likewise.
59223         * modules/canonicalize-tests (Files): Likewise.
59224         * modules/carray-list-tests (Files): Likewise.
59225         * modules/ceilf-tests (Files): Likewise.
59226         * modules/ceill-tests (Files): Likewise.
59227         * modules/chown-tests (Files): Likewise.
59228         * modules/cloexec-tests (Files): Likewise.
59229         * modules/copy-file-tests (Files): Likewise.
59230         * modules/count-one-bits-tests (Files): Likewise.
59231         * modules/dprintf-posix-tests (Files): Likewise.
59232         * modules/dup2-tests (Files): Likewise.
59233         * modules/dup3-tests (Files): Likewise.
59234         * modules/duplocale-tests (Files): Likewise.
59235         * modules/fbufmode-tests (Files): Likewise.
59236         * modules/fchdir-tests (Files): Likewise.
59237         * modules/fcntl-safer-tests (Files): Likewise.
59238         * modules/fcntl-tests (Files): Likewise.
59239         * modules/fdopendir-tests (Files): Likewise.
59240         * modules/fdutimensat-tests (Files): Likewise.
59241         * modules/fflush-tests (Files): Likewise.
59242         * modules/filevercmp-tests (Files): Likewise.
59243         * modules/flock-tests (Files): Likewise.
59244         * modules/floorf-tests (Files): Likewise.
59245         * modules/floorl-tests (Files): Likewise.
59246         * modules/fnmatch-tests (Files): Likewise.
59247         * modules/fopen-safer-tests (Files): Likewise.
59248         * modules/fopen-tests (Files): Likewise.
59249         * modules/fpending-tests (Files): Likewise.
59250         * modules/fprintf-posix-tests (Files): Likewise.
59251         * modules/fpurge-tests (Files): Likewise.
59252         * modules/freadable-tests (Files): Likewise.
59253         * modules/freadahead-tests (Files): Likewise.
59254         * modules/freading-tests (Files): Likewise.
59255         * modules/freadptr-tests (Files): Likewise.
59256         * modules/freadseek-tests (Files): Likewise.
59257         * modules/freopen-tests (Files): Likewise.
59258         * modules/frexp-nolibm-tests (Files): Likewise.
59259         * modules/frexp-tests (Files): Likewise.
59260         * modules/frexpl-nolibm-tests (Files): Likewise.
59261         * modules/frexpl-tests (Files): Likewise.
59262         * modules/fseek-tests (Files): Likewise.
59263         * modules/fseeko-tests (Files): Likewise.
59264         * modules/fstrcmp-tests (Files): Likewise.
59265         * modules/fsync-tests (Files): Likewise.
59266         * modules/ftell-tests (Files): Likewise.
59267         * modules/ftello-tests (Files): Likewise.
59268         * modules/func-tests (Files): Likewise.
59269         * modules/futimens-tests (Files): Likewise.
59270         * modules/fwritable-tests (Files): Likewise.
59271         * modules/fwriting-tests (Files): Likewise.
59272         * modules/getcwd-tests (Files): Likewise.
59273         * modules/getdate-tests (Files): Likewise.
59274         * modules/getdelim-tests (Files): Likewise.
59275         * modules/getdtablesize-tests (Files): Likewise.
59276         * modules/getgroups-tests (Files): Likewise.
59277         * modules/getline-tests (Files): Likewise.
59278         * modules/getndelim2-tests (Files): Likewise.
59279         * modules/glob-tests (Files): Likewise.
59280         * modules/hash-tests (Files): Likewise.
59281         * modules/i-ring-tests (Files): Likewise.
59282         * modules/iconv-tests (Files): Likewise.
59283         * modules/iconv_open-utf-tests (Files): Likewise.
59284         * modules/idpriv-drop-tests (Files): Likewise.
59285         * modules/idpriv-droptemp-tests (Files): Likewise.
59286         * modules/inet_ntop-tests (Files): Likewise.
59287         * modules/inet_pton-tests (Files): Likewise.
59288         * modules/isblank-tests (Files): Likewise.
59289         * modules/isfinite-tests (Files): Likewise.
59290         * modules/isinf-tests (Files): Likewise.
59291         * modules/isnan-tests (Files): Likewise.
59292         * modules/isnand-nolibm-tests (Files): Likewise.
59293         * modules/isnand-tests (Files): Likewise.
59294         * modules/isnanf-nolibm-tests (Files): Likewise.
59295         * modules/isnanf-tests (Files): Likewise.
59296         * modules/isnanl-nolibm-tests (Files): Likewise.
59297         * modules/isnanl-tests (Files): Likewise.
59298         * modules/lchown-tests (Files): Likewise.
59299         * modules/ldexpl-tests (Files): Likewise.
59300         * modules/link-tests (Files): Likewise.
59301         * modules/linkat-tests (Files): Likewise.
59302         * modules/linked-list-tests (Files): Likewise.
59303         * modules/linkedhash-list-tests (Files): Likewise.
59304         * modules/localename-tests (Files): Likewise.
59305         * modules/lseek-tests (Files): Likewise.
59306         * modules/lstat-tests (Files): Likewise.
59307         * modules/mbmemcasecmp-tests (Files): Likewise.
59308         * modules/mbmemcasecoll-tests (Files): Likewise.
59309         * modules/mbrtowc-tests (Files): Likewise.
59310         * modules/mbscasecmp-tests (Files): Likewise.
59311         * modules/mbscasestr-tests (Files): Likewise.
59312         * modules/mbschr-tests (Files): Likewise.
59313         * modules/mbscspn-tests (Files): Likewise.
59314         * modules/mbsinit-tests (Files): Likewise.
59315         * modules/mbsncasecmp-tests (Files): Likewise.
59316         * modules/mbsnrtowcs-tests (Files): Likewise.
59317         * modules/mbspbrk-tests (Files): Likewise.
59318         * modules/mbspcasecmp-tests (Files): Likewise.
59319         * modules/mbsrchr-tests (Files): Likewise.
59320         * modules/mbsrtowcs-tests (Files): Likewise.
59321         * modules/mbsspn-tests (Files): Likewise.
59322         * modules/mbsstr-tests (Files): Likewise.
59323         * modules/memchr-tests (Files): Likewise.
59324         * modules/memchr2-tests (Files): Likewise.
59325         * modules/memcmp-tests (Files): Likewise.
59326         * modules/memmem-tests (Files): Likewise.
59327         * modules/memrchr-tests (Files): Likewise.
59328         * modules/mkdir-tests (Files): Likewise.
59329         * modules/mkfifo-tests (Files): Likewise.
59330         * modules/mkfifoat-tests (Files): Likewise.
59331         * modules/mknod-tests (Files): Likewise.
59332         * modules/nanosleep-tests (Files): Likewise.
59333         * modules/nl_langinfo-tests (Files): Likewise.
59334         * modules/obstack-printf-tests (Files): Likewise.
59335         * modules/open-tests (Files): Likewise.
59336         * modules/openat-tests (Files): Likewise.
59337         * modules/pipe-filter-gi-tests (Files): Likewise.
59338         * modules/pipe-filter-ii-tests (Files): Likewise.
59339         * modules/pipe2-tests (Files): Likewise.
59340         * modules/popen-safer-tests (Files): Likewise.
59341         * modules/popen-tests (Files): Likewise.
59342         * modules/posixtm-tests (Files): Likewise.
59343         * modules/pread-tests (Files): Likewise.
59344         * modules/printf-frexp-tests (Files): Likewise.
59345         * modules/printf-frexpl-tests (Files): Likewise.
59346         * modules/printf-posix-tests (Files): Likewise.
59347         * modules/priv-set-tests (Files): Likewise.
59348         * modules/quotearg-tests (Files): Likewise.
59349         * modules/random_r-tests (Files): Likewise.
59350         * modules/rawmemchr-tests (Files): Likewise.
59351         * modules/rbtree-list-tests (Files): Likewise.
59352         * modules/rbtree-oset-tests (Files): Likewise.
59353         * modules/rbtreehash-list-tests (Files): Likewise.
59354         * modules/readlink-tests (Files): Likewise.
59355         * modules/remove-tests (Files): Likewise.
59356         * modules/rename-tests (Files): Likewise.
59357         * modules/renameat-tests (Files): Likewise.
59358         * modules/rmdir-tests (Files): Likewise.
59359         * modules/round-tests (Files): Likewise.
59360         * modules/roundf-tests (Files): Likewise.
59361         * modules/roundl-tests (Files): Likewise.
59362         * modules/safe-alloc-tests (Files): Likewise.
59363         * modules/setenv-tests (Files): Likewise.
59364         * modules/sigaction-tests (Files): Likewise.
59365         * modules/signbit-tests (Files): Likewise.
59366         * modules/sleep-tests (Files): Likewise.
59367         * modules/snprintf-posix-tests (Files): Likewise.
59368         * modules/snprintf-tests (Files): Likewise.
59369         * modules/sprintf-posix-tests (Files): Likewise.
59370         * modules/stat-tests (Files): Likewise.
59371         * modules/stat-time-tests (Files): Likewise.
59372         * modules/strcasestr-tests (Files): Likewise.
59373         * modules/strchrnul-tests (Files): Likewise.
59374         * modules/strerror-tests (Files): Likewise.
59375         * modules/striconv-tests (Files): Likewise.
59376         * modules/striconveh-tests (Files): Likewise.
59377         * modules/striconveha-tests (Files): Likewise.
59378         * modules/strsignal-tests (Files): Likewise.
59379         * modules/strstr-tests (Files): Likewise.
59380         * modules/strtod-tests (Files): Likewise.
59381         * modules/strverscmp-tests (Files): Likewise.
59382         * modules/symlink-tests (Files): Likewise.
59383         * modules/symlinkat-tests (Files): Likewise.
59384         * modules/trunc-tests (Files): Likewise.
59385         * modules/truncf-tests (Files): Likewise.
59386         * modules/truncl-tests (Files): Likewise.
59387         * modules/uname-tests (Files): Likewise.
59388         * modules/unicase/cased-tests (Files): Likewise.
59389         * modules/unicase/ignorable-tests (Files): Likewise.
59390         * modules/unicase/locale-language-tests (Files): Likewise.
59391         * modules/unicase/tolower-tests (Files): Likewise.
59392         * modules/unicase/totitle-tests (Files): Likewise.
59393         * modules/unicase/toupper-tests (Files): Likewise.
59394         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59395         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59396         * modules/unicase/u8-casefold-tests (Files): Likewise.
59397         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59398         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59399         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59400         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59401         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59402         * modules/unicase/u8-tolower-tests (Files): Likewise.
59403         * modules/unicase/u8-totitle-tests (Files): Likewise.
59404         * modules/unicase/u8-toupper-tests (Files): Likewise.
59405         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59406         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59407         * modules/unicase/u16-casefold-tests (Files): Likewise.
59408         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59409         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59410         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59411         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59412         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59413         * modules/unicase/u16-tolower-tests (Files): Likewise.
59414         * modules/unicase/u16-totitle-tests (Files): Likewise.
59415         * modules/unicase/u16-toupper-tests (Files): Likewise.
59416         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59417         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59418         * modules/unicase/u32-casefold-tests (Files): Likewise.
59419         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59420         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59421         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59422         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59423         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59424         * modules/unicase/u32-tolower-tests (Files): Likewise.
59425         * modules/unicase/u32-totitle-tests (Files): Likewise.
59426         * modules/unicase/u32-toupper-tests (Files): Likewise.
59427         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59428         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59429         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59430         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59431         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59432         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59433         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59434         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59435         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59436         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59437         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59438         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59439         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59440         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59441         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59442         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59443         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59444         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59445         * modules/unictype/block-list-tests (Files): Likewise.
59446         * modules/unictype/block-of-tests (Files): Likewise.
59447         * modules/unictype/block-test-tests (Files): Likewise.
59448         * modules/unictype/category-C-tests (Files): Likewise.
59449         * modules/unictype/category-Cc-tests (Files): Likewise.
59450         * modules/unictype/category-Cf-tests (Files): Likewise.
59451         * modules/unictype/category-Cn-tests (Files): Likewise.
59452         * modules/unictype/category-Co-tests (Files): Likewise.
59453         * modules/unictype/category-Cs-tests (Files): Likewise.
59454         * modules/unictype/category-L-tests (Files): Likewise.
59455         * modules/unictype/category-Ll-tests (Files): Likewise.
59456         * modules/unictype/category-Lm-tests (Files): Likewise.
59457         * modules/unictype/category-Lo-tests (Files): Likewise.
59458         * modules/unictype/category-Lt-tests (Files): Likewise.
59459         * modules/unictype/category-Lu-tests (Files): Likewise.
59460         * modules/unictype/category-M-tests (Files): Likewise.
59461         * modules/unictype/category-Mc-tests (Files): Likewise.
59462         * modules/unictype/category-Me-tests (Files): Likewise.
59463         * modules/unictype/category-Mn-tests (Files): Likewise.
59464         * modules/unictype/category-N-tests (Files): Likewise.
59465         * modules/unictype/category-Nd-tests (Files): Likewise.
59466         * modules/unictype/category-Nl-tests (Files): Likewise.
59467         * modules/unictype/category-No-tests (Files): Likewise.
59468         * modules/unictype/category-P-tests (Files): Likewise.
59469         * modules/unictype/category-Pc-tests (Files): Likewise.
59470         * modules/unictype/category-Pd-tests (Files): Likewise.
59471         * modules/unictype/category-Pe-tests (Files): Likewise.
59472         * modules/unictype/category-Pf-tests (Files): Likewise.
59473         * modules/unictype/category-Pi-tests (Files): Likewise.
59474         * modules/unictype/category-Po-tests (Files): Likewise.
59475         * modules/unictype/category-Ps-tests (Files): Likewise.
59476         * modules/unictype/category-S-tests (Files): Likewise.
59477         * modules/unictype/category-Sc-tests (Files): Likewise.
59478         * modules/unictype/category-Sk-tests (Files): Likewise.
59479         * modules/unictype/category-Sm-tests (Files): Likewise.
59480         * modules/unictype/category-So-tests (Files): Likewise.
59481         * modules/unictype/category-Z-tests (Files): Likewise.
59482         * modules/unictype/category-Zl-tests (Files): Likewise.
59483         * modules/unictype/category-Zp-tests (Files): Likewise.
59484         * modules/unictype/category-Zs-tests (Files): Likewise.
59485         * modules/unictype/category-and-not-tests (Files): Likewise.
59486         * modules/unictype/category-and-tests (Files): Likewise.
59487         * modules/unictype/category-byname-tests (Files): Likewise.
59488         * modules/unictype/category-name-tests (Files): Likewise.
59489         * modules/unictype/category-none-tests (Files): Likewise.
59490         * modules/unictype/category-of-tests (Files): Likewise.
59491         * modules/unictype/category-or-tests (Files): Likewise.
59492         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59493         * modules/unictype/combining-class-tests (Files): Likewise.
59494         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59495         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59496         * modules/unictype/ctype-blank-tests (Files): Likewise.
59497         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59498         * modules/unictype/ctype-digit-tests (Files): Likewise.
59499         * modules/unictype/ctype-graph-tests (Files): Likewise.
59500         * modules/unictype/ctype-lower-tests (Files): Likewise.
59501         * modules/unictype/ctype-print-tests (Files): Likewise.
59502         * modules/unictype/ctype-punct-tests (Files): Likewise.
59503         * modules/unictype/ctype-space-tests (Files): Likewise.
59504         * modules/unictype/ctype-upper-tests (Files): Likewise.
59505         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59506         * modules/unictype/decimal-digit-tests (Files): Likewise.
59507         * modules/unictype/digit-tests (Files): Likewise.
59508         * modules/unictype/mirror-tests (Files): Likewise.
59509         * modules/unictype/numeric-tests (Files): Likewise.
59510         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59511         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59512         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59513         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59514         Likewise.
59515         * modules/unictype/property-bidi-block-separator-tests (Files):
59516         Likewise.
59517         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59518         Likewise.
59519         * modules/unictype/property-bidi-common-separator-tests (Files):
59520         Likewise.
59521         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59522         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59523         Likewise.
59524         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59525         Likewise.
59526         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59527         Likewise.
59528         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59529         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59530         Likewise.
59531         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59532         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59533         Likewise.
59534         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59535         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59536         * modules/unictype/property-bidi-segment-separator-tests (Files):
59537         Likewise.
59538         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59539         * modules/unictype/property-byname-tests (Files): Likewise.
59540         * modules/unictype/property-combining-tests (Files): Likewise.
59541         * modules/unictype/property-composite-tests (Files): Likewise.
59542         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59543         * modules/unictype/property-dash-tests (Files): Likewise.
59544         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59545         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59546         Likewise.
59547         * modules/unictype/property-deprecated-tests (Files): Likewise.
59548         * modules/unictype/property-diacritic-tests (Files): Likewise.
59549         * modules/unictype/property-extender-tests (Files): Likewise.
59550         * modules/unictype/property-format-control-tests (Files): Likewise.
59551         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59552         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59553         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59554         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59555         * modules/unictype/property-hyphen-tests (Files): Likewise.
59556         * modules/unictype/property-id-continue-tests (Files): Likewise.
59557         * modules/unictype/property-id-start-tests (Files): Likewise.
59558         * modules/unictype/property-ideographic-tests (Files): Likewise.
59559         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59560         * modules/unictype/property-ids-trinary-operator-tests (Files):
59561         Likewise.
59562         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59563         * modules/unictype/property-iso-control-tests (Files): Likewise.
59564         * modules/unictype/property-join-control-tests (Files): Likewise.
59565         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59566         * modules/unictype/property-line-separator-tests (Files): Likewise.
59567         * modules/unictype/property-logical-order-exception-tests (Files):
59568         Likewise.
59569         * modules/unictype/property-lowercase-tests (Files): Likewise.
59570         * modules/unictype/property-math-tests (Files): Likewise.
59571         * modules/unictype/property-non-break-tests (Files): Likewise.
59572         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59573         * modules/unictype/property-numeric-tests (Files): Likewise.
59574         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59575         * modules/unictype/property-other-default-ignorable-code-point-tests
59576         (Files): Likewise.
59577         * modules/unictype/property-other-grapheme-extend-tests (Files):
59578         Likewise.
59579         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59580         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59581         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59582         * modules/unictype/property-other-math-tests (Files): Likewise.
59583         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59584         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59585         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59586         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59587         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59588         * modules/unictype/property-private-use-tests (Files): Likewise.
59589         * modules/unictype/property-punctuation-tests (Files): Likewise.
59590         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59591         * modules/unictype/property-radical-tests (Files): Likewise.
59592         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59593         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59594         * modules/unictype/property-space-tests (Files): Likewise.
59595         * modules/unictype/property-terminal-punctuation-tests (Files):
59596         Likewise.
59597         * modules/unictype/property-test-tests (Files): Likewise.
59598         * modules/unictype/property-titlecase-tests (Files): Likewise.
59599         * modules/unictype/property-unassigned-code-value-tests (Files):
59600         Likewise.
59601         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59602         * modules/unictype/property-uppercase-tests (Files): Likewise.
59603         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59604         * modules/unictype/property-white-space-tests (Files): Likewise.
59605         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59606         * modules/unictype/property-xid-start-tests (Files): Likewise.
59607         * modules/unictype/property-zero-width-tests (Files): Likewise.
59608         * modules/unictype/scripts-tests (Files): Likewise.
59609         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59610         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59611         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59612         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59613         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59614         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59615         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59616         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59617         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59618         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59619         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59620         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59621         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59622         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59623         * modules/uninorm/composition-tests (Files): Likewise.
59624         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59625         * modules/uninorm/decomposition-tests (Files): Likewise.
59626         * modules/uninorm/filter-tests (Files): Likewise.
59627         * modules/uninorm/nfc-tests (Files): Likewise.
59628         * modules/uninorm/nfd-tests (Files): Likewise.
59629         * modules/uninorm/nfkc-tests (Files): Likewise.
59630         * modules/uninorm/nfkd-tests (Files): Likewise.
59631         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59632         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59633         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59634         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59635         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59636         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59637         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59638         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59639         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59640         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59641         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59642         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59643         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59644         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59645         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59646         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59647         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59648         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59649         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59650         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59651         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59652         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59653         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59654         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59655         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59656         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59657         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59658         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59659         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59660         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59661         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59662         * modules/uniwidth/u8-width-tests (Files): Likewise.
59663         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59664         * modules/uniwidth/u16-width-tests (Files): Likewise.
59665         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59666         * modules/uniwidth/u32-width-tests (Files): Likewise.
59667         * modules/uniwidth/width-tests (Files): Likewise.
59668         * modules/unlink-tests (Files): Likewise.
59669         * modules/unsetenv-tests (Files): Likewise.
59670         * modules/usleep-tests (Files): Likewise.
59671         * modules/utimens-tests (Files): Likewise.
59672         * modules/utimensat-tests (Files): Likewise.
59673         * modules/vasnprintf-posix-tests (Files): Likewise.
59674         * modules/vasnprintf-tests (Files): Likewise.
59675         * modules/vasprintf-posix-tests (Files): Likewise.
59676         * modules/vasprintf-tests (Files): Likewise.
59677         * modules/vdprintf-posix-tests (Files): Likewise.
59678         * modules/vfprintf-posix-tests (Files): Likewise.
59679         * modules/vprintf-posix-tests (Files): Likewise.
59680         * modules/vsnprintf-posix-tests (Files): Likewise.
59681         * modules/vsnprintf-tests (Files): Likewise.
59682         * modules/vsprintf-posix-tests (Files): Likewise.
59683         * modules/wcrtomb-tests (Files): Likewise.
59684         * modules/wcsnrtombs-tests (Files): Likewise.
59685         * modules/wcsrtombs-tests (Files): Likewise.
59686         * modules/wctype-tests (Files): Likewise.
59687         * modules/wcwidth-tests (Files): Likewise.
59688         * modules/xmemdup0-tests (Files): Likewise.
59689         * modules/xprintf-posix-tests (Files): Likewise.
59690         * modules/xvasprintf-tests (Files): Likewise.
59692 2009-12-24  Eric Blake  <ebb9@byu.net>
59694         test-nanosleep: fix typo
59695         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59696         patch.
59697         Reported by Bruno Haible.
59699 2009-12-24  Bruno Haible  <bruno@clisp.org>
59701         Reduce namespace pollution on glibc systems.
59702         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59703         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59704         systems.
59705         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59706         <getopt.h> on glibc systems.
59707         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59708         systems.
59709         * lib/fcntl.c: Include <unistd.h> here instead.
59711 2009-12-24  Bruno Haible  <bruno@clisp.org>
59713         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59715 2009-12-24  Eric Blake  <ebb9@byu.net>
59717         tests: add signature checks
59718         * tests/signature.h (SIGNATURE_CHECK): New file.
59719         * modules/atexit-tests (Files): Use it.
59720         * modules/btowc-tests (Files): Likewise.
59721         * modules/canonicalize-lgpl-tests (Files): Likewise.
59722         * modules/ceilf-tests (Files): Likewise.
59723         * modules/ceill-tests (Files): Likewise.
59724         * modules/chown-tests (Files): Likewise.
59725         * modules/dprintf-posix-tests (Files): Likewise.
59726         * modules/dup2-tests (Files): Likewise.
59727         * modules/dup3-tests (Files): Likewise.
59728         * modules/duplocale-tests (Files): Likewise.
59729         * modules/fchdir-tests (Files): Likewise.
59730         * modules/fcntl-tests (Files): Likewise.
59731         * modules/fdopendir-tests (Files): Likewise.
59732         * modules/fflush-tests (Files): Likewise.
59733         * modules/flock-tests (Files): Likewise.
59734         * modules/floorf-tests (Files): Likewise.
59735         * modules/floorl-tests (Files): Likewise.
59736         * modules/fnmatch-tests (Files): Likewise.
59737         * modules/fopen-tests (Files): Likewise.
59738         * modules/fprintf-posix-tests (Files): Likewise.
59739         * modules/freopen-tests (Files): Likewise.
59740         * modules/frexp-nolibm-tests (Files): Likewise.
59741         * modules/frexp-tests (Files): Likewise.
59742         * modules/frexpl-nolibm-tests (Files): Likewise.
59743         * modules/frexpl-tests (Files): Likewise.
59744         * modules/fseek-tests (Files): Likewise.
59745         * modules/fseeko-tests (Files): Likewise.
59746         * modules/fsync-tests (Files): Likewise.
59747         * modules/ftell-tests (Files): Likewise.
59748         * modules/ftello-tests (Files): Likewise.
59749         * modules/futimens-tests (Files): Likewise.
59750         * modules/getaddrinfo-tests (Files): Likewise.
59751         * modules/getcwd-tests (Files): Likewise.
59752         * modules/getdelim-tests (Files): Likewise.
59753         * modules/getdtablesize-tests (Files): Likewise.
59754         * modules/getgroups-tests (Files): Likewise.
59755         * modules/gethostname-tests (Files): Likewise.
59756         * modules/getline-tests (Files): Likewise.
59757         * modules/getopt-posix-tests (Files): Likewise.
59758         * modules/gettimeofday-tests (Files): Likewise.
59759         * modules/glob-tests (Files): Likewise.
59760         * modules/iconv-tests (Files): Likewise.
59761         * modules/inet_ntop-tests (Files): Likewise.
59762         * modules/inet_pton-tests (Files): Likewise.
59763         * modules/isblank-tests (Files): Likewise.
59764         * modules/lchown-tests (Files): Likewise.
59765         * modules/ldexpl-tests (Files): Likewise.
59766         * modules/link-tests (Files): Likewise.
59767         * modules/linkat-tests (Files): Likewise.
59768         * modules/lseek-tests (Files): Likewise.
59769         * modules/lstat-tests (Files): Likewise.
59770         * modules/mbrtowc-tests (Files): Likewise.
59771         * modules/mbsinit-tests (Files): Likewise.
59772         * modules/mbsnrtowcs-tests (Files): Likewise.
59773         * modules/mbsrtowcs-tests (Files): Likewise.
59774         * modules/memchr-tests (Files): Likewise.
59775         * modules/memcmp-tests (Files): Likewise.
59776         * modules/memmem-tests (Files): Likewise.
59777         * modules/memrchr-tests (Files): Likewise.
59778         * modules/mkdir-tests (Files): Likewise.
59779         * modules/mkfifo-tests (Files): Likewise.
59780         * modules/mkfifoat-tests (Files): Likewise.
59781         * modules/mknod-tests (Files): Likewise.
59782         * modules/nanosleep-tests (Files): Likewise.
59783         * modules/nl_langinfo-tests (Files): Likewise.
59784         * modules/obstack-printf-tests (Files): Likewise.
59785         * modules/open-tests (Files): Likewise.
59786         * modules/openat-tests (Files): Likewise.
59787         * modules/perror-tests (Files): Likewise.
59788         * modules/pipe2-tests (Files): Likewise.
59789         * modules/poll-tests (Files): Likewise.
59790         * modules/popen-tests (Files): Likewise.
59791         * modules/posix_spawn-tests (Files): Likewise.
59792         * modules/posix_spawnp-tests (Files): Likewise.
59793         * modules/pread-tests (Files): Likewise.
59794         * modules/printf-posix-tests (Files): Likewise.
59795         * modules/pty-tests (Files): Likewise.
59796         * modules/random_r-tests (Files): Likewise.
59797         * modules/rawmemchr-tests (Files): Likewise.
59798         * modules/readlink-tests (Files): Likewise.
59799         * modules/remove-tests (Files): Likewise.
59800         * modules/rename-tests (Files): Likewise.
59801         * modules/renameat-tests (Files): Likewise.
59802         * modules/rmdir-tests (Files): Likewise.
59803         * modules/round-tests (Files): Likewise.
59804         * modules/roundf-tests (Files): Likewise.
59805         * modules/roundl-tests (Files): Likewise.
59806         * modules/select-tests (Files): Likewise.
59807         * modules/setenv-tests (Files): Likewise.
59808         * modules/sigaction-tests (Files): Likewise.
59809         * modules/sleep-tests (Files): Likewise.
59810         * modules/snprintf-posix-tests (Files): Likewise.
59811         * modules/snprintf-tests (Files): Likewise.
59812         * modules/sprintf-posix-tests (Files): Likewise.
59813         * modules/stat-tests (Files): Likewise.
59814         * modules/strcasestr-tests (Files): Likewise.
59815         * modules/strchrnul-tests (Files): Likewise.
59816         * modules/strerror-tests (Files): Likewise.
59817         * modules/strsignal-tests (Files): Likewise.
59818         * modules/strstr-tests (Files): Likewise.
59819         * modules/strtod-tests (Files): Likewise.
59820         * modules/strverscmp-tests (Files): Likewise.
59821         * modules/symlink-tests (Files): Likewise.
59822         * modules/symlinkat-tests (Files): Likewise.
59823         * modules/times-tests (Files): Likewise.
59824         * modules/trunc-tests (Files): Likewise.
59825         * modules/truncf-tests (Files): Likewise.
59826         * modules/truncl-tests (Files): Likewise.
59827         * modules/tsearch-tests (Files): Likewise.
59828         * modules/uname-tests (Files): Likewise.
59829         * modules/unlink-tests (Files): Likewise.
59830         * modules/unsetenv-tests (Files): Likewise.
59831         * modules/usleep-tests (Files): Likewise.
59832         * modules/utimensat-tests (Files): Likewise.
59833         * modules/vasprintf-tests (Files): Likewise.
59834         * modules/vdprintf-posix-tests (Files): Likewise.
59835         * modules/vfprintf-posix-tests (Files): Likewise.
59836         * modules/vprintf-posix-tests (Files): Likewise.
59837         * modules/vsnprintf-posix-tests (Files): Likewise.
59838         * modules/vsnprintf-tests (Files): Likewise.
59839         * modules/vsprintf-posix-tests (Files): Likewise.
59840         * modules/wcrtomb-tests (Files): Likewise.
59841         * modules/wcsnrtombs-tests (Files): Likewise.
59842         * modules/wcsrtombs-tests (Files): Likewise.
59843         * modules/wcwidth-tests (Files): Likewise.
59844         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59845         * tests/test-isinf.c (isinf): Likewise.
59846         * tests/test-isnan.c (isnan): Likewise.
59847         * tests/test-signbit.c (signbit): Likewise.
59848         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59849         declaration, either as macro or with correct signature.
59850         (select): Ensure function under test is declared with correct
59851         signature in correct header.
59852         * tests/test-atexit.c (atexit): Likewise.
59853         * tests/test-btowc.c (btowc): Likewise.
59854         * tests/test-canonicalize-lgpl.c (realpath)
59855         (canonicalize_file_name): Likewise.
59856         * tests/test-ceilf1.c (ceilf): Likewise.
59857         * tests/test-ceill.c (ceill): Likewise.
59858         * tests/test-chown.c (chown): Likewise.
59859         * tests/test-dprintf-posix.c (dprintf): Likewise.
59860         * tests/test-dup2.c (dup2): Likewise.
59861         * tests/test-dup3.c (dup3): Likewise.
59862         * tests/test-duplocale.c (duplocale): Likewise.
59863         * tests/test-fchdir.c (fchdir): Likewise.
59864         * tests/test-fchownat.c (fchownat): Likewise.
59865         * tests/test-fcntl.c (fcntl): Likewise.
59866         * tests/test-fdopendir.c (fdopendir): Likewise.
59867         * tests/test-fflush.c (fflush): Likewise.
59868         * tests/test-flock.c (flock): Likewise.
59869         * tests/test-floorf1.c (floorf): Likewise.
59870         * tests/test-floorl.c (floorl): Likewise.
59871         * tests/test-fnmatch.c (fnmatch): Likewise.
59872         * tests/test-fopen.c (fopen): Likewise.
59873         * tests/test-fprintf-posix.c (fprintf): Likewise.
59874         * tests/test-freopen.c (freopen): Likewise.
59875         * tests/test-frexp.c (frexp): Likewise.
59876         * tests/test-frexpl.c (frexpl): Likewise.
59877         * tests/test-fseek.c (fseek): Likewise.
59878         * tests/test-fseeko.c (fseeko): Likewise.
59879         * tests/test-fstatat.c (fstatat): Likewise.
59880         * tests/test-fsync.c (fsync): Likewise.
59881         * tests/test-ftell.c (ftell): Likewise.
59882         * tests/test-ftello.c (ftello): Likewise.
59883         * tests/test-futimens.c (futimens): Likewise.
59884         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59885         (gai_strerror): Likewise.
59886         * tests/test-getcwd.c (getcwd): Likewise.
59887         * tests/test-getdelim.c (getdelim): Likewise.
59888         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59889         * tests/test-getgroups.c (getgroups): Likewise.
59890         * tests/test-gethostname.c (gethostname): Likewise.
59891         * tests/test-getline.c (getline): Likewise.
59892         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59893         Likewise.
59894         * tests/test-gettimeofday.c (gettimeofday): Likewise.
59895         * tests/test-glob.c (glob, globfree): Likewise.
59896         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
59897         * tests/test-inet_ntop.c (inet_ntop): Likewise.
59898         * tests/test-inet_pton.c (inet_pton): Likewise.
59899         * tests/test-isblank.c (isblank): Likewise.
59900         * tests/test-lchown.c (lchown): Likewise.
59901         * tests/test-ldexpl.c (ldexpl): Likewise.
59902         * tests/test-link.c (link): Likewise.
59903         * tests/test-linkat.c (linkat): Likewise.
59904         * tests/test-lseek.c (lseek): Likewise.
59905         * tests/test-lstat.c (lstat): Likewise.
59906         * tests/test-mbrtowc.c (mbrtowc): Likewise.
59907         * tests/test-mbsinit.c (mbsinit): Likewise.
59908         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
59909         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
59910         * tests/test-memchr.c (memchr): Likewise.
59911         * tests/test-memcmp.c (memcmp): Likewise.
59912         * tests/test-memmem.c (memmem): Likewise.
59913         * tests/test-memrchr.c (memrchr): Likewise.
59914         * tests/test-mkdir.c (mkdir): Likewise.
59915         * tests/test-mkdirat.c (mkdirat): Likewise.
59916         * tests/test-mkfifo.c (mkfifo): Likewise.
59917         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
59918         * tests/test-mknod.c (mknod): Likewise.
59919         * tests/test-nanosleep.c (nanosleep): Likewise.
59920         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
59921         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
59922         Likewise.
59923         * tests/test-open.c (open): Likewise.
59924         * tests/test-openat.c (openat): Likewise.
59925         * tests/test-perror.c (perror): Likewise.
59926         * tests/test-pipe2.c (pipe2): Likewise.
59927         * tests/test-poll.c (poll): Likewise.
59928         * tests/test-popen.c (popen, pclose): Likewise.
59929         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
59930         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
59931         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
59932         (posix_spawn_file_actions_destroy)
59933         (posix_spawn_file_actions_addclose)
59934         (posix_spawn_file_actions_addopen)
59935         (posix_spawn_file_actions_adddup2): Likewise.
59936         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
59937         * tests/test-pread.c (pread): Likewise.
59938         * tests/test-printf-posix.c (printf): Likewise.
59939         * tests/test-pty.c (openpty, forkpty): Likewise.
59940         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
59941         (random_r): Likewise.
59942         * tests/test-rawmemchr.c (rawmemchr): Likewise.
59943         * tests/test-readlink.c (readlink): Likewise.
59944         * tests/test-remove.c (remove): Likewise.
59945         * tests/test-rename.c (rename): Likewise.
59946         * tests/test-renameat.c (renameat): Likewise.
59947         * tests/test-rmdir.c (rmdir): Likewise.
59948         * tests/test-round1.c (round): Likewise.
59949         * tests/test-roundf1.c (roundf): Likewise.
59950         * tests/test-roundl.c (roundl): Likewise.
59951         * tests/test-setenv.c (setenv): Likewise.
59952         * tests/test-sigaction.c (sigaction): Likewise.
59953         * tests/test-sleep.c (sleep): Likewise.
59954         * tests/test-snprintf.c (snprintf): Likewise.
59955         * tests/test-sprintf-posix.c (sprintf): Likewise.
59956         * tests/test-stat.c (stat): Likewise.
59957         * tests/test-stpncpy.c (stpncpy): Likewise.
59958         * tests/test-strcasestr.c (strcasestr): Likewise.
59959         * tests/test-strchrnul.c (strchrnul): Likewise.
59960         * tests/test-strerror.c (strerror): Likewise.
59961         * tests/test-strsignal.c (strsignal): Likewise.
59962         * tests/test-strstr.c (strstr): Likewise.
59963         * tests/test-strtod.c (strtod): Likewise.
59964         * tests/test-strverscmp.c (strverscmp): Likewise.
59965         * tests/test-symlink.c (symlink): Likewise.
59966         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
59967         * tests/test-times.c (times): Likewise.
59968         * tests/test-trunc1.c (trunc): Likewise.
59969         * tests/test-truncf1.c (truncf): Likewise.
59970         * tests/test-truncl.c (truncl): Likewise.
59971         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
59972         Likewise.
59973         * tests/test-uname.c (uname): Likewise.
59974         * tests/test-unlink.c (unlink): Likewise.
59975         * tests/test-unlinkat.c (unlinkat): Likewise.
59976         * tests/test-unsetenv.c (unsetenv): Likewise.
59977         * tests/test-usleep.c (usleep): Likewise.
59978         * tests/test-utimensat.c (utimensat): Likewise.
59979         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
59980         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
59981         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
59982         * tests/test-vprintf-posix.c (vprintf): Likewise.
59983         * tests/test-vsnprintf.c (vsnprintf): Likewise.
59984         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
59985         * tests/test-wcrtomb.c (wcrtomb): Likewise.
59986         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
59987         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
59988         * tests/test-wcwidth.c (wcwidth): Likewise.
59990         build: pull in conditional headers during GNULIB_POSIXCHECK
59991         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
59992         definitions from any conditionally-included headers.
59993         * lib/stdlib.in.h (includes): Likewise.
59994         * lib/unistd.in.h (includes): Likewise.
59996 2009-12-24  Bruno Haible  <bruno@clisp.org>
59998         * tests/test-argv-iter.c: Include header file being tested immediately
59999         after config.h.
60000         * tests/test-base64.c: Likewise.
60001         * tests/test-flock.c: Likewise.
60002         * tests/test-fsync.c: Likewise.
60003         * tests/test-getdate.c: Likewise.
60004         * tests/test-getndelim2.c: Likewise.
60005         * tests/test-isfinite.c: Likewise.
60006         * tests/test-isinf.c: Likewise.
60007         * tests/test-strerror.c: Likewise.
60008         * tests/test-strsignal.c: Likewise.
60010 2009-12-23  Eric Blake  <ebb9@byu.net>
60012         unistd: work around cygwin bug
60013         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60014         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60015         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60017 2009-12-23  Bruno Haible  <bruno@clisp.org>
60019         localename: More tests.
60020         * tests/test-localename.c (SIZEOF): New macro.
60021         (categories): New variable.
60022         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60023         test_locale_name_default): Add test w.r.t. thread locale.
60024         (test_locale_name_thread): New function.
60025         (main): Invoke it.
60027         localename: Make aware of thread locale.
60028         * lib/localename.h (gl_locale_name_thread): New declaration.
60029         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60030         behaviour with respect to thread locale.
60031         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60032         <langinfo.h>, glthread/lock.h.
60033         (SIZE_BITS): New macro.
60034         (string_hash): New function.
60035         (struct hash_node): New type.
60036         (HASH_TABLE_SIZE): New macro.
60037         (struniq_hash_table, struniq_lock): New variables.
60038         (struniq): New function.
60039         (gl_locale_name_thread): New function.
60040         (gl_locale_name): Invoke it.
60041         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60042         * modules/localename (Depends-on): Add lock.
60043         Reported by Mike Gran <spk121@yahoo.com>.
60045 2009-12-23  Eric Blake  <ebb9@byu.net>
60047         va-args: new module
60048         * modules/va-args: New file.
60049         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60050         * MODULES.html.sh (Core language properties): Mention it.
60052         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60053         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60054         named alias for __attribute__((__unused__)).
60055         * lib/chown.c: Update client.
60056         * lib/fchmodat.c: Likewise.
60057         * lib/fts.c: Likewise.
60058         * lib/getdate.y: Likewise.
60059         * lib/getgroups.c: Likewise.
60060         * lib/getopt.c: Likewise.
60061         * lib/getugroups.c: Likewise.
60062         * lib/mkdir.c: Likewise.
60063         * lib/mkfifo.c: Likewise.
60064         * lib/mkfifoat.c: Likewise.
60065         * lib/mknod.c: Likewise.
60066         * lib/mknodat.c: Likewise.
60067         * lib/readlink.c: Likewise.
60068         * lib/se-context.in.h: Likewise.
60069         * lib/se-selinux.in.h: Likewise.
60070         * lib/sockets.c: Likewise.
60071         * lib/symlink.c: Likewise.
60072         * lib/symlinkat.c: Likewise.
60073         * lib/unicodeio.c: Likewise.
60074         * lib/unistr.h: Likewise.
60075         * tests/test-areadlink.c: Likewise.
60076         * tests/test-areadlinkat.c: Likewise.
60077         * tests/test-filenamecat.c: Likewise.
60078         * tests/test-fseeko.c: Likewise.
60079         * tests/test-ftello.c: Likewise.
60080         * tests/test-getdate.c: Likewise.
60081         * tests/test-getgroups.c: Likewise.
60082         * tests/test-gethostname.c: Likewise.
60083         * tests/test-quotearg.c: Likewise.
60084         * tests/test-version-etc.c: Likewise.
60085         * tests/test-xalloc-die.c: Likewise.
60086         * tests/test-xfprintf-posix.c: Likewise.
60087         * tests/test-xprintf-posix.c: Likewise.
60088         * tests/test-xvasprintf.c: Likewise.
60090         tests: avoid compiler warnings
60091         * tests/test-fcntl.c (main): Delete unused parameters.
60092         * tests/test-freopen-safer.c (main): Likewise.
60093         * tests/test-xalloc-die.c (main): Mark unused parameters.
60094         * tests/test-fseeko.c (main): Likewise.
60095         * tests/test-ftello.c (main): Likewise.
60096         * tests/test-nanosleep.c (main): Avoid declaration warning.
60097         * tests/test-sleep.c (main): Likewise.
60098         * tests/test-unsetenv.c (main): Silence warning about string
60099         literal.
60100         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60102 2009-12-23  Bruno Haible  <bruno@clisp.org>
60104         * tests/test-localename.c (test_locale_name): New function, extracted
60105         from main. Also test mixed situations.
60106         (test_locale_name_posix, test_locale_name_environ,
60107         test_locale_name_default): New functions.
60108         (main): Invoke them all.
60109         * modules/localename-tests (configure.ac): Test for newlocale.
60111 2009-12-23  Bruno Haible  <bruno@clisp.org>
60113         unistd: Ensure getcwd gets declared before being overridden.
60114         * lib/unistd.in.h: Conditionally include <io.h>.
60116 2009-12-22  Bruno Haible  <bruno@clisp.org>
60118         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60119         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60120         (gl_WCHAR_H): Invoke it.
60121         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60122         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60123         Reported by Karl Berry <karl@freefriends.org>.
60125 2009-12-22  Eric Blake  <ebb9@byu.net>
60127         math, unistd: avoid redundant includes
60128         * lib/math.in.h (isnan): No need to re-include <math.h>.
60129         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60131         getsubopt: work around cygwin bug
60132         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60133         avoid conflicting with system getsubopt.
60134         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60135         bug.
60137         getopt: synchronize from glibc
60138         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60139         parameter order.  Adjust all callers.
60140         (_getopt_internal_r, main): Adjust quoting in error messages.
60141         Drop considerations for outdated POSIX 1003.2 error message.
60142         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60143         callers.
60144         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60146         test-getopt: test stderr behavior
60147         * modules/getopt-posix-tests (Depends-on): Add dup2.
60148         * tests/test-getopt.c (ASSERT): Avoid stderr.
60149         (main): Move stderr to a temporary file.
60150         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60151         Instead, add parameter to inform caller if output occurred.
60152         (test_getopt): Adjust all existing tests to expect silence, and
60153         add new tests of leading ":".
60154         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60155         glibc shortcomings with leading "-:" or "+:" in optstring.
60156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60157         Likewise.
60158         * doc/posix-functions/getopt.texi (getopt): Likewise.
60160         test-getopt: enhance test
60161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60162         supports optind=0.
60163         * tests/test-getopt.c (OPTIND_MIN): Move...
60164         * tests/test-getopt.h (OPTIND_MIN): ...here.
60165         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60166         Require that optind=0 works, since modern BSD supports it in
60167         addition to optreset, and since coreutils expects it.
60168         (test_getopt_long_only): New test.
60169         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60170         glibc shortcomings with 'W;', and enforcement of optind=0.
60171         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60172         Likewise.
60174 2009-12-21  Bruno Haible  <bruno@clisp.org>
60176         localename: Improvements for MacOS X and Cygwin.
60177         * lib/localename.h (gl_locale_name_environ): New declaration.
60178         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60179         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60180         (gl_locale_name_posix): Invoke it.
60181         (gl_locale_name_default): Add comments. Use Windows native API also on
60182         Cygwin.
60184 2009-12-21  Bruno Haible  <bruno@clisp.org>
60186         Update list of Win32 locale ids.
60187         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60188         (LANG_SAMI): Renamed from LANG_SAAMI.
60189         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60190         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60191         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60192         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60193         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60194         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60195         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60196         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60197         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60198         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60199         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60200         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60201         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60202         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60203         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60204         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60205         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60206         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60207         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60208         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60209         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60210         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60211         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60212         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60213         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60214         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60215         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60216         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60217         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60218         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60219         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60220         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60221         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60222         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60223         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60224         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60225         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60226         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60227         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60228         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60229         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60230         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60231         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60232         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60233         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60234         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60235         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60236         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60237         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60238         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60239         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60240         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60241         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60242         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60243         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60244         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60245         Add more languages and countries for Sami, Sorbian. Add more countries
60246         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60247         for Pashto. Change country for Syriac, Tswana.
60249 2009-12-21  Eric Blake  <ebb9@byu.net>
60251         test-utimens: avoid spurious failure
60252         * tests/test-chown.h (nap): Factor...
60253         * tests/nap.h: ...into new file.
60254         * tests/test-lchown.h (nap): Avoid duplication.
60255         * tests/test-utimens-common.h (nap): Use shared implementation,
60256         necessary on file systems with 1-second resolution.
60257         * modules/chown-tests (Files): Include new file.
60258         * modules/fdutimensat-tests (Files): Likewise.
60259         * modules/futimens-tests (Files): Likewise.
60260         * modules/lchown-tests (Files): Likewise.
60261         * modules/openat-tests (Files): Likewise.
60262         * modules/utimens-tests (Files): Likewise.
60263         * modules/utimensat-tests (Files): Likewise.
60265 2009-12-19  Eric Blake  <ebb9@byu.net>
60267         futimens, utimensat: work around Linux bug
60268         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60269         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60270         * lib/utimensat.c (rpl_utimensat): Work around it.
60271         * lib/futimens.c (rpl_futimens): Adjust comment.
60273         utimens: work around Linux ctime bug
60274         * lib/utimens.c (detect_ctime_bug): New helper function.
60275         (update_timespec): Differentiate between workaround needed for
60276         this bug vs. what is needed for systems that lack utimensat.
60277         (fdutimens, lutimens): Work around bug.
60279         utimens: check for ctime update
60280         * tests/test-utimens-common.h (check_ctime): Define.
60281         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60282         * tests/test-futimens.h (test_futimens): Likewise.
60283         * tests/test-lutimens.h (test_lutimens): Likewise.
60284         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60285         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60287 2009-12-19  Bruno Haible  <bruno@clisp.org>
60289         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60290         * tests/test-dprintf-posix2.sh: New file.
60291         * tests/test-dprintf-posix2.c: New file.
60292         * modules/dprintf-posix-tests (Files): Add them.
60293         (configure.ac): Check for getrlimit and setrlimit.
60294         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60296 2009-12-19  Bruno Haible  <bruno@clisp.org>
60298         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60299         * tests/test-fprintf-posix3.sh: New file.
60300         * tests/test-fprintf-posix3.c: New file.
60301         * modules/fprintf-posix-tests (Files): Add them.
60302         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60304 2009-12-19  Eric Blake  <ebb9@byu.net>
60306         dirfd: fix prototype
60307         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60308         * lib/dirfd.c (dirfd): Likewise.
60310         canonicalize: reduce memory usage
60311         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60312         allocation to size.
60313         Reported by Solar Designer <solar@openwall.com>.
60315 2009-12-19  Bruno Haible  <bruno@clisp.org>
60317         New module attribute 'Applicability'.
60318         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60319         * gnulib-tool: New option --extract-applicability.
60320         (func_usage): Document it.
60321         (sed_extract_prog): Recognize it.
60322         (func_get_applicability): New function.
60323         (func_import): Generalize handling of 'link-warning' module.
60324         * modules/link-warning (Applicability): New section.
60325         * modules/arg-nonnull (Applicability): New section.
60326         Repoted by Simon Josefsson <simon@josefsson.org>.
60328 2009-12-19  Bruno Haible  <bruno@clisp.org>
60330         fflush: tweak
60331         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60332         * lib/fseeko.c (rpl_fseeko): Likewise.
60334 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60336         * lib/gl_list.h: Fix typo in comment.
60338 2009-12-16  Eric Blake  <ebb9@byu.net>
60340         fcntl: use to simplify other modules
60341         * modules/cloexec (Depends-on): Add fcntl.
60342         * modules/fchdir (Depends-on): Likewise.
60343         * modules/fd-safer-flag (Depends-on): Likewise.
60344         * modules/unistd-safer (Depends-on): Likewise.
60345         * modules/dup3 (configure.ac): Set module indicator.
60346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60347         missing.
60348         * lib/fchdir.c (_gl_register_dup): Fix comment.
60349         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60350         * lib/dup-safer.c (dup_safer): Likewise.
60351         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60352         * lib/dup3.c (dup3): Likewise.
60353         * tests/test-fchdir.c (main): Enhance test.
60354         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60356         fcntl: port portions of fcntl to mingw
60357         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60358         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60359         replacement for mingw.
60360         * modules/fcntl (Description): Update.
60361         (Depends-on): Add dup2.
60362         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60363         * modules/fcntl-h (Makefile.am): Substitute it.
60364         * lib/fcntl.in.h (fcntl): Update declaration.
60365         (F_DUPFD, F_GETFD): New macros, when needed.
60366         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60367         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60368         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60369         we now guarantee.
60371         fcntl: work around cygwin bug in F_DUPFD
60372         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60373         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60374         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60375         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60376         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60378         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60379         * modules/fcntl (Files): List new files.
60380         (configure.ac): Run a test.
60381         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60382         * lib/fcntl.c (rpl_fcntl): Likewise.
60383         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60384         (gl_FCNTL_H): Always replace fcntl.h.
60385         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60386         * lib/fcntl.in.h (fcntl): Declare replacement.
60387         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60388         needed, plus a witness.
60389         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60390         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60391         * tests/test-fcntl.c: New file.
60392         * modules/fcntl-tests: Likewise.
60394         binary-io: avoid potential compilation warning
60395         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60396         directives.
60398         fflush: avoid compilation error on NetBSD
60399         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60400         between off_t and fpos_t, since the latter is sometimes a struct.
60401         * lib/fseeko.c (rpl_fseeko): Likewise.
60402         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60404 2009-12-15  Eric Blake  <ebb9@byu.net>
60406         fcntl-h, stdio, sys_ioctl: fix declarations
60407         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60408         function must not take arguments.
60409         * lib/sys_ioctl.in.h (ioctl): Likewise.
60410         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60411         (open): Add a link warning.
60413 2009-12-15  Jim Meyering  <meyering@redhat.com>
60415         areadlink, areadlink-with-size: relax license to LGPLv2+
60416         * modules/areadlink (License): Relax to LGPLv2+.
60417         * modules/areadlink-with-size (License): Likewise.
60419 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60420             Bruno Haible  <bruno@clisp.org>
60422         *printf: Fix memory leak.
60423         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60424         * lib/vfprintf.c (vfprintf): Likewise.
60425         * lib/dprintf.c (dprintf): Likewise.
60426         * lib/vdprintf.c (vdprintf): Likewise.
60428 2009-12-14  Eric Blake  <ebb9@byu.net>
60430         accept4: adjust module dependencies
60431         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60433         utimens: one more try at avoiding compiler warning
60434         * lib/utimens.c (lutimens): Lower scope of result.
60436 2009-12-13  Bruno Haible  <bruno@clisp.org>
60438         Move the malloc checking from module 'list' to new module 'xlist'.
60439         * modules/xlist: New file.
60440         * lib/gl_xlist.h: New file.
60441         * lib/gl_xlist.c: New file.
60442         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60443         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60444         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60445         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60446         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60447         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60448         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60449         gl_sortedlist_nx_add): New declarations.
60450         (struct gl_list_implementation): Rename and change methods accordingly.
60451         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60452         (gl_list_nx_create): Renamed from gl_list_create.
60453         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60454         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60455         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60456         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60457         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60458         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60459         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60460         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60461         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60462         gl_list_create_empty.
60463         (gl_list_nx_create): Renamed from gl_list_create.
60464         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60465         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60466         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60467         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60468         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60469         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60470         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60471         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60472         * lib/gl_array_list.c: Don't include xalloc.h.
60473         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60474         NULL upon out-of-memory.
60475         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60476         out-of-memory.
60477         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60478         Change return type to 'int'.
60479         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60480         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60481         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60482         upon out-of-memory.
60483         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60484         upon out-of-memory.
60485         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60486         upon out-of-memory.
60487         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60488         upon out-of-memory.
60489         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60490         out-of-memory.
60491         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60492         Update.
60493         (gl_array_list_implementation): Update.
60494         * lib/gl_carray_list.c: Don't include xalloc.h.
60495         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60496         Return NULL upon out-of-memory.
60497         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60498         out-of-memory.
60499         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60500         Change return type to 'int'.
60501         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60502         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60503         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60504         upon out-of-memory.
60505         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60506         upon out-of-memory.
60507         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60508         out-of-memory.
60509         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60510         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60511         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60512         Update.
60513         (gl_carray_list_implementation): Update.
60514         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60515         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60516         gl_linked_create_empty. Return NULL upon out-of-memory.
60517         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60518         out-of-memory.
60519         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60520         Change return type to 'int'. Return -1 upon out-of-memory.
60521         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60522         out-of-memory.
60523         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60524         upon out-of-memory.
60525         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60526         upon out-of-memory.
60527         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60528         NULL upon out-of-memory.
60529         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60530         upon out-of-memory.
60531         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60532         out-of-memory.
60533         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60534         Update.
60535         * lib/gl_linked_list.c: Don't include xalloc.h.
60536         (gl_linked_list_implementation): Update.
60537         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60538         (add_to_bucket): Change return type to 'int'.
60539         (gl_linkedhash_list_implementation): Update.
60540         * lib/gl_anytree_list1.h (free_subtree): New function.
60541         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60542         gl_tree_create_empty. Return NULL upon out-of-memory.
60543         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60544         Change return type to 'int'. Return -1 upon out-of-memory.
60545         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60546         out-of-memory.
60547         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60548         (gl_tree_remove_node): New function, moved here from
60549         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60550         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60551         Update.
60552         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60553         malloc, not xmalloc. Return NULL upon out-of-memory.
60554         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60555         out-of-memory.
60556         (gl_tree_remove_node_from_tree): New function, extracted from
60557         gl_tree_remove_node.
60558         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60559         upon out-of-memory.
60560         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60561         out-of-memory.
60562         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60563         upon out-of-memory.
60564         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60565         upon out-of-memory.
60566         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60567         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60568         not xmalloc. Return NULL upon out-of-memory.
60569         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60570         out-of-memory.
60571         (gl_tree_remove_node_from_tree): New function, extracted from
60572         gl_tree_remove_node.
60573         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60574         upon out-of-memory.
60575         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60576         out-of-memory.
60577         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60578         upon out-of-memory.
60579         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60580         upon out-of-memory.
60581         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60582         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60583         gl_anytree_list1.h before gl_anyavltree_list2.h.
60584         (gl_avltree_list_implementation): Update.
60585         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60586         gl_anytree_list1.h before gl_anyavltree_list2.h.
60587         (gl_rbtree_list_implementation): Update.
60588         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60589         Change return type to 'int'. Return -1 upon out-of-memory. Use
60590         __builtin_expect.
60591         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60592         (gl_avltreehash_list_implementation): Update.
60593         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60594         (gl_rbtreehash_list_implementation): Update.
60595         * modules/array-list (Depends-on): Remove xalloc.
60596         * modules/carray-list (Depends-on): Likewise.
60597         * modules/linked-list (Depends-on): Likewise.
60598         * modules/linkedhash-list (Depends-on): Likewise.
60599         * modules/avltree-list (Depends-on): Likewise.
60600         * modules/rbtree-list (Depends-on): Likewise.
60601         * modules/avltreehash-list (Depends-on): Likewise.
60602         * modules/rbtreehash-list (Depends-on): Likewise.
60604         * modules/xsublist: New file.
60605         * lib/gl_xsublist.h: New file.
60606         * lib/gl_xsublist.c: New file.
60607         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60608         (gl_sublist_nx_create): New declaration.
60609         * lib/gl_sublist.c: Don't include xalloc.h.
60610         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60611         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60612         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60613         Change return type to 'int'. Return -1 upon out-of-memory.
60614         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60615         upon out-of-memory.
60616         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60617         NULL upon out-of-memory.
60618         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60619         upon out-of-memory.
60620         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60621         NULL upon out-of-memory.
60622         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60623         NULL upon out-of-memory.
60624         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60625         upon out-of-memory.
60626         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60627         (gl_sublist_list_implementation): Update.
60628         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60629         upon out-of-memory.
60630         * modules/sublist (Depends-on): Remove xalloc.
60632         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60633         * tests/test-carray_list.c: Likewise.
60634         * tests/test-linked_list.c: Likewise.
60635         * tests/test-linkedhash_list.c: Likewise.
60636         * tests/test-avltree_list.c: Likewise.
60637         * tests/test-rbtree_list.c: Likewise.
60638         * tests/test-avltreehash_list.c: Likewise.
60639         * tests/test-rbtreehash_list.c: Likewise.
60640         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60641         * modules/carray-list-tests (Makefile.am): Likewise.
60642         * modules/linked-list-tests (Makefile.am): Likewise.
60643         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60644         * modules/avltree-list-tests (Makefile.am): Likewise.
60645         * modules/rbtree-list-tests (Makefile.am): Likewise.
60646         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60647         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60649         * NEWS: Mention the changes.
60651         * lib/clean-temp.c: Include gl_xlist.h.
60652         * modules/clean-temp (Depends-on): Add xlist.
60654         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60655         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60657         * tests/test-array_oset.c: Include gl_xlist.h.
60658         * modules/array-oset-tests (Depends-on): Add xlist.
60660         Reported by José E. Marchesi <jemarch@gnu.org>.
60662 2009-12-13  Bruno Haible  <bruno@clisp.org>
60664         Move the malloc checking from module 'oset' to new module 'xoset'.
60665         * modules/xoset: New file.
60666         * lib/gl_xoset.h: New file.
60667         * lib/gl_xoset.c: New file.
60668         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60669         declarations.
60670         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60671         (struct gl_oset_implementation): Rename and change methods accordingly.
60672         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60673         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60674         'int'. Mark as __warn_unused_result__.
60675         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60676         gl_oset_create_empty.
60677         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60678         'int'.
60679         * lib/gl_array_oset.c: Don't include xalloc.h.
60680         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60681         malloc, not xmalloc.
60682         (grow): Change return type to 'int'. Don't call xalloc_die.
60683         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60684         to 'int'.
60685         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60686         'int'.
60687         (gl_array_oset_implementation): Update.
60688         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60689         gl_tree_create_empty.
60690         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60691         'int'.
60692         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60693         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60694         xmalloc.
60695         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60696         not xmalloc.
60697         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60698         xmalloc.
60699         (gl_avltree_oset_implementation): Update.
60700         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60701         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60702         xmalloc.
60703         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60704         not xmalloc.
60705         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60706         xmalloc.
60707         (gl_rbtree_oset_implementation): Update.
60708         * modules/array-oset (Depends-on): Remove xalloc.
60709         * modules/avltree-oset (Depends-on): Likewise.
60710         * modules/rbtree-oset (Depends-on): Likewise.
60711         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60712         * tests/test-avltree_oset.c: Likewise.
60713         * tests/test-rbtree_oset.c: Likewise.
60714         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60715         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60716         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60717         * NEWS: Mention the change.
60719 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60721         maint.mk: allow a project to override release-prep commands
60722         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60723         commands into a new rule.
60724         (release-prep): New rule.
60725         (release-prep-hook): New overridable variable.
60727 2009-12-13  Bruno Haible  <bruno@clisp.org>
60729         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60731 2009-12-13  Jim Meyering  <meyering@redhat.com>
60733         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60734         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60736 2009-12-12  Bruno Haible  <bruno@clisp.org>
60738         duplocale: Tweak.
60739         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60741 2009-12-12  Karl Berry  <karl@gnu.org>
60743         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60745 2009-12-12  Bruno Haible  <bruno@clisp.org>
60747         * m4/po.m4: Undo incorrect untabification.
60749 2009-12-12  Bruno Haible  <bruno@clisp.org>
60751         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60752         * modules/c-strtod (Depends-on): Add locale.
60753         * modules/c-strtold (Depends-on): Likewise.
60755 2009-12-12  Bruno Haible  <bruno@clisp.org>
60757         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60759 2009-12-11  Eric Blake  <ebb9@byu.net>
60761         setenv: relax requirement in light of POSIX ruling
60762         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60763         not NULL.
60764         * tests/test-setenv.c (main): Relax test.
60765         * tests/test-unsetenv.c (main): Likewise.
60766         * doc/posix-functions/setenv.texi (setenv): Document this.
60767         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60769 2009-12-11  Bruno Haible  <bruno@clisp.org>
60771         New module 'fd-safer-flag'.
60772         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60773         * lib/dup-safer.c (dup_safer_flag): Remove function.
60774         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60775         * lib/fd-safer.c (fd_safer_flag): Remove function.
60776         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60777         * modules/cloexec (configure.ac): Drop indicator macro.
60778         * modules/fd-safer-flag: New file.
60779         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60780         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60781         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60783 2009-12-11  Bruno Haible  <bruno@clisp.org>
60785         Tests for module 'nl_langinfo'.
60786         * modules/nl_langinfo-tests: New file.
60787         * tests/test-nl_langinfo.sh: New file.
60788         * tests/test-nl_langinfo.c: New file.
60790         New module 'nl_langinfo'.
60791         * lib/nl_langinfo.c: New file.
60792         * m4/nl_langinfo.m4: New file.
60793         * modules/nl_langinfo: New file.
60794         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60796 2009-12-11  Bruno Haible  <bruno@clisp.org>
60798         Tests for module 'langinfo'.
60799         * modules/langinfo-tests: New file.
60800         * tests/test-langinfo.c: New file.
60802         New module 'langinfo'.
60803         * lib/langinfo.in.h: New file.
60804         * m4/langinfo_h.m4: New file.
60805         * modules/langinfo: New file.
60806         * doc/posix-headers/langinfo.texi: Mention the new module.
60808 2009-12-11  Bruno Haible  <bruno@clisp.org>
60810         * lib/config.charset: Untabify.
60812 2009-12-11  Bruno Haible  <bruno@clisp.org>
60814         * modules/unistd-safer (configure.ac): Drop indicator macro.
60816 2009-12-11  Bruno Haible  <bruno@clisp.org>
60818         Move pipe2-safer code to its own file.
60819         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60820         * lib/pipe-safer.c (pipe2_safer): Remove function.
60821         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60822         (Makefile.am): Add it to lib_SOURCES.
60824 2009-12-10  Bruno Haible  <bruno@clisp.org>
60826         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60828 2009-12-10  Bruno Haible  <bruno@clisp.org>
60830         Declare which arguments expect non-NULL values, for GCC and clang.
60831         * build-aux/arg-nonnull.h: New file.
60832         * modules/arg-nonnull: New file.
60833         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60834         (inet_ntop, inet_pton): Use it.
60835         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60836         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60837         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60838         (open, openat): Use it.
60839         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60840         (fnmatch): Use it.
60841         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60842         (getopt, getopt_long, getopt_long_only): Use it.
60843         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60844         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60845         Use it.
60846         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60847         (iconv_open): Use it.
60848         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60849         (strtoimax, strtoumax): Use it.
60850         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60851         (duplocale): Use it.
60852         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60853         (frexp, frexpl): Use it.
60854         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60855         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60856         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60857         (tsearch, tfind, tdelete, twalk): Use it.
60858         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60859         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60860         sigpending): Use it.
60861         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60862         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60863         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60864         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60865         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60866         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60867         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60868         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60869         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60870         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60871         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60872         Use it.
60873         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60874         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60875         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60876         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60877         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60878         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60879         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60880         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60881         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60882         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60883         strtoull, unsetenv): Use it.
60884         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60885         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60886         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60887         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60888         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60889         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60890         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60891         (strcasecmp, strncasecmp): Use it.
60892         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60893         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
60894         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
60895         rpl_setsockopt): Use it.
60896         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
60897         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
60898         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
60899         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
60900         (gettimeofday): Use it.
60901         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
60902         (times): Use it.
60903         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
60904         (uname): Use it.
60905         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
60906         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
60907         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
60908         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
60909         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
60910         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
60911         unlinkat, write): Use it.
60912         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
60913         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
60914         * lib/argv-iter.h: Include arg-nonnull.h.
60915         (_ATTRIBUTE_NONNULL_): Remove macro.
60916         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
60917         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
60918         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
60919         optimization.
60920         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
60921         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
60922         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
60923         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
60924         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
60925         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
60926         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
60927         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
60928         * modules/arpa_inet (Depends-on): Add arg-nonnull.
60929         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
60930         * modules/dirent (Depends-on): Add arg-nonnull.
60931         (Makefile.am): Insert arg-nonnull.h into dirent.h.
60932         * modules/fcntl-h (Depends-on): Add arg-nonnull.
60933         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
60934         * modules/fnmatch (Depends-on): Add arg-nonnull.
60935         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
60936         * modules/getopt-posix (Depends-on): Add arg-nonnull.
60937         (Makefile.am): Insert arg-nonnull.h into getopt.h.
60938         * modules/glob (Depends-on): Add arg-nonnull.
60939         (Makefile.am): Insert arg-nonnull.h into glob.h.
60940         * modules/iconv_open (Depends-on): Add arg-nonnull.
60941         (Makefile.am): Insert arg-nonnull.h into iconv.h.
60942         * modules/inttypes (Depends-on): Add arg-nonnull.
60943         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
60944         * modules/locale (Depends-on): Add arg-nonnull.
60945         (Makefile.am): Insert arg-nonnull.h into locale.h.
60946         * modules/math (Depends-on): Add arg-nonnull.
60947         (Makefile.am): Insert arg-nonnull.h into math.h.
60948         * modules/netdb (Depends-on): Add arg-nonnull.
60949         (Makefile.am): Insert arg-nonnull.h into netdb.h.
60950         * modules/search (Depends-on): Add arg-nonnull.
60951         (Makefile.am): Insert arg-nonnull.h into search.h.
60952         * modules/signal (Depends-on): Add arg-nonnull.
60953         (Makefile.am): Insert arg-nonnull.h into signal.h.
60954         * modules/spawn (Depends-on): Add arg-nonnull.
60955         (Makefile.am): Insert arg-nonnull.h into spawn.h.
60956         * modules/stdio (Depends-on): Add arg-nonnull.
60957         (Makefile.am): Insert arg-nonnull.h into stdio.h.
60958         * modules/stdlib (Depends-on): Add arg-nonnull.
60959         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
60960         * modules/string (Depends-on): Add arg-nonnull.
60961         (Makefile.am): Insert arg-nonnull.h into string.h.
60962         * modules/strings (Depends-on): Add arg-nonnull.
60963         (Makefile.am): Insert arg-nonnull.h into strings.h.
60964         * modules/sys_socket (Depends-on): Add arg-nonnull.
60965         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
60966         * modules/sys_stat (Depends-on): Add arg-nonnull.
60967         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
60968         * modules/sys_time (Depends-on): Add arg-nonnull.
60969         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
60970         * modules/sys_times (Depends-on): Add arg-nonnull.
60971         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
60972         * modules/sys_utsname (Depends-on): Add arg-nonnull.
60973         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
60974         * modules/time (Depends-on): Add arg-nonnull.
60975         (Makefile.am): Insert arg-nonnull.h into time.h.
60976         * modules/unistd (Depends-on): Add arg-nonnull.
60977         (Makefile.am): Insert arg-nonnull.h into unistd.h.
60978         * modules/wchar (Depends-on): Add arg-nonnull.
60979         (Makefile.am): Insert arg-nonnull.h into wchar.h.
60980         * modules/argv-iter (Depends-on): Add arg-nonnull.
60981         * tests/test-canonicalize.c (null_ptr): New function.
60982         (main): Use it.
60983         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
60984         (main): Use it.
60985         * tests/test-memmem.c (null_ptr): New function.
60986         (main): Use it.
60987         Reported by Jim Meyering.
60989 2009-12-10  Bruno Haible  <bruno@clisp.org>
60991         Use spaces for indentation, not tabs.
60992         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60993         * m4/*.m4: Untabify.
60994         * build-aux/*.h: Untabify.
60995         * tests/**/*.[hc]: Untabify.
60996         * README: New section "Indent with spaces, not TABs", based on
60997         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
60998         * NEWS: Mention the change.
61000 2009-12-10  Bruno Haible  <bruno@clisp.org>
61002         pty test: Fix link error.
61003         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61004         test_pty_LDADD.
61006 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61008         * modules/pty: New file.
61009         * modules/pty-tests: New file.
61010         * m4/pty.m4: New file.
61011         * tests/test-pty.c: New file.
61012         * doc/glibc-headers/pty.texi: Modified.
61013         * doc/glibc-functions/forkpty.texi: Modified.
61014         * doc/glibc-functions/openpty.texi: Modified.
61016 2009-12-10  Bruno Haible  <bruno@clisp.org>
61018         Avoid syntax error in C++ mode.
61019         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61021 2009-12-10  Bruno Haible  <bruno@clisp.org>
61023         Use sed with option -e.
61024         * gnulib-tool (func_version, func_emit_copyright_notice,
61025         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61026         option -e to sed.
61027         * modules/link-warning (Makefile.am): Likewise.
61029 2009-12-10  Jim Meyering  <meyering@redhat.com>
61031         mgetgroups: do not write bytes beyond end of malloc'd buffer
61032         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61033         username, we call getgroups with a one-element-shorter buffer,
61034         but still told it the length was original, max_n_groups.
61036 2009-12-09  Eric Blake  <ebb9@byu.net>
61038         cloexec: relax license
61039         * modules/cloexec (Maintainer): Add myself.
61040         (License): Use LGPL, not GPL.
61042         link-warning: optimize generation
61043         * modules/link-warning (Makefile.am): Reduce process usage.
61045 2009-12-09  Bruno Haible  <bruno@clisp.org>
61047         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61048         workaround was added on 2009-11-17.
61050 2009-12-09  Jim Meyering  <meyering@redhat.com>
61051             Bruno Haible  <bruno@clisp.org>
61053         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61054         * modules/link-warning (Makefile.am): Make the comment-removing sed
61055         command more robust in the face of bootstrap-prepended comment lines.
61057 2009-12-09  Bruno Haible  <bruno@clisp.org>
61059         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61060         most one group.
61062 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61063             Bruno Haible  <bruno@clisp.org>
61065         * build-aux/link-warning.h: Add copyright notice.
61066         * modules/link-warning (Makefile.am): Generate link-warning.h from
61067         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61068         * NEWS: Mention change in link-warning module.
61069         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61070         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61071         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61072         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61073         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61074         * modules/math (Makefile.am): Add dependency to math.h.
61075         * modules/search (Makefile.am): Add dependency to search.h.
61076         * modules/signal (Makefile.am): Add dependency to signal.h.
61077         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61078         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61079         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61080         * modules/string (Makefile.am): Add dependency to string.h.
61081         * modules/strings (Makefile.am): Add dependency to strings.h.
61082         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61083         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61084         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61085         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61086         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61087         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61088         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61089         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61090         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61092 2009-12-09  Bruno Haible  <bruno@clisp.org>
61094         fchdir: Optimize away rpl_fstat when possible.
61095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61096         REPLACE_OPEN_DIRECTORY.
61097         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61099 2009-12-09  Bruno Haible  <bruno@clisp.org>
61101         * lib/fchdir.c: Update comment.
61103 2009-12-09  Bruno Haible  <bruno@clisp.org>
61105         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61107 2009-12-08  Eric Blake  <ebb9@byu.net>
61109         fchdir: avoid memory leak on re-registration.
61110         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61112 2009-12-08  Jim Meyering  <meyering@redhat.com>
61114         init.sh: avoid Solaris 10 /bin/sh portability problem
61115         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61116         sourced script:
61117           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61118           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61119           bar
61120         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61121         and two tests used that idiom.
61122         * tests/init.sh: Update suggested usage comments.
61123         (path_prepend_): New function, to be used in place
61124         of the --src-path=DIR option.
61125         (setup_): Move PATH-prepending code into path_prepend_.
61126         * tests/test-pread.sh: Adapt to new usage.
61127         * tests/test-xalloc-die.sh: Likewise.
61129 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61131         * doc/gnulib.texi (Glibc pty.h): Add.
61132         * doc/glibc-functions/forkpty.texi: Add.
61133         * doc/glibc-functions/openpty.texi: Add.
61134         Suggested by Bruno Haible.
61136 2009-12-08  Eric Blake  <ebb9@byu.net>
61138         fchdir: fix logic bugs
61139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61140         * tests/test-fchdir.c (main): Enhance test.
61141         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61142         is in use.
61144         dup2: fix logic bugs
61145         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61146         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61147         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61148         exists.
61149         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61151 2009-12-07  Eric Blake  <ebb9@byu.net>
61153         unlink: fix m4 detection
61154         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61156         unistd-safer: add unit test
61157         * modules/unistd-safer-tests: New file.
61158         * tests/test-dup-safer.c: Likewise.
61159         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61160         * tests/test-dup2.c (setmode): Likewise.
61161         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61163         cloexec: preserve text vs. binary across dup_cloexec
61164         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61165         mode.
61166         * modules/dup2-tests (Depends-on): Add binary-io.
61167         * modules/cloexec-tests (Depends-on): Likewise.
61168         * tests/test-dup2.c (setmode, is_mode): New helpers.
61169         (main): Add tests that translation mode is preserved.
61170         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61171         Reported by Bruno Haible.
61173         mgetgroups: reduce duplicate listings
61174         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61175         resulting array.
61176         * tests/test-chown.h (test_chown): Simplify client.
61177         * tests/test-lchown.h (test_lchown): Likewise.
61179 2009-12-06  Bruno Haible  <bruno@clisp.org>
61181         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61182         value.
61184 2009-12-06  Bruno Haible  <bruno@clisp.org>
61186         * lib/progname.c: Include stdio.h, stdlib.h.
61187         (set_program_name): Reject a NULL argument.
61189 2009-12-05  Eric Blake  <ebb9@byu.net>
61191         pipe2-safer: new module
61192         * modules/pipe2-safer: New file.
61193         * lib/unistd-safer.h (pipe2_safer): New prototype.
61194         * lib/unistd--.h (pipe2): New wrapper.
61195         * lib/pipe-safer.c (pipe2_safer): New function.
61196         * modules/pipe (Depends-on): Add pipe2-safer.
61197         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61199         stdlib-safer: preserve cloexec flag for mkostemp[s]
61200         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61201         fd_safer_flag.
61203         unistd-safer: allow preservation of cloexec status via flag
61204         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61205         prototypes.
61206         * lib/dup-safer.c (dup_safer_flag): New function.
61207         * lib/fd-safer.c (fd_safer_flag): Likewise.
61208         * modules/cloexec (configure.ac): Set witness.
61210         test-dup2: enhance test
61211         * modules/dup2-tests (Depends-on): Add cloexec.
61212         * tests/test-dup2.c (main): Enhance test.
61214         cloexec: add dup_cloexec
61215         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61216         header and comments.
61217         * lib/cloexec.c (set_cloexec_flag): Add comments.
61218         (dup_cloexec): New function, with mingw implementation borrowed
61219         from...
61220         * lib/w32spawn.h (dup_noinherit): ...here.
61221         * modules/execute (Depends-on): Add cloexec.
61222         * modules/pipe (Depends-on): Likewise.
61223         * modules/cloexec (Depends-on): Add dup2.
61224         * modules/cloexec-tests (Files): New file.
61225         * tests/test-cloexec.c: Likewise.
61227         test-xalloc-die: fix test for mingw
61228         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61229         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61230         directory and .exe suffix off argv[0] output.
61232         test-fseeko: fix test for mingw
61233         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61234         than undefining fseek, so test will pass on mingw.
61236 2009-12-05  Bruno Haible  <bruno@clisp.org>
61238         * lib/progname.h (set_program_name): Clarify specification.
61239         * lib/progname.c (set_program_name): Likewise.
61240         Reported by Jim Meyering.
61242 2009-12-05  Jim Meyering  <meyering@redhat.com>
61244         maint.mk: backslash-escape parens in default regexp
61245         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61246         backslash-escape the literal parentheses.
61248         maint.mk: news-date-check: use grep -E
61249         * top/maint.mk (today): Define a Make variable, not a...
61250         (news-date-check): ...shell variable.
61251         (news-date-regexp): Use the Make variable.
61252         Use grep's -E option.  Change the failing diagnostic to mention
61253         the variable, $(news-date-regexp).
61255 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61257         maintainer-makefile: allow customization of NEWS entry format
61258         * top/maint.mk (news-date-regexp): New overridable variable.
61259         (news-date-check): Use it.
61261 2009-12-04  Eric Blake  <ebb9@byu.net>
61263         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61264         * lib/mgetgroups.h (xgetgroups): New prototype.
61265         * lib/mgetgroups.c (xgetgroups): New wrapper.
61266         (mgetgroups): Handle ENOSYS.
61267         * modules/mgetgroups (Depends-on): Add realloc.
61268         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61270         mgetgroups: avoid argument promotion issues with -1
61271         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61272         for invalid gid_t.
61273         * tests/test-chown.h (getegid, test_chown): Likewise.
61274         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61276 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61278         exclude: Fix header file problems.
61279         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61281 2009-12-01  Jim Meyering  <meyering@redhat.com>
61283         fts: fts_open: do not let an empty string cause immediate failure
61284         This is required in support of GNU rm, for which the command
61285         "rm A '' B" must process and remove both A and B, in spite of
61286         the empty string argument.
61287         * lib/fts.c (fts_open): Do not let the presence of an empty string
61288         cause fts_open to fail immediately.  Most fts-using tools must be
61289         able to process all arguments, in order, and can be expected to
61290         diagnose such arguments themselves.
61292 2009-11-30  Eric Blake  <ebb9@byu.net>
61294         utimens: fix compilation error
61295         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61296         Declare variable at right scope.
61298 2009-11-29  Jim Meyering  <meyering@redhat.com>
61300         bootstrap: handle perl-5.11's changed --version output
61301         * build-aux/bootstrap (get_version): Handle perl separately,
61302         since perl-5.11's --version output is different.
61304 2009-11-28  Jim Meyering  <meyering@redhat.com>
61306         userspec: depend on the inttostr module, too
61307         * modules/userspec (Depends-on): Add inttostr.
61309         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61310         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61311         number of MAXUID when it evaluates to (uid_t) -1.
61312         Likewise for group ID.  Reported by Matt McCutchen in
61313         <http://savannah.gnu.org/bugs/?28113>
61315         userspec: reformat to use spaces, not TABs
61316         * lib/userspec.c: Expand TABs to spaces.
61317         Add Emacs' "indent-tabs-mode: nil" hint.
61319 2009-11-27  Eric Blake  <ebb9@byu.net>
61321         getopt-gnu: flush out another BSD bug
61322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61323         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61324         flush out BSD bug.
61325         * tests/test-getopt.h (test_getopt): End lists with NULL.
61326         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61327         (test_getopt_long_posix): Enhance test.
61328         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61329         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61330         getopt-gnu.
61331         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61332         Likewise.
61334 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61336         * modules/idpriv-droptemp-tests (Notice): Fix text.
61338 2009-11-27  Jim Meyering  <meyering@redhat.com>
61340         test-xalloc-die: avoid spurious failure due to libtool argv difference
61341         In a libtool-enabled project, this test would fail due to a difference
61342         in the emitted program name, e.g.,
61343         -test-xalloc-die: memory exhausted
61344         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61345         Use program to avoid that.
61346         * modules/xalloc-die-tests (Depends-on): Add progname.
61347         * tests/test-xalloc-die.c: Include progname.h".
61348         (program_name): Remove decl.
61349         (main): Call set_program_name.
61350         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61352 2009-11-26  Richard Jones  <rjones@redhat.com>
61354         w32sock: leave win32 error in place.
61355         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61357 2009-11-26  Eric Blake  <ebb9@byu.net>
61359         init.sh: suggest to use skip_ and fail_ functions in comments
61360         * tests/init.sh: Add a sentence.
61362 2009-11-25  Bruno Haible  <bruno@clisp.org>
61364         init.sh: add documentation in comments
61365         * tests/init.sh: Add some developer and user documentation.
61367 2009-11-26  Jim Meyering  <meyering@redhat.com>
61369         init.sh: accommodate even those who specify bogus srcdir manually
61370         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61371         configure-time tests to be sanitized, so that there is no need to
61372         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61373         (with no double quotes) suffices.  However, since tests may be
61374         invoked manually, and since you may explicitly set srcdir to the
61375         name of a directory containing spaces, do quote its uses here.
61376         * tests/test-pread.sh: Likewise.
61377         Suggested by Bruno Haible.
61379         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61380         * tests/test-pread.sh: Write no data into the pipe, because
61381         test-pread actually reads none.  This avoids a diagnostic,
61382         "bash: echo: write error: Broken pipe", that arises in the unusual
61383         event something is ignoring SIGPIPE, and might be interpreted
61384         as some sort of failure.  Reported by Bruno Haible.
61386 2009-11-25  Jim Meyering  <meyering@redhat.com>
61388         test-pread: cover failure with ESPIPE and EINVAL
61389         * tests/test-pread.c (main): Test for failure, too.
61390         * tests/test-pread.sh: Invoke with stdin on a pipe.
61391         Suggested by Eric Blake.
61393         pread: improvement and fix
61394         * modules/pread (Depends-on): Depend on lseek, for portability to
61395         e.g., mingw.  Suggested by Eric Blake.
61396         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61398         unistd.in.h: correct declaration of pread
61399         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61400         Reported by Richard W.M. Jones.
61402         test-pread.sh: distribute the test script
61403         * modules/pread-tests (Files): Include test-pread.sh.
61405         test-pread.sh: clean up
61406         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61407         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61408         That is unnecessary, since it's always ".".
61409         Suggestion from Eric Blake.
61411         test-pread.sh: make executable
61412         * tests/test-pread.sh: Set executable bit.
61413         Reported by Eric Blake.
61415         correct typo in test-pread.sh
61416         * tests/test-pread.sh: Add #! line.
61418         test pread
61419         * tests/test-pread.c: New file.
61420         * tests/test-pread.sh: Likewise.
61421         * modules/pread-tests: Likewise.
61423         pread: new module
61424         * modules/pread: New file.
61425         * lib/unistd.in.h (pread): Define/declare.
61426         * lib/pread.c (pread): New file.
61427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61428         * modules/unistd (Makefile.am): Substitute witnesses.
61429         * doc/posix-functions/pread.texi (pread): Update.
61430         * MODULES.html.sh: Add pread.
61432 2009-11-25  Jim Meyering  <meyering@redhat.com>
61434         tests/init.sh: new file to be used via most *.sh tests
61435         * tests/init.sh: New file.
61437 2009-11-25  Eric Blake  <ebb9@byu.net>
61439         utimens: work around older Linux failure with symlinks
61440         * lib/utimens.c (lutimensat_works_really): New variable.
61441         (fdutimens, lutimens): Use it to manage kernels that support
61442         nanosecond times on files, but not on symlinks.
61443         Reported by Ondřej Vašík.
61445         utimes: fix configure grammar
61446         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61448 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61450         regex: Fix fastmap for multibyte character ranges.
61451         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61452         characters when a multibyte character range is included.
61454 2009-11-22  Andy Wingo  <wingo@pobox.com>
61456         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61457         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61459 2009-11-24  Bruno Haible  <bruno@clisp.org>
61461         doc: Most *_l functions exist in MacOS X 10.5.
61462         * doc/posix-functions/duplocale.texi: Update platforms list.
61463         * doc/posix-functions/freelocale.texi: Likewise.
61464         * doc/posix-functions/newlocale.texi: Likewise.
61465         * doc/posix-functions/uselocale.texi: Likewise.
61466         * doc/posix-functions/isalnum_l.texi: Likewise.
61467         * doc/posix-functions/isalpha_l.texi: Likewise.
61468         * doc/posix-functions/isblank_l.texi: Likewise.
61469         * doc/posix-functions/iscntrl_l.texi: Likewise.
61470         * doc/posix-functions/isdigit_l.texi: Likewise.
61471         * doc/posix-functions/isgraph_l.texi: Likewise.
61472         * doc/posix-functions/islower_l.texi: Likewise.
61473         * doc/posix-functions/isprint_l.texi: Likewise.
61474         * doc/posix-functions/ispunct_l.texi: Likewise.
61475         * doc/posix-functions/isspace_l.texi: Likewise.
61476         * doc/posix-functions/isupper_l.texi: Likewise.
61477         * doc/posix-functions/iswalnum_l.texi: Likewise.
61478         * doc/posix-functions/iswalpha_l.texi: Likewise.
61479         * doc/posix-functions/iswblank_l.texi: Likewise.
61480         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61481         * doc/posix-functions/iswctype_l.texi: Likewise.
61482         * doc/posix-functions/iswdigit_l.texi: Likewise.
61483         * doc/posix-functions/iswgraph_l.texi: Likewise.
61484         * doc/posix-functions/iswlower_l.texi: Likewise.
61485         * doc/posix-functions/iswprint_l.texi: Likewise.
61486         * doc/posix-functions/iswpunct_l.texi: Likewise.
61487         * doc/posix-functions/iswspace_l.texi: Likewise.
61488         * doc/posix-functions/iswupper_l.texi: Likewise.
61489         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61490         * doc/posix-functions/isxdigit_l.texi: Likewise.
61491         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61492         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61493         * doc/posix-functions/strcoll_l.texi: Likewise.
61494         * doc/posix-functions/strfmon_l.texi: Likewise.
61495         * doc/posix-functions/strftime_l.texi: Likewise.
61496         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61497         * doc/posix-functions/strxfrm_l.texi: Likewise.
61498         * doc/posix-functions/tolower_l.texi: Likewise.
61499         * doc/posix-functions/toupper_l.texi: Likewise.
61500         * doc/posix-functions/towctrans_l.texi: Likewise.
61501         * doc/posix-functions/towlower_l.texi: Likewise.
61502         * doc/posix-functions/towupper_l.texi: Likewise.
61503         * doc/posix-functions/wcscoll_l.texi: Likewise.
61504         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61505         * doc/posix-functions/wctrans_l.texi: Likewise.
61506         * doc/posix-functions/wctype_l.texi: Likewise.
61507         * doc/glibc-functions/strptime_l.texi: Likewise.
61508         * doc/glibc-functions/strtod_l.texi: Likewise.
61509         * doc/glibc-functions/strtof_l.texi: Likewise.
61510         * doc/glibc-functions/strtol_l.texi: Likewise.
61511         * doc/glibc-functions/strtold_l.texi: Likewise.
61512         * doc/glibc-functions/strtoll_l.texi: Likewise.
61513         * doc/glibc-functions/strtoul_l.texi: Likewise.
61514         * doc/glibc-functions/strtoull_l.texi: Likewise.
61515         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61516         * doc/glibc-functions/wcstod_l.texi: Likewise.
61517         * doc/glibc-functions/wcstof_l.texi: Likewise.
61518         * doc/glibc-functions/wcstol_l.texi: Likewise.
61519         * doc/glibc-functions/wcstold_l.texi: Likewise.
61520         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61521         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61522         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61524 2009-11-24  Bruno Haible  <bruno@clisp.org>
61526         duplocale: Fix logic bug.
61527         * lib/duplocale.c: Don't include <langinfo.h>.
61528         (_NL_LOCALE_NAME): Remove macro.
61529         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61530         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61532 2009-11-23  Jim Meyering  <meyering@redhat.com>
61534         test-update-copyright: don't hard-code /usr/bin/perl
61535         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61536         perl to print the current year.  Gilles Espinasse reported that
61537         the replaced use of perl was hard-coded as /usr/bin/perl.
61539 2009-11-23  Bruno Haible  <bruno@clisp.org>
61541         duplocale: Add support for glibc 2.3.x.
61542         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61544 2009-11-22  Bruno Haible  <bruno@clisp.org>
61546         vasnprintf: Tiny optimization.
61547         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61548         MacOS X.
61550 2009-11-22  Bruno Haible  <bruno@clisp.org>
61552         Tests for module 'duplocale'.
61553         * modules/duplocale-tests: New file.
61554         * tests/test-duplocale.c: New file.
61556         New module 'duplocale'.
61557         * m4/duplocale.m4: New file.
61558         * lib/locale.in.h (duplocale): New declaration.
61559         * lib/duplocale.c: New file.
61560         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61561         gl_LOCALE_H_DEFAULTS): New macros.
61562         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61563         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61564         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61565         REPLACE_DUPLOCALE.
61566         * modules/duplocale: New file.
61567         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61569 2009-11-22  Bruno Haible  <bruno@clisp.org>
61571         * modules/locale-tests (configure.ac): Test for newlocale function.
61572         * tests/test-locale.c: When the system has extended locale functions,
61573         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61575         locale: Make locale_t available when possible.
61576         * lib/locale.in.h: Include <xlocale.h> when it exists.
61577         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61578         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61579         * modules/locale (Depends-on): Add extensions.
61580         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61581         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61583 2009-11-22  Bruno Haible  <bruno@clisp.org>
61585         Add comments.
61586         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61587         invocation.
61588         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61589         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61590         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61592 2009-11-22  Bruno Haible  <bruno@clisp.org>
61594         error: account for the possibility of freopen (stdout).
61595         * lib/error.c: Include <unistd.h>.
61596         (flush_stdout): New function, extracted from error and error_at_line.
61597         Determine stdout's fd dynamically.
61598         (error, error_at_line): Invoke flush_stdout.
61599         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61600         * modules/error (Depends-on): Add unistd.
61602 2009-11-22  Bruno Haible  <bruno@clisp.org>
61604         diffseq: Add comment.
61605         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61607 2009-11-22  Jim Meyering  <meyering@redhat.com>
61609         c-stack: avoid defining an unused static function
61610         * lib/c-stack.c (find_stack_direction): Do not define this function
61611         when it will not be used.
61613         diffseq: avoid spurious gcc warnings
61614         * lib/diffseq.h (IF_LINT2): Define.
61615         (compareseq): Use it to initialize two members of "part".
61616         This avoids two used-uninitialized warnings.
61618 2009-11-21  Jim Meyering  <meyering@redhat.com>
61620         c-stack: avoid "ignoring return value of `write'" warning
61621         * lib/c-stack.c: Include "ignore-value.h".
61622         (die): Explicitly ignore each write return value.
61623         * modules/c-stack (Depends-on): Add ignore-value.
61625 2009-11-21  Bruno Haible  <bruno@clisp.org>
61627         diffseq: reduce scope of variable 'best'.
61628         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61629         variable, earlier used for two different purposes.
61631 2009-11-21  Jim Meyering  <meyering@redhat.com>
61633         diffseq: remove useless assignment to "best"
61634         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61635         assignment.  At that point "best" is already guaranteed to be zero.
61637 2009-11-20  Eric Blake  <ebb9@byu.net>
61639         build: mention ftp redirector in release announcements
61640         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61641         values that used to come from cfg.mk; mention FTP redirect URL.
61642         * build-aux/announce-gen: Mention the mirror list.
61643         Suggested by Karl Berry.
61645         nanosleep: improve port to mingw
61646         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61648         LIB_NANOSLEEP, but only when needed.
61649         * modules/select (Link): Document LIBSOCKET.
61650         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61651         enough.
61653         nanosleep: work around cygwin bug
61654         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61655         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61656         bug.
61657         (getnow): Delete, not needed.
61658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61659         LIB_CLOCK_GETTIME.
61660         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61661         clock-time, gettime.
61662         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61663         bug.
61664         * modules/nanosleep-tests: New test.
61665         * tests/test-nanosleep.c: New file.
61667         sleep: work around cygwin bug
61668         * lib/sleep.c (rpl_sleep): Work around the bug.
61669         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61670         (gl_PREREQ_SLEEP): Delete unused macro.
61671         * modules/sleep (Depends-on): Add verify.
61672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61673         * modules/unistd (Makefile.am): Substitute witness.
61674         * lib/unistd.in.h (sleep): Update prototype.
61675         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61676         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61677         * modules/sleep-tests (Depends-on): Check for alarm.
61679 2009-11-20  Jim Meyering  <meyering@redhat.com>
61681         maint.mk: improve sc_prohibit_magic_number_exit
61682         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61683         so it does not match uses like System.exit(1).
61684         Add comments showing how to correct all offenders.
61686 2009-11-19  Eric Blake  <ebb9@byu.net>
61688         xalloc-die-tests: add missing library
61689         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61691         test-xvasprintf: silence compiler warnings
61692         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61693         empty string from gcc.
61695 2009-11-19  Jim Meyering  <meyering@redhat.com>
61697         xfreopen: new module, from coreutils
61698         * modules/xfreopen: New module.
61699         * lib/xfreopen.c: New file.
61700         * lib/xfreopen.h: New file.
61701         * MODULES.html.sh (File stream based Input/Output"): Add it.
61703 2009-11-19  Eric Blake  <ebb9@byu.net>
61705         manywarnings: depend on warnings
61706         * modules/manywarnings (Depends-on): Add warnings.
61708         build: avoid compiler warnings
61709         * lib/select.c (rpl_select): Delete unused variable.
61710         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61712 2009-11-18  Eric Blake  <ebb9@byu.net>
61714         tests: avoid false negative with --with-packager
61715         * tests/test-version-etc.sh: Discard packager information.
61716         * tests/test-argp-version-etc-1.sh: Likewise.
61717         Reported by Mike Frysinger.
61719         utimens: fix regression on Solaris
61720         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61721         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61722         can only change fd timestamps via futimesat.  Instead, use an
61723         additional witness macro to avoid BSD bug.
61724         Reported by Jim Meyering.
61726 2009-11-17  Eric Blake  <ebb9@byu.net>
61728         usleep: use it to simplify tests
61729         * modules/stat-time-tests (Depends-on): Add usleep.
61730         (configure.ac): Drop usleep check.
61731         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61732         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61733         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61734         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61735         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61736         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61737         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61738         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61739         Likewise.
61740         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61741         * tests/test-lchown.h (nap): Likewise.
61742         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61743         * tests/test-stat-time.c (nap): Likewise.
61744         * tests/test-utimens-common.h (nap): Update comments.
61746         usleep: new module
61747         * modules/usleep: New file.
61748         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61749         * lib/usleep.c (usleep): Likewise.
61750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61751         * modules/unistd (Makefile.am): Substitute witnesses.
61752         * lib/unistd.in.h (usleep): Add declaration.
61753         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61754         * MODULES.html.sh (Date and time): Likewise.
61755         * modules/usleep-tests (Depends-on): New test.
61756         * tests/test-usleep.c: New file.
61758         chown: work around OpenBSD bug
61759         * lib/chown.c (rpl_chown): Work around the bug.
61760         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61761         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61763         * modules/chown (Depends-on): Add stdbool.
61764         * modules/lchown (Depends-on): Likewise.
61765         * doc/posix-functions/chown.texi (chown): Document the bug.
61766         * doc/posix-functions/lchown.texi (lchown): Likewise.
61767         * tests/test-lchown.h (test_chown): Relax test.
61769         mkstemp: avoid conflict with C++ keyword template
61770         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61771         * lib/mkostemp.c (mkostemp): Likewise.
61772         * lib/mkostemps.c (mkostemps): Likewise.
61773         * lib/mkstemp.c (mkstemp): Likewise.
61774         * lib/mkstemps.c (mkstemps): Likewise.
61776         xalloc-die-tests: optimize
61777         * tests/test-xalloc-die.sh: Reduce number of processes.
61779 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61781         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61782         patch from ludo@gnu.org (Ludovic Courtès).
61784 2009-11-17  Jim Meyering  <meyering@redhat.com>
61786         version-etc: use proper license string
61787         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61788         * modules/version-etc-fsf: Likewise.
61790 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61792         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61793         printed to stdout.  Deal with EOL differences.
61795 2009-11-17  Eric Blake  <ebb9@byu.net>
61797         unsetenv: work around Solaris bug
61798         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61799         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61800         Reported by Jim Meyering.
61802         vasnprintf: avoid compiler warnings
61803         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61804         variables.
61805         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61807 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61809         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61810         settings since xalloc-die is no longer the self test,
61811         xalloc-die.sh is.
61813 2009-11-17  Jim Meyering  <meyering@redhat.com>
61815         test-xalloc-die.sh: make the code agree with the commit log
61816         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61817         at the end, just in case you happen to have a test-xalloc-die
61818         program in some other PATH directory.
61820         test-xalloc-die.sh: fix a portability bug
61821         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61822         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61823         Otherwise, argv[0] (as often seen in diagnostics) would be too
61824         system-dependent, sometimes with, and sometimes without the leading "./".
61826         version-etc-fsf: relax license to LGPLv3+
61827         * modules/version-etc-fsf (License): Relax license.
61829 2009-11-16  Eric Blake  <ebb9@byu.net>
61831         xalloc-die-tests: avoid printing null pointer
61832         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61833         shell script.
61834         * tests/test-xalloc-die.c (program_name): Declare.
61835         * tests/test-xalloc-die.sh (tmpfiles): New file.
61837         setenv, unsetenv: work around various bugs
61838         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61839         (setenv) [HAVE_SETENV]: Work around bugs.
61840         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61841         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61842         for bugs.
61843         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61844         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61846         * modules/stdlib (Makefile.am): Update substitutions.
61847         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61848         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61849         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61850         * modules/setenv-tests: New test.
61851         * modules/unsetenv-tests: Likewise.
61852         * tests/test-setenv.c: New file.
61853         * tests/test-unsetenv.c: Likewise.
61855 2009-11-16  Jim Meyering  <meyering@redhat.com>
61857         version-etc: relax license to LGPLv3+
61858         * modules/version-etc (License): Relax license.
61860         better AC_REQUIRE expanded-before-required-warning avoidance
61861         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61862         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61863         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61864         which is no longer needed.
61866 2009-11-16  Eric Blake  <ebb9@byu.net>
61868         test-freading: clean up temporary file
61869         * tests/test-freading.c (main): Remove file on success, and use
61870         ASSERT more liberally.
61871         Reported by Jim Meyering.
61873 2009-11-16  Jim Meyering  <meyering@redhat.com>
61875         avoid new AC_REQUIRE expanded-before-required warnings
61876         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61877         merely using it.
61878         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61879         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61881 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61883         * tests/test-xalloc-die.c: New file.
61884         * modules/xalloc-die-tests: New file.
61885         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61886         XFAIL_TESTS so it can be appended by modules.
61888 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61890         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61891         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61893 2009-11-14  Eric Blake  <ebb9@byu.net>
61895         fnmatch: avoid compiler warning
61896         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
61897         to silence compiler warning about mismatch signedness in ?:.
61898         Reported by Robert Millan.
61900         intprops: add double-inclusion guard
61901         * lib/intprops.h: Allow idempotent includes.
61902         Suggested by Bruce Korb.
61904         openat: detect Solaris fchownat bug
61905         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
61906         penalizing glibc chownat when only lchownat is broken.
61907         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
61908         trailing slash bugs.
61909         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
61910         * modules/openat-tests (Files): Include more files.
61911         (Depends-on): Add mgetgroups, sleep, stat-time.
61912         (configure.ac): Add additional checks.
61913         (Makefile.am): Build new test.
61914         * tests/test-fchownat.c: New file.
61916         lchown: detect Solaris and FreeBSD bug
61917         * lib/lchown.c (rpl_lchown): Work around bug.
61918         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
61919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61920         * modules/unistd (Makefile.am): Populate it.
61921         * lib/unistd.in.h (lchown): Update declaration.
61922         * doc/posix-functions/lchown.texi (lchown): Document the bug.
61923         * modules/lchown-tests: New file.
61924         * tests/test-lchown.h (test_lchown): Likewise.
61925         * tests/test-lchown.c (main): Likewise.
61927         chown: detect Solaris and FreeBSD bug
61928         * lib/chown.c (rpl_chown): Work around bug.
61929         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
61930         (gl_PREREQ_CHOWN): Delete.
61931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61932         * modules/unistd (Makefile.am): Populate it.
61933         * lib/unistd.in.h (chown): Update declaration.
61934         * lib/lchown.c (chown): Update client.
61935         * modules/lchown (Depends-on): Add lstat.
61936         * doc/posix-functions/chown.texi (chown): Document the bug.
61937         * doc/posix-functions/getgroups.texi (getgroups): Document
61938         getgroups pitfall.
61939         * modules/chown-tests: New file.
61940         * tests/test-chown.h (test_chown): Likewise.
61941         * tests/test-chown.c (main): Likewise.
61943 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
61945         gnulib-tool: correctly detect absence of m4 directories
61946         * gnulib-tool: Avoid extra newline on data passed to wc -l.
61948 2009-11-14  Jim Meyering  <meyering@redhat.com>
61950         maint.mk: Prohibit inclusion of "xalloc.h" without use.
61951         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61953 2009-11-14  John W. Eaton  <jwe@gnu.org>
61955         strftime.h: wrap function declaration in extern "C" block
61956         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
61958 2009-11-13  Eric Blake  <ebb9@byu.net>
61960         getgroups: avoid compiler warning
61961         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
61963         getgroups: work around FreeBSD bug
61964         * lib/getgroups.c (rpl_getgroups): Work around the bug.
61965         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
61966         * doc/posix-functions/getgroups.texi (getgroups): Document it.
61967         * tests/test-getgroups.c (main): Fix buffer overrun.
61969         getgroups: avoid compilation failure
61970         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
61971         * modules/getgroups (Depends-on): Add stdint.
61973 2009-11-13  Jim Meyering  <meyering@redhat.com>
61975         test-getgroups: avoid compilation failure
61976         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
61978 2009-11-13  Eric Blake  <ebb9@byu.net>
61980         mgetgroups: new module, taken from coreutils
61981         * modules/mgetgroups: New file.
61982         * lib/mgetgroups.h: Likewise.
61983         * lib/mgetgroups.c (mgetgroups): Likewise.
61984         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
61985         * MODULES.html.sh (Users and groups): Mention it.
61987         getgroups: don't expose GETGROUPS_T to user
61988         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
61989         an element at a time if GETGROUPS_T is wrong size.
61990         * lib/getugroups.h (getugroups): Change signature.
61991         * lib/unistd.in.h (getgroups): Likewise.
61992         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
61993         signature needs fixing.
61994         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
61995         AC_TYPE_GETGROUPS.
61996         * modules/group-member (Depends-on): Add getgroups.
61997         * lib/group-member.c (group_info, get_group_info): Use gid_t.
61998         (group_member): Rely on getgroups replacement.
61999         * lib/getugroups.c (getugroups): Use gid_t.
62000         * tests/test-getgroups.c (main): Likewise.
62001         * NEWS: Mention the signature change.
62002         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62003         problem with signature.
62004         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62005         GETGROUPS_T is still useful for setgroups.
62007         getgroups, getugroups: provide stubs for mingw
62008         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62009         * lib/getugroups.c (getugroups): Likewise.
62010         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62011         function.  Modernize replacement scheme.
62012         (gl_PREREQ_GETGROUPS): Delete.
62013         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62014         * modules/getgroups (configure.ac): Declare witness.
62015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62016         * modules/unistd (Depends-on): Substitute witness.
62017         * lib/unistd.in.h (getgroups): Declare replacement.
62019         getgroups: avoid calling exit
62020         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62021         drop xalloc.
62022         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62023         dependencies.
62024         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62025         exiting, in the rare case of malloc failure.
62027         getgroups: fix logic error
62028         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62029         has more than 20 groups.
62030         * modules/getgroups-tests: New test.
62031         * tests/test-getgroups.c: New file.
62033 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62035         * tests/test-base64.c: Improve.
62037 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62039         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62040         Blake <ebb9@byu.net>.
62042 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62044         * tests/test-xvasprintf.c: Add %s%s related checks.
62046 2009-11-12  Eric Blake  <ebb9@byu.net>
62048         version-etc: match standards.texi style
62049         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62050         and use <> only for URLs.
62052 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62054         fts: do not fail on a submount during traversal
62055         * lib/fts.c (fts_build): Read the stat info again after opening
62056         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62057         Original report at http://bugzilla.redhat.com/501848.
62059 2009-11-12  Jim Meyering  <meyering@redhat.com>
62061         bootstrap: sync from coreutils
62062         * build-aux/bootstrap (bootstrap_epilogue): New function.
62063         Use git_modules_config in one more place.  This make bootstrap's
62064         --gnulib-srcdir option more useful for testing.
62066         bootstrap: generalize autoheader check
62067         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62068         AC_CONFIG_HEADERS.
62070 2009-11-11  Eric Blake  <ebb9@byu.net>
62072         mkfifoat: use new modules for Solaris and BSD bugs
62073         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62074         * lib/mkfifoat.c (mknodat): Split...
62075         * lib/mknodat.c (mknodat): ...into new file.
62076         * modules/mkfifoat (Files): Ship new file.
62077         (Depends-on): Add mkfifo, mknod.
62078         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62079         (Depends-on): Add symlink.
62080         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62081         redundant with test_mkfifo.h.
62082         (do_mkfifoat, do_mknodat): New helpers.
62084         mknod: new module
62085         * modules/mknod: New file.
62086         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62087         * lib/mknod.c (mknod): Likewise.
62088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62089         defaults.
62090         * modules/sys_stat (Makefile.am): Substitute them.
62091         * lib/sys_stat.in.h (mknod): Declare replacement.
62092         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62093         Document it.
62094         * doc/posix-functions/mknod.texi (mknod): Likewise.
62095         * modules/mknod-tests: New test.
62096         * tests/test-mknod.c: Likewise.
62098         mkfifo: new module
62099         * modules/mkfifo: New file.
62100         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62101         * lib/mkfifo.c (mkfifo): Likewise.
62102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62103         defaults.
62104         * modules/sys_stat (Makefile.am): Substitute them.
62105         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62106         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62107         Document it.
62108         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62109         * modules/mkfifo-tests: New test.
62110         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62111         from test-mkfifoat.c.
62112         * tests/test-mkfifo.c: New file.
62114         readlink: detect FreeBSD bug
62115         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62116         slash on symlink.
62117         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62118         * tests/test-readlink.h (test_readlink): Enhance test.
62120         symlink: detect FreeBSD bug
62121         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62122         slash on symlink.
62123         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62124         * tests/test-symlink.h (test_symlink): Enhance test.
62126 2009-11-10  Eric Blake  <ebb9@byu.net>
62128         link: detect FreeBSD bug
62129         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62130         symlink.
62131         * doc/posix-functions/link.texi (link): Document the bug.
62132         * tests/test-link.h (test_link): Enhance test.
62133         * tests/test-linkat.c (main): Update caller.
62135         unlink, remove: detect FreeBSD bug
62136         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62137         slash on symlink.
62138         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62139         * doc/posix-functions/remove.texi (remove): Likewise.
62140         * tests/test-unlink.h (test_unlink): Enhance test.
62141         * tests/test-remove.c (main): Likewise.
62143 2009-11-09  Eric Blake  <ebb9@byu.net>
62145         rename: detect FreeBSD bug
62146         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62147         slash on symlink.
62148         * modules/renameat-tests (Depends-on): Add filenamecat.
62149         * tests/test-rename.h (test_rename): Allow one more errno.
62150         * tests/test-renameat.c (main): Likewise.
62151         * doc/posix-functions/rename.texi (rename): Document the bug.
62153         open: detect FreeBSD bug
62154         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62155         symlink.
62156         * doc/posix-functions/open.texi (open): Document the bug.
62157         * doc/posix-functions/utimes.texi (utimes): Likewise.
62158         * tests/test-open.h (test_open): Add parameters, and test symlink
62159         handling.
62160         * tests/test-open.c (main): Adjust caller.
62161         * tests/test-fcntl-safer.c (main): Likewise.
62162         * modules/open-tests (Depends-on): Add stdbool, symlink.
62163         * modules/fcntl-safer-tests (Depends-on): Likewise.
62164         * tests/test-openat.c (main): Add test-open tests.
62166         stat: detect FreeBSD bug
62167         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62168         symlink.
62169         * doc/posix-functions/stat.texi (stat): Document the bug.
62170         * tests/test-stat.h (test_stat_func): Add argument.
62171         * tests/test-stat.c (main): Adjust caller.
62172         * tests/test-fstatat.c (main): Likewise.
62173         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62174         Reported by Jim Meyering.
62176 2009-11-09  James Youngman  <jay@gnu.org>
62178         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62179         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62181 2009-11-08  Jim Meyering  <meyering@redhat.com>
62183         utimens: remove invalid futimesat call
62184         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62185         It used the file descriptor of the target file as the DIR_FD
62186         parameter and NULL as the file name.  That caused failure with
62187         errno == EFAULT on FreeBSD-8.0-rc2
62189 2009-11-07  Eric Blake  <ebb9@byu.net>
62191         fflush, freadseek: use fseeko, not fseek
62192         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62193         (clear_ungetc_buffer): Avoid potential problems on large files.
62194         * lib/freadseek.c (freadseek): Likewise.
62195         * modules/freadseek (Depends-on): Add fseeko.
62196         * modules/fseek (configure.ac): Set a witness.
62197         * tests/test-fflush.c (main): Use fseeko.
62198         * tests/test-fpurge.c (fseek): Disable link warning.
62199         * tests/test-freadable.c (fseek): Likewise.
62200         * tests/test-freading.c (fseek): Likewise.
62201         * tests/test-fseeko.c (fseek): Likewise.
62202         * tests/test-ftell.c (fseek): Likewise.
62203         * tests/test-ftello.c (fseek): Likewise.
62204         * tests/test-fwritable.c (fseek): Likewise.
62205         * tests/test-fwriting.c (fseek): Likewise.
62207 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62209         * modules/memchr (Depends-on): Drop getpagesize dependency.
62211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62213         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62214         Reported by Ludovic Courtès.
62215         * build-aux/pmccabe2html: Improve example usage.
62216         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62218 2009-11-06  Jim Meyering  <meyering@redhat.com>
62220         do-release-commit-and-tag: New module.
62221         Automate the release-commit and tag process.
62222         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62223         * modules/do-release-commit-and-tag: New file.
62224         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62226 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62228         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62229         because test-select.c uses inet_pton.
62231 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62233         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62234         GETADDRINFO_LIB.  Bump serial number.
62235         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62236         Suggested by Eric Blake <ebb9@byu.net>.
62238 2009-11-05  Eric Blake  <ebb9@byu.net>
62240         strtod: detect darwin bug
62241         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62242         Reported by Leo Davis.
62244         freopen-safer: new module
62245         * modules/freopen-safer: New module.
62246         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62247         * lib/freopen-safer.c (freopen_safer): New file.
62248         * lib/stdio-safer.h (freopen_safer): New declaration.
62249         * lib/stdio--.h (freopen): New override.
62250         * MODULES.html.sh (File stream based Input/Output): Mention it.
62251         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62252         freopen-safer module.
62253         * doc/posix-functions/stderr.texi (stderr): Likewise.
62254         * doc/posix-functions/stdin.texi (stdin): Likewise.
62255         * doc/posix-functions/stdout.texi (stdout): Likewise.
62256         * modules/freopen-safer-tests: New test.
62257         * tests/test-reopen-safer.c: New file.
62259 2009-11-05  Jim Meyering  <meyering@redhat.com>
62261         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62262         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62264 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62266         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62270         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62274         Fix link error.
62275         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62278 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62280         * tests/test-func.c: Also test value of __func__.
62282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62284         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62285         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62287 2009-11-05  Bruno Haible  <bruno@clisp.org>
62289         Fix link error.
62290         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62291         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62292         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62294 2009-11-05  Bruno Haible  <bruno@clisp.org>
62296         Tests for module 'inet_pton'.
62297         * modules/inet_pton-tests: New file.
62298         * tests/test-inet_pton.c: New file.
62300 2009-11-05  Bruno Haible  <bruno@clisp.org>
62302         Tests for module 'inet_ntop'.
62303         * modules/inet_ntop-tests: New file.
62304         * tests/test-inet_ntop.c: New file.
62306 2009-11-04  Eric Blake  <ebb9@byu.net>
62308         stdlib-safer: wrap all mkstemp variants
62309         * modules/mkostemp (configure.ac): Set witness.
62310         * modules/mkostemps (configure.ac): Likewise.
62311         * modules/mkstemps (configure.ac): Likewise.
62312         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62313         (mkstemps_safer): Wrap more functions.
62314         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62315         wrapping.
62316         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62317         (mkstemps_safer): Implement the wrappers.
62319         mkstemps, mkostemps: new modules
62320         * modules/mkostemps: New module.
62321         * modules/mkstemps: Likewise.
62322         * lib/mkostemps.c (mkostemps): New file.
62323         * lib/mkstemps.c (mkstemps): Likewise.
62324         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62325         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62327         * modules/stdlib (Makefile.am): Substitute them.
62328         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62329         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62330         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62331         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62332         * MODULES.html.sh (File system functions): Mention them.
62334         tempname: resync from glibc
62335         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62336         same values for __GT_FILE as glibc.  Abort even when assertions
62337         are disabled.
62338         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62339         match its value otherwise.  Allow idempotent inclusion.
62340         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62341         * lib/mkostemp.c (mkostemp): Likewise.
62342         * lib/mkstemp.c (mkstemp): Likewise.
62343         * lib/tmpfile.c (tmpfile): Likewise.
62344         * NEWS: Document this.
62346         utimens: fix use of futimens on older Linux
62347         * lib/utimens.c (fdutimens): Use updated, rather than original,
62348         timespec to avoid bug in older Linux kernel.
62349         Reported by Simon Josefsson.
62351 2009-11-04  Bruno Haible  <bruno@clisp.org>
62353         Make num_processors more flexible and consistent.
62354         * lib/nproc.h (enum nproc_query): New type.
62355         (num_processors): Add a 'query' argument.
62356         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62357         (num_processors): Add a 'query' argument. Test the value of the
62358         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62359         mingw, count the number of CPUs available for the current process.
62360         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62361         Check for sched_getaffinity and sched_getaffinity_np.
62362         * modules/nproc (Depends-on): Add c-ctype, extensions.
62363         * NEWS: Mention the change.
62365 2009-11-03  Bruno Haible  <bruno@clisp.org>
62367         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62369 2009-11-03  Jim Meyering  <meyering@redhat.com>
62371         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62372         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62373         if it is defined.
62375 2009-11-02  Eric Blake  <ebb9@byu.net>
62377         mktime, timegm: share common declaration
62378         * lib/mktime-internal.h: New file.
62379         * lib/mktime.c: Use it rather than open-coding a declaration.
62380         * lib/timegm.c: Likewise.
62381         * modules/mktime (Files): Ship it.
62382         * modules/timegm (Files): Likewise.
62383         Suggested by Bruno Haible.
62385         test-update-copyright: update test to match script changes
62386         * tests/test-update-copyright.sh: Avoid hard-coding perl
62387         location.  Don't update *.bak created by earlier runs.
62389 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62390             Simon Josefsson  <simon@josefsson.org>
62391             Bruno Haible  <bruno@clisp.org>
62393         Fix link error on Solaris 8.
62394         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62395         also in libnsl. Define also INET_PTON_LIB.
62396         * modules/inet_pton (Link): New section.
62398 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62399             Bruno Haible  <bruno@clisp.org>
62401         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62402         * modules/inet_ntop (Link): New section.
62403         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62405 2009-11-02  Eric Blake  <ebb9@byu.net>
62407         maint: avoid compiler warnings in m4 macros
62408         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62409         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62411 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62413         * m4/pmccabe2html.m4: Remove file.
62414         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62415         function.  Change maintainer.
62416         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62417         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62418         Courtès).
62420 2009-10-31  Eric Blake  <ebb9@byu.net>
62422         fseeko: fix m4 regression
62423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62424         regression from 2009-10-27.
62425         Reported by Ralf Wildenhues.
62427 2009-10-31  Jim Meyering  <meyering@redhat.com>
62429         inttostr: aesthetics and improved (compile-time) safety
62430         Define inttype_is_signed rather than inttype_is_unsigned,
62431         since the sole use is via "#if inttype_is_signed".
62432         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62433         inttype_is_unsigned.
62434         * lib/offtostr.c (inttype_is_signed): Likewise.
62435         * lib/uinttostr.c (inttype_is_signed): Likewise.
62436         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62437         * lib/inttostr.c (inttostr): Use verify to cross-check the
62438         inttype_is_signed value and the signedness of the actual type.
62439         * modules/inttostr (Depends-on): Add verify.
62441 2009-10-30  Eric Blake  <ebb9@byu.net>
62443         build: avoid compiler warnings
62444         * lib/fchmodat.c (lchmod): Mark unused variables.
62445         * lib/getopt.c (_getopt_initialize): Likewise.
62446         * lib/mktime.c (__mktime_internal): Provide prototype.
62447         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62448         older gcc that do not understand #pragma GCC diagnostic.
62449         * lib/uinttostr.c (inttype_is_unsigned): Define.
62450         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62452 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62454         stat: fix compilation on AIX
62455         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62456         only see struct stat64.
62458 2009-10-30  Eric Blake  <ebb9@byu.net>
62460         exclude: make more robust
62461         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62462         rather than masking a coding bug.
62463         Suggested by Bruno Haible.
62465 2009-10-30  Jim Meyering  <meyering@redhat.com>
62467         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62468         Rather than putting #!/usr/bin/perl on the first line,
62469         start with a variant of what's recommended by "man perlrun" that
62470         invokes the first "perl" program from your shell's search path.
62471         * build-aux/gitlog-to-changelog: Replace #!... as above.
62472         Add a "Local Variables" perl mode setting.
62473         Prompted by a patch from Ludovic Courtès.
62474         Improved by Eric Blake.
62475         * build-aux/useless-if-before-free: Likewise.
62476         * build-aux/announce-gen: Likewise.
62477         * build-aux/update-copyright: Likewise.
62479 2009-10-29  Eric Blake  <ebb9@byu.net>
62481         filenamecat-lgpl: adjust clients
62482         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62483         filenamecat.
62484         * modules/renameat (Depends-on): Likewise.
62486         filenamecat: split into filenamecat-lgpl
62487         * modules/filenamecat-lgpl: New module.
62488         * modules/filenamecat (Files): Move library-safe files into
62489         filenamecat-lgpl.
62490         (Depends-on): Add filenamecat-lgpl.
62491         (configure.ac): Declare witness.
62492         * lib/filenamecat.h (file_name_concat): Only declare when using
62493         GPL module.
62494         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62495         Move...
62496         * lib/filenamecat-lgpl.c: ...into new file.
62497         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62498         (gl_FILE_NAME_CONCAT): Use it.
62499         * MODULES.html.sh (File system functions): Mention new module.
62501         argp: avoid memory leak
62502         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62503         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62504         base_name, since the latter malloc()s and can call exit().
62505         Leak introduced 2006-07-03.
62507         dirname-lgpl: adjust clients that don't need full dirname
62508         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62509         * modules/filenamecat (Depends-on): Likewise.
62510         * modules/linkat (Depends-on): Likewise.
62511         * modules/mkancesdirs (Depends-on): Likewise.
62512         * modules/mkdir (Depends-on): Likewise.
62513         * modules/openat (Depends-on): Likewise.
62514         * modules/savewd (Depends-on): Likewise.
62515         * modules/rename (Depends-on): Likewise.
62516         (License): Relax license.
62517         * modules/mkdir-tests (Depends-on): Drop progname.
62518         (Makefile.am): Delete unneeded LDADD.
62519         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62521         dirname: split into dirname-lgpl
62522         * modules/dirname-lgpl: New module.
62523         * modules/dirname (Files): Move library-safe files into
62524         dirname-lgpl.
62525         (Depends-on): Add dirname-lgpl.
62526         (configure.ac): Declare witness.
62527         * modules/double-slash-root (License): Relax license.
62528         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62529         module.
62530         * lib/dirname.c (dir_len, mdir_name): Move...
62531         * lib/dirname-lgpl.c: ...into new file.
62532         * lib/basename.c (last_component, base_len): Move...
62533         * lib/basename-lgpl.c: ...into new file.
62534         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62535         (gl_DIRNAME): Use it.
62536         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62537         Mention new module.
62538         * modules/dirname-tests (Depends-on): Add progname.
62539         * tests/test-dirname.c (program_name): Delete.
62541         mkdir: make safe for libraries
62542         * modules/mkdir (Depends-on): Drop xalloc.
62543         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62544         exit.
62546         tests: avoid some compiler warnings
62547         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62548         literals.
62549         * tests/test-memchr.c (main): Avoid type mismatch.
62550         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62551         * tests/test-base64.c (main): Likewise.
62552         * tests/test-getdelim.c (main): Likewise.
62553         * tests/test-gethostname.c (main): Likewise.
62554         * tests/test-getline.c (main): Likewise.
62555         * tests/test-netinet_in.c (main): Likewise.
62556         * tests/test-select.c (open_server_socket, main): Likewise.
62557         * tests/test-select-stdin.c (main): Likewise.
62558         * tests/test-sockets.c (main): Likewise.
62559         * tests/test-strsignal.c (main): Likewise.
62560         * tests/test-sys_select.c (main): Likewise.
62561         * tests/test-sys_socket.c (main): Likewise.
62562         * tests/test-u64.c (main): Likewise.
62563         * tests/test-xfprintf-posix.c (main): Likewise.
62564         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62566         sockets: avoid compiler warning
62567         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62569         maint: detect usage(1) and other suspicious exits
62570         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62572 2009-10-29  Jim Meyering  <meyering@redhat.com>
62574         timespec: long-to-int truncation could make timespec_cmp malfunction
62575         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62576         a multiple of 2^32 nanoseconds as no difference.
62578 2009-10-28  Jim Meyering  <meyering@redhat.com>
62580         fprintftime: wrap macro code argument in "do {...} while(0)"
62581         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62582         cpy macro must be a statement that can be followed by a semicolon.
62583         Now that the else clause contains a comment and is hence longer
62584         than one line, I require curly braces.  That in turn requires
62585         that we wrap this code block in the standard do...while(0).
62587         fprintftime: remove stray semicolon from previous change
62588         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62590         fprintftime: avoid a warning about ignored fwrite return value
62591         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62592         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62593         that is unsafe.
62594         * modules/fprintftime (Depends-on): Add ignore-value.
62596         exclude: avoid an unwarranted warning
62597         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62599 2009-10-27  Eric Blake  <ebb9@byu.net>
62601         fseek: avoid compilation failure when fflush is replaced
62602         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62603         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62604         module is in use.
62605         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62606         module is not in use; since REPLACE_FSEEK worked otherwise.
62607         (GNULIB_FTELLO): Likewise for ftell.
62608         Reported by Ian Beckwith and others.
62610 2009-10-27  Bruno Haible  <bruno@clisp.org>
62612         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62613         Reported by Jim Meyering.
62615 2009-10-27  Jim Meyering  <jim@meyering.net>
62616             Bruno Haible  <bruno@clisp.org>
62618         Avoid warning despite dropping the return value of fwrite.
62619         * lib/unicodeio.c: Include ignore-value.h.
62620         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62621         * modules/unicodeio (Depends-on): Add ignore-value.
62623 2009-10-26  Eric Blake  <ebb9@byu.net>
62625         areadlinkat: fix fallback path
62626         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62627         pointer and zero.
62629 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62631         Use a better IO block size for modern systems
62632         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62633         * lib/md2.c: Likewise.
62634         * lib/md4.c: Likewise.
62635         * lib/md5.c: Likewise.
62636         * lib/sha1.c: Likewise.
62637         * lib/sha256.c: Likewise.
62638         * lib/sha512.c: Likewise.
62640 2009-10-22  Eric Blake  <ebb9@byu.net>
62642         tests: avoid several compiler warnings
62643         * tests/test-getcwd.c (main): Avoid buffer underflow.
62644         * tests/test-getdate.c (main): String literals are not safe with
62645         putenv, so use setenv.  Declare unused argument.
62646         * modules/getdate-tests (Depends-on): Add setenv.
62647         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62648         problems with string literals in char *.
62649         * tests/test-hash.c (main): Avoid shadowing declaration.
62650         (insert_new): Treat string literals as char const *.
62651         * tests/test-getopt.h (test_getopt): Likewise.
62652         (getopt_loop): Alter types to minimize casting elsewhere.
62653         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62654         (test_getopt_long_posix): Likewise.
62655         (do_getopt_long): Add wrapper to minimize casting.
62656         * tests/test-atexit.c (clear_temp_file): Use void.
62657         * tests/test-areadlink-with-size.c (main): Declare unused
62658         arguments.
62659         * tests/test-areadlink.c (main): Likewise.
62660         * tests/test-areadlinkat-with-size.c (main): Likewise.
62661         * tests/test-areadlinkat.c (main): Likewise.
62662         * tests/test-canonicalize-lgpl.c (main): Likewise.
62663         * tests/test-canonicalize.c (main): Likewise.
62664         * tests/test-dirent-safer.c (main): Likewise.
62665         * tests/test-dirname.c (main): Likewise.
62666         * tests/test-dup2.c (main): Likewise.
62667         * tests/test-fchdir.c (main): Likewise.
62668         * tests/test-fcntl-h.c (main): Likewise.
62669         * tests/test-fcntl-safer.c (main): Likewise.
62670         * tests/test-fdopendir.c (main): Likewise.
62671         * tests/test-fdutimensat.c (main): Likewise.
62672         * tests/test-fflush.c (main): Likewise.
62673         * tests/test-filenamecat.c (main): Likewise.
62674         * tests/test-filevercmp.c (main): Likewise.
62675         * tests/test-fopen-safer.c (main): Likewise.
62676         * tests/test-fopen.c (main): Likewise.
62677         * tests/test-fpending.c (main): Likewise.
62678         * tests/test-fpurge.c (main): Likewise.
62679         * tests/test-freading.c (main): Likewise.
62680         * tests/test-fstatat.c (main): Likewise.
62681         * tests/test-fsync.c (main): Likewise.
62682         * tests/test-futimens.c (main): Likewise.
62683         * tests/test-getndelim2.c (main): Likewise.
62684         * tests/test-gettimeofday.c (main): Likewise.
62685         * tests/test-getopt.c (main): Likewise.
62686         * tests/test-i-ring.c (main): Likewise.
62687         * tests/test-inttypes.c (main): Likewise.
62688         * tests/test-link.c (main): Likewise.
62689         * tests/test-lstat.c (main): Likewise.
62690         * tests/test-math.c (main): Likewise.
62691         * tests/test-md5.c (main): Likewise.
62692         * tests/test-memchr2.c (main): Likewise.
62693         * tests/test-memrchr.c (main): Likewise.
62694         * tests/test-mkdir.c (main): Likewise.
62695         * tests/test-mkdirat.c (main): Likewise.
62696         * tests/test-mkfifoat.c (main): Likewise.
62697         * tests/test-open.c (main): Likewise.
62698         * tests/test-openat-safer.c (main): Likewise.
62699         * tests/test-openat.c (main): Likewise.
62700         * tests/test-quotearg.c (main): Likewise.
62701         * tests/test-rawmemchr.c (main): Likewise.
62702         * tests/test-readlink.c (main): Likewise.
62703         * tests/test-remove.c (main): Likewise.
62704         * tests/test-rename.c (main): Likewise.
62705         * tests/test-renameat.c (main): Likewise.
62706         * tests/test-rmdir.c (main): Likewise.
62707         * tests/test-sha1.c (main): Likewise.
62708         * tests/test-signal.c (main): Likewise.
62709         * tests/test-sigaction.c (main): Likewise.
62710         * tests/test-stat.c (main): Likewise.
62711         * tests/test-stat-time.c (main): Likewise.
62712         * tests/test-stddef.c (main): Likewise.
62713         * tests/test-stdint.c (main): Likewise.
62714         * tests/test-stdio.c (main): Likewise.
62715         * tests/test-stdlib.c (main): Likewise.
62716         * tests/test-strchrnul.c (main): Likewise.
62717         * tests/test-strerror.c (main): Likewise.
62718         * tests/test-string.c (main): Likewise.
62719         * tests/test-strtod.c (main): Likewise.
62720         * tests/test-strverscmp.c (main): Likewise.
62721         * tests/test-symlink.c (main): Likewise.
62722         * tests/test-symlinkat.c (main): Likewise.
62723         * tests/test-sys_stat.c (main): Likewise.
62724         * tests/test-sys_time.c (main): Likewise.
62725         * tests/test-time.c (main): Likewise.
62726         * tests/test-unistd.c (main): Likewise.
62727         * tests/test-unlink.c (main): Likewise.
62728         * tests/test-unlinkat.c (main): Likewise.
62729         * tests/test-utimens.c (main): Likewise.
62730         * tests/test-utimensat.c (main): Likewise.
62731         * tests/test-version-etc.c (main): Likewise.
62732         * tests/test-wchar.c (main): Likewise.
62733         * tests/test-wctype.c (main): Likewise.
62734         * tests/test-xprintf-posix.c (main): Likewise.
62735         * tests/test-posixtm.c (main): Likewise.
62736         (STREQ): Delete unused macro.
62737         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62738         shadowed variables.
62739         * tests/test-memchr.c (main): Likewise.
62741 2009-10-21  Eric Blake  <ebb9@byu.net>
62743         areadlinkat: avoid failure on older glibc
62744         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62745         rather than mis-comparing 0 against FUNC_RESULT of char*.
62747 2009-10-21  Bruno Haible  <bruno@clisp.org>
62749         * modules/stpncpy (License): Relicense under LGPLv2+.
62750         Reported by David Lutterkort <lutter@redhat.com>.
62752 2009-10-20  Eric Blake  <ebb9@byu.net>
62754         utimensat: work around Solaris 9 bug
62755         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62756         has trailing slash bugs.
62757         * tests/test-lutimens.h (test_lutimens): Enhance test.
62758         * tests/test-utimens.h (test_utimens): Likewise.
62759         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62760         * doc/posix-functions/utimes.texi (utimes): Likewise.
62761         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62762         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62763         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62764         * doc/posix-functions/futimens.texi (futimens): Likewise.
62766         fdutimensat: new module
62767         * modules/fdutimensat: New file.
62768         * lib/fdutimensat.c (fdutimensat): Likewise.
62769         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62770         * MODULES.html.sh (File system functions): Mention module.
62771         * modules/fdutimensat-tests: New test.
62772         * tests/test-fdutimensat.c: Likewise.
62774         doc: regenerate INSTALL
62775         * doc/INSTALL: Reflect recent autoconf update.
62776         * doc/INSTALL.ISO: Likewise.
62777         * doc/INSTALL.UTF-8: Likewise.
62779 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62781         acl: warn if ACL support is not detected
62782         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62784 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62786         * lib/nproc.h: Add extern "C" block for C++.
62788 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62789             Bruno Haible  <bruno@clisp.org>
62791         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62792         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62793         * doc/posix-functions/isalpha.texi: Likewise.
62794         * doc/posix-functions/isblank.texi: Likewise.
62795         * doc/posix-functions/iscntrl.texi: Likewise.
62796         * doc/posix-functions/isdigit.texi: Likewise.
62797         * doc/posix-functions/isgraph.texi: Likewise.
62798         * doc/posix-functions/islower.texi: Likewise.
62799         * doc/posix-functions/isprint.texi: Likewise.
62800         * doc/posix-functions/ispunct.texi: Likewise.
62801         * doc/posix-functions/isspace.texi: Likewise.
62802         * doc/posix-functions/isupper.texi: Likewise.
62803         * doc/posix-functions/isxdigit.texi: Likewise.
62805 2009-10-18  Bruno Haible  <bruno@clisp.org>
62807         Tests for module 'isblank'.
62808         * modules/isblank-tests: New file.
62809         * tests/test-isblank.c: New file.
62811         New module 'isblank'.
62812         * lib/isblank.c: New file.
62813         * m4/isblank.m4: New file.
62814         * modules/isblank: New file.
62815         * doc/posix-functions/isblank.texi: Mention the new module.
62817 2009-10-18  Bruno Haible  <bruno@clisp.org>
62819         New module 'ctype'.
62820         * lib/ctype.in.h: New file.
62821         * m4/ctype.m4: New file.
62822         * modules/ctype: New file.
62823         * doc/posix-headers/ctype.texi: Mention the new module.
62825 2009-10-18  Jim Meyering  <meyering@redhat.com>
62827         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62828         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62829         right after its initialization, rather than farther down.
62830         Keeping these in close proximity makes it easier to ensure
62831         that each such variable is initialized.  E.g.,
62833             LIB_CLOCK_GETTIME=
62834             AC_SUBST([LIB_CLOCK_GETTIME])
62836         This change also increments these serial numbers.
62837         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62838         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62841 2009-10-18  Bruno Haible  <bruno@clisp.org>
62843         Don't let environment variables perturb build.
62844         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62845         (gl_PREREQ_GETHRXTIME): ... not here.
62847 2009-10-18  Bruno Haible  <bruno@clisp.org>
62849         Avoid symlink attack in localcharset module.
62850         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62851         (O_NOFOLLOW): Define fallback.
62852         (get_charset_aliases): Don't open the file if it is a symbolic link.
62853         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62854         gl_FCNTL_H.
62855         (gl_FCNTL_H): Require it.
62856         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62857         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62858         Reported by Fergal Glynn <fglynn@veracode.com>.
62860 2009-10-18  Bruno Haible  <bruno@clisp.org>
62862         Implement nproc for mingw.
62863         * lib/nproc.c: Include <windows.h>
62864         (num_processors): On native Windows platforms, try GetSystemInfo.
62866 2009-10-18  Bruno Haible  <bruno@clisp.org>
62868         Implement nproc for IRIX.
62869         * lib/nproc.c: Include <sys/sysmp.h>.
62870         (num_processors): On IRIX systems, try sysmp.
62871         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62873 2009-10-18  Bruno Haible  <bruno@clisp.org>
62875         Implement nproc for HP-UX.
62876         * lib/nproc.c: Include <sys/pstat.h>
62877         (num_processors): On HP-UX systems, try pstat_getdynamic.
62878         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62879         pstat_getdynamic.
62881 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62882             Bruno Haible  <bruno@clisp.org>
62884         Implement nproc for NetBSD, OpenBSD.
62885         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62886         (ARRAY_SIZE): New macro.
62887         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62888         * m4/nproc.m4: New file.
62889         * modules/nproc (Files): Add m4/nproc.m4.
62890         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62891         (Makefile.am): Instead, augment lib_SOURCES.
62893 2009-10-18  Bruno Haible  <bruno@clisp.org>
62895         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
62896         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
62897         sys/param.h.
62899 2009-10-16  Eric Blake  <ebb9@byu.net>
62901         utimensat: new module
62902         * modules/utimensat: New file.
62903         * lib/utimensat.c (utimensat): Likewise.
62904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62905         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
62906         so we can work around Linux bugs.
62907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62908         * modules/sys_stat (Makefile.am): Substitute them.
62909         * lib/sys_stat.in.h (utimensat): Declare it.
62910         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62911         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62912         * modules/utimensat-tests: New test.
62913         * tests/test-utimensat.c: Likewise.
62915         utimens: let lutimens work on non-symlinks
62916         * lib/utimens.c (lutimens): Fall back to utimens rather than
62917         failing with ENOSYS, when file is not a symlink.
62918         (utimens): Reduce redirection.
62919         * tests/test-lutimens.h (test_lutimens): Update test to cover
62920         non-symlinks.
62921         * tests/test-utimens.h (test_utimens): Update test to cover
62922         symlinks.
62923         * tests/test-utimens.c (main): Update caller.
62925         utimens: cache whether utimensat syscall works
62926         * lib/utimens.c (utimensat_works_really): New cache variable.
62927         (fdutimens, lutimens): Use it to avoid failing syscall.
62929         test-stat-time, test-utimens: improve portability
62930         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
62931         ext4 on alpha, and for cygwin.
62932         * tests/test-utimens-common.h: New file.
62933         (nap): Factor delays into single function.
62934         * tests/test-lutimens.h (test_lutimens): Use new header.
62935         * tests/test-futimens.h (test_futimens): Likewise.
62936         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
62937         timestamps to occur from same machine, as was done previously for
62938         test_utimens.
62939         * modules/utimens-tests (Files): Ship new file.
62940         * modules/futimens-tests (Files): Likewise.
62941         Reported in part by Jim Meyering.
62943         sys_stat: sort replacement declarations
62944         * lib/sys_stat.in.h: Sort declarations.
62945         * lib/futimens.c (futimens): Fix typo.
62947 2009-10-15  Jim Meyering  <meyering@redhat.com>
62949         don't let environment settings perturb build
62950         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
62951         could cause a configure-time and/or build-time malfunction.
62952         Typically, a configure-time function-in-library test is performed
62953         via code like this:
62955           LIB_VAR=
62956           AC_SUBST([LIB_VAR])
62957           prefix_saved_LIBS=$LIBS
62958             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
62959                        [test "$ac_cv_search_FUNC" = "none required" ||
62960                         LIB_VAR=$ac_cv_search_FUNC])
62961           LIBS=$prefix_saved_LIBS
62963         However, in each of the files affected by this change, the LIB_VAR=
62964         initialization was omitted.  Thus, when set in the environment, its
62965         value would propagate into generated Makefiles when FUNC is not found
62966         in LIB_NAME.
62967         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
62968         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62971 2009-10-14  Eric Blake  <ebb9@byu.net>
62973         fchdir: avoid infinite recursion in mingw
62974         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
62975         recursing.
62977         test-stat-time: port to mingw
62978         * tests/test-stat-time.c (force_unlink): Return a value.
62979         (test_ctime) [W32]: Fix compilation error.
62980         (nap): Don't call usleep with too large an argument.  Use
62981         force_unlink.
62982         * doc/pastposix-functions/usleep.texi (usleep): Document the
62983         portability issue.
62985 2009-10-13  Jim Meyering  <meyering@redhat.com>
62987         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62988         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
62989         * modules/pipe-filter-ii: Likewise.
62990         * modules/sys_socket-tests: Likewise.
62991         * modules/tsearch-tests: Likewise.
62992         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
62993         (check): Depend on it.
62995 2009-10-12  Eric Blake  <ebb9@byu.net>
62997         utimens-tests: port to NFS file systems
62998         * tests/test-utimens.h (test_utimens): Refactor utimecmp
62999         comparisons to avoid spurious failures from timestamp drift
63000         between NFS machines.
63002 2009-10-12  Eric Blake  <ebb9@byu.net>
63004         stat-time-tests: minor cleanups
63005         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63006         * tests/test-stat-time.c (nap): Separate assignment from call.
63007         Suggested by Paolo Bonzini and Bruno Haible.
63009         sys_stat: guarantee struct timespec
63010         * lib/sys_stat.in.h (includes): Always include <time.h>
63011         * modules/sys_stat (Depends-on): Add time.
63012         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63013         mode_t permission values.
63014         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63015         get at subsecond timestamps.
63017 2009-10-10  Eric Blake  <ebb9@byu.net>
63019         futimens: new module
63020         * modules/futimens: New file.
63021         * lib/futimens.c (futimens): Likewise.
63022         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63023         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63024         we can work around Linux bugs.
63025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63026         * modules/sys_stat (Makefile.am): Substitute them.
63027         * lib/sys_stat.in.h (futimens): Declare it.
63028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63029         * doc/posix-functions/futimens.texi (futimens): Likewise.
63030         * modules/futimens-tests: New test.
63031         * tests/test-futimens.c: Likewise.
63033         utimens: introduce fdutimens
63034         * lib/utimens.h (fdutimens): New prototype.
63035         * lib/utimens.c (gl_futimens): Move guts...
63036         (fdutimens): ...to new interface.
63037         * tests/test-utimens.c (do_fdutimens): Use it.
63039         utimens: add UTIME_NOW and UTIME_OMIT support
63040         * lib/utimens.c (validate_timespec, update_timespec): New helper
63041         functions.
63042         (gl_futimens, lutimens): Use them.
63043         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63044         stdbool, sys_stat.
63045         (Link): Mention resulting library dependency.
63046         * modules/utimecmp (Link): Likewise.
63047         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63048         (Makefile.am): Pick up library dependency.
63049         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63050         definition.
63051         * tests/test-sys_stat.c: Test the definitions.
63052         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63053         * NEWS: Document library dependency.
63055         utimecmp: support symlink timestamps
63056         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63057         hashing when possible.  Use pathconf when available.
63058         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63059         * modules/utimecmp (Depends-on): Add lstat.
63061         utimens: add lutimens interface
63062         * lib/utimens.c (lutimens): New function.
63063         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63064         * lib/utimens.h (lutimens): Declare new interface.
63065         * tests/test-utimens.c (main): Enhance test.
63066         * tests/test-lutimens.h (test_lutimens): New file.
63067         * modules/utimens-tests (Files): Distribute it.
63068         (Depends-on): Add symlink.
63069         (configure.ac): Check for usleep.
63071         utimens: validate futimens usage
63072         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63073         fewer syscalls on failure later on.  Avoid compiler warning on
63074         mingw.
63075         * modules/utimens (Depends-on): Add dup2.
63077         utimens: add test
63078         * modules/utimens-tests: New test.
63079         * tests/test-utimens.h: New file.
63080         * tests/test-futimens.h: Likewise.
63081         * tests/test-utimens.c: Likewise.
63083         doc: mention timestamp portability issues
63084         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63085         instead.
63086         * doc/posix-functions/utime.texi (utime): Likewise.
63087         * doc/posix-functions/utimes.texi (utimes): Likewise.
63088         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63089         instead.
63090         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63091         module.
63092         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63093         Mention weakness with symlink timestamps.
63094         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63095         to utimensat/futimens instead.
63096         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63098         test-dup2: enhance test
63099         * tests/test-dup2.c (main): Also check AT_FDCWD.
63101         test-stat-time: avoid more spurious failures
63102         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63103         xfs; and avoid race if the two timestamps cross quantization edge.
63105         relocatable: prefer 'file system' over 'filesystem'
63106         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63107         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63108         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63109         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63110         * lib/relocatable.c (compute_curr_prefix): Likewise.
63112 2009-10-10  Jim Meyering  <meyering@redhat.com>
63114         stat-time-tests: check for the usleep function
63115         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63117 2009-10-10  Bruno Haible  <bruno@clisp.org>
63119         * modules/xnanosleep: Put the Link section after the Include section.
63121 2009-10-09  Eric Blake  <ebb9@byu.net>
63123         dup2: work around FreeBSD 6.1 bug
63124         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63125         * doc/posix-functions/dup2.texi (dup2): Document it.
63126         Reported by Nelson H. F. Beebe and Jim Meyering.
63128         test-stat-time: port to buggy NFS clients
63129         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63130         (test_ctime): Also skip test if mtime and ctime are skewed.
63132         maint: prefer 'file system' over 'filesystem'
63133         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63134         * doc/posix-functions/lstat.texi (lstat): Likewise.
63135         * lib/file-has-acl.c (file_has_acl): Likewise.
63136         * lib/fwriteerror.c [TEST]: Likewise.
63137         * tests/test-areadlink.h (test_areadlink): Likewise.
63138         * tests/test-areadlinkat-with-size.c (main): Likewise.
63139         * tests/test-areadlinkat.c (main): Likewise.
63140         * tests/test-canonicalize-lgpl.c (main): Likewise.
63141         * tests/test-canonicalize.c (main): Likewise.
63142         * tests/test-fstatat.c (main): Likewise.
63143         * tests/test-linkat.c (main): Likewise.
63144         * tests/test-lstat.h (test_lstat_func): Likewise.
63145         * tests/test-mkdir.h (test_mkdir): Likewise.
63146         * tests/test-readlink.h (test_readlink): Likewise.
63147         * tests/test-remove.c (main): Likewise.
63148         * tests/test-rename.h (test_rename): Likewise.
63149         * tests/test-renameat.c (main): Likewise.
63150         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63151         * tests/test-symlink.h (test_symlink): Likewise.
63152         * tests/test-symlinkat.c (main): Likewise.
63153         * tests/test-unlink.h (test_unlink_func): Likewise.
63154         * tests/test-unlinkat.c (main): Likewise.
63156         maint: make realtime library usage explicit
63157         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63158         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63159         * modules/settime (Link): Likewise.
63160         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63162         test-stat-time: speed up execution
63163         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63164         warning on mingw.
63165         (nap): New helper function.
63166         (prepare_test): Use it to reduce sleep time.
63167         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63168         execution.
63169         * modules/stat-time-tests (configure.ac): Check for usleep.
63171 2009-10-09  Jim Meyering  <meyering@redhat.com>
63173         selinux-h: always use getfilecon wrappers
63174         * lib/getfilecon.c: New file.
63175         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63176         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63177         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63178         (fgetfilecon): Provide a stub.
63179         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63180         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63181         file unconditionally.
63182         When <selinux/selinux.h> is found, arrange to use wrappers.
63183         * modules/selinux-h (Files): Add getfilecon.c.
63184         (Makefile.am): Substitute include-next-related bits
63185         into the now-always-generated selinux/selinux.h file.
63186         * doc/glibc-functions/lgetfilecon.texi: New file.
63187         * doc/glibc-functions/fgetfilecon.texi: New file.
63188         * doc/glibc-functions/getfilecon.texi: New file.
63189         * doc/glibc-functions/getfilecon-desc.texi: New file.
63190         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63191         which to pull in the new files.
63192         * MODULES.html.sh (Misc): Add selinux-h.
63194 2009-10-08  Jim Meyering  <meyering@redhat.com>
63196         unistd: fix comment typo
63197         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63199 2009-10-08  Eric Blake  <ebb9@byu.net>
63201         areadlink: use SIZE_MAX consistently
63202         * modules/areadlink (Depends-on): Add stdint.
63203         * modules/areadlink-with-size (Depends-on): Likewise.
63204         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63205         gives NULL; drop sys/types, since unistd gives size_t; and add
63206         stdint for SIZE_MAX.
63207         (SIZE_MAX): Rely on headers.
63208         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63209         and add stdint.
63210         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63211         (SIZE_MAX): Likewise.
63212         (INITIAL_BUF_SIZE): Turn into enum.
63213         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63215 2009-10-08  Jim Meyering  <meyering@redhat.com>
63217         areadlinkat: avoid compilation failure
63218         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63219         Fix typo in comment.
63221 2009-10-07  Eric Blake  <ebb9@byu.net>
63223         areadlinkat-with-size: new module
63224         * modules/areadlinkat-with-size: New module.
63225         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63226         * lib/areadlink.h (areadlinkat): Declare it.
63227         * MODULES.html.sh (File system functions): Mention it.
63228         * modules/areadlinkat-with-size-tests: New test.
63229         * tests/test-areadlinkat-with-size.c: New file.
63231         xreadlinkat: new module
63232         * modules/xreadlinkat: New module.
63233         * lib/xreadlinkat.c (xreadlinkat): New file.
63234         * lib/xreadlink.h (xreadlinkat): Declare it.
63235         * MODULES.html.sh (File system functions): Mention it.
63237         areadlinkat: new module
63238         * lib/at-func.c (FUNC_FAIL): New define.
63239         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63240         * modules/areadlinkat: New module.
63241         * lib/linkat.c (areadlinkat): Move...
63242         * lib/areadlinkat.c (areadlinkat): ...to new file.
63243         * lib/areadlink.h (areadlinkat): Declare it.
63244         * modules/linkat (Depends-on): Add areadlinkat.
63245         * MODULES.html.sh (File system functions): Mention it.
63246         * modules/areadlinkat-tests: New test.
63247         * tests/test-areadlinkat.c: New file.
63249         areadlink, areadlink-with-size: add tests
63250         * modules/areadlink-tests: New test.
63251         * modules/areadlink-with-size-tests: Likewise.
63252         * tests/test-areadlink.h: New file.
63253         * tests/test-areadlink.c: Likewise.
63254         * tests/test-areadlink-with-size.c: Likewise.
63256         maint: minor cleanups
63257         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63258         _UNUSED_PARAMETER_ instead.
63259         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63260         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63261         * modules/linkat-tests (Files): Distribute test-link.h.
63263         openat, utimens: whitespace cleanup
63264         * lib/openat.c: Prefer space throughout, rather than mix of 8
63265         spaces vs. tabs.
63266         * lib/at-func.c: Likewise.
63267         * lib/utimens.c: Likewise.
63269         openat: avoid using wrong fd
63270         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63271         working directory chooses same fd.
63272         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63274         mkdir, mkdirat: fix cygwin 1.5.x bug
63275         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63276         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63277         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63278         bug.
63279         (gl_PREREQ_MKDIR): Delete unused macro.
63280         * modules/mkdir (Files): Track file rename.
63281         (configure.ac): Update macro name.
63282         * modules/openat (Depends-on): Add mkdir.
63283         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63285         mkdir, mkdirat: add tests
63286         * modules/mkdir-tests: New test.
63287         * tests/test-mkdir.h: New file.
63288         * tests/test-mkdir.c: Likewise.
63289         * tests/test-mkdirat.c: Likewise.
63290         * modules/openat-tests (Files): Add new files.
63291         (Makefile.am): Run new test.
63293 2009-10-06  Eric Blake  <ebb9@byu.net>
63295         doc: tweak *at function documentation
63296         * doc/posix-functions/faccessat.texi (faccessat): Mention
63297         known issue with replacement.
63298         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63299         * doc/posix-functions/linkat.texi (linkat): Likewise.
63300         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63301         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63302         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63303         * doc/posix-functions/renameat.texi (renameat): Likewise.
63304         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63306         openat: fix GNU/Hurd bug in unlinkat
63307         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63308         broken.
63309         * doc/posix-functions/unlink.texi (unlink): Document this.
63310         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63312         fdopendir: fix GNU/Hurd bug
63313         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63314         allowing non-directory fds.
63315         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63317         * modules/dirent (Makefile.am): Substitute it.
63318         * lib/dirent.in.h (fdopendir): Declare replacement.
63319         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63320         * tests/test-fdopendir.c (main): Test something other than
63321         /dev/null, since on Hurd that behaves like a directory.
63323         test-symlink: port to GNU/Hurd
63324         * tests/test-symlink.h (test_symlink): Relax expected errno.
63326         doc: tweak more cygwin information
63327         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63328         now compatible with glibc.
63329         * doc/posix-functions/getopt.texi (getopt): Likewise.
63331         getopt-gnu: add another test
63332         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63333         guarantee behavior relied on by m4.
63334         * tests/test-getopt.c (main): Use it.
63335         * modules/getopt-posix-tests (Depends-on): Add setenv.
63336         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63338         getopt: fix compilation on darwin
63339         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63340         include.
63341         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63342         Reported by Ludovic Courtès.
63344 2009-10-06  Bruno Haible  <bruno@clisp.org>
63346         * modules/size_max (Description): Discourage its use.
63347         Reported by Simon Josefsson.
63349 2009-10-06  Jim Meyering  <meyering@redhat.com>
63351         linkat: avoid compilation failure
63352         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63354 2009-10-05  Eric Blake  <ebb9@byu.net>
63356         linkat: support Linux 2.6.17
63357         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63358         linkat on Linux, but allow cache variable override.
63359         * lib/linkat.c (rpl_linkat): Define override.
63360         * modules/linkat (Depends-on): Add symlinkat.
63361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63362         * modules/unistd (Makefile.am): Substitute it.
63363         * lib/unistd.in.h (linkat): Declare replacement.
63364         Reported by Pádraig Brady.
63366         quotearg: port test to systems with C.UTF-8 locale
63367         * tests/test-quotearg.c (struct result_strings): Add another
63368         member, differentiating between C.ASCII and C.UTF-8 handling.
63369         (compare_strings): Add parameter.
63370         (main): Adjust all callers.
63372         getopt: avoid clash with FreeBSD _getopt_internal
63373         * lib/getopt.in.h (_getopt_internal): Override the name.
63374         * lib/getopt_int.h (includes): Pick up any overrides.
63375         Reported by Reuben Thomas.
63377         hash: allow C89 compilation
63378         * lib/hash.c (check_tuning): Move declaration before statement.
63379         Reported by Reuben Thomas.
63381 2009-10-05  Karl Berry  <karl@gnu.org>
63383         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63385 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63386             Bruno Haible  <bruno@clisp.org>
63388         * lib/uname.c (uname): Use a table-driven algorithm to compute
63389         Windows NT versions.
63391 2009-10-04  Bruno Haible  <bruno@clisp.org>
63393         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63394         program_invocation_short_name.
63395         * modules/progname (configure.ac): Test for presence of
63396         program_invocation_short_name.
63397         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63399 2009-10-04  Bruno Haible  <bruno@clisp.org>
63401         * lib/progname.c (set_program_name): Fix comment.
63402         Reported by Jim Meyering.
63404 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63405             Bruno Haible  <bruno@clisp.org>
63407         * lib/uname.c: Include <string.h>.
63408         (uname): Do only one call to GetVersionEx in the common case.
63410 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63411             Bruno Haible  <bruno@clisp.org>
63413         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63414         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63415         (uname): Add support for Windows CE and various non-x86 CPU types.
63417 2009-10-03  Bruno Haible  <bruno@clisp.org>
63419         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63420         invocation to tests/configure.ac.
63421         Reported by Ian Beckwith <ianb@erislabs.net>.
63423 2009-10-02  Eric Blake  <ebb9@byu.net>
63425         fchdir: avoid compiler warning
63426         * lib/fchdir.c (canonicalize_file_name)
63427         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63429         test-open: support mingw errno values
63430         * tests/test-open.h (test_open): Relax test.
63431         * tests/test-fopen.h (test_fopen): Likewise.
63432         * tests/test-openat-safer.c (main): Likewise.
63434         open: fix opening directory on mingw
63435         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63437         test-open: on GNU/Hurd, /dev/null is a directory
63438         * tests/test-fopen.h (main): Rename...
63439         (test_fopen): ...to this.  Use a guaranteed non-directory when
63440         confirming open behavior on trailing slash.
63441         * tests/test-openat-safer.c (main): Likewise.
63442         * tests/test-open.h (main): Likewise....
63443         (test_open): ...to this.
63444         * tests/test-fopen.c (main): Adjust caller.
63445         * tests/test-fopen-safer.c (main): Likewise.
63446         * tests/test-open.c (main): Likewise.
63447         * tests/test-fcntl-safer.c (main): Likewise.
63448         Reported by Samuel Thibault.
63450         rename, fchdir: don't ignore chdir failure
63451         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63452         * lib/rename.c (rpl_rename) [W32]: Likewise.
63453         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63454         an empty destination directory if source cannot be renamed,
63455         although there is still possibility for failure.
63456         * doc/posix-functions/rename.texi (rename): Document the race.
63457         Reported by Jim Meyering.
63459         maint: cleanup whitespace in recent commits
63460         * lib/rename.c (rpl_rename): Remove tabs.
63461         * tests/test-link.h (test_link): Likewise.
63462         * lib/fchdir.c (get_name): Likewise.
63463         Reported by Jim Meyering.
63465 2009-10-02  Ben Pfaff  <blp@gnu.org>
63467         relocatable-prog-wrapper: Add missing dependency on
63468         double-slash-root.
63469         * modules/relocatable-prog-wrapper: Add dependency.
63470         Reported by Ian Beckwith <ianb@erislabs.net>.
63472 2009-10-02  Eric Blake  <ebb9@byu.net>
63474         renameat: fix Solaris bugs
63475         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63476         needed fixing.
63477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63478         * modules/stdio (Makefile.am): Substitute it.
63479         * lib/stdio.in.h (renameat): Declare replacement.
63480         * lib/renameat.c (rpl_renameat): Implement fix.
63482         renameat: new module
63483         * modules/renameat: New file.
63484         * lib/renameat.c (renameat): Likewise.
63485         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63487         * modules/stdio (Makefile.am): Substitute them.
63488         * lib/stdio.in.h (renameat): Declare it.
63489         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63490         * doc/posix-functions/renameat.texi (renameat): Likewise.
63491         * modules/renameat-tests: New test.
63492         * tests/test-renameat.c: Likewise.
63494         rename: fix mingw bugs
63495         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63496         directory overwrite bugs.
63498         rename: fix another cygwin 1.5 bug
63499         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63500         checks.
63501         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63502         unnecessary cygwin workarounds.  Also work around bug with moving
63503         full directory onto an empty one.
63504         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63506         rename-dest-slash: merge into rename module
63507         * modules/rename-dest-slash (Status): Mark obsolete.
63508         (Depends-on): Add rename.
63509         (Files): Let rename do it all.
63510         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63511         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63512         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63513         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63514         * lib/rename.c (rpl_rename): Update comments.
63516         rename: fix cygwin 1.5.x bugs
63517         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63518         * lib/rename.c (rpl_rename): Work around them.
63519         * modules/rename (Depends-on): Add same-inode.
63521         rename: fix Solaris 10 bug
63522         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63523         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63524         was the only bug.
63526         rename: fix Solaris 9 bug
63527         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63528         on non-directory.  Avoid calling exit.
63529         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63530         strdup.
63531         * modules/rename-tests (Depends-on): Drop lstat.
63532         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63533         (gl_PREREQ_RENAME): Delete unused macro.
63535         rename-dest-slash: fix NetBSD bug
63536         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63537         links.
63538         * modules/rename-dest-slash (Depends-on): Add same-inode.
63540         rename-tests: new test, exposes several platform bugs
63541         * modules/rename-tests: New file.
63542         * tests/test-rename.h: Likewise.
63543         * tests/test-rename.c: Likewise.
63544         * doc/posix-functions/rename.texi (rename): Improve documentation,
63545         including bugs that will eventually be fixed in gnulib.
63547 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63549         * lib/uname.c: Include <stdlib.h>
63550         (uname): Assume version info is available.
63552 2009-10-02  Jim Meyering  <meyering@redhat.com>
63554         gnu-web-doc-update: correct --help output
63555         * build-aux/gnu-web-doc-update: Make --help output relevant.
63557         gnu-web-doc-update: add standard options
63558         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63560         gnu-web-doc-update: New module.
63561         Use this script to automatically update the on-line web documentation
63562         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63563         * modules/gnu-web-doc-update: New file, from coreutils.
63564         * build-aux/gnu-web-doc-update: New script.
63566 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63568         link: LoadLibrary is not needed.
63569         * lib/link.c: Use GetModuleHandle.
63571 2009-10-01  Eric Blake  <ebb9@byu.net>
63573         getopt: bump serial number
63574         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63575         change.
63577         tests: tighten link, rmdir, and remove tests
63578         * tests/test-link.h (includes): No need to use <config.h> here.
63579         Clean up if directory hard link was created, otherwise test for
63580         trailing '.'.
63581         * tests/test-linkat.c (main): Simplify.
63582         * tests/test-remove.c (main): Enhance test for trailing '.'.
63583         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63585 2009-10-01  Jim Meyering  <meyering@redhat.com>
63587         maint.mk: requiring "make major" was annoying, for a "minor" release.
63588         What is intended is "stable", to contrast with alpha and beta,
63589         so require "make stable", not "make major".
63590         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63591         (get_tool_versions): Likewise.
63592         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63594 2009-09-30  Ben Pfaff  <blp@gnu.org>
63596         Fix broken build of replacement for Windows tmpfile().
63597         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63598         flags argument added along with the 'mkostemp' module.
63600 2009-09-28  Bruno Haible  <bruno@clisp.org>
63602         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63603         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63604         to 'remove_elt'.
63605         (gl_list_remove): Update.
63606         * lib/gl_list.c (gl_list_remove): Update.
63607         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63608         to 'remove_elt'.
63609         (gl_oset_remove): Update.
63610         * lib/gl_list.c (gl_oset_remove): Update.
63611         Reported by Eric Blake.
63613 2009-09-28  Eric Blake  <ebb9@byu.net>
63615         doc: mention yet more cygwin 1.7 status
63616         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63617         cygwin.
63618         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63619         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63621         argp: fix test failure
63622         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63623         that are not upper-case.  Pass correct range to tolower.
63625 2009-09-27  Jim Meyering  <meyering@redhat.com>
63627         test-yesno: work around sparc-dash here-document infelicity
63628         Without this change, the literal \177 byte in a here document
63629         would make dash 0.5.5.1-3 access uninitialized memory.
63630         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63631         Instead, use a marker, "@", and filter through tr to create the desired
63632         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63634 2009-09-27  Bruno Haible  <bruno@clisp.org>
63636         Disable untested support for new flavours of ACLs on AIX.
63637         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63638         progress.
63639         * lib/set-mode-acl.c (qset_acl): Likewise.
63641 2008-12-07  Bruno Haible  <bruno@clisp.org>
63643         Add support for new flavours of ACLs on AIX. (Untested.)
63644         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63645         (file_has_acl): Add support for newer AIX.
63646         * lib/set-mode-acl.c (qset_acl): Likewise.
63647         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63648         Rainer Tammer <tammer@tammer.net>.
63650 2009-09-26  Eric Blake  <ebb9@byu.net>
63652         argp: fix compilation of getopt
63653         * lib/getopt.in.h (includes): Use different guard than glibc.
63654         Reported by Sergey Poznyakoff.
63656         doc: mention more cygwin 1.7 status
63657         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63658         bug.
63659         * doc/posix-functions/execl.texi (execl): Likewise.
63660         * doc/posix-functions/execle.texi (execle): Likewise.
63661         * doc/posix-functions/execlp.texi (execlp): Likewise.
63662         * doc/posix-functions/execv.texi (execv): Likewise.
63663         * doc/posix-functions/execve.texi (execve): Likewise.
63664         * doc/posix-functions/execvp.texi (execvp): Likewise.
63665         * doc/glibc-functions/canonicalize_file_name.texi
63666         (canonicalize_file_name): Cygwin 1.7 now provides this.
63667         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63668         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63669         on AT_SYMLINK_NOFOLLOW.
63671 2009-09-24  Eric Blake  <ebb9@byu.net>
63673         test-linkat: make test more robust
63674         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63676         getopt: fix inclusion guards for cygwin
63677         * modules/getopt-posix (Depends-on): Add include-next.
63678         (Makefile.am): Substitute more items in replacement header.
63679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63680         <getopt.h>.
63681         * lib/getopt.in.h (includes): Use split inclusion guard, and
63682         prefer <getopt.h> over include <unistd.h> when one is present.
63683         (option): Also override name of 'struct option'.
63685         same-inode: revert prior change; it is not yet ready
63686         * NEWS: Undo mention of this change.
63687         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63688         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63689         * lib/cycle-check.c (cycle_check): Likewise.
63690         * lib/same.c (same_name): Likewise.
63691         * lib/at-func2.c (at_func2): Likewise.
63693 2009-09-23  Eric Blake  <ebb9@byu.net>
63695         linkat: new module
63696         * modules/linkat: New file.
63697         * lib/at-func2.c (at_func2): Likewise.
63698         * lib/linkat.c (linkat): Likewise.
63699         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63700         * lib/openat-priv.h (at_func2): Add declaration.
63701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63702         * modules/unistd (Makefile.am): Substitute them.
63703         * lib/unistd.in.h (linkat): Declare it.
63704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63705         * doc/posix-functions/linkat.texi (linkat): Likewise.
63706         * doc/posix-functions/link.texi (link): Tweak wording.
63707         * tests/test-link.c (main): Move guts...
63708         * tests/test-link.h (test_link): ...into new file.
63709         * modules/linkat-tests: New test.
63710         * tests/test-linkat.c: Likewise.
63711         * modules/link-tests (Files): Ship new file.
63712         (Depends-on): Add stdbool.
63714         dirname: add library-safe mdir_name
63715         * lib/dirname.h (mdir_name): New prototype.
63716         * lib/dirname.c (dir_name): Move guts...
63717         (mdir_name): ...to new function that avoids xalloc_die.
63719         fchdir: another mingw fix
63720         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63721         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63722         on mingw (where it has not yet been ported), and make it optional
63723         elsewhere.
63724         (_gl_register_fd): Use it.
63726         same-inode: make SAME_INODE tri-state, to port to mingw
63727         * NEWS: Mention this change.
63728         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63729         st_ino always being 0.
63730         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63731         * lib/cycle-check.c (cycle_check): Likewise.
63732         * lib/same.c (same_name): Likewise.
63734         lstat: avoid mingw compilation error
63735         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63736         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63737         lstat ourselves.
63738         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63739         was adequate.
63740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63741         the checks for lstat.
63742         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63744         link: fix test failure on Solaris 9
63745         * lib/link.c (rpl_link): Don't assume link will catch bogus
63746         trailing slash on source.
63748         test-symlinkat: enhance test
63749         * tests/test-readlink.c (main): Move guts...
63750         * tests/test-readlink.h (test_readlink): ...into new file.
63751         * tests/test-symlink.c (main): Move guts...
63752         * tests/test-symlink.h (test_symlink): ...into new file.
63753         * tests/test-symlinkat.c (main): Use new files for further
63754         coverage.
63755         (do_symlink, do_readlink): New helper functions.
63756         * modules/symlink-tests (Files): Ship new file.
63757         (Depends-on): Add stdbool.
63758         * modules/readlink-tests (Files): Ship new file.
63759         (Depends-on): Add stdbool.
63760         * modules/symlinkat-tests (Files): Use new files.
63762 2009-09-23  Eric Blake  <ebb9@byu.net>
63764         readlink: document portability issue with symlink length
63765         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63766         systems have bogus st_size on symlinks, and mention the
63767         areadlink-with-size module.
63768         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63769         * doc/posix-functions/readlink.texi (readlink): Mention the
63770         areadlink module, and ERANGE failure.
63771         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63772         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63774         readlink: fix Solaris 9 bug with trailing slash
63775         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63776         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63777         * doc/posix-functions/readlink.texi (readlink): Document this.
63778         * modules/readlink-tests: New test.
63779         * tests/test-readlink.c: Likewise.
63781         readlink: fix cygwin 1.5.x bug with return type
63782         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63783         * lib/unistd.in.h (readlink): Use ssize_t.
63784         * lib/readlink.c (readlink): Likewise.
63785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63786         * modules/unistd (Makefile.am): Substitute it.
63787         * lib/unistd.in.h (readlink): Declare replacement.
63788         * doc/posix-functions/readlink.texi (readlink): Document this.
63790         symlink: use throughout gnulib
63791         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63792         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63793         symlink is not used.
63794         * modules/symlinkat (Depends-on): Add symlink.
63795         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63796         * modules/canonicalize-tests (Depends-on): Likewise.
63797         * modules/lstat-tests (Depends-on): Likewise.
63798         * modules/openat-tests (Depends-on): Likewise.
63799         * modules/remove-tests (Depends-on): Likewise.
63800         * modules/rmdir-tests (Depends-on): Likewise.
63801         * modules/unlink-tests (Depends-on): Likewise.
63802         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63803         * tests/test-canonicalize.c (symlink): Likewise.
63804         * tests/test-fstatat.c (symlink): Likewise.
63805         * tests/test-lstat.c (symlink): Likewise.
63806         * tests/test-remove.c (symlink): Likewise.
63807         * tests/test-rmdir.c (symlink): Likewise.
63808         * tests/test-unlink.c (symlink): Likewise.
63809         * tests/test-unlinkat.c (symlink): Likewise.
63811         symlink: new module, for Solaris 9 bug
63812         * modules/symlink: New file.
63813         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63814         * lib/symlink.c: Likewise.
63815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63816         * modules/unistd (Makefile.am): Substitute them.
63817         * lib/unistd.in.h (symlink): Declare replacement.
63818         * MODULES.html.sh (File system functions): Mention it.
63819         * doc/posix-functions/symlink.texi (symlink): Likewise.
63820         * modules/symlink-tests: New test.
63821         * tests/test-symlink.c: Likewise.
63823 2009-09-23  Bruno Haible  <bruno@clisp.org>
63825         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63826         when needed.
63827         Test case: gnulib-tool --import --with-tests atexit inttypes.
63828         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63830 2009-09-23  Bruno Haible  <bruno@clisp.org>
63832         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63833         subcommand, not in a subshell.
63835 2009-09-22  Eric Blake  <ebb9@byu.net>
63837         unistd: sort replacement declarations
63838         * lib/unistd.in.h: Sort declarations.
63840         open, openat: minor optimization
63841         * lib/open.c (open): If open succeeded, len is non-zero.
63842         * lib/openat.c (rpl_openat): Likewise.
63844         link-follow: ensure correct result
63845         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63846         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63847         distinguish between possible failures.
63849 2009-09-21  Eric Blake  <ebb9@byu.net>
63851         fts: avoid compiler warning
63852         * lib/fts.c (dirent_inode_sort_may_be_useful)
63853         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63855 2009-09-19  Bruno Haible  <bruno@clisp.org>
63857         * lib/progreloc.c (canonicalize_file_name): New declaration.
63859 2009-09-19  Eric Blake  <ebb9@byu.net>
63861         link: fix quoting
63862         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63864         openat: fix openat bugs on Solaris 9
63865         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63866         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63867         * modules/openat (Depends-on): Add open.
63868         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63869         * modules/fcntl-h (Makefile.am): Substitute it.
63870         * lib/fcntl.in.h (openat): Declare replacement.
63871         * doc/posix-functions/openat.texi (openat): Document this.
63873         openat: move fstatat and unlinkat into correct files
63874         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63875         compiled.
63876         * lib/openat.c (fstatat, unlinkat): Move...
63877         * lib/fstatat.c (fstatat): ...into correct files.
63878         * lib/unlinkat.c (unlinkat): Likewise.
63880         openat: fix unlinkat bugs on Solaris 9
63881         * lib/unlinkat.c (unlinkat): New file.
63882         * modules/openat (Depends-on): Add unlink.
63883         (Files): Distribute it.
63884         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63885         trailing slash behavior is broken.
63886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63887         * modules/unistd (Makefile.am): Substitute it.
63888         * lib/unistd.in.h (unlinkat): Declare replacement.
63889         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63891         openat: fix fstatat bugs on Solaris 9
63892         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63893         stat.
63894         * doc/posix-functions/fstatat.texi (fstatat): Document this.
63896         test-unlinkat: enhance test, to expose Solaris 9 bug
63897         * tests/test-unlink.c (main): Factor guts...
63898         * tests/test-unlink.h (test_rmdir_func): ...into new file.
63899         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
63900         * tests/test-rmdir.c (main): Adjust caller.
63901         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
63902         (unlinker): New helper function.
63903         (rmdirat): Enhance check.
63904         * modules/rmdir-tests (Depends-on): Add stdbool.
63905         * modules/unlink-tests (Depends-on): Likewise.
63906         (Files): Add test-unlink.h.
63907         * modules/openat-tests (Files): Likewise.
63908         (Depends-on): Add unlinkdir.
63910         test-fstatat: new test, to expose Solaris 9 bugs
63911         * tests/test-stat.c (main): Factor guts...
63912         * tests/test-stat.h (test_stat_func): ...into new file.
63913         * tests/test-lstat.c (main): Factor guts...
63914         * tests/test-lstat.h (test_lstat_func): ...into new file.
63915         * tests/test-fstatat.c: New file.
63916         * modules/stat-tests (Files): Add test-stat.h.
63917         * modules/lstat-tests (Files): Add test-lstat.h.
63918         (Depends-on): Add stdbool.
63919         * modules/openat-tests (Depends-on): Add pathmax.
63920         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
63921         (Makefile.am): Run new test.
63923         remove: new module, for mingw and Solaris 9 bugs
63924         * modules/remove: New file.
63925         * lib/remove.c: Likewise.
63926         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
63927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63928         * modules/stdio (Makefile.am): Use them.
63929         * lib/stdio.in.h (remove): Declare replacement.
63930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63931         * doc/posix-functions/remove.texi (remove): Likewise.
63932         * modules/remove-tests: New test.
63933         * tests/test-remove.c: Likewise.
63935         unlink: new module, for Solaris 9 bug
63936         * modules/unlink: New file.
63937         * lib/unlink.c: Likewise.
63938         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63940         * modules/unistd (Makefile.am): Use them.
63941         * lib/unistd.in.h (stat): Declare replacement.
63942         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63943         * doc/posix-functions/unlink.texi (unlink): Likewise.
63944         * modules/unlink-tests: New test.
63945         * tests/test-unlink.c: Likewise.
63947         lstat: fix Solaris 9 bug
63948         * lib/lstat.c (lstat): Also check for trailing slash on
63949         non-symlink, non-directories.  Use stat module to simplify logic.
63950         * doc/posix-functions/lstat.texi (lstat): Document it.
63951         * modules/lstat-tests (Depends-on): Add errno, same-inode.
63952         (configure.ac): Check for symlink.
63953         * tests/test-lstat.c (main): Add more tests.
63955         stat: add as dependency to other modules
63956         * modules/chown (Depends-on): Add stat.
63957         * modules/euidaccess (Depends-on): Likewise.
63958         * modules/fchdir (Depends-on): Likewise.
63959         * modules/isdir (Depends-on): Likewise.
63960         * modules/link (Depends-on): Likewise.
63961         * modules/lstat (Depends-on): Likewise.
63962         * modules/mkdir-p (Depends-on): Likewise.
63963         * modules/modechange (Depends-on): Likewise.
63964         * modules/open (Depends-on): Likewise.
63965         * modules/readlink (Depends-on): Likewise.
63966         * modules/same (Depends-on): Likewise.
63968         stat: fix Solaris 9 bug
63969         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
63970         slash.
63971         * lib/stat.c (rpl_stat): Work around it.
63972         * doc/posix-functions/stat.texi (stat): Update documentation.
63974         stat: new module, for mingw bug
63975         * modules/stat: New file.
63976         * lib/stat.c: Likewise.
63977         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63979         * modules/sys_stat (Makefile.am): Use them.
63980         * lib/sys_stat.in.h (stat): Declare replacement.
63981         * lib/openat.c (fstatat): Deal with lstat and stat being function
63982         macros.
63983         * modules/openat (Depends-on): Add inline.
63984         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63985         * doc/posix-functions/stat.texi (stat): Likewise.
63986         * modules/stat-tests: New test.
63987         * tests/test-stat.c: Likewise.
63989 2009-09-19  Jim Meyering  <meyering@redhat.com>
63991         syntax-check: detect unnecessary inclusion of canonicalize.h
63992         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
63994 2009-09-19  Eric Blake  <ebb9@byu.net>
63996         canonicalize-lgpl: adjust clients to use correct header
63997         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63998         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
63999         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64000         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64001         * lib/progreloc.c (includes): Likewise.
64003 2009-09-19  Jim Meyering  <meyering@redhat.com>
64005         test-posixtm.c: correct a comment
64006         * tests/test-posixtm.c: Correct first-line comment.
64007         Spotted by Eric Blake.
64009 2009-09-16  Jim Meyering  <meyering@redhat.com>
64011         posixtm-tests: make T const-correct; add a test case
64012         * tests/test-posixtm.c (T): Declare const.
64013         Add a test for -(2^31+1).
64014         Remove useless can-succeed-only-in-2002 test.
64016         posixtm-tests: adjust the sole failing test
64017         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64018         expected output matches what mktime now produces.  Cross-checked via
64019         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64021         posixtm: move #ifdef'd tests into a new module
64022         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64023         * tests/test-posixtm.c: ... this new file.
64024         * modules/posixtm-tests: New module.
64026 2009-09-19  Eric Blake  <ebb9@byu.net>
64028         openat: simplify use of at-func.c
64029         * lib/at-func.c (includes): Include prerequisites here, to
64030         simplify requirements on client files.
64031         * lib/openat-priv.h: Add double-inclusion guard.
64032         * lib/faccessat.c (includes): Simplify.
64033         * lib/fchmodat.c (includes): Likewise.
64034         * lib/fchownat.c (includes): Likewise.
64035         * lib/mkdirat.c (includes): Likewise.
64036         * lib/mkfifoat.c (includes): Likewise.
64037         * lib/symlinkat.c (includes): Likewise.
64039         openat: allow return of fd 0
64040         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64041         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64042         unistd-safer.
64043         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64044         <fcntl.h>; this module does not leak fds.
64045         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64046         must be allowed to return 0, leaving openat_safer to add the
64047         safety.
64048         (openat_permissive): Avoid writing to just-opened fd 2 if
64049         restoring the current directory fails.
64050         * lib/openat-die.c (openat_restore_fail): Add comment.
64051         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64052         (save_cwd): Guarantee safe fd, but without use of open_safer.
64053         * tests/test-openat.c: New test.
64054         * modules/openat-tests (Files, Makefile.am): Distribute and build
64055         new file.
64057         relocatable-prog-wrapper: fix build
64058         * modules/relocatable-prog-wrapper (Files): Update name of
64059         canonicalize m4 file, broken on 2009-09-17.
64060         Reported by emad hajjar <aleppos@hotmail.com>.
64062 2009-09-19  Bruno Haible  <bruno@clisp.org>
64064         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64065         * lib/safe-alloc.c: Likewise.
64066         Reported by Ian Beckwith <ianb@erislabs.net>.
64068 2009-09-18  Bruno Haible  <bruno@clisp.org>
64070         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64071         Reported by <erobles@sensacd.com.mx>.
64073 2009-09-17  Eric Blake  <ebb9@byu.net>
64075         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64076         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64077         slashes when checking if last component is missing.
64078         * tests/test-canonicalize.c (main): Test this.
64080         canonicalize, canonicalize-lgpl: honor // if distinct from /
64081         * modules/canonicalize (Files): Add double-slash-root.m4.
64082         * modules/canonicalize-lgpl (Files): Likewise.
64083         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64084         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64085         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64086         fallback definition.
64087         (canonicalize_filename_mode): Use it to protect //.
64088         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64089         (__realpath): Likewise.
64090         * tests/test-canonicalize.c (main): Test this.
64091         * tests/test-canonicalize-lgpl.c (main): Likewise.
64092         * modules/canonicalize-tests (Depends-on): Add same-inode.
64093         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64095         canonicalize-lgpl: fix glibc bug with trailing slash
64096         * m4/canonicalize-lgpl.m4: Move contents...
64097         * m4/canonicalize.m4: ...here.
64098         (gl_CANONICALIZE_LGPL): Factor realpath check...
64099         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64100         glibc 2.3.5 bug, fixed 2005-04-27.
64101         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64102         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64103         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64104         * modules/canonicalize-lgpl (Files): Manage file rename.
64105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64106         * modules/stdlib (Makefile.am): Substitute witness.
64107         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64108         is needed.
64109         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64110         replacement is required.
64111         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64112         * doc/glibc-functions/canonicalize_file_name.texi
64113         (canonicalize_file_name): Document this.
64114         * doc/posix-functions/realpath.texi (realpath): Likewise.
64116         canonicalize-lgpl: reject non-directory with trailing slash
64117         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64118         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64119         catches failures in glibc 2.3.5.
64120         * tests/test-canonicalize.c (main): Likewise.
64122         canonicalize-lgpl: use native realpath if it works
64123         * lib/canonicalize-lgpl.c (realpath): Guard with
64124         FUNC_REALPATH_WORKS.
64125         * lib/stdlib.in.h (realpath): Make declaration optional based on
64126         HAVE_REALPATH.
64127         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64128         native realpath works.
64129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64130         * modules/stdlib (Makefile.am): Substitute witness.
64132         canonicalize, canonicalize-lgpl: use <stdlib.h>
64133         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64134         (Include): Mention <stdlib.h>.
64135         (configure.ac): Mention functions we provide.
64136         * modules/canonicalize (configure.ac): Likewise.
64137         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64138         realpath if canonicalize_file_name is missing.
64139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64140         * modules/stdlib (Makefile.am): Substitute witnesses.
64141         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64142         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64143         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64144         * NEWS: Document this.
64145         * doc/glibc-functions/canonicalize_file_name.texi
64146         (canonicalize_file_name): Likewise.
64147         * doc/posix-functions/realpath.texi (realpath): Likewise.
64148         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64150         test-canonicalize: consolidate into single C program
64151         * tests/test-canonicalize.sh: Delete; move setup into...
64152         * tests/test-canonicalize.c (main): ...the program, making it
64153         easier to run in debugger.  Add some tests.
64154         * modules/canonicalize-tests (Files): Remove unused file.
64155         (Depends-on): Add progname.
64156         (configure.ac, Makefile.am): Simplify.
64158         test-canonicalize-lgpl: consolidate into single C program
64159         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64160         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64161         easier to run in debugger.  Add some tests.
64162         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64163         (configure.ac, Makefile.am): Simplify.
64165         canonicalize: avoid resolvepath
64166         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64167         unnecessary checks.
64168         * lib/canonicalize.c (includes): Simplify.
64169         (canonicalize_file_name): Drop resolvepath implementation.
64170         * modules/canonicalize (Depends-on): Drop filenamecat.
64172         canonicalize: don't lose errno
64173         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64174         over calls to free.
64176         canonicalize: simplify errno handling
64177         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64178         assignment.
64180         canonicalize, canonicalize-lgpl: update module dependencies
64181         * modules/canonicalize (Depends-on): Add extensions, lstat,
64182         pathmax, stdlib.
64183         (Files): Drop pathmax.h.
64184         (configure.ac): Adjust macro name.
64185         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64186         lstat, stdlib, sys_stat.
64187         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64188         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64189         extensions.
64190         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64191         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64192         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64193         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64194         declaration, if available.
64195         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64196         we can rely on the readlink module.
64197         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64198         (includes): Use <unistd.h> unconditionally.
64200 2009-09-17  Eric Blake  <ebb9@byu.net>
64202         maint: make Include sections of modules consistent
64203         * modules/alloca: Use only header name; no need to list #include.
64204         * modules/alloca-opt: Likewise.
64205         * modules/arpa_inet: Likewise.
64206         * modules/canon-host: Likewise.
64207         * modules/configmake: Likewise.
64208         * modules/dirent: Likewise.
64209         * modules/eealloc: Likewise.
64210         * modules/environ: Likewise.
64211         * modules/fchdir: Likewise.
64212         * modules/fcntl: Likewise.
64213         * modules/fcntl-h: Likewise.
64214         * modules/gethrxtime: Likewise.
64215         * modules/gettime: Likewise.
64216         * modules/ignore-value: Likewise.
64217         * modules/inet_ntop: Likewise.
64218         * modules/inet_pton: Likewise.
64219         * modules/inttypes: Likewise.
64220         * modules/isnand-nolibm: Likewise.
64221         * modules/isnanf-nolibm: Likewise.
64222         * modules/mbchar: Likewise.
64223         * modules/mbfile: Likewise.
64224         * modules/mbiter: Likewise.
64225         * modules/mbuiter: Likewise.
64226         * modules/netdb: Likewise.
64227         * modules/netinet_in: Likewise.
64228         * modules/nproc: Likewise.
64229         * modules/pagealign_alloc: Likewise.
64230         * modules/poll: Likewise.
64231         * modules/printf-frexp: Likewise.
64232         * modules/pthread: Likewise.
64233         * modules/putenv: Likewise.
64234         * modules/random_r: Likewise.
64235         * modules/relocatable-prog: Likewise.
64236         * modules/search: Likewise.
64237         * modules/select: Likewise.
64238         * modules/selinux-h: Likewise.
64239         * modules/settime: Likewise.
64240         * modules/signal: Likewise.
64241         * modules/size_max: Likewise.
64242         * modules/socklen: Likewise.
64243         * modules/ssize_t: Likewise.
64244         * modules/stdarg: Likewise.
64245         * modules/stdbool: Likewise.
64246         * modules/stddef: Likewise.
64247         * modules/stdint: Likewise.
64248         * modules/stdio: Likewise.
64249         * modules/stdlib: Likewise.
64250         * modules/string: Likewise.
64251         * modules/strings: Likewise.
64252         * modules/sys_file: Likewise.
64253         * modules/sys_ioctl: Likewise.
64254         * modules/sys_select: Likewise.
64255         * modules/sys_socket: Likewise.
64256         * modules/sys_stat: Likewise.
64257         * modules/sys_time: Likewise.
64258         * modules/sys_times: Likewise.
64259         * modules/sys_utsname: Likewise.
64260         * modules/sys_wait: Likewise.
64261         * modules/sysexits: Likewise.
64262         * modules/time: Likewise.
64263         * modules/times: Likewise.
64264         * modules/tmpfile: Likewise.
64265         * modules/trim: Likewise.
64266         * modules/unistd: Likewise.
64267         * modules/wchar: Likewise.
64268         * modules/wctype: Likewise.
64270 2009-09-17  Bruno Haible  <bruno@clisp.org>
64272         Make getdate.y compile on QNX and NetBSD 5 / i386.
64273         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64274         TIME_T_FITS_IN_LONG_INT.
64275         * lib/getdate.y (long_time_t): New type.
64276         (relative_time): Change type of 'seconds' field to long_time_t.
64277         (get_date): Update types of local variables. Check against overflow
64278         during conversion from long_time_t to time_t.
64279         Reported by Matt Kraai <kraai@ftbfs.org>
64280         and Hasso Tepper <hasso@netbsd.org>.
64282 2009-09-17  Bruno Haible  <bruno@clisp.org>
64284         * modules/COPYING: Update copyright years.
64285         * modules/README: Likeiwse.
64286         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64287         Reported by Ian Beckwith <ianb@erislabs.net>.
64289 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64291         * users.txt: Update references for gnuit package.
64293 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64295         * m4/getdelim.m4: Fix typo in copyright line.
64297 2009-09-17  Bruno Haible  <bruno@clisp.org>
64299         * lib/atoll.c: Use the standard header with GPL copyright.
64300         * lib/argz.in.h: Likewise.
64301         * lib/glob.c: Likewise.
64302         * lib/glob-libc.h: Likewise.
64303         * lib/random_r.c: Likewise.
64304         * lib/siglist.h: Likewise.
64305         * lib/strsignal.c: Likewise.
64306         Reported by Ian Beckwith <ianb@erislabs.net>.
64308 2009-09-17  Eric Blake  <ebb9@byu.net>
64310         rmdir: ensure correct dependency order
64311         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64313 2009-09-17  Bruno Haible  <bruno@clisp.org>
64315         Disable assertion that fails on NetBSD 5 / i386.
64316         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64317         Reported by Sam Steingold <sds@gnu.org>
64318         and Hasso Tepper <hasso@netbsd.org>.
64320 2009-09-16  Eric Blake  <ebb9@byu.net>
64322         unlinkdir: port to mingw
64323         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64324         on which no one can unlink a directory.
64326         stdlib: sort witness names
64327         * modules/stdlib (Makefile.am): Sort replacements.
64328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64329         * lib/stdlib.in.h: Likewise.
64331         parse-duration-tests: avoid link failure
64332         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64333         LIBINTL.
64334         Reported by Tom G. Christensen.
64336         openat-tests: ensure unlinkat behaves like rmdir
64337         * tests/test-rmdir.c (main): Factor guts...
64338         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64339         * modules/rmdir-tests (Files): Ship new file.
64340         * modules/openat-tests: New test.
64341         * tests/test-unlinkat.c: Likewise.
64343         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64344         * modules/rmdir-errno (Status, Notice): Now obsolete.
64346         rmdir: work around cygwin 1.5.x and mingw bugs
64347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64348         * lib/rmdir.c (rmdir): Work around it.
64349         * modules/rmdir (Status, Notice): No longer obsolete.
64350         (Files): Add dos.m4.
64351         (Depends-on): Add unistd.
64352         (configure.ac): Set witnesses.
64353         (License): Relax to LGPLv2+.
64354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64355         * modules/unistd (Makefile.am): Substitute witnesses.
64356         * lib/unistd.in.h (rmdir): Declare replacement.
64357         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64358         * modules/rmdir-tests: New tests.
64359         * tests/test-rmdir.c: Likewise.
64361 2009-09-15  Eric Blake  <ebb9@byu.net>
64363         fchdir: improve use of replacement functions
64364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64365         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64366         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64367         REPLACE_CLOSEDIR.
64368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64369         * modules/sys_stat (Makefile.am): Substitute correct witness.
64370         * modules/dirent (Makefile.am): Likewise.
64371         * modules/unistd (Makefile.am): Likewise.
64372         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64373         * lib/unistd.in.h (dup): Likewise.
64374         * lib/sys_stat.in.h (fstat): Likewise.
64376         maint: ignore gnulib-tool temp files
64377         * .gitignore: Ignore files created during gnulib-tool --test.
64379 2009-09-13  Jim Meyering  <meyering@redhat.com>
64381         posixtm: don't reject a time that specify "60" as the number of seconds
64382         * lib/posixtm.c (posixtime): The code to reject invalid dates
64383         would also reject a time specified with the .60 suffix.
64384         But POSIX allows that, in order to accommodate leap seconds.
64385         So don't reject it.
64386         (main): Adjust tests accordingly.
64387         * modules/posixtm (Depends-on): Add stpcpy.
64389 2009-09-11  Jim Meyering  <meyering@redhat.com>
64391         announce-gen: include [$release_type] in emitted Subject:
64392         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64393         e.g., [stable] in the emitted Subject: line.
64395 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64397         Remove obsolete macros from several modules.
64398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64399         obsolete Autoconf macros with their modern counterparts.
64400         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64401         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64403         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64404         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64407         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64408         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64409         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64410         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64412         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64413         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64415         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64416         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64417         * m4/time_r.m4 (gl_TIME_R): Likewise.
64418         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64419         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64420         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64422         Fix copyright header in build-aux scripts.
64423         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64424         recommendation.
64425         * build-aux/ncftpput-ftp: Likewise.
64426         * build-aux/update-copyright: Likewise.
64428 2009-09-09  Eric Blake  <ebb9@byu.net>
64430         test-link: allow Linux choice of errno
64431         * tests/test-link.c (main): Relax test for alternate error.
64433         strndup: fix improper m4 caching
64434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64435         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64436         (gl_PREREQ_STRNDUP): Delete.
64437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64438         * modules/string (Makefile.am): Substitute it.
64439         * lib/string.in.h (strndup): Modernize prototype.
64441         getcwd: port to mingw
64442         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64443         different from the POSIX assumptions made throughout the getcwd
64444         module; fortunately, the mingw getcwd does not need replacement.
64445         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64446         * modules/getcwd-tests: New test.
64447         * tests/test-getcwd.c: Likewise.
64449         link: fix platform bugs
64450         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64451         * lib/link.c (link): Work around them.  Fix related mingw bug.
64452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64453         * modules/unistd (Makefile.am): Substitute it.
64454         * lib/unistd.in.h (link): Declare replacement.
64455         * doc/posix-functions/link.texi (link): Document this.
64456         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64458         test-link: consolidate into single C program, test more cases
64459         * tests/test-link.sh: Delete.
64460         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64461         at least Cygwin and Solaris.
64462         * modules/link-tests (Files): Remove unused file.
64463         (Depends-on): Add errno, sys_stat.
64464         (Makefile.am): Simplify.
64466 2009-09-08  Bruno Haible  <bruno@clisp.org>
64468         Work around towlower, towupper bug on mingw.
64469         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64470         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64471         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64472         * doc/posix-functions/towupper.texi: Likewise.
64473         Reported by Eric Blake.
64475 2009-09-08  Jim Meyering  <meyering@redhat.com>
64477         build: don't try to run autoheader if we don't use it
64478         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64479         is not used in configure.ac.
64481 2009-09-08  Eric Blake  <ebb9@byu.net>
64483         euidaccess: fix compilation error
64484         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64486         rawmemchr: relax license
64487         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64488         okay.
64489         Reported by Jim Meyering.
64491         mkfifoat: new module
64492         * modules/mkfifoat: New file.
64493         * lib/mkfifoat.c: Likewise.
64494         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64495         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64496         * modules/sys_stat (Makefile.am): Use them.
64497         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64498         * MODULES.html.sh (File system functions): Mention module.
64499         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64500         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64501         * modules/mkfifoat-tests: New test.
64502         * tests/test-mkfifoat.c: Likewise.
64504         strchrnul: relax license
64505         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64506         okay.
64507         Reported by Jim Meyering.
64509 2009-09-08  Eric Blake  <ebb9@byu.net>
64511         fstatat: fix compilation on Solaris
64512         * lib/fstatat.c (includes): Add fcntl.h.
64513         Reported by Pádraig Brady.
64515 2009-09-07  Eric Blake  <ebb9@byu.net>
64517         rename: modernize replacement
64518         * modules/rename (Depends-on): Add stdio.
64519         (configure.ac): Declare witness.
64520         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64521         stdio take care of replacement.
64522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64523         * modules/stdio (Makefile.am): Substitute them.
64524         * lib/stdio.in.h (rename): Declare replacement.
64525         * lib/rename.c (includes): Allow cross-compilation to non-windows
64526         machines.
64527         * doc/posix-functions/rename.texi (rename): Improve
64528         documentation.
64530         stdio: sort witness names
64531         * modules/stdio (Makefile.am): Sort replacements.
64532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64533         * lib/stdio.in.h: Likewise.
64535         getcwd: minor cleanups
64536         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64537         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64539         openat: provide more convenience names
64540         * modules/faccessat (configure.ac): Add C witness.
64541         * lib/unistd.in.h (readlinkat): Fix typo.
64542         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64543         convenience wrappers.
64544         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64545         wrappers in syntax checks.
64547 2009-09-06  Eric Blake  <ebb9@byu.net>
64549         doc: fix comments in recent patches
64550         * lib/faccessat.c: Mention correct function.
64551         * lib/fchmodat.c: Likewise.
64552         * lib/fchownat.c: Likewise.
64553         * lib/symlinkat.c: Likewise.
64554         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64555         constants.
64557         faccessat, symlinkat: continue cleanup of previous patch
64558         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64559         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64560         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64562         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64563         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64564         set.
64566 2009-09-06  Bruno Haible  <bruno@clisp.org>
64568         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64569         (fstatat): Declare if GNULIB_FSTATAT is set.
64570         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64571         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64572         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64573         * modules/fcntl-h (Files): Remove m4/openat.m4.
64574         * modules/sys_stat (Files): Remove m4/openat.m4.
64575         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64576         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64577         * modules/unistd (Files): Remove m4/openat.m4.
64578         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64579         GNULIB_OPENAT.
64580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64581         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64583         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64584         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64585         gl_OPENAT_DEFAULTS.
64586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64587         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64588         Don't require gl_OPENAT_DEFAULTS.
64589         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64590         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64591         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64592         (gl_OPENAT_DEFAULTS): Remove macro.
64594 2009-09-06  Bruno Haible  <bruno@clisp.org>
64596         * modules/openat (configure.ac): Remove unneeded witness.
64598 2009-09-06  Bruno Haible  <bruno@clisp.org>
64600         Set errno to ENOSYS when a function is entirely unsupported.
64601         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64602         EOPNOTSUPP.
64603         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64604         * modules/chown (Depends-on): Remove errno.
64606 2009-09-06  Bruno Haible  <bruno@clisp.org>
64608         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64610 2009-09-06  Bruno Haible  <bruno@clisp.org>
64612         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64614 2009-09-06  Ben Pfaff  <blp@gnu.org>
64615             Bruno Haible  <bruno@clisp.org>
64617         Work around a glibc bug in strtok_r.
64618         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64619         Undefine if UNDEFINE_STRTOK_R is set.
64620         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64622         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64623         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64624         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64625         UNDEFINE_STRTOK_R.
64626         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64628 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64630         exclude: minor fix
64631         * lib/exclude.c: Include wctype.h
64633 2009-09-06  Akim Demaille  <demaille@gostai.com>
64635         bootstrap: improve error message
64636         * build-aux/bootstrap (find_tool): Upon failure, report the list
64637         of candidates.
64638         Honor the initial value of the envvar.
64640 2009-09-05  Eric Blake  <ebb9@byu.net>
64642         symlinkat: new module
64643         * modules/symlinkat: New file.
64644         * lib/symlinkat.c: Likewise.
64645         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64647         * modules/unistd (Makefile.am): Use them.
64648         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64649         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64650         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64651         * MODULES.html.sh (File system functions): Mention module.
64652         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64653         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64654         * modules/symlinkat-tests: New test.
64655         * tests/test-symlinkat.c: Likewise.
64657         test-openat-safer: add more checks
64658         * tests/test-openat-safer.c (main): Check more code paths.
64660 2009-09-05  Jim Meyering  <meyering@redhat.com>
64662         syntax-check: detect unnecessary inclusion of openat.h
64663         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64665 2009-09-05  Bruno Haible  <bruno@clisp.org>
64667         Support towlower, towupper.
64668         * doc/posix-functions/towlower.texi: Mention module wctype.
64669         * doc/posix-functions/towupper.texi: Likewise.
64670         * lib/wctype.in.h (towlower, towupper): New functions.
64671         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64672         (ASSERT): New macro.
64673         (e): New variable.
64674         (main): Test also towlower, towupper. Test WEOF argument.
64675         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64677 2009-09-05  Bruno Haible  <bruno@clisp.org>
64679         Fix conversion behaviour when the input is invalid.
64680         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64681         mark occurring in first pass of indirect conversion.
64682         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64683         input.
64684         Found by clang's static analyzer.
64686 2009-09-05  Bruno Haible  <bruno@clisp.org>
64688         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64689         where direct conversion is possible.
64691 2009-09-04  Eric Blake  <ebb9@byu.net>
64693         openat: fail with ENOENT on empty name
64694         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64695         buffer.
64697         link-follow: fix logic bug in prior patch
64698         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64699         reversed sense of yes and no in prior patch.  Avoid confusing
64700         compilation failure with desired semantics.
64702         link-follow: accommodate mingw and cross-compilation
64703         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64704         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64705         cross-compilation results to -1, to make linkat easier to
64706         implement when cross-compiling.  Trivially support mingw.
64707         * modules/link-follow (configure.ac): Call new name.
64708         * NEWS: Mention this.
64710 2009-09-03  Eric Blake  <ebb9@byu.net>
64712         faccessat: compile replacement
64713         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64714         needed.
64716         fts: fix compilation error
64717         * lib/fts.c (includes): Re-add "openat.h", for
64718         openat_needs_fchdir.
64720         faccessat: new module
64721         * modules/faccessat: New file.
64722         * lib/faccessat.c: Likewise.
64723         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64725         * modules/unistd (Makefile.am): Use it.
64726         * lib/unistd.in.h (faccessat): Declare it.
64727         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64728         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64729         * MODULES.html.sh (File system functions): Mention it.
64730         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64731         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64733         euidaccess: prefer POSIX over non-standard implementation
64734         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64735         * lib/euidaccess.c (euidaccess): Use it if available.
64737         openat: make template easier to use
64738         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64739         AT_FUNC_F2 to be undefined.
64740         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64741         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64742         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64743         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64744         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64745         Likewise.
64746         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64747         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64748         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64749         Likewise.
64751         openat: declare in POSIX headers
64752         * NEWS: Mention this.
64753         * modules/openat (configure.ac): Declare witnesses.
64754         (Depends-on): Add fcntl-h, sys_stat, unistd.
64755         (Include): Mention correct headers.
64756         * modules/fcntl-h (Depends-on): Add link-warning.
64757         (Files): Add openat.m4.
64758         (Makefile.am): Substitute witnesses.
64759         * modules/sys_stat (Files, Makefile.am): Likewise.
64760         * modules/unistd (Files, Makefile.am): Likewise.
64761         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64762         (gl_OPENAT_DEFAULTS): New macro.
64763         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64766         (SYS_STAT_H): Remove unused variable.
64767         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64768         * lib/fcntl--.h (includes): Remove unneeded header.
64769         * lib/openat-safer.c (includes): Likewise.
64770         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64771         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64772         appropriate headers.
64773         (__OPENAT_PREFIX): Delete.
64774         * lib/fcntl.in.h (openat): Provide declaration.
64775         (AT_FDCWD): Fix Solaris bug.
64776         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64777         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64778         * lib/fchmodat.c (includes):  Adjust to find declaration.
64779         * lib/fchownat.c (includes): Likewise.
64780         * lib/mkdirat.c (includes): Likewise.
64781         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64782         still visible.
64784 2009-09-02  Eric Blake  <ebb9@byu.net>
64786         errno: use consistently
64787         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64788         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64789         * lib/canonicalize.c (ELOOP): Likewise.
64790         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64791         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64792         * lib/lchown.c (EOPNOTSUPP): Likewise.
64793         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64794         * lib/savewd.c (ESTALE): Likewise.
64795         * lib/settime.c (ENOSYS): Likewise.
64796         * lib/utimens.c (ENOSYS): Likewise.
64797         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64798         * lib/chdir-safer.c (ELOOP): Likewise.
64799         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64800         * modules/c-stack (Depends-on): Add errno.
64801         * modules/canonicalize (Depends-on): Likewise.
64802         * modules/chdir-safer (Depends-on): Likewise.
64803         * modules/fdopendir (Depends-on): Likewise.
64804         * modules/inet_ntop (Depends-on): Likewise.
64805         * modules/inet_pton (Depends-on): Likewise.
64806         * modules/lchown (Depends-on): Likewise.
64807         * modules/openat (Depends-on): Likewise.
64808         * modules/savewd (Depends-on): Likewise.
64809         * modules/settime (Depends-on): Likewise.
64810         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64812         fts: avoid leaking fds
64813         * modules/fts (Depends-on): Add cloexec.
64814         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64815         flag.
64817         fts: make directory fds more robust
64818         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64819         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64821         backupfile, chdir-long, fts, savedir: make safer
64822         * lib/backupfile.c (includes): Use "dirent--.h", since
64823         numbered_backup can write to stderr during readdir.
64824         * lib/savedir.c (includes): Likewise.
64825         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64826         emulation can write to stderr on failure.
64827         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64828         * lib/getcwd.c: Document why opendir_safer is unused.
64829         * lib/glob.c: Likewise.
64830         * lib/scandir.c: Likewise.
64831         * lib/openat-proc.c: Likewise, for open_safer.
64832         * modules/backupfile (Depends-on): Add dirent-safer.
64833         * modules/savedir (Depends-on): Likewise.
64834         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64835         * modules/chdir-long (Depends-on): Add openat-safer.
64837         openat-safer: new module
64838         * modules/openat-safer: New file.
64839         * lib/openat-safer.c: Likewise.
64840         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64841         * lib/fcntl-safer.h (openat_safer): Declare.
64842         * lib/fcntl--.h (openat): Override.
64843         * MODULES.html.sh (File descriptor based I/O): Mention it.
64844         * lib/openat.h: Add double-inclusion guards.
64845         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64846         "fcntl--.h", so we can implement openat.
64847         * modules/openat-safer-tests: New test.
64848         * tests/test-openat-safer.c: New file.
64850         dirent-safer: new module
64851         * modules/dirent-safer: New file.
64852         * lib/dirent--.h: Likewise.
64853         * lib/dirent-safer.h: Likewise.
64854         * lib/opendir-safer.c: Likewise.
64855         * m4/dirent-safer.m4: Likewise.
64856         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64857         * modules/dirent-safer-tests: New test.
64858         * tests/test-dirent-safer.c: New file.
64859         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64861         fdopendir: optimize on mingw
64862         * lib/unistd.in.h (_gl_directory_name): New prototype.
64863         * lib/fchdir.c (_gl_directory_name): Implement it.
64864         (fchdir): Use it to simplify implementation.
64865         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64866         fchdir, when available, to avoid calling [f]chdir().
64868         fdopendir: split into its own module
64869         * lib/openat.c (fdopendir): Move...
64870         * lib/fdopendir.c: ...into new file.
64871         * modules/fdopendir: New module.
64872         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64873         * modules/openat (Depends-on): Add fdopendir.
64874         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64875         fdopendir here.
64876         * modules/savedir (Depends-on): Only need fdopendir, not full
64877         openat.
64878         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64879         * lib/openat.h (fdopendir): Drop prototype.
64880         * lib/dirent.in.h (fdopendir): Provide prototype.
64881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64882         * modules/dirent (Makefile.am): Substitute them.
64883         * MODULES.html.sh (File system functions): Mention it.
64884         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64885         * modules/fdopendir-tests: New file.
64886         * tests/test-fdopendir.c: Likewise.
64888         fchdir: use more consistent macro convention
64889         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64890         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64891         REPLACE_FCHDIR, rather than relying on config.h macros.
64892         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64893         inside a single make-time REPLACE_FCHDIR block, rather than using
64894         the config.h FCHDIR_REPLACEMENT.
64895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
64896         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
64897         Manage fstat replacement.
64898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
64899         REPLACE_FCHDIR.
64900         * modules/sys_stat (Files): Add m4/unistd_h.m4.
64901         (Makefile.am): Substitute REPLACE_FCHDIR.
64902         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
64903         FCHDIR_REPLACEMENT.
64904         * lib/dup-safer.c (dup_safer): Likewise.
64905         * lib/dup2.c (rpl_dup2): Likewise.
64906         * lib/dup3.c (rpl_dup3): Likewise.
64907         * lib/open.c (rpl_open): Likewise.
64909         fchdir: simplify error handling, and support dup3
64910         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
64911         stdbool, malloc-posix, realloc-posix.
64912         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
64913         (ensure_dirs_slot): Return false on allocation failure.
64914         (rpl_dup2): Delete.
64915         (_gl_register_dup): New function.
64916         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
64917         (_gl_register_fd): Close fd on allocation failure.
64918         * lib/fcntl.in.h (_gl_register_fd): Update signature.
64919         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
64920         prototype.
64921         (rpl_dup2_fchdir): Delete prototype.
64922         * lib/open.c (open): Update caller.
64923         * lib/dup2.c (dup2): Track fchdir metadata.
64924         * lib/dup3.c (dup3): Likewise.
64925         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
64926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
64928 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64930         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
64931         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
64932         don't pass arguments to AC_OUTPUT.
64934 2009-09-02  Bruno Haible  <bruno@clisp.org>
64936         * modules/mkdtemp (License): Relicense under LGPLv2+.
64937         Reported by Paolo Bonzini.
64939 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64941         Replace uses of obsolete autoconf macros in Jim's modules.
64942         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
64943         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
64944         can evoke a warning from autoconf when run with -Wobsolete
64945         enabled.  They were declared obsolete for good reasons (see
64946         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
64947         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
64948         should not continue using the deprecated macros.
64949         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
64950         obsolete Autoconf macros with modern counterparts.
64951         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64952         * m4/dos.m4 (gl_AC_DOS): Likewise.
64953         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
64954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64955         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
64956         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
64957         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
64958         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
64959         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
64960         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
64961         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64962         Likewise.
64963         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
64964         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64965         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
64966         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
64967         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64968         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64970 2009-09-01  Eric Blake  <ebb9@byu.net>
64972         fchdir: fix off-by-one bug in previous patch
64973         * lib/fchdir.c (rpl_fstat): Use correct bounds.
64974         (_gl_unregister_fd): Delete useless if.
64976 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
64978         maint.mk: sort the list of syntax-check rules
64979         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
64980         easier to get a sense of progress when the rules are run sequentially
64981         and take a long time.
64983 2009-09-01  Simon Josefsson  <simon@josefsson.org>
64985         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
64986         * modules/netinet_in: Likewise.
64987         * modules/sys_file: Likewise.
64988         * modules/sys_ioctl: Likewise.
64989         * modules/sys_select: Likewise.
64990         * modules/sys_socket: Likewise.
64991         * modules/sys_stat: Likewise.
64992         * modules/sys_time: Likewise.
64993         * modules/sys_times: Likewise.
64994         * modules/sys_utsname: Likewise.
64995         * modules/sys_wait: Likewise.
64997 2009-09-01  Jim Meyering  <meyering@redhat.com>
64999         fts: help ensure that return values are not ignored
65000         * lib/fts_.h (__GNUC_PREREQ): Define.
65001         (__attribute_warn_unused_result__): Define.
65002         (fts_children, fts_close, fts_open, fts_read): Declare with
65003         __attribute_warn_unused_result__.
65005         fts: fts_close now fails also when closing a dir file descriptor fails
65006         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65007         and propagate to caller, along with errno.
65009         announce-gen: correct formatting in --help output
65010         * build-aux/announce-gen (usage): Move the one-line description in
65011         --help output "up", to where it belongs, just after Usage:.
65013 2009-08-31  Eric Blake  <ebb9@byu.net>
65015         fchdir: port to mingw
65016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65017         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65018         opened, then use a substitute.
65019         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65020         replacement.
65021         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65022         (_gl_register_fd): No need to check stat if open already filters
65023         all directories.
65024         (fchdir): Fix error condition to match POSIX.
65025         * modules/fchdir (Depends-on): Add sys_stat.
65026         * doc/posix-functions/open.texi (open): Document the limitation.
65027         * modules/fchdir-tests: New file.
65028         * tests/test-fchdir.c: Likewise.
65030         canonicalize: allow cross-testing from cygwin to mingw
65031         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65032         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65033         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65034         Likewise.
65035         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65036         target does not support symlinks.
65037         * tests/test-canonicalize-lgpl.sh: Likewise.
65039         chown: avoid compilation warning on mingw
65040         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65041         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65042         mingw.
65043         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65044         * modules/chown (Depends-on): Add errno.
65046 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65048         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65049         command.
65051 2009-08-31  Jim Meyering  <meyering@redhat.com>
65053         canonicalize: remove useless initialization
65054         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65055         initialization of local, "end".
65057 2009-08-30  Bruno Haible  <bruno@clisp.org>
65059         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65060         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65061         ENOSYS.
65063 2009-08-30  Bruno Haible  <bruno@clisp.org>
65065         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65066         /usr/xpg4/bin/tr when it exists.
65067         * tests/test-pipe-filter-gi1.sh: Likewise.
65069 2009-08-30  Bruno Haible  <bruno@clisp.org>
65071         Work around deficient /usr/bin/id program on Solaris.
65072         * tests/test-file-has-acl.sh (ID): New variable.
65073         * tests/test-set-mode-acl.sh (ID): Likewise.
65074         * tests/test-copy-acl.sh (ID): Likewise.
65075         * tests/test-copy-file.sh (ID): Likewise.
65077 2009-08-30  Bruno Haible  <bruno@clisp.org>
65079         New module 'xstriconveh'.
65080         * lib/xstriconveh.h: New file.
65081         * lib/xstriconveh.c: New file.
65082         * modules/xstriconveh: New file.
65084 2009-08-30  Bruno Haible  <bruno@clisp.org>
65086         Make it easier to use mem_cd_iconveh.
65087         * lib/striconveh.h (iconveh_t): New type.
65088         (iconveh_open, iconveh_close): New declarations.
65089         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65090         with a single 'const iconveh_t *' argument.
65091         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65092         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65093         with a single 'const iconveh_t *' argument.
65094         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65095         * tests/test-striconveh.c (main): Update.
65096         * NEWS: Mention the change.
65098 2009-08-30  Bruno Haible  <bruno@clisp.org>
65100         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65101         problem.
65103 2009-08-30  Bruno Haible  <bruno@clisp.org>
65105         Work around iconv_open problem on Solaris.
65106         * lib/iconv_open-solaris.gperf: New file.
65107         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65108         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65109         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65110         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65111         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65112         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65114 2009-08-29  Jim Meyering  <meyering@redhat.com>
65116         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65117         * top/maint.mk (cvs-check): Remove target; it was just an alias
65118         to the better-named vc-diff-check.
65119         (maintainer-distcheck): Remove rule.  It was used only from
65120         the (alpha/beta/major) target, and all of its commands but one
65121         were coreutils-specific.
65122         (vc-dist): Remove rule.
65123         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65124         Run vc-diff-check, not vc-dist.
65125         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65127 2009-08-27  Bruno Haible  <bruno@clisp.org>
65129         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65130         of 0.
65132 2009-08-27  Bruno Haible  <bruno@clisp.org>
65134         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65135         compilers.
65136         * doc/func.texi: Document the SunPRO C bug.
65138 2009-08-27  Bruno Haible  <bruno@clisp.org>
65140         Fix link error on Solaris.
65141         * tests/test-parse-duration.c (xstrdup): Remove function.
65143 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65145         ignore-value: handle pointer types, too
65146         * lib/ignore-value.h (__attribute__): Remove definition.
65147         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65148         of a more concise and more-often effective "(void) i" statement.
65149         (ignore_ptr): New function to suppress warnings from functions that
65150         return pointers, and to make it explicit that one function doesn't
65151         handle all cases.
65153 2009-08-25  Bruno Haible  <bruno@clisp.org>
65155         dup2: work around a Linux bug.
65156         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65157         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65158         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65159         Reported by Simon Josefsson.
65161 2009-08-25  Jim Meyering  <meyering@redhat.com>
65163         libguestfs uses gnulib
65164         * users.txt: Add libguestfs.
65166 2009-08-24  Eric Blake  <ebb9@byu.net>
65168         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65169         * lib/pipe2.c (includes): Add binary-io.h.
65170         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65172 2009-08-24  Bruno Haible  <bruno@clisp.org>
65174         Tolerate declared but missing accept4 syscall.
65175         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65176         available.
65177         * lib/sys_socket.in.h (accept4): If the function is already present,
65178         override it.
65179         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65180         * modules/accept4 (Makefile.am): Compile accept4.c always.
65181         Reported by Paolo Bonzini and Eric Blake.
65183 2009-08-23  Bruno Haible  <bruno@clisp.org>
65185         New module 'accept4'.
65186         * lib/sys_socket.in.h (accept4): New declaration.
65187         * lib/accept4.c: New file.
65188         * m4/accept4.m4: New file.
65189         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65190         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65191         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65192         HAVE_ACCEPT4.
65193         * modules/accept4: New file.
65194         * doc/glibc-functions/accept4.texi: Mention the new module.
65196 2009-08-24  Jim Meyering  <meyering@redhat.com>
65198         progname: also set global program_invocation_name, when possible
65199         Before this change, a libtool-enabled program that calls glibc's
65200         error function would report the program name as
65201         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65202         * modules/progname (configure.ac): Check for a declaration of
65203         program_invocation_name.
65204         * lib/progname.c:  Include <errno.h>.
65205         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65206         Set program_invocation_name.
65208 2009-08-23  Bruno Haible  <bruno@clisp.org>
65210         * lib/dup3.c: Include <string.h>.
65212 2009-08-23  Bruno Haible  <bruno@clisp.org>
65214         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65215         * lib/pipe2.c (pipe2): Likewise.
65216         Suggested by Eric Blake.
65218 2009-08-23  Bruno Haible  <bruno@clisp.org>
65220         Tolerate declared but missing dup3 syscall.
65221         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65222         * lib/unistd.in.h (dup3): If the function is already present,
65223         override it.
65224         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65225         * modules/dup3 (Makefile.am): Compile dup3.c always.
65226         Reported by Paolo Bonzini.
65228 2009-08-23  Bruno Haible  <bruno@clisp.org>
65230         Tolerate declared but missing pipe2 syscall.
65231         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65232         available.
65233         * lib/unistd.in.h (pipe2): If the function is already present,
65234         override it.
65235         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65236         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65237         Reported by Paolo Bonzini.
65239 2009-08-23  Bruno Haible  <bruno@clisp.org>
65241         * lib/pipe2.c (pipe2): Move #ifs inside function.
65243 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65245         quotearg: document limitations of quote_these_too
65246         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65247         those limitations are created.
65248         * lib/quotearg.h (set_char_quoting): Document that digits and
65249         letters that are special after backslash are not permitted.
65250         (quotearg_char): Cross-reference set_char_quoting documentation.
65252 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65254         quotearg: implement custom_quoting_style
65255         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65256         right_quote fields.
65257         (set_custom_quoting): New public function.
65258         (quotearg_buffer_restyled): Add left_quote and right_quote
65259         arguments, handle them very much like locale quoting, and update
65260         all uses.
65261         (quotearg_n_custom): New public function.
65262         (quotearg_n_custom_mem): New public function.
65263         (quotearg_custom): New public function.
65264         (quotearg_custom_mem): New public function.
65265         * lib/quotearg.h: Prototype and document new public functions.
65266         (enum quoting_style): For escape_quoting_style and
65267         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65268         ignored even though they're otherwise like c_quoting_style.
65269         Add custom_quoting_style member and document with comparison to
65270         clocale_quoting_style.
65271         * tests/test-quotearg.c (custom_quotes): New array.
65272         (custom_results): New array.
65273         (main): Extend to test custom quoting.
65275 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65277         quotearg: fix right quote escaping when it's in quote_these_too
65278         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65279         quote, be sure to prepend only one backslash.
65280         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65281         (main): Test it.
65283 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65285         quotearg-tests: test escaping of embedded locale quotes
65286         * tests/test-quotearg.c (struct result_strings): Add member for
65287         new input.
65288         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65289         (inputs): Add new input.
65290         (results_g): Add expected results.
65291         (flag_results): Likewise.
65292         (locale_results): Likewise.
65293         (compare_strings): Check those.
65295 2009-08-23  Bruno Haible  <bruno@clisp.org>
65297         Tests for module 'dup3'.
65298         * modules/dup3-tests: New file.
65299         * tests/test-dup3.c: New file.
65301         New module 'dup3'.
65302         * lib/unistd.in.h (dup3): New declaration.
65303         * lib/dup3.c: New file.
65304         * m4/dup3.m4: New file.
65305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65306         HAVE_DUP3.
65307         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65308         * modules/dup3: New file.
65309         * doc/glibc-functions/dup3.texi: Mention the new module.
65311 2009-08-23  Bruno Haible  <bruno@clisp.org>
65313         Tweak the dup2 test.
65314         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65315         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65316         the test file is still empty. Fix argument order of lseek.
65318 2009-08-23  Bruno Haible  <bruno@clisp.org>
65320         Avoid test link errors when the modules getopt-gnu, gettext are used.
65321         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65324 2009-08-23  Bruno Haible  <bruno@clisp.org>
65326         Fix getdtablesize() on mingw.
65327         * lib/getdtablesize.c (getdtablesize): Implement differently.
65328         * lib/unistd.in.h (getdtablesize): Improve comment.
65330 2009-08-23  Bruno Haible  <bruno@clisp.org>
65332         New module 'mkostemp'.
65333         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65334         * lib/stdlib.in.h (mksotemp): New declaration.
65335         * lib/mkostemp.c: New file, from glibc with modifications.
65336         * lib/tempname.h (GT_FILE): Remove outdated comment.
65337         (gen_tempname): Add flags argument.
65338         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65339         (__GT_FILE): Map to 1.
65340         (small_open, large_open): Remove macros.
65341         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65342         * lib/mkstemp.c (mkstemp): Update.
65343         * lib/mkdtemp.c (mkdtemp): Likewise.
65344         * m4/mkostemp.m4: New file.
65345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65346         HAVE_MKOSTEMP.
65347         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65348         HAVE_MKOSTEMP.
65349         * modules/mkostemp: New file, based on modules/mkstemp.
65350         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65351         * NEWS: Mention the change.
65353 2009-08-23  Bruno Haible  <bruno@clisp.org>
65355         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65356         Reported by Eric Blake.
65358 2009-08-23  Bruno Haible  <bruno@clisp.org>
65360         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65361         Reported by Eric Blake.
65363 2009-08-23  Bruno Haible  <bruno@clisp.org>
65365         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65366         * modules/pipe2 (Depends-on): Likewise.
65368 2009-08-23  Eric Blake  <ebb9@byu.net>
65370         fcntl-h: add O_TTY_INIT support
65371         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65372         * tests/test-fcntl-h.c (o): Test it.
65373         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65375         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65376         * modules/fcntl: Move <fcntl.h> header replacement...
65377         * modules/fcntl-h: ...to new name, so as not to collide with
65378         like-named function.
65379         * tests/test-fcntl.c: Rename...
65380         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65381         * modules/fcntl-tests: Rename...
65382         * modules/fcntl-h-tests: ...to this.  Update test file name.
65383         * modules/chdir-long (Depends-on): Update clients.
65384         * modules/chdir-safer (Depends-on): Likewise.
65385         * modules/fcntl-safer (Depends-on): Likewise.
65386         * modules/fts (Depends-on): Likewise.
65387         * modules/mkancesdirs (Depends-on): Likewise.
65388         * modules/mkdir-p (Depends-on): Likewise.
65389         * modules/open (Depends-on): Likewise.
65390         * modules/savewd (Depends-on): Likewise.
65391         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65392         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65394 2009-08-22  Bruno Haible  <bruno@clisp.org>
65396         * modules/binary-io (License): Relicense under LGPL.
65397         * modules/pipe2 (License): Likewise.
65399 2009-08-22  Bruno Haible  <bruno@clisp.org>
65401         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65402         return value.
65403         * lib/pipe-filter-gi.c (filter_init): Likewise.
65404         Reported by Eric Blake.
65406 2009-08-22  Bruno Haible  <bruno@clisp.org>
65408         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65409         * modules/pipe (Depends-on): Add pipe2.
65411 2009-08-22  Bruno Haible  <bruno@clisp.org>
65413         Tests for module 'pipe2'.
65414         * modules/pipe2-tests: New file.
65415         * tests/test-pipe2.c: New file.
65417         New module 'pipe2'.
65418         * lib/unistd.in.h (pipe2): New declaration.
65419         * lib/pipe2.c: New file.
65420         * m4/pipe2.m4: New file.
65421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65422         HAVE_PIPE2.
65423         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65424         * modules/pipe2: New file.
65425         * doc/glibc-functions/pipe2.texi: Mention the new module.
65427 2009-08-22  Bruno Haible  <bruno@clisp.org>
65429         Reference some new glibc functions.
65430         * doc/glibc-functions/accept4.texi: New file.
65431         * doc/glibc-functions/dup3.texi: New file.
65432         * doc/glibc-functions/mkostemp.texi: New file.
65433         * doc/glibc-functions/pipe2.texi: New file.
65434         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65435         (Glibc sys/socket.h): Refer to accept4.
65436         (Glibc unistd.h): Refer to dup3, pipe2.
65437         Reported by Eric Blake.
65439 2009-08-22  Jim Meyering  <meyering@redhat.com>
65440             Bruno Haible  <bruno@clisp.org>
65442         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65443         This makes it so packages using automake-1.11's silent-rules option
65444         can print e.g., a single "GEN    configmake.h" line, rather than
65445         the 30+ statements that perform the job.  If you want to see the
65446         actual commands, you can still run "make V=1".
65447         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65448         so that make output is abbreviated when those variables are defined
65449         appropriately.
65450         * modules/argz: Likewise.
65451         * modules/arpa_inet: Likewise.
65452         * modules/byteswap: Likewise.
65453         * modules/configmake: Likewise.
65454         * modules/dirent: Likewise.
65455         * modules/errno: Likewise.
65456         * modules/fcntl: Likewise.
65457         * modules/float: Likewise.
65458         * modules/fnmatch: Likewise.
65459         * modules/getopt-posix: Likewise.
65460         * modules/glob: Likewise.
65461         * modules/iconv_open: Likewise.
65462         * modules/inttypes: Likewise.
65463         * modules/localcharset: Likewise.
65464         * modules/locale: Likewise.
65465         * modules/math: Likewise.
65466         * modules/netdb: Likewise.
65467         * modules/netinet_in: Likewise.
65468         * modules/poll: Likewise.
65469         * modules/posix_spawnp-tests: Likewise.
65470         * modules/sched: Likewise.
65471         * modules/search: Likewise.
65472         * modules/selinux-h: Likewise.
65473         * modules/signal: Likewise.
65474         * modules/spawn: Likewise.
65475         * modules/stdarg: Likewise.
65476         * modules/stdbool: Likewise.
65477         * modules/stddef: Likewise.
65478         * modules/stdint: Likewise.
65479         * modules/stdio: Likewise.
65480         * modules/stdlib: Likewise.
65481         * modules/string: Likewise.
65482         * modules/strings: Likewise.
65483         * modules/sys_file: Likewise.
65484         * modules/sys_ioctl: Likewise.
65485         * modules/sys_select: Likewise.
65486         * modules/sys_socket: Likewise.
65487         * modules/sys_stat: Likewise.
65488         * modules/sys_time: Likewise.
65489         * modules/sys_times: Likewise.
65490         * modules/sys_utsname: Likewise.
65491         * modules/sys_wait: Likewise.
65492         * modules/sysexits: Likewise.
65493         * modules/time: Likewise.
65494         * modules/unistd: Likewise.
65495         * modules/wchar: Likewise.
65496         * modules/wctype: Likewise.
65498 2009-08-22  Jim Meyering  <meyering@redhat.com>
65500         announce-gen: detect write failure
65501         * build-aux/announce-gen: Add Coda at end.
65502         Remove equivalent-but-more-verbose block at top.
65504 2009-08-19  Akim Demaille  <demaille@gostai.com>
65506         bootstrap: --help to stdout.
65507         * bootstrap (usage): Don't send --help to stderr.
65508         Use a here doc instead of a long string.
65510 2009-08-21  Eric Blake  <ebb9@byu.net>
65512         test-popen-safer: split from test-popen
65513         * tests/test-popen.c (main): Move...
65514         * tests/test-popen.h: ...into new file.
65515         * tests/test-popen-safer2.c: New file.
65516         * modules/popen-tests (Files): Add test-popen.h.
65517         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65518         Suggested by Bruno Haible.
65520         test-fcntl-safer: split from test-open
65521         * tests/test-open.c (main): Move...
65522         * tests/test-open.h: ...into new file.
65523         * tests/test-fcntl-safer.c: New file.
65524         * modules/open-tests (Files): Add test-open.h.
65525         * modules/fcntl-safer-tests: New file.
65526         Suggested by Bruno Haible.
65528         test-fopen-safer: split from test-fopen
65529         * tests/test-fopen.c (main): Move...
65530         * tests/test-fopen.h: ...into new file.
65531         * tests/test-fopen-safer.c: New file.
65532         * modules/fopen-tests (Files): Add test-fopen.h.
65533         * modules/fopen-safer-tests: New file.
65534         Suggested by Bruno Haible.
65536 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65538         popen-safer: test O_CLOEXEC at run-time.
65539         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65541 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65543         fcntl: move more flags to the header
65544         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65545         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65546         * lib/fcntl.in.h: Do both things here.
65548 2009-08-21  Jim Meyering  <meyering@redhat.com>
65550         consistently remove $@-t before redirecting to it
65551         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65552         * modules/alloca-opt: Likewise.
65553         * modules/byteswap: Likewise.
65554         * modules/fnmatch: Likewise.
65555         * modules/getopt-posix: Likewise.
65556         * modules/glob: Likewise.
65557         * modules/poll: Likewise.
65558         * modules/posix_spawnp-tests: Likewise.
65559         * modules/sys_socket: Likewise.
65560         * modules/sysexits: Likewise.
65562 2009-08-21  Eric Blake  <ebb9@byu.net>
65564         popen: simplify access to original popen
65565         * lib/popen.c (rpl_popen): No need to worry about popen being a
65566         macro.
65567         Reported by Bruno Haible.
65569 2009-08-20  Eric Blake  <ebb9@byu.net>
65571         build: avoid some compiler warnings
65572         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65573         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65574         type.
65575         (new_exclude_segment, excluded_file_pattern_p)
65576         (excluded_file_name_p): Reduce scope.
65577         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65578         old-style declaration.
65580 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65582         * tests/test-exclude1.sh: Handle Windows EOL.
65583         * tests/test-exclude2.sh: Likewise.
65584         * tests/test-exclude3.sh: Likewise.
65585         * tests/test-exclude4.sh: Likewise.
65586         * tests/test-exclude5.sh: Likewise.
65587         * tests/test-exclude6.sh: Likewise.
65588         * tests/test-exclude7.sh: Likewise.
65590 2009-08-19  Akim Demaille  <demaille@gostai.com>
65592         bootstrap: find sha1sum when named gsha1sum.
65593         * bootstrap (find_tool): New.
65594         ($SHA1SUM): New.
65595         Use it.
65597 2009-08-20  Jim Meyering  <meyering@redhat.com>
65599         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65600         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65601         expression that converts "." in a file name to "\." in the resulting
65602         regexp.  Start with a dummy statement, so that prior shell variable
65603         definitions are expanded portably.  Reported by Simon Josefsson.
65605 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65607         Fix polling for writeability of a screen buffer.
65608         * lib/poll.c: Distinguish input and screen buffers for the
65609         Win32 implementation.
65610         * lib/select.c: Likewise.
65612 2009-08-19  Eric Blake  <ebb9@byu.net>
65614         popen-safer: prevent popen from clobbering std descriptors
65615         * modules/popen-safer: New file.
65616         * lib/popen-safer.c: Likewise.
65617         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65618         * lib/stdio--.h (popen): Provide override.
65619         * lib/stdio-safer.h (popen_safer): Provide declaration.
65620         * tests/test-popen.c (includes): Partially test this.
65621         * modules/popen-safer-tests: New file, for more tests.
65622         * tests/test-popen-safer.c: Likewise.
65623         * MODULES.html.sh (file stream based Input/Output): Mention it.
65625         tests: test some of the *-safer modules
65626         * modules/fopen-safer (Depends-on): Add fopen.
65627         * modules/fcntl-safer (Depends-on): Add fcntl.
65628         * modules/stdlib-safer (Depends-on): Add stdlib.
65629         (configure.ac): Set indicator.
65630         * modules/unistd-safer (configure.ac): Likewise.
65631         * modules/tmpfile-safer (configure.ac): Likewise.
65632         (Depends-on): Add tmpfile.
65633         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65634         active.
65635         * tests/test-fopen.c (includes): Test safer versions when they are
65636         in use.
65637         * tests/test-open.c (includes): Likewise.
65639         popen: fix cygwin 1.5 bug when stdin closed
65640         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65641         * modules/popen: New file.
65642         * modules/popen-tests: Likewise.
65643         * tests/test-popen.c: Likewise.
65644         * m4/popen.m4: Likewise.
65645         * lib/popen.c: Likewise.
65646         * lib/stdio.in.h (popen): New declaration.
65647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65648         * modules/stdio (Makefile.am): Likewise.
65649         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65651 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65653         maint.mk: give full control over update-copyright exclusions
65654         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65655         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65656         (update-copyright): Don't force inclusion of top-level
65657         ChangeLog.  Don't force exclusion of all COPYING files, but make
65658         them the default exclusion instead.
65660 2009-08-16  Bruno Haible  <bruno@clisp.org>
65662         Fix test failures on Solaris 10.
65663         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65664         tests when Solaris iconv() is used.
65665         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65666         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65667         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65668         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65669         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65671 2009-08-16  Bruno Haible  <bruno@clisp.org>
65673         Fix test failures on Solaris 10.
65674         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65675         'tr' program and pass it as first argument.
65676         * tests/test-pipe-filter-gi1.sh: Likewise.
65677         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65678         program as first argument.
65679         * tests/test-pipe-filter-gi1.c (main): Likewise.
65681 2009-08-16  Eric Blake  <ebb9@byu.net>
65683         fpurge: fix previous commits
65684         * modules/fpurge (Makefile.am): Make replacement conditional,
65685         partially reverting 2007-04-29 change; missed in previous
65686         attempt.
65687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65688         is missing.
65690 2009-08-16  Bruno Haible  <bruno@clisp.org>
65692         Clarify fpurge's effect on the file position.
65693         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65694         * tests/test-fpurge.c (main): Make a second pass for checking the file
65695         position.
65697 2009-08-16  Bruno Haible  <bruno@clisp.org>
65699         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65700         declaration of fpurge is missing.
65701         * tests/test-fpurge.c (main): Check that the file has not more contents
65702         than expected. Close the file before removing it.
65704 2009-08-15  Eric Blake  <ebb9@byu.net>
65706         fpurge: don't wrap working cygwin implementation
65707         * lib/fpurge.c (fpurge): Fix comment typo.
65708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65709         1.7 to avoid replacement.
65710         * tests/test-fpurge.c (main): Enhance test.
65712 2009-08-15  Eric Blake  <ebb9@byu.net>
65713         and Jim Meyering  <meyering@redhat.com>
65715         test-update-copyright: skip if perl is insufficient
65716         * tests/test-update-copyright.sh: Failure to run maintainer tool
65717         should not cause testsuite failure on cygwin 1.5.
65719 2009-08-14  Eric Blake  <ebb9@byu.net>
65721         doc: mention more functions added in cygwin 1.7.0
65722         * doc/posix-headers/limits.texi (limits.h): Update for recent
65723         cygwin additions.
65724         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65725         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65726         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65727         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65728         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65730 2009-08-14  Eric Blake  <ebb9@byu.net>
65732         maint.mk: simplify update-copyright rule
65733         * top/maint.mk (update-copyright-local): Delete, and document how
65734         to do it in cfg.mk instead.
65735         (update-copyright-exclude-regexp): Delete, and document how to do
65736         it in .x-update-copyright instead.
65737         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65738         exclude ChangeLog.
65740 2009-08-14  Bruno Haible  <bruno@clisp.org>
65742         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65744 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65746         maint.mk: support update-copyright-env
65747         * top/maint.mk (update-copyright-env): Define place-holder.
65748         (update-copyright): Expand $(update-copyright-env) before
65749         invoking update-copyright.
65751 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65753         update-copyright: implement forced reformatting
65754         * build-aux/update-copyright: Implement and document
65755         UPDATE_COPYRIGHT_FORCE.
65756         * tests/test-update-copyright.sh: Test it.
65758 2009-08-14  Eric Blake  <ebb9@byu.net>
65759         and Bruno Haible  <bruno@clisp.org>
65761         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65762         * tests/test-locale.c: Revert previous patch related to NULL.
65763         * tests/test-stdio.c: Likewise.
65764         * tests/test-stdlib.c: Likewise.
65765         * tests/test-string.c: Likewise.
65766         * tests/test-unistd.c: Likewise.
65767         * modules/time-tests (Depends-on): Add verify.
65768         * modules/wchar-tests (Depends-on): Likewise.
65769         * tests/test-time.c: Test for NULL compliance.
65770         * tests/test-wchar.c: Likewise.
65771         * modules/locale (Depends-on): Add stddef.
65772         * modules/stdio (Depends-on): Likewise.
65773         * modules/stdlib (Depends-on): Likewise.
65774         * modules/string (Depends-on): Likewise.
65775         * modules/time (Depends-on): Likewise.
65776         * modules/unistd (Depends-on): Likewise.
65777         * modules/wchar (Depends-on): Likewise.
65778         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65779         * lib/stdlib.in.h (includes): Likewise.
65780         * lib/string.in.h (includes): Likewise.
65781         * lib/time.in.h (includes): Likewise.
65782         * lib/unistd.in.h (includes): Likewise.
65783         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65784         replaced.
65785         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65786         * m4/stddef_h.m4: New file.
65787         * modules/stddef: Likewise.
65788         * lib/stddef.in.h: Likewise.
65789         * modules/stddef-tests: Likewise.
65790         * tests/test-stddef.c: Likewise.
65791         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65792         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65793         * doc/posix-headers/locale.texi (locale.h): Likewise.
65794         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65795         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65796         * doc/posix-headers/string.texi (string.h): Likewise.
65797         * doc/posix-headers/time.texi (time.h): Likewise.
65798         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65799         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65801 2009-08-14  Eric Blake  <ebb9@byu.net>
65803         doc: improve git diff of texinfo files
65804         * .gitattributes: Add rule for *.texi files, with hint on how to
65805         use it.
65806         Copied from m4, and based on a report by Bruno Haible.
65808 2009-08-14  Bruno Haible  <bruno@clisp.org>
65810         Disable multithread support by default on Cygwin 1.5.x for real.
65811         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65813 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65815         update-copyright: much ado about intervals
65816         * build-aux/update-copyright: Implement and document
65817         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65818         of copyright year intervals.
65819         Also, document UPDATE_COPYRIGHT_YEAR.
65820         * tests/test-update-copyright.sh: Test it.
65822         update-copyright: convert 2-digit to 4-digit years
65823         * build-aux/update-copyright: Implement and document.
65824         * tests/test-update-copyright.sh: Update.
65826 2009-08-14  Jim Meyering  <meyering@redhat.com>
65828         test-exclude: avoid coreutils "make check" failure
65829         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65830         just as in test-argmatch.c.
65832 2009-08-13  Eric Blake  <ebb9@byu.net>
65834         test-dup2: fix bad assumption
65835         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65836         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65838         test-version-etc: fix CRLF portability issue
65839         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65840         recognize \r.
65841         * tests/test-argp-version-etc-1.sh: Likewise.
65843         getopt: update client modules
65844         * modules/argp (Depends-on): Use getopt-gnu.
65845         * modules/git-merge-changelog (Depends-on): Likewise.
65846         * modules/long-options (Depends-on): Likewise.
65847         * modules/xstrtol (Depends-on): Likewise.
65849 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65851         * tests/test-version-etc.sh: Don't fail on different
65852         project/version.  Don't fail on CRLF differences.  Rewrite to use
65853         multiple -e instead of multiple sed forks, suggested by Eric Blake
65854         <ebb9@byu.net>.
65855         * tests/test-argp-version-etc-1.sh: Likewise.
65857 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65859         * tests/test-version-etc.sh: Don't fail on different
65860         project/version.
65862 2009-08-12  Bruno Haible  <bruno@clisp.org>
65864         Tests for modules 'getopt-posix', 'getopt-gnu'.
65865         * modules/getopt-posix-tests: New file.
65866         * tests/test-getopt.c: New file.
65867         * tests/test-getopt.h: New file.
65868         * tests/test-getopt_long.h: New file.
65870         New modules 'getopt-posix', 'getopt-gnu'.
65871         * modules/getopt-gnu: New file, renamed from modules/getopt.
65872         * modules/getopt-posix: New file.
65873         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65874         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65875         (gl_GETOPT): Remove macro.
65876         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65877         Disable the test against BSD systems that declare optreset. Test
65878         against mingw bug. Test against lack of support of optional arguments
65879         on many platforms.
65880         * doc/glibc-headers/getopt.texi: Update module name and list of
65881         relevant platforms.
65882         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65883         'getopt-gnu' and more portability problems.
65884         * NEWS: Mention the changes.
65886 2009-08-12  Bruno Haible  <bruno@clisp.org>
65888         Ensure that optarg etc. get declared by <unistd.h>.
65889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65890         AC_USE_SYSTEM_EXTENSIONS.
65891         * modules/getopt (Depends-on): Add 'extensions'.
65893 2009-08-12  Bruno Haible  <bruno@clisp.org>
65895         Avoid test link errors.
65896         * modules/pipe-filter-ii-tests (Makefile.am): Define
65897         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
65898         * modules/pipe-filter-gi-tests (Makefile.am): Define
65899         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
65900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65902 2009-08-12  Bruno Haible  <bruno@clisp.org>
65904         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
65905         gl_GETOPT_SUBSTITUTE before.
65906         (gl_GETOPT): Use it.
65907         * m4/argp.m4 (gl_ARGP): Update.
65908         Reported by Sergey Poznyakoff.
65910         * m4/getopt.m4: Reorder macros.
65911         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
65912         (gl_GETOPT_SUBSTITUTE): Remove macro.
65914 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65916         Minor improvement in gitlog-to-changelog
65918         * build-aux/gitlog-to-changelog: New option `--format' makes
65919         output format string configurable.
65921 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65923         Optimize exclude: use hash tables for non-wildcard patterns.
65925         * lib/exclude.c: Include hash.h and mbuiter.h
65926         (struct exclude_pattern, exclude_segment): New data types.
65927         (struct exclude): Rewrite.
65928         (fnmatch_pattern_has_wildcards): New function.
65929         (new_exclude_segment, free_exclude_segment): New functions.
65930         (excluded_file_pattern_p, excluded_file_name_p): New functions.
65931         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
65932         * lib/exclude.h (is_fnmatch_pattern): New prototype.
65933         * modules/exclude: Depend on hash and mbuiter.
65935         * modules/exclude-tests: New file.
65936         * tests/test-exclude.c: New file.
65937         * tests/test-exclude1.sh: New file.
65938         * tests/test-exclude2.sh: New file.
65939         * tests/test-exclude3.sh: New file.
65940         * tests/test-exclude4.sh: New file.
65941         * tests/test-exclude5.sh: New file.
65942         * tests/test-exclude6.sh: New file.
65943         * tests/test-exclude7.sh: New file.
65945 2009-08-12  Bruno Haible  <bruno@clisp.org>
65947         Ensure that getopt() gets declared by <unistd.h>.
65948         * lib/unistd.in.h: Conditionally include getopt.h.
65949         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
65950         Set GNULIB_UNISTD_H_GETOPT.
65951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65952         GNULIB_UNISTD_H_GETOPT.
65953         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
65955 2009-08-12  Bruno Haible  <bruno@clisp.org>
65957         Clarify logic.
65958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
65959         gl_replace_getopt instead of GETOPT_H.
65961 2009-08-12  Bruno Haible  <bruno@clisp.org>
65963         * m4/getopt.m4: Add comments.
65965 2009-08-12  Bruno Haible  <bruno@clisp.org>
65967         Disable multithread support by default on Cygwin 1.5.x.
65968         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
65969         set gl_use_threads=no if not specified otherwise.
65971 2009-08-11  Bruno Haible  <bruno@clisp.org>
65973         Avoid compilation error on NetBSD 5.0.
65974         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
65975         * tests/test-stdio.c: Likewise.
65976         * tests/test-stdlib.c: Likewise.
65977         * tests/test-string.c: Likewise.
65978         * tests/test-unistd.c: Likewise.
65979         Reported by Greg Troxel <gdt@ir.bbn.com>
65980         at <https://savannah.gnu.org/support/?106973>.
65982 2009-08-11  Bruno Haible  <bruno@clisp.org>
65984         * modules/dup2-tests (Depends-on): Remove close.
65986         Undo 2009-07-19 commit.
65987         * modules/acl-tests (Depends-on): Remove close.
65988         * modules/binary-io-tests (Depends-on): Likewise.
65989         * modules/closein-tests (Depends-on): Likewise.
65990         * modules/flock-tests (Depends-on): Likewise.
65991         * modules/fsync-tests (Depends-on): Likewise.
65992         * modules/lseek-tests (Depends-on): Likewise.
65993         * modules/pipe-tests (Depends-on): Likewise.
65994         * modules/posix_spawn-tests (Depends-on): Likewise.
65995         * modules/posix_spawnp-tests (Depends-on): Likewise.
65996         * modules/stat-time-tests (Depends-on): Likewise.
65997         * modules/yesno-tests (Depends-on): Likewise.
65999 2009-08-10  Bruno Haible  <bruno@clisp.org>
66001         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66003 2009-08-10  Bruno Haible  <bruno@clisp.org>
66005         Fix a gcc warning.
66006         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66008 2009-08-10  Bruno Haible  <bruno@clisp.org>
66010         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66011         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66012         not only the first time.
66013         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66014         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66015         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66016         is 1, not only the first time.
66018 2009-08-10  Bruno Haible  <bruno@clisp.org>
66020         Make it possible to use module 'gethostname' without module 'close'.
66021         * lib/unistd.in.h (close): Evoke a link error only if
66022         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66024         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66025         * modules/unistd (Makefile.am): Substitute
66026         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66027         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66028         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66030         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66031         * modules/sys_ioctl (Makefile.am): Substitute
66032         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66033         * modules/socket (configure.ac): On native Windows, set
66034         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66035         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66036         Reported by Sam Steingold <sds@gnu.org>.
66038 2009-08-10  Bruno Haible  <bruno@clisp.org>
66040         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66041         * modules/ioctl (configure.ac): Likewise.
66043 2009-08-10  Bruno Haible  <bruno@clisp.org>
66045         Avoid collision between gnulib wrapper and libintl wrapper.
66046         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66047         already defined in intl/printf.c.
66048         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66049         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66051 2009-08-09  Bruno Haible  <bruno@clisp.org>
66053         Make <sys/select.h> really self-contained, also on Solaris 10.
66054         * lib/sys_select.in.h: Include <string.h>.
66055         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66056         Solaris 10 problem.
66057         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66058         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66059         Reported by Jim Meyering.
66061 2009-08-09  Bruno Haible  <bruno@clisp.org>
66063         Avoid warnings from 'aclocal' that are due to a use of macro name
66064         AM_XGETTEXT_OPTION that is not defined in automake.
66065         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66066         automake.
66067         * modules/error (configure.ac): Likewise.
66068         * modules/propername (configure.ac): Likewise.
66069         * modules/vasprintf (configure.ac): Likewise.
66070         * modules/verror (configure.ac): Likewise.
66071         * modules/xprintf (configure.ac): Likewise.
66072         * modules/xvasprintf (configure.ac): Likewise.
66074 2009-08-08  Bruno Haible  <bruno@clisp.org>
66076         Avoid compilation error in C++ mode.
66077         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66078         Reported by Sam Steingold <sds@gnu.org>.
66080 2009-08-08  Bruno Haible  <bruno@clisp.org>
66082         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66083         for the various Unix platforms.
66084         * doc/posix-headers/limits.texi: Update platforms list regarding
66085         HOST_NAME_MAX.
66086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66088 2009-08-07  Jim Meyering  <meyering@redhat.com>
66090         selinux-at: fix typo in a comment
66091         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66092         Spotted by Paolo Bonzini.
66094         selinux-at: remove redundant m4 code, add documentation
66095         * modules/selinux-at (configure.ac): Remove redundant code.
66096         LIB_SELINUX is already set via the dependent module, selinux-h.
66097         (Include): Add quotes around selinux-at.h.
66098         * lib/selinux-at.h: Add documentation.
66099         Reported by Bruno Haible in
66100         http://marc.info/?l=gnulib-bug&m=124958988300749
66102 2009-08-07  Bruno Haible  <bruno@clisp.org>
66104         Avoid link error on MacOS X 10.3 and 10.4.
66105         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66106         on non-ELF systems.
66107         * lib/argp-pv.c (argp_program_version): Likewise.
66108         Reported by Simon Josefsson.
66110 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66112         * tests/test-version-etc.sh: Use $EXEEXT.
66114 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66116         update-copyright: update documentation to point to maint.mk
66117         * build-aux/update-copyright: Here.
66119 2009-08-06  Jim Meyering  <meyering@redhat.com>
66121         maint.mk: support update-copyright-local
66122         * top/maint.mk (update-copyright-local): Define place-holder.
66123         (update-copyright): Depend on $(update-copyright-local).
66125 2009-08-06  Jim Meyering  <meyering@redhat.com>
66127         selinux-at: new module
66128         Initially written for coreutils, this module will soon be
66129         used by findutils, too.
66130         * MODULES.html.sh [Misc]: Add selinux-at.
66131         * lib/selinux-at.h: New file, from coreutils.
66132         * lib/selinux-at.c: Likewise.
66133         * modules/selinux-at: Likewise.
66134         (License): Change from LGPL to GPL, since it depends
66135         on the GPL'd openat module.
66137         doc: update README
66138         * README: Remove references to cogito.
66139         Remove cvs-repo-updating instructions from 2007.
66140         Don't imply that CVS is better if you have limited disk space.
66142 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66144         update-copyright: support C-style comments
66145         * build-aux/update-copyright: Implement and document.
66146         * tests/test-update-copyright.sh: Test.
66148 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66150         update-copyright: support omitted "(C)"
66151         * build-aux/update-copyright: Implement and document.  Also,
66152         allow variable whitespace before "(C)".
66153         * tests/test-update-copyright.sh: Test.
66155 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66157         update-copyright: don't trip on non-FSF copyright statements
66158         * build-aux/update-copyright: Fix so that the first correctly
66159         formatted FSF copyright statement is recognized no matter what
66160         appears before it.  Update documentation.
66161         * tests/test-update-copyright.sh: Test that.
66163 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66165         update-copyright: clean up code a little
66166         * build-aux/update-copyright: Append "_re" to the name of any
66167         variable holding a regular expression.
66168         Replace "old" and "new" with "stmt" in variable names.
66169         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66170         handled correctly.
66171         Format code more consistently.
66173 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66175         update-copyright-tests: improve portability
66176         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66177         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66179 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66181         update-copyright: support @copyright{} and &copy;
66182         * build-aux/update-copyright: Implement and document.
66183         * tests/test-update-copyright.sh: Test.
66185 2009-08-04  Jim Meyering  <meyering@redhat.com>
66187         update-copyright-tests: correctly test EOL=\r\n handling
66188         * tests/test-update-copyright.sh: Put \r at the end of some lines
66189         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66191         maint.mk: make update-copyright exclusion list more configurable
66192         * top/maint.mk (update-copyright): Default to excluding COPYING,
66193         but allow an override, in case someone does want to update that file.
66195         maint.mk: don't update copyright date in COPYING
66196         * top/maint.mk (update-copyright): Exclude COPYING.
66198         maint.mk: add a copyright-updating rule
66199         * top/maint.mk (update-copyright): New rule.
66200         Derived from coreutils/Makefile.am.
66202         update-copyright: rename some variables
66203         * build-aux/update-copyright: Rename a few variables for clarity.
66204         Tweak syntax.  List Joel E. Denny as coauthor.
66206 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66208         update-copyright: fix bug for 2-digit last year and add tests
66209         * build-aux/update-copyright: Fix bug.
66210         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66211         specified.
66212         * modules/update-copyright-tests: New
66213         * tests/test-update-copyright.sh: New.
66215 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66217         update-copyright: handle leading tabs in line prefix
66218         * build-aux/update-copyright: Count leading tabs as 8 spaces
66219         when computing margin.  This helps with the formatting of
66220         ChangeLogs, for example.
66221         Fix documentation a little.
66223 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66225         update-copyright: support EOL=\r\n
66226         * build-aux/update-copyright: Implement that.
66228 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66230         update-copyright: automatically format copyright statements
66231         * build-aux/update-copyright: Implement that.
66232         Also, be a little more predictable and safer by always failing
66233         when the full copyright format is not perfectly recognized as an
66234         unbroken whole.  Discussed at
66235         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66236         Rewrite documentation.
66238 2009-08-03  Bruno Haible  <bruno@clisp.org>
66240         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66242 2009-08-02  Bruno Haible  <bruno@clisp.org>
66244         Tests for module 'uname'.
66245         * modules/uname-tests: New file.
66246         * tests/test-uname.c: New file.
66248         New module 'uname'.
66249         * lib/uname.c: New file.
66250         * m4/uname.m4: New file.
66251         * modules/uname: New file.
66252         * doc/posix-functions/uname.texi: Mention the new module.
66254 2009-08-02  Bruno Haible  <bruno@clisp.org>
66256         Tests for module 'sys_utsname'.
66257         * modules/sys_utsname-tests: New file.
66258         * tests/test-sys_utsname.c: New file.
66260         New module 'sys_utsname'.
66261         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66262         * m4/sys_utsname_h.m4: New file.
66263         * modules/sys_utsname: New file.
66264         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66266 2009-08-02  Bruno Haible  <bruno@clisp.org>
66268         Implicitly initialize the sockets library.
66269         * lib/gethostname.c: Include sockets.h.
66270         (rpl_gethostname): Invoke gl_sockets_startup.
66271         * lib/socket.c: Include sockets.h.
66272         (rpl_socket): Invoke gl_sockets_startup.
66273         * modules/gethostname (Depends-on): Add sockets.
66274         * modules/socket (Depends-on): Likewise.
66275         * tests/test-poll.c: Don't include sockets.h.
66276         (main): Don't invoke gl_sockets_startup.
66277         * tests/test-select.c: Don't include sockets.h.
66278         (main): Don't invoke gl_sockets_startup.
66280 2009-08-02  Bruno Haible  <bruno@clisp.org>
66282         Allow multiple calls to gl_sockets_startup.
66283         * lib/sockets.c (initialized_sockets_version): New variable.
66284         (gl_sockets_startup): Do nothing if already called for this or a higher
66285         version.
66286         (gl_sockets_cleanup): Reset initialized_sockets_version.
66288 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66290         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66291         different project/version.
66293 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66294             Bruno Haible  <bruno@clisp.org>
66296         Tests for module 'pipe-filter-gi'.
66297         * modules/pipe-filter-gi-tests: New file.
66298         * tests/test-pipe-filter-gi1.sh: New file.
66299         * tests/test-pipe-filter-gi1.c: New file.
66300         * tests/test-pipe-filter-gi2.sh: New file.
66301         * tests/test-pipe-filter-gi2-main.c: New file.
66302         * tests/test-pipe-filter-gi2-child.c: New file.
66304         New module 'pipe-filter-gi'.
66305         * lib/pipe-filter-gi.c: New file.
66306         * modules/pipe-filter-gi: New file.
66308 2009-08-02  Bruno Haible  <bruno@clisp.org>
66309             Paolo Bonzini  <bonzini@gnu.org>
66311         Tests for module 'pipe-filter-ii'.
66312         * modules/pipe-filter-ii-tests: New file.
66313         * tests/test-pipe-filter-ii1.sh: New file.
66314         * tests/test-pipe-filter-ii1.c: New file.
66315         * tests/test-pipe-filter-ii2.sh: New file.
66316         * tests/test-pipe-filter-ii2-main.c: New file.
66317         * tests/test-pipe-filter-ii2-child.c: New file.
66319         New module 'pipe-filter-ii'.
66320         * lib/pipe-filter.h: New file.
66321         * lib/pipe-filter-ii.c: New file.
66322         * lib/pipe-filter-aux.h: New file.
66323         * modules/pipe-filter-ii: New file.
66325 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66327         * lib/gc-libgcrypt.c: Change copyright to FSF.
66328         * lib/gc-gnulib.c: Likewise.
66330 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66332         * lib/gethostname.c: Include limits.h.
66334 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66335             Bruno Haible  <bruno@clisp.org>
66337         Ensure HOST_NAME_MAX as part of the gethostname module.
66338         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66339         define also HOST_NAME_MAX.
66340         * tests/test-gethostname.c: Include <limits.h>.
66341         (main): Check also HOST_NAME_MAX.
66342         * doc/posix-headers/limits.texi: Document the mingw problem.
66344 2009-08-02  Bruno Haible  <bruno@clisp.org>
66346         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66347         Add comments.
66349 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66351         * lib/gethostname.c: Add Windows wrapper.
66352         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66353         * modules/gethostname: Depend on sys_socket & errno, for also
66354         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66355         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66357 2009-07-31  Jim Meyering  <meyering@redhat.com>
66359         getloadavg: fix symbol name in comment
66360         * lib/getloadavg.c: Correct a typo I introduced when adding
66361         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66362         Matt Kraai spotted the problem.
66364 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66366         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66367         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66368         code also if ! defined N_NAME_POINTER.
66369         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66370         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66371         but the n_name member is a 12-byte array.
66373 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66375         update-copyright: generalize comment handling
66376         * build-aux/update-copyright: Handle copyright statements
66377         within more comment styles.
66378         Document usage.
66379         Report any file with an external copyright holder or parse failure.
66381 2009-07-29  Jim Meyering  <meyering@redhat.com>
66383         mktime: correct setting of REPLACE_MKTIME
66384         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66386         update-copyright: new module
66387         * modules/update-copyright: New file.
66388         * build-aux/update-copyright: New file.
66389         * MODULES.html.sh (maint+release support): Add update-copyright.
66391 2009-07-27  Bruno Haible  <bruno@clisp.org>
66393         Fix compilation error when <ctime> is used and mktime is replaced.
66394         * lib/time.in.h (mktime): New declaration.
66395         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66396         REPLACE_MKTIME instead of defining mktime in config.h.
66397         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66398         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66399         Reported by Ross McFarland <rwmcfa1@neces.com>.
66401 2009-07-27  Bruno Haible  <bruno@clisp.org>
66403         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66404         Reported by Matt Kraai <mkraai@beckman.com>.
66406 2009-07-25  Jim Meyering  <meyering@redhat.com>
66408         maint.mk: avoid warnings about missing files
66409         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66410         diagnostic when .prev-version does not exist.
66411         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66412         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66413         nonexistent cfg.mk.
66414         Suggestions from Simon Josefsson.
66416 2009-07-25  Bruno Haible  <bruno@clisp.org>
66418         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66419         defined as macros. Needed on QNX 6.4.1.
66420         Reported by Matt Kraai <mkraai@beckman.com>.
66422 2009-07-23  Jim Meyering  <meyering@redhat.com>
66424         maint.mk: invoke "make dist" with a working value of XZ_OPT
66425         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66427 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66429         Make fseeko.c compile on QNX.
66430         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66432 2009-07-22  Peter Simons  <simons@cryp.to>
66434         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66435         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66436         * lib/md4.h: Likewise.
66437         * lib/md5.h: Likewise.
66438         * lib/sha1.h: Likewise.
66439         * lib/sha256.h: Likewise.
66440         * lib/sha512.h: Likewise.
66442         tests-sha1: don't assign literal string to 'char *' variable
66443         * tests/test-sha1.c (main): Declare locals with "const" to match
66444         attributes of the right hand side.
66446 2009-07-21  Eric Blake  <ebb9@byu.net>
66448         dup2: fix more mingw problems
66449         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66450         fd to itself.
66451         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66452         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66453         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66454         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66455         care of mingw bugs.
66457 2009-07-21  Jim Meyering  <meyering@redhat.com>
66459         vc-list-files: avoid failure when /bin/sh is dash
66460         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66461         On some Debian based systems, /bin/sh is a symlink to dash, and running
66462         this command would omit the "/" following each 'tests' prefix:
66463           dash -x build-aux/vc-list-files -C . tests
66464         That is because bash and dash work differently:
66465           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66466           bash ok
66467           dash odd
66469 2009-07-21  Eric Blake  <ebb9@byu.net>
66471         dup2-tests: test previous patch
66472         * modules/dup2-tests: New file.
66473         * tests/test-dup2.c: Likewise.
66474         * tests/test-open.c (main): Avoid unspecified behavior.
66475         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66476         test.
66478         dup2: work around mingw and cygwin 1.5 bug
66479         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66481         * modules/unistd (Makefile.am): Substitute it.
66482         * lib/unistd.in.h (dup2): Declare the replacement.
66483         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66484         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66485         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66486         * modules/execute (Depends-on): Add dup2.
66487         * modules/fseterr (Depends-on): Likewise.
66488         * modules/pipe (Depends-on): Likewise.
66489         * modules/posix_spawn-internal (Depends-on): Likewise.
66491 2009-07-21  Bruno Haible  <bruno@clisp.org>
66493         * modules/.gitattributes: New file.
66495 2009-07-20  Bruno Haible  <bruno@clisp.org>
66497         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66498         (main): Use it.
66500 2009-07-20  Eric Blake  <ebb9@byu.net>
66502         test-pipe: make a bit more robust.
66503         * tests/test-pipe.c (myerr): Allow error messages regardless of
66504         what we do to stderr.
66505         (test_pipe): Rearrange to avoid deadlock.
66506         (child_main): Try a larger read, to ensure we avoided deadlock.
66507         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66508         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66509         if misused.
66511 2009-07-19  Jim Meyering  <meyering@redhat.com>
66513         fts: avoid false-positive cycle-detection
66514         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66515         for each new command line argument.
66517 2009-07-19  Bruno Haible  <bruno@clisp.org>
66519         Fix build error on mingw with the modules sys_select and unistd.
66520         * modules/acl-tests (Depends-on): Add close.
66521         * modules/binary-io-tests (Depends-on): Likewise.
66522         * modules/closein-tests (Depends-on): Likewise.
66523         * modules/flock-tests (Depends-on): Likewise.
66524         * modules/fsync-tests (Depends-on): Likewise.
66525         * modules/lseek-tests (Depends-on): Likewise.
66526         * modules/pipe-tests (Depends-on): Likewise.
66527         * modules/posix_spawn-tests (Depends-on): Likewise.
66528         * modules/posix_spawnp-tests (Depends-on): Likewise.
66529         * modules/stat-time-tests (Depends-on): Likewise.
66530         * modules/yesno-tests (Depends-on): Likewise.
66532 2009-07-19  Bruno Haible  <bruno@clisp.org>
66534         Unify conditionals.
66535         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66536         macros, not at the compiler macros.
66537         * lib/pipe.c: Likewise.
66538         * lib/execute.c: Likewise.
66539         * lib/spawni.c: Likewise.
66541 2009-07-19  Bruno Haible  <bruno@clisp.org>
66543         Fix handling of closed stdin/stdout/stderr on mingw.
66544         * lib/w32spawn.h: Include unistd.h.
66545         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66546         file descriptor with O_NOINHERIT flag.
66547         (fd_safer_noinherit): New function, based on fd-safer.c.
66548         (dup_safer_noinherit): New function, based on dup-safer.c.
66549         (undup_safer_noinherit): New function.
66550         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66551         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66552         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66553         instead of fd_safer.
66554         * tests/test-pipe.c: Include <windows.h>.
66555         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66556         result.
66558         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66559         from main.
66560         (test_pipe): Pass an extra argument for disambiguation.
66561         (main): Invoke parent_main or child_main.
66563         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66564         consistently.
66566 2009-07-18  Eric Blake  <ebb9@byu.net>
66568         test-pipe: fix mingw build
66569         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66571 2009-07-18  Bruno Haible  <bruno@clisp.org>
66573         * modules/pipe-tests (Makefile.am): Fix typo.
66575 2009-07-18  Eric Blake  <ebb9@byu.net>
66577         error: fix mingw build
66578         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66579         Reported by Bruno Haible.
66581         error: avoid undefined use of stdout
66582         * lib/error.c (error, error_at_line): Check that fd 1 is open
66583         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66584         is handling faults and the close_stdout module wants to report the
66585         detection of closed stdout as an error.
66587 2009-07-17  Eric Blake  <ebb9@byu.net>
66589         pipe: be robust in face of closed fds
66590         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66591         should cause child to misbehave.
66592         * modules/pipe-tests: New module.
66593         * tests/test-pipe.c: New file.
66594         * tests/test-pipe.sh: New file.
66595         Reported by Akim Demaille.
66597 2009-07-14  Bruno Haible  <bruno@clisp.org>
66599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66600         Reported by anonymous kc.
66602 2009-07-07  Jim Meyering  <meyering@redhat.com>
66604         maint.mk: don't look for translatable strings in *.m4 or *.mk
66605         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66606         when searching for translatable strings.
66608 2009-07-05  Jim Meyering  <meyering@redhat.com>
66610         remove superfluous parentheses in STREQ definition
66611         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66612         * lib/getugroups.c (STREQ): Likewise.
66613         * lib/fnmatch.c (STREQ): Likewise.
66614         Spotted by Bruno Haible.
66616 2009-07-04  Jim Meyering  <meyering@redhat.com>
66618         argv-iter: new module
66619         * MODULES.html.sh: Add argv-iter.
66620         * lib/argv-iter.c, lib/argv-iter.h: New files.
66621         * modules/argv-iter: New file.
66622         * modules/argv-iter-tests: New file.
66623         * tests/test-argv-iter.c: Test it.
66625 2009-07-04  Bruno Haible  <bruno@clisp.org>
66627         Fix assertion.
66628         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66629         contains more exact copies of a given entry than file2, leave the extra
66630         copies unpaired rather than aborting.
66631         Reported by Eric Blake.
66633 2009-07-02  Bruno Haible  <bruno@clisp.org>
66635         Speedup git-merge-changelog for git cherry-pick.
66636         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66637         (entries_mapping_get): New function, extracted from compute_mapping.
66638         (entries_mapping_reverse_get): New function.
66639         (compute_mapping): Add a 'full' argument. Return the result in a
66640         'struct entries_mapping'.
66641         (main): Update. Access the mappings through entries_mapping_get.
66642         Reported by Eric Blake.
66644 2009-07-02  Bruno Haible  <bruno@clisp.org>
66646         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66647         best_i.
66649 2009-07-02  Bruno Haible  <bruno@clisp.org>
66651         Speed up approximate search for matching ChangeLog entries.
66652         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66653         argument. Call fstrcmp_bounded instead of fstrcmp.
66654         (compute_mapping, try_split_merged_entry, main): Update callers.
66656 2009-07-02  Bruno Haible  <bruno@clisp.org>
66658         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66660 2009-06-30  Bruno Haible  <bruno@clisp.org>
66662         Reduce the number of uc_is_cased calls.
66663         * lib/unicase.h (casing_suffix_context_t): Add
66664         'first_char_except_ignorable' field.
66665         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66666         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66667         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66668         Update initializer.
66669         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66670         case-ignorable characters.
66671         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66672         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66673         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66674         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66675         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66677 2009-06-30  Bruno Haible  <bruno@clisp.org>
66679         Tests for module 'unicase/ignorable'.
66680         * modules/unicase/ignorable-tests: New file.
66681         * tests/unicase/test-ignorable.c: New file, generated by
66682         gen-uni-tables.
66684         Tests for module 'unicase/cased'.
66685         * modules/unicase/cased-tests: New file.
66686         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66687         * tests/unicase/test-predicate-part1.h: New file, derived from
66688         tests/unictype/test-predicate-part1.h.
66689         * tests/unicase/test-predicate-part2.h: New file, same as
66690         tests/unictype/test-predicate-part2.h.
66692         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66693         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66694         (output_casing_properties): New function.
66695         (main): Call it.
66696         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66697         * lib/unicase/cased.c: Include unictype/bitmap.h.
66698         (uc_is_cased): Define through a bitmap lookup.
66699         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66700         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66701         (uc_is_case_ignorable): Define through a bitmap lookup.
66702         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66703         lib/unictype/bitmap.h.
66704         (Depends-on): Add inline. Clean up.
66705         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66706         lib/unictype/bitmap.h.
66707         (Depends-on): Add inline. Clean up.
66708         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66709         recognition.
66710         * tests/unicase/test-u16-tolower.c (main): Likewise.
66711         * tests/unicase/test-u32-tolower.c (main): Likewise.
66713 2009-06-30  Bruno Haible  <bruno@clisp.org>
66715         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66716         * lib/unicase/u16-casemap.c: Likewise.
66717         * lib/unicase/u32-casemap.c: Likewise.
66719 2009-06-29  Bruno Haible  <bruno@clisp.org>
66721         Define u32_casefold as a wrapper around u32_ct_casefold.
66722         * lib/unicase/u32-casefold.c: Update.
66723         * modules/unicase/u32-casefold (Depends-on): Add
66724         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66725         unicase/empty-suffix-context. Clean up.
66727         Define u16_casefold as a wrapper around u16_ct_casefold.
66728         * lib/unicase/u16-casefold.c: Update.
66729         * modules/unicase/u16-casefold (Depends-on): Add
66730         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66731         unicase/empty-suffix-context. Clean up.
66733         Define u8_casefold as a wrapper around u8_ct_casefold.
66734         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66735         * lib/unicase/u8-casefold.c: Update.
66736         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66737         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66739         Define u32_totitle as a wrapper around u32_ct_totitle.
66740         * lib/unicase/u32-totitle.c: Update.
66741         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66742         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66744         Define u16_totitle as a wrapper around u16_ct_totitle.
66745         * lib/unicase/u16-totitle.c: Update.
66746         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66747         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66749         Define u8_totitle as a wrapper around u8_ct_totitle.
66750         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66751         functions.
66752         (FUNC): Delegate to U_CT_TOTITLE.
66753         * lib/unicase/u8-totitle.c: Update.
66754         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66757         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66758         invocation.
66759         * modules/unicase/u32-tolower (Depends-on): Add
66760         unicase/empty-prefix-context, unicase/empty-suffix-context.
66762         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66763         invocation.
66764         * modules/unicase/u16-tolower (Depends-on): Add
66765         unicase/empty-prefix-context, unicase/empty-suffix-context.
66767         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66768         * modules/unicase/u8-tolower (Depends-on): Add
66769         unicase/empty-prefix-context, unicase/empty-suffix-context.
66771         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66772         invocation.
66773         * modules/unicase/u32-toupper (Depends-on): Add
66774         unicase/empty-prefix-context, unicase/empty-suffix-context.
66776         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66777         invocation.
66778         * modules/unicase/u16-toupper (Depends-on): Add
66779         unicase/empty-prefix-context, unicase/empty-suffix-context.
66781         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66782         * modules/unicase/u8-toupper (Depends-on): Add
66783         unicase/empty-prefix-context, unicase/empty-suffix-context.
66785         New module 'unicase/u32-ct-casefold'.
66786         * lib/unicase/u32-ct-casefold.c: New file.
66787         * modules/unicase/u32-ct-casefold: New file.
66789         New module 'unicase/u16-ct-casefold'.
66790         * lib/unicase/u16-ct-casefold.c: New file.
66791         * modules/unicase/u16-ct-casefold: New file.
66793         New module 'unicase/u8-ct-casefold'.
66794         * lib/unicase/u8-ct-casefold.c: New file.
66795         * lib/unicase/u-ct-casefold.h: New file, derived from
66796         lib/unicase/u-casefold.h.
66797         * modules/unicase/u8-ct-casefold: New file.
66799         New module 'unicase/u32-ct-totitle'.
66800         * lib/unicase/u32-ct-totitle.c: New file.
66801         * modules/unicase/u32-ct-totitle: New file.
66803         New module 'unicase/u16-ct-totitle'.
66804         * lib/unicase/u16-ct-totitle.c: New file.
66805         * modules/unicase/u16-ct-totitle: New file.
66807         New module 'unicase/u8-ct-totitle'.
66808         * lib/unicase/u8-ct-totitle.c: New file.
66809         * lib/unicase/u-ct-totitle.h: New file, derived from
66810         lib/unicase/u-totitle.h.
66811         * modules/unicase/u8-ct-totitle: New file.
66813         New module 'unicase/u32-ct-tolower'.
66814         * lib/unicase/u32-ct-tolower.c: New file.
66815         * modules/unicase/u32-ct-tolower: New file.
66817         New module 'unicase/u16-ct-tolower'.
66818         * lib/unicase/u16-ct-tolower.c: New file.
66819         * modules/unicase/u16-ct-tolower: New file.
66821         New module 'unicase/u8-ct-tolower'.
66822         * lib/unicase/u8-ct-tolower.c: New file.
66823         * modules/unicase/u8-ct-tolower: New file.
66825         New module 'unicase/u32-ct-toupper'.
66826         * lib/unicase/u32-ct-toupper.c: New file.
66827         * modules/unicase/u32-ct-toupper: New file.
66829         New module 'unicase/u16-ct-toupper'.
66830         * lib/unicase/u16-ct-toupper.c: New file.
66831         * modules/unicase/u16-ct-toupper: New file.
66833         New module 'unicase/u8-ct-toupper'.
66834         * lib/unicase/u8-ct-toupper.c: New file.
66835         * modules/unicase/u8-ct-toupper: New file.
66837         Add context arguments to u*_casemap functions.
66838         * lib/unicase/unicasemap.h: Include unicase.h.
66839         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66840         suffix_context arguments.
66841         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66842         functions.
66843         (FUNC): Add prefix_context and suffix_context arguments. Use
66844         uc_is_cased and uc_is_case_ignorable.
66845         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66846         * lib/unicase/u16-casemap.c: Likewise.
66847         * lib/unicase/u32-casemap.c: Likewise.
66848         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66849         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66850         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66851         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66852         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66853         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66855         New module 'unicase/u32-suffix-context'.
66856         * lib/unicase/u32-suffix-context.c: New file.
66857         * modules/unicase/u32-suffix-context: New file.
66859         New module 'unicase/u16-suffix-context'.
66860         * lib/unicase/u16-suffix-context.c: New file.
66861         * modules/unicase/u16-suffix-context: New file.
66863         New module 'unicase/u8-suffix-context'.
66864         * lib/unicase/u8-suffix-context.c: New file.
66865         * lib/unicase/u-suffix-context.h: New file.
66866         * modules/unicase/u8-suffix-context: New file.
66868         New module 'unicase/empty-suffix-context'.
66869         * lib/unicase/empty-suffix-context.c: New file.
66870         * modules/unicase/empty-suffix-context: New file.
66872         New module 'unicase/u32-prefix-context'.
66873         * lib/unicase/u32-prefix-context.c: New file.
66874         * modules/unicase/u32-prefix-context: New file.
66876         New module 'unicase/u16-prefix-context'.
66877         * lib/unicase/u16-prefix-context.c: New file.
66878         * modules/unicase/u16-prefix-context: New file.
66880         New module 'unicase/u8-prefix-context'.
66881         * lib/unicase/u8-prefix-context.c: New file.
66882         * lib/unicase/u-prefix-context.h: New file.
66883         * lib/unicase/context.h: New file.
66884         * modules/unicase/u8-prefix-context: New file.
66886         New module 'unicase/empty-prefix-context'.
66887         * lib/unicase/empty-prefix-context.c: New file.
66888         * modules/unicase/empty-prefix-context: New file.
66890         New module 'unicase/ignorable'.
66891         * lib/unicase/ignorable.c: New file.
66892         * modules/unicase/ignorable: New file.
66894         New module 'unicase/cased'.
66895         * lib/unicase/caseprop.h: New file.
66896         * lib/unicase/cased.c: New file.
66897         * modules/unicase/cased: New file.
66899         New functions for case mapping of substrings.
66900         * lib/unicase.h (casing_prefix_context_t): New type.
66901         (unicase_empty_prefix_context): New variable.
66902         (u8_casing_prefix_context, u16_casing_prefix_context,
66903         u32_casing_prefix_context, u8_casing_prefixes_context,
66904         u16_casing_prefixes_context, u32_casing_prefixes_context): New
66905         declarations.
66906         (casing_suffix_context_t): New type.
66907         (unicase_empty_suffix_context): New variable.
66908         (u8_casing_suffix_context, u16_casing_suffix_context,
66909         u32_casing_suffix_context, u8_casing_suffixes_context,
66910         u16_casing_suffixes_context, u32_casing_suffixes_context,
66911         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
66912         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
66913         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
66914         declarations.
66916 2009-06-28  Jim Meyering  <meyering@redhat.com>
66918         boostrap: indent only with spaces
66919         * build-aux/bootstrap: Indent only with spaces, never TABs.
66921         bootstrap: split long lines
66922         * build-aux/bootstrap: Keep line length < 80.
66924         bootstrap: sync from coreutils
66925         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
66926         just as autoreconf does.  Verify a list of prerequisite
66927         package-name,version-number pairs if defined in bootstrap.conf.
66928         Refer to README-prereq, if prerequisites are not satisfied.
66930 2009-06-27  Eric Blake  <ebb9@byu.net>
66932         tests: add test for bogus NULL definition
66933         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
66934         * tests/test-stdlib.c: Likewise.
66935         * tests/test-string.c: Likewise.
66936         * tests/test-locale.c: Likewise.
66937         * tests/test-unistd.c: Likewise.
66938         * modules/stdio-tests (Depends-on): Add verify.
66939         * modules/stdlib-tests (Depends-on): Likewise.
66940         * modules/string-tests (Depends-on): Likewise.
66941         * modules/locale-tests (Depends-on): Likewise.
66942         * modules/unistd-tests (Depends-on): Likewise.
66944 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
66946         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
66947         self-explaining comment.
66948         * m4/selinux-selinux-h: Update serial.
66949         (gl_LIBSELINUX): New macro, adding a warning for missing development
66950         packages to code extracted from...
66951         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
66952         Add warning for missing development packages here, too.
66954 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
66956         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
66958 2009-06-25  Eric Blake  <ebb9@byu.net>
66960         version-etc: fix regression
66961         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
66962         gcc.
66963         (version_etc): Use it, to catch bugs with trailing NULL.
66964         * lib/version-etc.c (version_etc_arn): Delete unused argument.
66965         (version_etc_va): Fix logic bug.
66966         * modules/version-etc-tests: Add test.
66967         * tests/test-version-etc.c: New file.
66968         * tests/test-version-etc.sh: Likewise.
66970 2009-06-25  Sam Steingold  <sds@gnu.org>
66972         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
66973         mbtowc declaration.
66975 2009-06-25  Eric Blake  <ebb9@byu.net>
66977         fpurge: migrate into <stdio.h>
66978         * lib/fpurge.h: Delete...
66979         * lib/stdio.in.h (fpurge): ...and declare here, instead.
66980         * lib/fpurge.c (fpurge): Change declaring header.
66981         * modules/fpurge (Files): Drop deleted file.
66982         (Depends-on): Add stdio.
66983         (configure.ac): Set witness.
66984         * modules/stdio (Makefile.am): Support fpurge macros.
66985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66986         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
66987         * lib/fflush.c: Update client.
66988         * tests/test-fpurge.c: Likewise.
66989         * NEWS: Mention the change.
66991 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66993         * lib/argp-version-etc.c (program_authors): Add const
66994         qualifier.
66995         * lib/version-etc.c: Fix typos in the comments.
66996         * modules/argp-version-etc: Depends on version-etc.
66998 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67000         argp-version-etc: new module.
67002         * lib/argp-version-etc.c: New file.
67003         * lib/argp-version-etc.h: New file.
67004         * modules/argp-version-etc: New file.
67005         * modules/argp-version-etc-tests: New file.
67006         * tests/test-argp-version-etc.c: New test.
67007         * tests/test-argp-version-etc-1.sh: New test.
67009 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67011         Provide additional interfaces and documentation for version-etc
67012         module.
67014         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67015         interfaces.
67016         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67017         prototypes.
67019 2009-06-24  Bruno Haible  <bruno@clisp.org>
67021         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67022         HAVE_LIB${NAME} macro.
67023         Reported by Sam Steingold <sds@gnu.org>.
67025 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67027         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67028         needed.
67030 2009-06-21  Bruno Haible  <bruno@clisp.org>
67032         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67033         work.
67034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67035         together with LIB${NAME}, LTLIB${NAME}.
67036         Reported by Sam Steingold <sds@gnu.org>.
67038 2009-06-20  Jim Meyering  <meyering@redhat.com>
67040         tests: make sc_require_test_exit_idiom more generic
67041         * top/maint.mk (Exit_witness_file): New overridable variable.
67042         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67043         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67045 2009-06-19  Jim Meyering  <meyering@redhat.com>
67047         hash: reverse order of src/dst parameters in an internal interface
67048         * lib/hash.c (transfer_entries): Reverse order of parameters to
67049         put DST before SRC.  Adjust callers.
67051         tests: test-hash: avoid wholesale duplication
67052         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67053         Instead, use a loop and add a single conditional.
67055         tests: test-hash: allow seed selection via a command line argument
67056         * tests/test-hash.c (get_seed): New function.
67057         (main): Use it.
67059 2009-06-19  Eric Blake  <ebb9@byu.net>
67061         hash: avoid memory leak on allocation failure
67062         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67063         failure.  Factor repeated algorithm...
67064         (transfer_entries): ...into new helper routine.
67065         (hash_delete): React to hash_rehash return value.
67067         hash: reduce memory pressure in hash_rehash no-op case
67068         * lib/hash.c (next_prime): Avoid overflow.
67069         (hash_initialize): Factor bucket size computation...
67070         (compute_bucket_size): ...into new helper function.
67071         (hash_rehash): Use new function and open coding to reduce memory
67072         pressure, and avoid a memory leak in USE_OBSTACK code.
67073         Reported by Jim Meyering.
67075 2009-06-18  Eric Blake  <ebb9@byu.net>
67077         hash: make rotation more obvious
67078         * modules/hash (Depends-on): Add bitrotate and stdint.
67079         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67080         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67081         (SIZE_MAX): Rely on headers for definition.
67082         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67083         (raw_hasher): Use rotr_sz.
67084         Suggested by Jim Meyering.
67086         hash: fix memory leak in last patch
67087         * lib/hash.c (hash_rehash): Avoid memory leak.
67089         hash: avoid no-op rehashing
67090         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67092         hash: provide default callback functions
67093         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67094         (hash_initialize): Use them as defaults.
67095         * tests/test-hash.c (main): Test this.
67097         hash: minor optimization
67098         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67099         when possible.
67100         (hash_initialize): Document this promise.
67101         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67102         * tests/test-hash.c (hash_compare_strings): Test this.
67104 2009-06-18  Bruno Haible  <bruno@clisp.org>
67106         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67107         going to be replaced anyway.
67109 2009-06-18  Bruno Haible  <bruno@clisp.org>
67111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67112         in one place.
67113         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67114         be replaced anyway.
67116 2009-06-18  Eric Blake  <ebb9@byu.net>
67118         hash: check for resize before insertion
67119         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67120         threshold before insertion, so that a pathological hash_rehash
67121         that fills every bucket can still trigger another rehash.
67123 2009-06-18  Jim Meyering  <meyering@redhat.com>
67125         hash-tests: add a loop around the small tests
67126         * tests/test-hash.c (main): Repeat small tests with selected
67127         small initial table sizes.
67129 2009-06-17  Eric Blake  <ebb9@byu.net>
67131         hash: minor cleanups
67132         * lib/hash.h (hash_entry): Make opaque, by moving...
67133         * lib/hash.c (hash_entry): ...here.
67134         (hash_insert): Clarify restrictions on what can be inserted.
67135         (hash_get_next): Clarify when it is safe to remove an element
67136         during traversal.
67137         (check_tuning): Skip verification when tuning is known safe.
67138         (hash_initialize): Clarify restrictions on tuning.
67140 2009-06-17  Jim Meyering  <jim@meyering.net>
67141         and Eric Blake  <ebb9@byu.net>
67143         hash-tests: new module
67144         * modules/hash-tests: New file.
67145         * tests/test-hash.c: New file.
67147 2009-06-17  Eric Blake  <ebb9@byu.net>
67149         strstr-simple: document new module
67150         * MODULES.html.sh: Document new module.
67152         strstr, strcasestr: replace on platforms with broken memchr
67153         * modules/strstr: Split into...
67154         * modules/strstr-simple: ...new module that does not care about
67155         performance, but does care about glibc bug.
67156         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67157         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67158         if platform memchr is broken, per Debian bug 521737.
67159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67160         memchr.
67161         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67162         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67163         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67164         * modules/mountlist (Depends-on): Add strstr-simple.
67165         * modules/gen-uni-tables (Depends-on): Likewise.
67166         * modules/argz (Depends-on): Add strstr.
67168 2009-06-17  Bruno Haible  <bruno@clisp.org>
67170         * modules/posix_spawn-internal (Depends-on): Add errno.
67172 2009-06-17  Bruno Haible  <bruno@clisp.org>
67174         Define missing ESTALE on Interix 3.5.
67175         * lib/errno.in.h (ESTALE): Assign a value if missing.
67176         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67177         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67178         missing.
67179         * doc/posix-headers/errno.texi: Mention the Interix bug.
67180         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67182 2009-06-15  Eric Blake  <ebb9@byu.net>
67184         memchr, memchr2: add valgrind exception
67185         * lib/memchr.valgrind: New file.
67186         * lib/memchr2.valgrind: New file.
67187         * modules/memchr (Files): Distribute valgrind file.
67188         * modules/memchr2 (Files): Likewise.
67190         docs: memchr is no longer obsolete
67191         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67192         * lib/string.in.h (memchr): Simplify logic.
67194 2009-06-14  Jim Meyering  <meyering@redhat.com>
67196         link-follow: fix the "checking..." message to not mention trailing slash
67197         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67198         never considered trailing slashes.
67200 2009-06-14  Bruno Haible  <bruno@clisp.org>
67202         * m4/memchr.m4: Mention also the bug on IA-64.
67203         * doc/posix-functions/memchr.texi: Likewise.
67205 2009-06-12  Eric Blake  <ebb9@byu.net>
67207         memchr: detect broken x86_64 and alpha implementations
67208         * modules/memchr-tests (Depends-on): Move mmap detection...
67209         * modules/memchr (Depends-on): ...here.
67210         (configure.ac): Set indicator.
67211         * lib/string.in.h (memchr): Declare replacement.
67212         * modules/string (Makefile.am): Trigger replacement.
67213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67214         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67215         bugs.
67216         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67217         * modules/getpagesize (License): Relax license.
67219 2009-06-11  Bruno Haible  <bruno@clisp.org>
67221         * lib/idpriv.h: Add more references.
67223 2009-06-08  Bruno Haible  <bruno@clisp.org>
67225         Tests for module 'idpriv-droptemp'.
67226         * modules/idpriv-droptemp-tests: New file.
67227         * tests/test-idpriv-droptemp.sh: New file.
67228         * tests/test-idpriv-droptemp.su.sh: New file.
67229         * tests/test-idpriv-droptemp.c: New file.
67231         New module 'idpriv-droptemp'.
67232         * lib/idpriv-droptemp.c: New file.
67233         * modules/idpriv-droptemp: New file.
67235 2009-06-08  Bruno Haible  <bruno@clisp.org>
67237         Tests for module 'idpriv-drop'.
67238         * modules/idpriv-drop-tests: New file.
67239         * tests/test-idpriv-drop.sh: New file.
67240         * tests/test-idpriv-drop.su.sh: New file.
67241         * tests/test-idpriv-drop.c: New file.
67243         New module 'idpriv-drop'.
67244         * lib/idpriv.h: New file.
67245         * lib-idpriv-drop.c: New file.
67246         * m4/idpriv.m4: New file.
67247         * modules/idpriv-drop: New file.
67249 2009-06-08  Bruno Haible  <bruno@clisp.org>
67251         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67252         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67253         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67254         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67255         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67256         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67257         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67259 2009-06-08  Eric Blake  <ebb9@byu.net>
67261         test-strstr: use memory fence, when possible
67262         * tests/test-strstr.c (main): Use memory fence, in order to be
67263         more likely to trigger Debian bug 521737.
67264         * modules/strstr-tests (Files): Pull in additional files.
67266         memchr: no longer obsolete, for wider field testing
67267         * modules/memchr (Status, Notice): Delete, this module is no
67268         longer obsolete.
67269         * modules/vasnprintf (Depends-on): Add memchr.
67271 2009-06-07  Jim Meyering  <meyering@redhat.com>
67273         hash: declare some functions with the warn_unused_result attribute
67274         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67276 2009-06-07  Bruno Haible  <bruno@clisp.org>
67278         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67279         Reported by Eric Blake.
67281 2009-06-06  Eric Blake  <ebb9@byu.net>
67283         test-alignof: fix typo with long double
67284         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67285         compiler error.
67287 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67289         Escape non-texinfo { and }s.
67290         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67291         markup error.
67293 2009-06-04  Jim Meyering  <meyering@redhat.com>
67295         gitlog-to-changelog: don't infloop on an empty commit log
67296         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67297         Reported by Boris Petersen <transacid@centerim.org>.
67299 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67301         version-etc: extend for packagers
67302         Add three new configure options, intended for packagers:
67303           --with-packager="packager name"
67304           --with-packager-version="packager-specific version"
67305           --with-packager-bug-reports="packager bug reporting"
67306         An example with coreutils:
67307           $ ./configure \
67308             --with-packager=Gentoo \
67309             --with-packager-bug-report=http://bugs.gentoo.org/ \
67310             --with-packager-version="patchset 1.6"
67311           $ ./src/ls --version | head -n2
67312           ls (GNU coreutils) 7.1-dirty
67313           Packaged by Gentoo (patchset 1.6)
67314         Note that the bug reporting info via --help doesn't show up because
67315         coreutils uses its own custom emit_bug_reporting_address() implementation
67316         in src/system.h.  If it didn't, it'd look like:
67317           $ ./src/ls --help | tail -n4
67318           Report bugs to <bug-coreutils@gnu.org>.
67319           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67320           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67321           General help using GNU software: <http://www.gnu.org/gethelp/>.
67322         * lib/version-etc.c: Print new information, if provided.
67323         * m4/version-etc.m4: New file.
67324         * modules/version-etc (Files): Add m4/version-etc.m4.
67325         (configure.ac): Add gl_VERSION_ETC.
67327 2009-05-31  Bruno Haible  <bruno@clisp.org>
67329         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67330         and 'int64_t'.
67331         * modules/alignof-tests (Dependencies): Add stdint.
67332         Reported by Eric Blake.
67334 2009-05-31  Bruno Haible  <bruno@clisp.org>
67336         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67337         restriction due to compiler bugs.
67338         Reported by Eric Blake.
67340 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67341             Bruno Haible  <bruno@clisp.org>
67343         Fix test-alignof failure.
67344         * lib/alignof.h (alignof_slot): New macro.
67345         (alignof_type): New macro, with the same semantics as the previous
67346         'alignof'.
67347         (alignof): Alias to alignof_slot.
67348         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67349         check that the results are usable as constant expressions.
67351 2009-05-31  Bruno Haible  <bruno@clisp.org>
67353         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67354         * tests/test-memchr.c (main): Check that memchr does not read past the
67355         first occurrence of the byte.
67356         * tests/test-strstr.c (main): Update comment.
67357         Suggested by Eric Blake.
67359 2009-05-30  Bruno Haible  <bruno@clisp.org>
67361         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67362         detail how to use dumpbin.
67363         Reported by David Byron <dbyron@dbyron.com>.
67365 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67367         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67369 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67371         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67373 2009-05-28  Bruno Haible  <bruno@clisp.org>
67375         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67376         build-aux/ files.
67378 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67380         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67382 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67384         * gnulib-tool (sed_transform_main_lib_file)
67385         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67386         regexps.
67388 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67390         * tests/test-strstr.c: Add another self-test.
67391         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67392         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67394 2009-05-23  Bruno Haible  <bruno@clisp.org>
67396         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67397         change.
67399 2009-05-21  Bruno Haible  <bruno@clisp.org>
67401         Simplify use of mode_t varargs.
67402         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67403         uses 'mode_t' or 'int'.
67404         * lib/openat.c (openat): Likewise.
67405         * lib/open-safer.c (open_safer): Likewise.
67406         * m4/mode_t.m4: New file.
67407         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67408         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67409         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67410         * modules/open (Files): Add m4/mode_t.m4.
67411         * modules/openat (Files): Likewise.
67412         * modules/fcntl-safer (Files): Likewise.
67413         Suggested by Eric Blake.
67415 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67417         * doc/glibc-functions/fallocate.texi: New file.
67418         * doc/gnulib.texi: Include it.
67420 2009-05-21  Eric Blake  <ebb9@byu.net>
67421             Bruno Haible  <bruno@clisp.org>
67423         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67424         invocations.
67425         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67427 2009-05-21  Eric Blake  <ebb9@byu.net>
67428             Bruno Haible  <bruno@clisp.org>
67430         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67431         include_next. Fix of 2008-11-20 commit.
67432         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67433         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67434         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67435         NEXT_MATH_H.
67436         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67437         instead of NEXT_MATH_H.
67439 2009-05-21  Bruno Haible  <bruno@clisp.org>
67441         Avoid redefinition warnings for SIZE_MAX.
67442         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67443         Reported by Simon Josefsson.
67445 2009-05-21  Bruno Haible  <bruno@clisp.org>
67447         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67448         AC_CACHE_VAL.
67450 2009-05-20  Bruno Haible  <bruno@clisp.org>
67452         Make zeroptr.h work on mingw.
67453         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67454         mprotect.
67455         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67456         * modules/memchr2-tests (configure.ac): Likewise.
67457         * modules/memcmp-tests (configure.ac): Likewise.
67458         * modules/memmem-tests (configure.ac): Likewise.
67459         * modules/memrchr-tests (configure.ac): Likewise.
67460         Reported by Simon Josefsson.
67462 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67464         * tests/test-glob.c: Include string.h for strcmp prototype.
67466 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67468         * modules/getdelim (Depends-on): Add explicit stdint, although it
67469         was implicitly already pulled in via realloc-posix.
67470         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67472 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67474         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67475         G. Christensen" <tgc@jupiterrise.com>.
67476         * m4/sys_socket_h.m4: Check for sa_family_t.
67477         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67478         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67479         * tests/test-sys_socket.c: Check that sa_family_t works.
67481 2009-05-18  Eric Blake  <ebb9@byu.net>
67483         maint.mk: allow gnulib_dir in VPATH build
67484         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67486 2009-05-15  Jim Meyering  <meyering@redhat.com>
67488         maint.mk: Give gnulib_dir a default definition.
67489         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67490         Thus, most packages no longer need to specify this variable in cfg.mk
67492 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67494         rename.m4: fix typos that would make non-mingw cross-configure fail
67495         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67497 2009-05-13  Eric Blake  <ebb9@byu.net>
67499         mmap-anon: avoid out-of-order autoconf expansion
67500         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67501         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67502         * modules/memchr-tests (Depends-on): Add extensions.
67503         * modules/memchr2-tests (Depends-on): Add extensions.
67504         * modules/memcmp-tests (Depends-on): Add extensions.
67505         * modules/memmem-tests (Depends-on): Add extensions.
67506         * modules/memrchr-tests (Depends-on): Add extensions.
67508 2009-05-13  Bruno Haible  <bruno@clisp.org>
67510         Make some tests ISO C 99 compliant.
67511         * tests/zerosize-ptr.h: New file.
67512         * tests/test-memchr.c: Include zerosize-ptr.h.
67513         (main): Use a zero-size object pointer instead of NULL.
67514         * tests/test-memchr2.c: Include zerosize-ptr.h.
67515         (main): Use a zero-size object pointer instead of NULL.
67516         * tests/test-memcmp.c: Include zerosize-ptr.h.
67517         (main): Use a zero-size object pointer instead of NULL.
67518         * tests/test-memmem.c: Include zerosize-ptr.h.
67519         (main): Use a zero-size object pointer instead of NULL.
67520         * tests/test-memrchr.c: Include zerosize-ptr.h.
67521         (main): Use a zero-size object pointer instead of NULL.
67522         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67523         m4/mmap-anon.m4.
67524         (Depends-on): Add getpagesize.
67525         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67526         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67527         m4/mmap-anon.m4.
67528         (Depends-on): Add getpagesize.
67529         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67530         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67531         m4/mmap-anon.m4.
67532         (Depends-on): Add getpagesize.
67533         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67534         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67535         m4/mmap-anon.m4.
67536         (Depends-on): Add getpagesize.
67537         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67538         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67539         m4/mmap-anon.m4.
67540         (Depends-on): Add getpagesize.
67541         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67543 2009-05-12  Bruno Haible  <bruno@clisp.org>
67545         Tests for module 'alignof'.
67546         * modules/alignof-tests: New file.
67547         * tests/test-alignof.c: New file.
67549 2009-05-12  Bruno Haible  <bruno@clisp.org>
67551         Fix alignof macro.
67552         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67553         vendor compilers that are always correct.
67555 2009-05-12  Bruno Haible  <bruno@clisp.org>
67557         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67558         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67559         not whether its fully works.
67561 2009-05-12  Bruno Haible  <bruno@clisp.org>
67563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67565 2009-05-12  Jim Meyering  <meyering@redhat.com>
67567         * top/maint.mk: Adjust backslash alignment.
67569 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67571         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67573 2009-05-11  Eric Blake  <ebb9@byu.net>
67575         argp: avoid undefined behavior
67576         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67577         macros.
67579 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67581         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67582         user.name to prevent git commit from complaining.
67584 2009-05-10  Bruno Haible  <bruno@clisp.org>
67586         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67587         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67588         it rewrites every file name only once.
67589         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67591 2009-05-08  Bruno Haible  <bruno@clisp.org>
67593         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67594         instead of 'max'.
67596 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67598         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67599         sockaddr_storage test.
67601 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67603         * modules/sys_socket (Makefile.am): Substitute
67604         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67605         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67606         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67607         * tests/test-sys_socket.c: Check sockaddr_storage.
67609 2009-05-08  Bruno Haible  <bruno@clisp.org>
67611         New module 'alignof'.
67612         * lib/alignof.h: New file.
67613         * modules/alignof: New file.
67615 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67616             Bruno Haible  <bruno@clisp.org>
67618         Fix test-file-has-acl on FreeBSD.
67619         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67620         mask is implicitly added.
67621         * tests/test-file-has-acl.c: Include <signal.h>.
67622         (main): Terminate the test after 5 seconds.
67623         * modules/acl-tests (configure.ac): Check for alarm function.
67625 2009-05-04  Bruno Haible  <bruno@clisp.org>
67627         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67628         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67629         * modules/errno (configure.ac): Drop AC_REQUIRE.
67630         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67631         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67633 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67635         * modules/glob-tests: New module.
67636         * tests/test-glob.c: Add.
67638 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67640         * modules/fnmatch-tests: New module.
67641         * tests/test-fnmatch.c: Add.
67643 2009-05-04  Eric Blake  <ebb9@byu.net>
67645         maint: make the new no-submodule-changes rule VPATH-safe
67646         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67648 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67649             Bruno Haible  <bruno@clisp.org>
67651         acl: Fix infinite loop on FreeBSD.
67652         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67653         of return value from acl_get_entry.
67654         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67655         Likewise.
67657 2009-05-03  Bruno Haible  <bruno@clisp.org>
67659         * lib/acl-internal.h (acl_entries): Clarify return value.
67660         * lib/acl_entries.c (acl_entries): Likewise.
67662 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67664         Bug fix in acl module.
67665         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67667 2009-05-03  Bruno Haible  <bruno@clisp.org>
67669         Create gperf-generated file in the source dir, not in the build dir.
67670         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67671         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67672         * modules/unicase/locale-language (unicase/locale-languages.h):
67673         Likewise.
67674         * modules/unicase/special-casing (unicase/special-casing-table.h):
67675         Likewise.
67676         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67677         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67678         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67679         Reported by Ralf Wildenhues.
67681 2009-05-03  Bruno Haible  <bruno@clisp.org>
67683         * modules/fnmatch (Description, configure.ac): Taken from
67684         fnmatch-posix.
67685         * modules/fnmatch-posix: Turn into a symbolic reference to the
67686         'fnmatch' module, and deprecate.
67687         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67689 2009-05-03  Bruno Haible  <bruno@clisp.org>
67691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67692         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67693         Reported by Ralf Wildenhues.
67695 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67697         * m4/fnmatch.m4: Fix fnmatch re-define.
67699 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67701         priv-set: new module and tests; adapt write-any-file
67702         * lib/priv-set.c: New file.
67703         * lib/priv-set.h: New file.
67704         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67705         * lib/write-any-file.c: Simplify by using priv-set module.
67706         * m4/priv-set.m4: New file.
67707         * modules/priv-set: New file.
67708         * modules/unlinkdir: Add dependency on priv-set module.
67709         * modules/write-any-file: Likewise.
67711         Tests for module 'priv-set'.
67712         * modules/priv-set-tests: New file.
67713         * tests/test-priv-set.c: New file.
67715 2009-05-03  Jim Meyering  <meyering@redhat.com>
67716             Bruno Haible  <bruno@clisp.org>
67718         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67719         use the converted UTF-8 variant of the name instead.
67721 2009-05-03  Jim Meyering  <meyering@redhat.com>
67723         tests: tighten some getdate tests
67724         * tests/test-getdate.c (main): Tighten tests: require equality,
67725         not just greater than.  Set TZ envvar to UTC0.
67727 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67729         getdate: correctly interpret "next monday" when run on a Monday
67730         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67731         that e.g., "next tues" (when run on a tuesday) results in a date
67732         that is one week in the future, and not today's date.
67733         I.e., add a week when the wday is the same as the current one.
67734         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67735         and earlier by Martin Bernreuther and Jan Minář.
67736         * tests/test-getdate.c (main): Check that "next DAY" is always in
67737         the future and that "last DAY" is always in the past.
67739 2009-05-02  Jim Meyering  <meyering@redhat.com>
67741         build: ensure that a release build fails when a submodule is unclean
67742         * top/maint.mk (no-submodule-changes): New rule.
67743         (alpha beta major): Depend on it.
67745 2009-05-02  Bruno Haible  <bruno@clisp.org>
67747         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67748         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67749         shell variable gl_fnmatch_required to detect which variant is
67750         requested.
67751         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67752         gl_FUNC_FNMATCH_POSIX.
67753         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67754         exclude fnmatch-posix.
67756 2009-05-02  Bruno Haible  <bruno@clisp.org>
67758         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67759         * modules/mbsrtowcs (License): Change to LGPLv2+.
67760         * modules/strnlen1 (License): Likewise.
67761         Reported by Simon Josefsson.
67763 2009-05-02  Bruno Haible  <bruno@clisp.org>
67765         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67766         "cross".
67767         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67768         gnulib-tool was called with option --source-base=lib.
67770 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67772         Use automake *-local hooks without commands, for extensibility.
67773         * modules/localcharset (Makefile.am): Rename install-exec-local
67774         rule to install-exec-localcharset, and make it a prerequisite of
67775         install-exec-local.  Likewise, rename the uninstall-local rule to
67776         uninstall-localcharset, and make it a prerequisite of the former.
67778 2009-05-01  Bruno Haible  <bruno@clisp.org>
67780         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67781         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67782         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67784         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67785         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67786         m4/locale-zh.m4, m4/codeset.m4.
67788         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67789         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67790         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67791         m4/locale-zh.m4.
67793         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67794         REPLACE_WCRTOMB if mbstate_t must be replaced.
67795         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67796         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67798 2009-05-01  Bruno Haible  <bruno@clisp.org>
67800         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67801         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67802         dngettext, dcngettext, textdomain, bindtextdomain,
67803         bind_textdomain_codeset): Undefine before redefining.
67805 2009-04-30  Bruno Haible  <bruno@clisp.org>
67807         Fix bug introduced on 2009-04-25.
67808         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67809         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67810         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67811         is defined.
67812         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67813         is defined.
67814         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67815         is defined.
67816         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67818 2009-04-28  Bruno Haible  <bruno@clisp.org>
67820         Comment tweaks.
67821         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67822         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67823         * lib/unicase.h (u*_casexfrm): Likewise.
67824         Reported by Paolo Bonzini.
67826 2009-04-28  Bruno Haible  <bruno@clisp.org>
67828         Fix a compilation error.
67829         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67830         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67831         Reported by Jim Meyering.
67833 2009-04-27  Bruno Haible  <bruno@clisp.org>
67835         New module 'libunistring'.
67836         * modules/libunistring: New file.
67837         * m4/libunistring.m4: New file.
67838         * MODULES.html.sh (Unicode string functions): Add it.
67840 2009-04-27  Eric Blake  <ebb9@byu.net>
67842         maint.mk: allow package-specific header to provide <config.h>
67843         * top/maint.mk (sc_require_config_h): New variable.
67844         (sc_require_config_h, sc_require_config_h_first): Use it.
67846 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67848         * top/maint.mk (sc_avoid_if_before_free): Except
67849         useless-if-before-free script.
67851 2009-04-27  Eric Blake  <ebb9@byu.net>
67853         maintainer-makefile: depend on all required helper scripts
67854         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67855         useless-if-before-free.
67856         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67857         version, rather than assuming gnulib checkout is available.
67858         Reported by Simen Josefsson.
67860 2009-04-26  Bruno Haible  <bruno@clisp.org>
67862         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67863         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67864         "../" or "..".
67866 2009-04-26  Bruno Haible  <bruno@clisp.org>
67868         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67869         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67870         AC_LIB_HAVE_LINKFLAGS.
67872 2009-04-26  Bruno Haible  <bruno@clisp.org>
67874         Simplify calling convention of u*_conv_from_encoding.
67875         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67876         u32_conv_from_encoding): Expect a resultbuf argument and return the
67877         result directly as a pointer.
67878         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67879         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67880         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67881         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67882         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67883         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67884         Update.
67885         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67886         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67887         * lib/vasnprintf.c (VASNPRINTF): Update.
67888         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67889         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67890         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67891         * NEWS: Mention the change.
67893 2009-04-26  Bruno Haible  <bruno@clisp.org>
67895         Simplify calling convention of u*_conv_to_encoding.
67896         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67897         u32_conv_to_encoding): Expect a resultbuf argument and return the
67898         result directly as a pointer.
67899         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67900         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
67901         freeing scaled_offsets if mem_iconveha failed.
67902         * lib/unicase/u-casexfrm.h (FUNC): Update.
67903         * lib/uninorm/u-normxfrm.h (FUNC): Update.
67904         * lib/vasnprintf.c (VASNPRINTF): Update.
67905         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
67906         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
67907         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
67908         * NEWS: Mention the change.
67910 2009-04-26  Bruno Haible  <bruno@clisp.org>
67912         Avoid test failures on AIX and OSF/1.
67913         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
67914         malloc(0).
67915         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67916         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67917         Likewise.
67918         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
67919         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
67920         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
67921         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
67922         * doc/posix-functions/malloc.texi: Document the portability problem
67923         related to malloc(0).
67925 2009-04-26  Bruno Haible  <bruno@clisp.org>
67927         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
67928         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
67929         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
67931 2009-04-25  Bruno Haible  <bruno@clisp.org>
67933         Avoid link error when creating a namespace clean library.
67934         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
67935         as macro with arguments if already defined as an alias.
67936         * lib/signbitf.c (gl_signbitf): Don't undefine.
67937         * lib/signbitd.c (gl_signbitd): Don't undefine.
67938         * lib/signbitl.c (gl_signbitl): Don't undefine.
67940 2009-04-25  Jim Meyering  <meyering@redhat.com>
67942         vc-list-files: fix another quoting bug
67943         * build-aux/vc-list-files: Avoid sed backslash expansion
67944         of pathological directory names.
67946 2009-04-25  Eric Blake  <ebb9@byu.net>
67948         vc-list-files: fix shell quoting error
67949         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
67950         timestamp.
67952 2009-04-25  Jim Meyering  <meyering@redhat.com>
67954         vc-list-files: restore lost functionality with subdir argument
67955         * build-aux/vc-list-files: When given a non-"." sub-directory
67956         argument, substitute the $dir/ prefix back onto each resulting name.
67957         Otherwise, coreutils' root_tests check would fail.
67959 2009-04-24  Eric Blake  <ebb9@byu.net>
67961         vc-list-files: ignore git symlinks
67962         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
67963         than ls-files, to ignore git symlinks.
67965         maint.mk: import improvements from m4
67966         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
67967         (move_if_change): Delete unused macro.
67968         (news-date-check, vc-diff-check): Support VPATH builds.
67969         (announcement): Likewise.  Split --bootstrap-tools list...
67970         (boostrap-tools): ...into separate list, which can be overridden
67971         in cfg.mk.
67972         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
67973         requiring dependency on useless-if-before-free module.
67974         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
67975         Support VPATH builds.
67977 2009-04-24  Jim Meyering  <meyering@redhat.com>
67979         maint.mk: remove coreutils-specific rules and variables
67980         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
67981         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
67982         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
67984         maint.mk: remove obsolete rule
67985         * top/maint.mk (rel-check): Remove rule.
67986         (WGET, WGETFLAGS): Remove now-unused variables.
67988 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67990         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
67991         consistency.
67993         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
67994         '$(PATH_SEPARATOR)' instead of ':'.
67996 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67998         * lib/getopt1.c (main): Use 'const' for static array.
68000 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68002         * top/maint.mk: Sync with coreutils.
68003         * NEWS: Explain incompatibilities.
68005 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68006             Bruno Haible  <bruno@clisp.org>
68008         Fix cross-compilation results.
68009         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68010         statement, as third argument of AC_TRY_RUN.
68011         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68012         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68013         Likewise.
68014         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68015         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68016         Likewise.
68017         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68018         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68019         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68021 2009-04-20  Bruno Haible  <bruno@clisp.org>
68023         Avoid test failure on mingw.
68024         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68026 2009-04-20  Bruno Haible  <bruno@clisp.org>
68028         Avoid compilation error on mingw.
68029         * modules/localename-tests (Depends-on): Add locale.
68031 2009-04-19  Bruno Haible  <bruno@clisp.org>
68033         Support for building a shared library on Windows platforms.
68034         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68035         (main): Test the presence of UNINORM_NFC here.
68036         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68037         (main): Test the presence of UNINORM_NFD here.
68038         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68039         (main): Test the presence of UNINORM_NFKC here.
68040         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68041         (main): Test the presence of UNINORM_NFKD here.
68043 2009-04-19  Bruno Haible  <bruno@clisp.org>
68045         Avoid a compiler warning.
68046         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68047         Change type of variable 'sequence'.
68049 2009-04-19  Bruno Haible  <bruno@clisp.org>
68051         * modules/configmake (Makefile.am): When the contents of configmake.h
68052         does not change, arrange to preserve its modification time.
68054 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68056         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68057         gettext domain.
68059 2009-04-16  Jim Meyering  <meyering@redhat.com>
68061         useless-if-before-free: improve conversion code
68062         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68063         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68065 2009-04-14  Bruno Haible  <bruno@clisp.org>
68067         * modules/fcntl (Depends-on): Add extensions.
68068         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68070 2009-04-12  Ben Pfaff  <blp@gnu.org>
68072         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68073         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68075 2009-03-20  Ben Pfaff  <blp@gnu.org>
68077         Make rename replace existing destinations on Windows.
68078         * m4/rename.m4: Add test for Mingw.
68079         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68080         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68081         * doc/posix-functions/rename.texi: Document.
68083 2009-04-10  Bruno Haible  <bruno@clisp.org>
68085         New include file "iconveh.h".
68086         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68087         * lib/striconveh.h: Include it.
68088         (enum iconv_ilseq_handler): Remove definition.
68089         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68090         striconveh.h.
68091         * lib/striconveha.c: Include striconveh.h.
68092         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68093         * modules/striconveh (Files): Add lib/iconveh.h.
68094         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68095         lib/striconveh.h.
68097 2009-04-10  Bruno Haible  <bruno@clisp.org>
68099         * lib/uniconv.h: Update comment.
68101 2009-04-10  Bruno Haible  <bruno@clisp.org>
68103         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68104         always.
68105         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68106         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68107         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68108         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68109         "unistring-notinline.h", so that the function gets defined always.
68110         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68111         * lib/unistr/u8-uctomb.c: Likewise.
68112         * lib/unistr/u16-mbtouc.c: Likewise.
68113         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68114         * lib/unistr/u16-uctomb.c: Likewise.
68115         * lib/unistr/u32-mbtouc.c: Likewise.
68116         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68117         * lib/unistr/u32-uctomb.c: Likewise.
68119 2009-04-10  Bruno Haible  <bruno@clisp.org>
68121         Mark 'utime' obsolete.
68122         * modules/utime (Status, Notice): New sections.
68123         Suggested by Jim Meyering.
68125         Fix cross-compile guess for utime test.
68126         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68127         autoconf.
68128         * doc/posix-functions/utime.texi: Give more precisions.
68129         Reported by Jan <ipif@ymail.com>.
68131 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68133         filevercmp: correct today's change
68134         * lib/filevercmp.c: Also handle coreutils' test inputs.
68135         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68137         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68138         for reporting it.
68139         * lib/filevercmp.c: Special handle for "", "." and "..".
68140         * tests/test-filevercmp.c: Enlarge the set suite.
68142 2009-04-07  Jim Meyering  <meyering@redhat.com>
68144         useless-if-before-free: show how to remove braced useless free, too
68145         * build-aux/useless-if-before-free: still only in a comment, though.
68147 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68149         maint.mk: import changes to syntax-check macros from coreutils
68150         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68151         Use them in the relevant macros.
68153 2009-04-06  Bruno Haible  <bruno@clisp.org>
68155         Fix unportable use of bit-fields.
68156         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68157         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68158         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68160 2009-04-06  Bruno Haible  <bruno@clisp.org>
68162         Avoid test failures on AIX and OSF/1.
68163         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68164         that malloc(0) = NULL.
68165         * tests/unicase/test-u8-tolower.c (check): Likewise.
68166         * tests/unicase/test-u8-totitle.c (check): Likewise.
68167         * tests/unicase/test-u8-toupper.c (check): Likewise.
68168         * tests/unicase/test-u16-casefold.c (check): Likewise.
68169         * tests/unicase/test-u16-tolower.c (check): Likewise.
68170         * tests/unicase/test-u16-totitle.c (check): Likewise.
68171         * tests/unicase/test-u16-toupper.c (check): Likewise.
68172         * tests/unicase/test-u32-casefold.c (check): Likewise.
68173         * tests/unicase/test-u32-tolower.c (check): Likewise.
68174         * tests/unicase/test-u32-totitle.c (check): Likewise.
68175         * tests/unicase/test-u32-toupper.c (check): Likewise.
68176         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68177         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68178         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68179         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68180         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68181         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68182         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68183         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68184         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68185         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68186         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68187         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68189 2009-04-05  Bruno Haible  <bruno@clisp.org>
68191         Work around an autoconf limitation.
68192         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68193         comment line if it would be longer than 3 KB.
68195 2009-04-05  Bruno Haible  <bruno@clisp.org>
68197         Avoid test failure with libiconv-1.13.
68198         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68199         of the expected test results.
68201 2009-04-05  Bruno Haible  <bruno@clisp.org>
68203         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68204         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68205         that it should be installed.
68207 2009-04-05  Bruno Haible  <bruno@clisp.org>
68209         * gnulib-tool: New option --copy-file.
68210         (func_usage): Document it.
68211         (func_dest_tmpfilename): Moved out of func_import.
68212         (func_add_file, func_update_file): New functions, extracted from
68213         func_import.
68214         (func_import): Update.
68216 2009-04-05  Karl Berry  <karl@gnu.org>
68218         * README: prominently mention gnulib-tool.
68219         Rearrange sections so getting the code is near the top.
68221 2009-04-05  Bruno Haible  <bruno@clisp.org>
68223         * lib/unicase.h: Mention u*_cmp2.
68224         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68225         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68226         * lib/unicase/ulc-casecmp.c: Likewise.
68227         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68228         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68229         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68230         unistr/u8-cmp.
68231         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68232         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68233         unistr/u16-cmp.
68234         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68235         unistr/u32-cmp.
68237         * lib/uninorm.h: Mention u*_cmp2.
68238         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68239         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68240         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68241         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68242         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68243         unistr/u8-cmp.
68244         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68245         unistr/u16-cmp.
68246         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68247         unistr/u32-cmp.
68249         New module 'unistr/u32-cmp2'.
68250         * lib/unistr/u32-cmp2.c: New file.
68251         * modules/unistr/u32-cmp2: New file.
68253         New module 'unistr/u16-cmp2'.
68254         * lib/unistr/u16-cmp2.c: New file.
68255         * modules/unistr/u16-cmp2: New file.
68257         New module 'unistr/u8-cmp2'.
68258         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68259         * lib/unistr/u8-cmp2.c: New file.
68260         * lib/unistr/u-cmp2.h: New file.
68261         * modules/unistr/u8-cmp2: New file.
68263 2009-04-05  Bruno Haible  <bruno@clisp.org>
68265         * lib/unictype.h (uc_property_is_valid): New macro.
68266         * tests/unictype/test-pr_byname.c (main): Use it.
68268         * lib/unistr.h: Doc fixes.
68269         * lib/uniconv.h: Doc fixes.
68270         * lib/unictype.h: Doc fixes.
68272 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68274         Port coreutils 7.2 to Solaris 8.
68276         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68277         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68278         for Solaris 8.  This is a bit of a hack, as it means it's the
68279         caller's responsibility to add -lnsl if needed, but most likely it
68280         won't be needed since only getaddrinfo uses this and getaddrinfo
68281         isn't needed on Solaris 8.
68283         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68284         problem to Solaris 8 encountered with coreutils 7.2, which
68285         resulted in a message "fnmatch.c:292: warning: passing argument 4
68286         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68287         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68289 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68291         * m4/ld-version-script.m4: Add FIXME comment.
68293 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68295         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68296         SOVERSION variable.
68298 2009-04-02  Bruno Haible  <bruno@clisp.org>
68300         * Makefile (info, html, dvi, pdf): Combine the rules.
68301         Suggested by Jim Meyering.
68303 2009-04-01  Bruno Haible  <bruno@clisp.org>
68305         * Makefile (info, html, dvi, pdf): New targets.
68306         Reported by Reuben Thomas <rrt@sc3d.org>.
68308 2009-04-01  Bruno Haible  <bruno@clisp.org>
68310         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68311         can be put into PATH.
68312         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68314 2009-04-01  Bruno Haible  <bruno@clisp.org>
68316         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68318 2009-04-01  Bruno Haible  <bruno@clisp.org>
68320         Rename module 'visibility'.
68321         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68322         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68323         * doc/gnulib.texi: Update.
68324         * MODULES.html.sh (Misc): Update.
68325         * NEWS: Mention the change.
68327 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68329         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68330         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68331         Eric Blake <ebb9@byu.net> for review.
68332         * MODULES.html.sh: Add lib-msvc-compat.
68333         * doc/gnulib.texi: Link to new section.
68334         * m4/ld-output-def.m4: New file.
68335         * doc/ld-output-def.texi: New file.
68337 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68339         Rename ld-version-script to lib-symbol-versions.  Suggested by
68340         Bruno Haible <bruno@clisp.org>.
68341         * modules/ld-version-script: Renamed to lib-symbol-versions.
68342         * doc/ld-version-script.texi: Fix module name.
68343         * MODULES.html.sh: Add lib-symbol-versions.
68345 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68347         * modules/u64-tests: New file.
68348         * tests/test-u64.c: New file.
68350 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68352         * MODULES.html.sh: Mention u64.
68353         * modules/u64: New module.
68354         * modules/crypto/sha512: Depend on u64 module instead of providing
68355         u64.h.
68357 2009-03-27  Eric Blake  <ebb9@byu.net>
68359         test-strerror: make debugging EAI_SYSTEM easier
68360         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68361         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68362         failure was EAI_SYSTEM.
68364 2009-03-25  Bruno Haible  <bruno@clisp.org>
68366         Fix a problem with --enable-relocatable on Solaris 7.
68367         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68368         since 2008-02-24.
68370 2009-03-25  Eric Blake  <ebb9@byu.net>
68372         test-sockets: avoid gcc warning
68373         * tests/test-sockets.c (main): Silence compiler warning.
68375 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68377         New modules nproc, pthread, contributed by Glen Lenker.
68379         * MODULES.html.sh: Add pthread, nproc.
68380         * lib/nproc.c: New file.
68381         * lib/nproc.h: New file.
68382         * lib/pthread.in.h: New file.
68383         * m4/pthread.m4: New file.
68384         * modules/nproc: New file.
68385         * modules/pthread: New file.
68387 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68389         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68390         New variable.
68392 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68394         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68395         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68396         * tests/test-filevercmp.c: Add tests for backup suffixes.
68398 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68400         * modules/stdlib (Depends-on): Add stdint, needed when defining
68401         struct random_data on, for example, HP-UX 10.20.  Reported by
68402         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68404 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68406         * lib/readline.c (readline): Call fflush on stdout after printing
68407         prompt.
68409 2009-03-20  Bruno Haible  <bruno@clisp.org>
68411         Remove dependency from 'close' module to -lws2_32 on native Windows.
68412         * lib/close-hook.h: New file.
68413         * lib/close-hook.c: New file.
68414         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68415         w32sock.h.
68416         (_gl_close_fd_maybe_socket): Remove function.
68417         (rpl_close): Invoke execute_all_close_hooks instead of
68418         _gl_close_fd_maybe_socket.
68419         * lib/sockets.c: Include close-hook.h, w32sock.h.
68420         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68421         (close_sockets_hook): New variable.
68422         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68423         (gl_sockets_cleanup): Unregister it.
68424         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68425         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68426         * modules/close-hook: New file.
68427         * modules/close (Files): Remove lib/w32sock.h.
68428         (Depends-on): Add close-hook.
68429         (Link): Remove section.
68430         * modules/sockets (Files): Add lib/w32sock.h.
68431         (Depends-on): Add close-hook.
68432         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68433         invocation.
68434         * NEWS: Mention that LIB_CLOSE is gone.
68436 2009-03-23  Eric Blake  <ebb9@byu.net>
68438         signal-tests: test previous patch
68439         * tests/test-signal.c: New file.
68440         * modules/signal-tests: Likewise.
68442         signal.h: always support 'volatile sig_atomic_t'
68443         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68444         (gl_SIGNAL_H_DEFAULTS): Add a default.
68445         * modules/signal (Makefile.am): Substitute if needed.
68446         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68447         users can blindly add volatile.
68448         * doc/posix-headers/signal.texi (signal.h): Document it.
68449         Reported by Matthew Woehlke.
68451 2009-03-23  Jim Meyering  <meyering@redhat.com>
68453         pathmax: PATH_MAX: use pathconf only when available
68454         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68455         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68456         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68457         This avoids a link failure in a PSP cross-compilation environment
68458         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68460         * lib/vasnprintf.c (divide): Fix typo in comment.
68462 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68464         * gnulib-tool (func_filter_filelist): Fix comment.
68466 2009-03-20  Bruno Haible  <bruno@clisp.org>
68468         Make sockets.h self-contained.
68469         * lib/sockets.c: Include sockets.h first.
68470         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68472 2009-03-19  Eric Blake  <ebb9@byu.net>
68474         doc: mention more functions added in cygwin 1.7.0
68475         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68476         addition.
68477         * doc/posix-functions/log2f.texi: Likewise.
68479 2009-03-19  Jim Meyering  <meyering@redhat.com>
68481         fsusage: avoid syntax error due to statement-before-declaration
68482         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68483         after all declarations.  Reported by Matthew Woehlke in
68484         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68486 2009-03-18  Eric Blake  <ebb9@byu.net>
68488         build-aux/compile: sync from automake
68489         * build-aux/compile: New file, from automake.
68490         * config/srclist.txt: Mention build-aux/compile.
68492 2009-03-17  Bruno Haible  <bruno@clisp.org>
68494         * lib/git-merge-changelog.c: Fix typo in comment.
68495         Reported by Reuben Thomas <rrt@sc3d.org>.
68497 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68499         * m4/regex.m4: update and improve help for
68500         --without-included-regex.
68502 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68504         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68505         failure on missing include files.
68507 2009-03-17  Eric Blake  <ebb9@byu.net>
68509         doc: mention more functions added in cygwin 1.7.0
68510         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68511         addition.
68512         * doc/posix-functions/fwscanf.texi: Likewise.
68513         * doc/posix-functions/swprintf.texi: Likewise.
68514         * doc/posix-functions/swscanf.texi: Likewise.
68515         * doc/posix-functions/vfwprintf.texi: Likewise.
68516         * doc/posix-functions/vfwscanf.texi: Likewise.
68517         * doc/posix-functions/vswprintf.texi: Likewise.
68518         * doc/posix-functions/vswscanf.texi: Likewise.
68519         * doc/posix-functions/vwprintf.texi: Likewise.
68520         * doc/posix-functions/vwscanf.texi: Likewise.
68521         * doc/posix-functions/wcscasecmp.texi: Likewise.
68522         * doc/posix-functions/wcsdup.texi: Likewise.
68523         * doc/posix-functions/wcsftime.texi: Likewise.
68524         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68525         * doc/posix-functions/wprintf.texi: Likewise.
68526         * doc/posix-functions/wscanf.texi: Likewise.
68527         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68529 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68531         maint.mk: really add $(AM_MAKEFLAGS)
68532         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68533         was inadvertently omitted in the last commit.
68534         Spotted by Bruno Haible.
68536         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68537         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68538         $(AM_MAKEFLAGS)' rather than plain `make'.
68540         gnulib-tool: execute $MAKE not make
68541         * gnulib-tool: Default $MAKE to 'make'.
68542         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68543         than make.  Initialize $MAKE in the do-autobuild script.
68545         gnulib-tool: use $MAKE not make in generated files
68546         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68547         make, in generated files.  Initialize $MAKE in the do-autobuild
68548         script.
68550         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68552         GNUmakefile: disable parallelism only for multiple, recursive targets
68553         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68554         additions in the Makefile.
68555         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68556         by Automake.
68557         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68558         are listed on the command line and at least one of them is
68559         listed in $(ALL_RECURSIVE_TARGETS).
68561 2009-03-14  Bruno Haible  <bruno@clisp.org>
68563         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68564         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68565         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68566         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68567         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68568         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68569         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68570         unistr/u8-uctomb.
68571         * modules/unistr/u8-strchr (Depends-on): Likewise.
68572         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68573         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68574         unistr/u16-uctomb.
68575         * modules/unistr/u16-strchr (Depends-on): Likewise.
68576         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68578 2009-03-12  Bruno Haible  <bruno@clisp.org>
68580         Work around select() bug on Interix 3.5.
68581         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68582         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68583         * m4/select.m4: New file.
68584         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68585         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68586         * modules/select (Files): Add m4/select.m4.
68587         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68588         * modules/nanosleep (Depends-on): Add select.
68589         * modules/poll (Depends-on): Likewise.
68590         * doc/posix-functions/select.texi: Mention the Interix bug.
68591         Reported by Markus Duft <mduft@gentoo.org>.
68593         * lib/select.c: Renamed from lib/winsock-select.c.
68594         * modules/select (Files): Add lib/select.c, remove
68595         lib/winsock-select.c.
68596         (configure.ac): Update.
68598 2009-03-12  Jim Meyering  <meyering@redhat.com>
68600         avoid gcc warnings about unused macro definitions
68601         * lib/readtokens.c (STREQ): Remove unused definition.
68602         * lib/xmalloc.c (SIZE_MAX): Likewise.
68603         * lib/openat-die.c (N_): Likewise.
68604         * lib/mountlist.c (SIZE_MAX): Remove definition.
68605         Instead, include <stdint.h>.
68606         * lib/readutmp.c: Likewise.
68607         * modules/readutmp (Depends-on): Add stdint.
68608         * modules/mountlist (Depends-on): Add stdint.
68609         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68611 2009-03-10  Bruno Haible  <bruno@clisp.org>
68613         Tests for module 'mbmemcasecoll'.
68614         * modules/mbmemcasecoll-tests: New file.
68615         * tests/test-mbmemcasecoll1.sh: New file.
68616         * tests/test-mbmemcasecoll2.sh: New file.
68617         * tests/test-mbmemcasecoll3.sh: New file.
68618         * tests/test-mbmemcasecoll.c: New file.
68620         New module 'mbmemcasecoll'.
68621         * lib/mbmemcasecoll.h: New file.
68622         * lib/mbmemcasecoll.c: New file.
68623         * modules/mbmemcasecoll: New file.
68625         * tests/test-mbmemcasecmp.h: New file, extracted from
68626         tests/test-mbmemcasecmp.c.
68627         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68628         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68629         (main): Update.
68630         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68632 2009-03-09  Bruno Haible  <bruno@clisp.org>
68634         Tests for module 'mbmemcasecmp'.
68635         * modules/mbmemcasecmp-tests: New file.
68636         * tests/test-mbmemcasecmp1.sh: New file.
68637         * tests/test-mbmemcasecmp2.sh: New file.
68638         * tests/test-mbmemcasecmp3.sh: New file.
68639         * tests/test-mbmemcasecmp.c: New file.
68641         New module 'mbmemcasecmp'.
68642         * lib/mbmemcasecmp.h: New file.
68643         * lib/mbmemcasecmp.c: New file.
68644         * modules/mbmemcasecmp: New file.
68646 2009-03-09  Bruno Haible  <bruno@clisp.org>
68648         Tests for module 'unicase/ulc-casecoll'.
68649         * modules/unicase/ulc-casecoll-tests: New file.
68650         * tests/unicase/test-ulc-casecoll1.sh: New file.
68651         * tests/unicase/test-ulc-casecoll2.sh: New file.
68652         * tests/unicase/test-ulc-casecoll.c: New file.
68654         New module 'unicase/ulc-casecoll'.
68655         * lib/unicase.h (ulc_casecoll): New declaration.
68656         * lib/unicase/ulc-casecoll.c: New file.
68657         * modules/unicase/ulc-casecoll: New file.
68659         New module 'unicase/ulc-casexfrm'.
68660         * lib/unicase.h (ulc_casexfrm): New declaration.
68661         * lib/unicase/ulc-casexfrm.c: New file.
68662         * modules/unicase/ulc-casexfrm: New file.
68664 2009-03-09  Bruno Haible  <bruno@clisp.org>
68666         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68667         invocations.
68669         * m4/mbscasecmp.m4: Remove file.
68670         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68671         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68673         * m4/mbscasestr.m4: Remove file.
68674         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68675         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68677         * m4/mbschr.m4: Remove file.
68678         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68679         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68681         * m4/mbscspn.m4: Remove file.
68682         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68683         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68685         * m4/mbslen.m4: Remove file.
68686         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68687         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68689         * m4/mbsncasecmp.m4: Remove file.
68690         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68691         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68693         * m4/mbsnlen.m4: Remove file.
68694         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68695         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68697         * m4/mbspbrk.m4: Remove file.
68698         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68699         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68701         * m4/mbspcasecmp.m4: Remove file.
68702         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68703         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68705         * m4/mbsrchr.m4: Remove file.
68706         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68707         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68709         * m4/mbssep.m4: Remove file.
68710         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68711         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68713         * m4/mbsspn.m4: Remove file.
68714         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68715         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68717         * m4/mbsstr.m4: Remove file.
68718         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68719         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68721         * m4/mbstok_r.m4: Remove file.
68722         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68723         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68725         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68727         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68728         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68730         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68732 2009-03-08  Bruno Haible  <bruno@clisp.org>
68734         Tests for module 'unicase/ulc-casecmp'.
68735         * modules/unicase/ulc-casecmp-tests: New file.
68736         * tests/unicase/test-ulc-casecmp1.sh: New file.
68737         * tests/unicase/test-ulc-casecmp2.sh: New file.
68738         * tests/unicase/test-ulc-casecmp.c: New file.
68740         New module 'unicase/ulc-casecmp'.
68741         * lib/unicase.h (ulc_casecmp): New declaration.
68742         * lib/unicase/ulc-casecmp.c: New file.
68743         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68744         'const SRC_UNIT *'.
68745         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68746         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68747         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68748         * modules/unicase/ulc-casecmp: New file.
68750         Tests for module 'unicase/u32-is-cased'.
68751         * modules/unicase/u32-is-cased-tests: New file.
68752         * tests/unicase/test-u32-is-cased.c: New file.
68754         Tests for module 'unicase/u16-is-cased'.
68755         * modules/unicase/u16-is-cased-tests: New file.
68756         * tests/unicase/test-u16-is-cased.c: New file.
68758         Tests for module 'unicase/u8-is-cased'.
68759         * modules/unicase/u8-is-cased-tests: New file.
68760         * tests/unicase/test-u8-is-cased.c: New file.
68761         * tests/unicase/test-is-cased.h: New file.
68763         New module 'unicase/u32-is-cased'.
68764         * lib/unicase/u32-is-cased.c: New file.
68765         * modules/unicase/u32-is-cased: New file.
68767         New module 'unicase/u16-is-cased'.
68768         * lib/unicase/u16-is-cased.c: New file.
68769         * modules/unicase/u16-is-cased: New file.
68771         New module 'unicase/u8-is-cased'.
68772         * lib/unicase/u8-is-cased.c: New file.
68773         * lib/unicase/u-is-cased.h: New file.
68774         * modules/unicase/u8-is-cased: New file.
68776         Tests for module 'unicase/u32-is-casefolded'.
68777         * modules/unicase/u32-is-casefolded-tests: New file.
68778         * tests/unicase/test-u32-is-casefolded.c: New file.
68780         Tests for module 'unicase/u16-is-casefolded'.
68781         * modules/unicase/u16-is-casefolded-tests: New file.
68782         * tests/unicase/test-u16-is-casefolded.c: New file.
68784         Tests for module 'unicase/u8-is-casefolded'.
68785         * modules/unicase/u8-is-casefolded-tests: New file.
68786         * tests/unicase/test-u8-is-casefolded.c: New file.
68787         * tests/unicase/test-is-casefolded.h: New file.
68789         New module 'unicase/u32-is-casefolded'.
68790         * lib/unicase/u32-is-casefolded.c: New file.
68791         * modules/unicase/u32-is-casefolded: New file.
68793         New module 'unicase/u16-is-casefolded'.
68794         * lib/unicase/u16-is-casefolded.c: New file.
68795         * modules/unicase/u16-is-casefolded: New file.
68797         New module 'unicase/u8-is-casefolded'.
68798         * lib/unicase/u8-is-casefolded.c: New file.
68799         * modules/unicase/u8-is-casefolded: New file.
68801         Tests for module 'unicase/u32-is-titlecase'.
68802         * modules/unicase/u32-is-titlecase-tests: New file.
68803         * tests/unicase/test-u32-is-titlecase.c: New file.
68805         Tests for module 'unicase/u16-is-titlecase'.
68806         * modules/unicase/u16-is-titlecase-tests: New file.
68807         * tests/unicase/test-u16-is-titlecase.c: New file.
68809         Tests for module 'unicase/u8-is-titlecase'.
68810         * modules/unicase/u8-is-titlecase-tests: New file.
68811         * tests/unicase/test-u8-is-titlecase.c: New file.
68812         * tests/unicase/test-is-titlecase.h: New file.
68814         New module 'unicase/u32-is-titlecase'.
68815         * lib/unicase/u32-is-titlecase.c: New file.
68816         * modules/unicase/u32-is-titlecase: New file.
68818         New module 'unicase/u16-is-titlecase'.
68819         * lib/unicase/u16-is-titlecase.c: New file.
68820         * modules/unicase/u16-is-titlecase: New file.
68822         New module 'unicase/u8-is-titlecase'.
68823         * lib/unicase/u8-is-titlecase.c: New file.
68824         * modules/unicase/u8-is-titlecase: New file.
68826         Tests for module 'unicase/u32-is-lowercase'.
68827         * modules/unicase/u32-is-lowercase-tests: New file.
68828         * tests/unicase/test-u32-is-lowercase.c: New file.
68830         Tests for module 'unicase/u16-is-lowercase'.
68831         * modules/unicase/u16-is-lowercase-tests: New file.
68832         * tests/unicase/test-u16-is-lowercase.c: New file.
68834         Tests for module 'unicase/u8-is-lowercase'.
68835         * modules/unicase/u8-is-lowercase-tests: New file.
68836         * tests/unicase/test-u8-is-lowercase.c: New file.
68837         * tests/unicase/test-is-lowercase.h: New file.
68839         New module 'unicase/u32-is-lowercase'.
68840         * lib/unicase/u32-is-lowercase.c: New file.
68841         * modules/unicase/u32-is-lowercase: New file.
68843         New module 'unicase/u16-is-lowercase'.
68844         * lib/unicase/u16-is-lowercase.c: New file.
68845         * modules/unicase/u16-is-lowercase: New file.
68847         New module 'unicase/u8-is-lowercase'.
68848         * lib/unicase/u8-is-lowercase.c: New file.
68849         * modules/unicase/u8-is-lowercase: New file.
68851         Tests for module 'unicase/u32-is-uppercase'.
68852         * modules/unicase/u32-is-uppercase-tests: New file.
68853         * tests/unicase/test-u32-is-uppercase.c: New file.
68855         Tests for module 'unicase/u16-is-uppercase'.
68856         * modules/unicase/u16-is-uppercase-tests: New file.
68857         * tests/unicase/test-u16-is-uppercase.c: New file.
68859         Tests for module 'unicase/u8-is-uppercase'.
68860         * modules/unicase/u8-is-uppercase-tests: New file.
68861         * tests/unicase/test-u8-is-uppercase.c: New file.
68862         * tests/unicase/test-is-uppercase.h: New file.
68864         New module 'unicase/u32-is-uppercase'.
68865         * lib/unicase/u32-is-uppercase.c: New file.
68866         * modules/unicase/u32-is-uppercase: New file.
68868         New module 'unicase/u16-is-uppercase'.
68869         * lib/unicase/u16-is-uppercase.c: New file.
68870         * modules/unicase/u16-is-uppercase: New file.
68872         New module 'unicase/u8-is-uppercase'.
68873         * lib/unicase/u8-is-uppercase.c: New file.
68874         * modules/unicase/u8-is-uppercase: New file.
68876         New module 'unicase/u32-is-invariant'.
68877         * lib/unicase/u32-is-invariant.c: New file.
68878         * modules/unicase/u32-is-invariant: New file.
68880         New module 'unicase/u16-is-invariant'.
68881         * lib/unicase/u16-is-invariant.c: New file.
68882         * modules/unicase/u16-is-invariant: New file.
68884         New module 'unicase/u8-is-invariant'.
68885         * lib/unicase/u8-is-invariant.c: New file.
68886         * lib/unicase/invariant.h: New file.
68887         * lib/unicase/u-is-invariant.h: New file.
68888         * modules/unicase/u8-is-invariant: New file.
68890         Tests for module 'unicase/u32-casecoll'.
68891         * modules/unicase/u32-casecoll-tests: New file.
68892         * tests/unicase/test-u32-casecoll.c: New file.
68894         Tests for module 'unicase/u16-casecoll'.
68895         * modules/unicase/u16-casecoll-tests: New file.
68896         * tests/unicase/test-u16-casecoll.c: New file.
68898         Tests for module 'unicase/u8-casecoll'.
68899         * modules/unicase/u8-casecoll-tests: New file.
68900         * tests/unicase/test-u8-casecoll.c: New file.
68902         New module 'unicase/u32-casecoll'.
68903         * lib/unicase/u32-casecoll.c: New file.
68904         * modules/unicase/u32-casecoll: New file.
68906         New module 'unicase/u16-casecoll'.
68907         * lib/unicase/u16-casecoll.c: New file.
68908         * modules/unicase/u16-casecoll: New file.
68910         New module 'unicase/u8-casecoll'.
68911         * lib/unicase/u8-casecoll.c: New file.
68912         * lib/unicase/u-casecoll.h: New file.
68913         * modules/unicase/u8-casecoll: New file.
68915         New module 'unicase/u32-casexfrm'.
68916         * lib/unicase/u32-casexfrm.c: New file.
68917         * modules/unicase/u32-casexfrm: New file.
68919         New module 'unicase/u16-casexfrm'.
68920         * lib/unicase/u16-casexfrm.c: New file.
68921         * modules/unicase/u16-casexfrm: New file.
68923         New module 'unicase/u8-casexfrm'.
68924         * lib/unicase/u8-casexfrm.c: New file.
68925         * lib/unicase/u-casexfrm.h: New file.
68926         * modules/unicase/u8-casexfrm: New file.
68928         Tests for module 'unicase/u32-casecmp'.
68929         * modules/unicase/u32-casecmp-tests: New file.
68930         * tests/unicase/test-u32-casecmp.c: New file.
68932         Tests for module 'unicase/u16-casecmp'.
68933         * modules/unicase/u16-casecmp-tests: New file.
68934         * tests/unicase/test-u16-casecmp.c: New file.
68936         Tests for module 'unicase/u8-casecmp'.
68937         * modules/unicase/u8-casecmp-tests: New file.
68938         * tests/unicase/test-u8-casecmp.c: New file.
68939         * tests/unicase/test-casecmp.h: New file.
68941         New module 'unicase/u32-casecmp'.
68942         * lib/unicase/u32-casecmp.c: New file.
68943         * modules/unicase/u32-casecmp: New file.
68945         New module 'unicase/u16-casecmp'.
68946         * lib/unicase/u16-casecmp.c: New file.
68947         * modules/unicase/u16-casecmp: New file.
68949         New module 'unicase/u8-casecmp'.
68950         * lib/unicase/u8-casecmp.c: New file.
68951         * lib/unicase/u-casecmp.h: New file.
68952         * modules/unicase/u8-casecmp: New file.
68954         Tests for module 'unicase/u32-casefold'.
68955         * modules/unicase/u32-casefold-tests: New file.
68956         * tests/unicase/test-u32-casefold.c: New file.
68958         Tests for module 'unicase/u16-casefold'.
68959         * modules/unicase/u16-casefold-tests: New file.
68960         * tests/unicase/test-u16-casefold.c: New file.
68962         Tests for module 'unicase/u8-casefold'.
68963         * modules/unicase/u8-casefold-tests: New file.
68964         * tests/unicase/test-u8-casefold.c: New file.
68966         New module 'unicase/u32-casefold'.
68967         * lib/unicase/u32-casefold.c: New file.
68968         * modules/unicase/u32-casefold: New file.
68970         New module 'unicase/u16-casefold'.
68971         * lib/unicase/u16-casefold.c: New file.
68972         * modules/unicase/u16-casefold: New file.
68974         New module 'unicase/u8-casefold'.
68975         * lib/unicase/u8-casefold.c: New file.
68976         * lib/unicase/u-casefold.h: New file.
68977         * modules/unicase/u8-casefold: New file.
68979         New module 'unicase/tocasefold'.
68980         * lib/unicase/casefold.h: New file.
68981         * lib/unicase/tocasefold.c: New file.
68982         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
68983         * modules/unicase/tocasefold: New file.
68985         Tests for module 'unicase/u32-totitle'.
68986         * modules/unicase/u32-totitle-tests: New file.
68987         * tests/unicase/test-u32-totitle.c: New file.
68989         Tests for module 'unicase/u16-totitle'.
68990         * modules/unicase/u16-totitle-tests: New file.
68991         * tests/unicase/test-u16-totitle.c: New file.
68993         Tests for module 'unicase/u8-totitle'.
68994         * modules/unicase/u8-totitle-tests: New file.
68995         * tests/unicase/test-u8-totitle.c: New file.
68997         New module 'unicase/u32-totitle'.
68998         * lib/unicase/u32-totitle.c: New file.
68999         * modules/unicase/u32-totitle: New file.
69001         New module 'unicase/u16-totitle'.
69002         * lib/unicase/u16-totitle.c: New file.
69003         * modules/unicase/u16-totitle: New file.
69005         New module 'unicase/u8-totitle'.
69006         * lib/unicase/u8-totitle.c: New file.
69007         * lib/unicase/u-totitle.h: New file.
69008         * modules/unicase/u8-totitle: New file.
69010         Tests for module 'unicase/u32-tolower'.
69011         * modules/unicase/u32-tolower-tests: New file.
69012         * tests/unicase/test-u32-tolower.c: New file.
69014         Tests for module 'unicase/u16-tolower'.
69015         * modules/unicase/u16-tolower-tests: New file.
69016         * tests/unicase/test-u16-tolower.c: New file.
69018         Tests for module 'unicase/u8-tolower'.
69019         * modules/unicase/u8-tolower-tests: New file.
69020         * tests/unicase/test-u8-tolower.c: New file.
69022         New module 'unicase/u32-tolower'.
69023         * lib/unicase/u32-tolower.c: New file.
69024         * modules/unicase/u32-tolower: New file.
69026         New module 'unicase/u16-tolower'.
69027         * lib/unicase/u16-tolower.c: New file.
69028         * modules/unicase/u16-tolower: New file.
69030         New module 'unicase/u8-tolower'.
69031         * lib/unicase/u8-tolower.c: New file.
69032         * modules/unicase/u8-tolower: New file.
69034         Tests for module 'unicase/u32-toupper'.
69035         * modules/unicase/u32-toupper-tests: New file.
69036         * tests/unicase/test-u32-toupper.c: New file.
69038         Tests for module 'unicase/u16-toupper'.
69039         * modules/unicase/u16-toupper-tests: New file.
69040         * tests/unicase/test-u16-toupper.c: New file.
69042         Tests for module 'unicase/u8-toupper'.
69043         * modules/unicase/u8-toupper-tests: New file.
69044         * tests/unicase/test-u8-toupper.c: New file.
69046         New module 'unicase/u32-toupper'.
69047         * lib/unicase/u32-toupper.c: New file.
69048         * modules/unicase/u32-toupper: New file.
69050         New module 'unicase/u16-toupper'.
69051         * lib/unicase/u16-toupper.c: New file.
69052         * modules/unicase/u16-toupper: New file.
69054         New module 'unicase/u8-toupper'.
69055         * lib/unicase/u8-toupper.c: New file.
69056         * modules/unicase/u8-toupper: New file.
69058         New module 'unicase/u32-casemap'.
69059         * lib/unicase/u32-casemap.c: New file.
69060         * modules/unicase/u32-casemap: New file.
69062         New module 'unicase/u16-casemap'.
69063         * lib/unicase/u16-casemap.c: New file.
69064         * modules/unicase/u16-casemap: New file.
69066         New module 'unicase/u8-casemap'.
69067         * lib/unicase/unicasemap.h: New file.
69068         * lib/unicase/u8-casemap.c: New file.
69069         * lib/unicase/u-casemap.h: New file.
69070         * modules/unicase/u8-casemap: New file.
69072         New module 'unicase/special-casing'.
69073         * lib/unicase/special-casing.h: New file.
69074         * lib/unicase/special-casing.c: New file.
69075         * lib/unicase/special-casing-table.gperf: New file, generated by
69076         gen-uni-tables.c.
69077         * modules/unicase/special-casing: New file.
69079         Tests for module 'unicase/locale-language'.
69080         * modules/unicase/locale-language-tests: New file.
69081         * tests/unicase/test-locale-language.sh: New file.
69082         * tests/unicase/test-locale-language.c: New file.
69084         New module 'unicase/locale-language'.
69085         * lib/unicase/locale-language.c: New file.
69086         * lib/unicase/locale-languages.gperf: New file.
69087         * modules/unicase/locale-language: New file.
69089         Generate more tables for case conversion and case folding.
69090         * lib/gen-uni-tables.c (SCC_*): New enum items.
69091         (struct special_casing_rule): New type.
69092         (casing_rules, num_casing_rules, allocated_casing_rules): New
69093         variables.
69094         (add_casing_rule, fill_casing_rules): New functions.
69095         (struct casefold_rule): New type.
69096         (casefolding_rules, num_casefolding_rules,
69097         allocated_casefolding_rules): New variables.
69098         (fill_casefolding_rules): New function.
69099         (unicode_casefold): New variable.
69100         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69101         sort_casing_rules, output_casing_rules): New functions.
69102         (main): Accept to more arguments: SpecialCasing.txt and
69103         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69104         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69105         Output mapping for casefolding.
69107         * lib/unicase.h: Include stdbool.h, uninorm.h.
69108         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69109         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69110         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69111         arguments.
69112         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69113         resultp arguments.
69114         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69115         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69116         resultp arguments.
69117         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69118         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69119         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69120         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69121         declarations.
69122         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69124 2009-03-08  Bruno Haible  <bruno@clisp.org>
69126         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69127         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69128         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69129         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69131 2009-03-07  Bruno Haible  <bruno@clisp.org>
69133         Adjust u*_normcmp, u*_normcoll API.
69134         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69135         u16_normcoll, u32_normcoll): Change failure conventions.
69136         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69137         errno and return -1.
69138         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69140 2009-03-07  Bruno Haible  <bruno@clisp.org>
69142         Tests for module 'uninorm/u32-normcoll'.
69143         * modules/uninorm/u32-normcoll-tests: New file.
69144         * tests/uninorm/test-u32-normcoll.c: New file.
69146         Tests for module 'uninorm/u16-normcoll'.
69147         * modules/uninorm/u16-normcoll-tests: New file.
69148         * tests/uninorm/test-u16-normcoll.c: New file.
69150         Tests for module 'uninorm/u8-normcoll'.
69151         * modules/uninorm/u8-normcoll-tests: New file.
69152         * tests/uninorm/test-u8-normcoll.c: New file.
69154 2009-03-07  Bruno Haible  <bruno@clisp.org>
69156         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69157         tests/uninorm/test-u32-normcmp.c.
69158         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
69163         tests/uninorm/test-u32-normcmp.h.
69164         (Depends-on): Remove uninorm/u32-normcmp.
69166         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69167         tests/uninorm/test-u16-normcmp.c.
69168         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
69173         tests/uninorm/test-u16-normcmp.h.
69174         (Depends-on): Remove uninorm/u16-normcmp.
69176         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69177         tests/uninorm/test-u8-normcmp.c.
69178         * tests/uninorm/test-u8-normcmp.c: Include it.
69179         (test_nonascii): New function, extracted from main. Add some more
69180         tests.
69181         (main): Invoke test_ascii and test_nonascii.
69182         * modules/uninorm/u8-normcmp-tests (Files): Add
69183         tests/uninorm/test-u8-normcmp.h.
69184         (Depends-on): Remove uninorm/u8-normcmp.
69186 2009-03-07  Bruno Haible  <bruno@clisp.org>
69188         New module 'uninorm/u32-normcoll'.
69189         * lib/uninorm/u32-normcoll.c: New file.
69190         * modules/uninorm/u32-normcoll: New file.
69192         New module 'uninorm/u16-normcoll'.
69193         * lib/uninorm/u16-normcoll.c: New file.
69194         * modules/uninorm/u16-normcoll: New file.
69196         New module 'uninorm/u8-normcoll'.
69197         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69198         declarations.
69199         * lib/uninorm/u8-normcoll.c: New file.
69200         * lib/uninorm/u-normcoll.h: New file.
69201         * modules/uninorm/u8-normcoll: New file.
69203         New module 'uninorm/u32-normxfrm'.
69204         * lib/uninorm/u32-normxfrm.c: New file.
69205         * modules/uninorm/u32-normxfrm: New file.
69207         New module 'uninorm/u16-normxfrm'.
69208         * lib/uninorm/u16-normxfrm.c: New file.
69209         * modules/uninorm/u16-normxfrm: New file.
69211         New module 'uninorm/u8-normxfrm'.
69212         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69213         declarations.
69214         * lib/uninorm/u8-normxfrm.c: New file.
69215         * lib/uninorm/u-normxfrm.h: New file.
69216         * modules/uninorm/u8-normxfrm: New file.
69218 2009-03-07  Bruno Haible  <bruno@clisp.org>
69220         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69221         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69222         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69224 2009-03-07  Bruno Haible  <bruno@clisp.org>
69226         New module 'memxfrm'.
69227         * lib/memxfrm.h: New file.
69228         * lib/memxfrm.c: New file.
69229         * modules/memxfrm: New file.
69231 2009-03-07  Bruno Haible  <bruno@clisp.org>
69233         New module 'memcmp2'.
69234         * lib/memcmp2.h: New file.
69235         * lib/memcmp2.c: New file.
69236         * modules/memcmp2: New file.
69238 2009-03-07  Bruno Haible  <bruno@clisp.org>
69240         Tests for module 'uninorm/decomposing-form'.
69241         * modules/uninorm/decomposing-form-tests: New file.
69242         * tests/uninorm/test-decomposing-form.c: New file.
69244         New module 'uninorm/decomposing-form'.
69245         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69246         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69247         Add 'decomposing_variant' field.
69248         * lib/uninorm/decomposing-form.c: New file.
69249         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69250         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69251         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69252         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69253         * modules/uninorm/decomposing-form: New file.
69254         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69255         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69257 2009-03-07  Bruno Haible  <bruno@clisp.org>
69259         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69260         strings.
69262 2009-03-06  Bruno Haible  <bruno@clisp.org>
69264         Tests for module 'uninorm/u32-normcmp'.
69265         * tests/uninorm/test-u32-normcmp.c: New file.
69266         * modules/uninorm/u32-normcmp-tests: New file.
69268         Tests for module 'uninorm/u16-normcmp'.
69269         * tests/uninorm/test-u16-normcmp.c: New file.
69270         * modules/uninorm/u16-normcmp-tests: New file.
69272         Tests for module 'uninorm/u8-normcmp'.
69273         * tests/uninorm/test-u8-normcmp.c: New file.
69274         * modules/uninorm/u8-normcmp-tests: New file.
69276         New module 'uninorm/u32-normcmp'.
69277         * lib/uninorm/u32-normcmp.c: New file.
69278         * modules/uninorm/u32-normcmp: New file.
69280         New module 'uninorm/u16-normcmp'.
69281         * lib/uninorm/u16-normcmp.c: New file.
69282         * modules/uninorm/u16-normcmp: New file.
69284         New module 'uninorm/u8-normcmp'.
69285         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69286         declarations.
69287         * lib/uninorm/u8-normcmp.c: New file.
69288         * lib/uninorm/u-normcmp.h: New file.
69289         * modules/uninorm/u8-normcmp: New file.
69291 2009-03-06  Bruno Haible  <bruno@clisp.org>
69293         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69294         Reported by Eric Blake.
69296 2009-03-06  Eric Blake  <ebb9@byu.net>
69297             Bruno Haible  <bruno@clisp.org>
69299         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69300         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69301         condition.
69302         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69303         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69304         condition.
69305         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69307 2009-03-06  Eric Blake  <ebb9@byu.net>
69309         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69310         to avoid compiler warnings.
69311         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69313 2009-03-05  Bruno Haible  <bruno@clisp.org>
69315         * tests/test-ftell.c (main): Disable test beyond end of file on
69316         FreeMiNT.
69317         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69319 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69321         * lib/filevercmp.c: Move hidden files up in ordering.
69322         * tests/test-filevercmp.c: Add tests for hidden files.
69324 2009-03-04  Bruno Haible  <bruno@clisp.org>
69326         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69327         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69328         AM_CFLAGS.
69329         Reported by Simon Josefsson.
69331 2009-03-03  Bruno Haible  <bruno@clisp.org>
69333         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69334         Reported by Simon Josefsson.
69336         * doc/ld-version-script.texi: Update node reference.
69338 2009-03-03  Bruno Haible  <bruno@clisp.org>
69340         * modules/visibility (License): Change to 'unlimited'.
69341         Suggested by Simon Josefsson.
69343 2009-03-03  Jim Meyering  <meyering@redhat.com>
69345         unlinkdir: cannot_unlink_dir may modify process state
69346         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69347         it's neither thread-safe nor appropriate for use in a library.
69349 2009-03-03  Eric Blake  <ebb9@byu.net>
69351         test-closein: silence test under Darwin
69352         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69353         care if it dies from EPIPE or EBADF.
69355 2009-03-03  Bruno Haible  <bruno@clisp.org>
69357         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69358         earlier.
69359         * doc/visibility.texi: Fix @node and @section.
69361 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69363         * doc/gnulib.texi: Link to sections for ld version script and
69364         visibility.
69365         * doc/visibility.texi: Add @node and @section.
69366         * modules/ld-version-script: New module.
69367         * m4/ld-version-script.m4: New file.
69368         * doc/ld-version-script.texi: New file.
69370 2009-03-02  David Lutterkort  <lutter@redhat.com>
69372         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69375 2009-03-02  Bruno Haible  <bruno@clisp.org>
69377         * doc/visibility.texi: Mention libtool's -export-symbols option.
69379 2009-03-02  Jim Meyering  <meyering@redhat.com>
69381         announce-gen: new option: --no-print-checksums
69382         * build-aux/announce-gen (usage): Describe it.
69383         (print_checksums): Print a newline here, not in the [*] footnote.
69384         (main): Honor it.
69386 2009-03-01  Bruno Haible  <bruno@clisp.org>
69388         Use socklen_t in the native Windows replacements prototypes.
69389         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69390         instead of 'int'.
69391         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69392         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69393         * modules/getsockopt (Depends-on): Add socklen.
69394         * modules/setsockopt (Depends-on): Add socklen.
69396 2009-03-01  Bruno Haible  <bruno@clisp.org>
69398         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69399         least 4.2.
69401 2009-03-01  Eric Blake  <ebb9@byu.net>
69402             Bruno Haible  <bruno@clisp.org>
69404         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69405         error messages.
69406         * lib/wait-process.c (wait_subprocess): Omit error message about
69407         deadly signal sent to the child of termsigp != NULL.
69409 2009-03-01  Eric Blake  <ebb9@byu.net>
69411         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69413 2009-03-01  Bruno Haible  <bruno@clisp.org>
69415         Avoid a gcc warning.
69416         * tests/test-sched.c (b): Make global.
69417         Reported by Eric Blake.
69419 2009-01-19  Martin Lambers  <marlam@marlam.de>
69421         Provide POSIX semantics for socket timeout options on W32.
69422         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69423         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69424         * modules/setsockopt: Depend on sys_time module for struct timeval.
69425         * modules/getsockopt: Depend on sys_time module for struct timeval.
69427 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69429         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69430         __USE_GNU, for consistency with netdb.in.h.
69431         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69433 2009-03-01  Bruno Haible  <bruno@clisp.org>
69435         More support for FreeMiNT.
69436         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69437         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69439 2009-03-01  Bruno Haible  <bruno@clisp.org>
69441         More support for FreeMiNT.
69442         * lib/fpurge.c (fpurge): Correct last commit.
69443         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69445 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69447         Fix unportable awk script in vc-list-files.
69448         * build-aux/vc-list-files: In the replacement awk script, use
69449         substr with a second argument of 1, not zero.
69450         Report by Simon Josefsson.
69452 2009-02-28  Bruno Haible  <bruno@clisp.org>
69454         More support for FreeMiNT.
69455         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69456         to FreeMiNT today.
69457         * lib/fwriting.c (fwriting): Likewise.
69458         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69460 2009-02-28  Bruno Haible  <bruno@clisp.org>
69462         * tests/test-freadseek.c (main): Disable test beyond end of file on
69463         FreeMiNT.
69464         * tests/test-ftello.c (main): Likewise.
69465         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69467 2009-02-28  Bruno Haible  <bruno@clisp.org>
69469         Add tentative support for FreeMiNT.
69470         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69471         * lib/fpurge.c (fpurge): Likewise.
69472         * lib/freadable.c (freadable): Likewise.
69473         * lib/freading.c (freading): Likewise.
69474         * lib/freadptr.c (freadptr): Likewise.
69475         * lib/freadseek.c (freadptrinc): Likewise.
69476         * lib/fseeko.c (rpl_fseeko): Likewise.
69477         * lib/fseterr.c (fseterr): Likewise.
69478         * lib/fwritable.c (fwritable): Likewise.
69479         * lib/fwriting.c (fwriting): Likewise.
69480         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69481         Hourihane.
69482         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69484 2009-02-28  Bruno Haible  <bruno@clisp.org>
69486         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69487         SIGCHLD.
69488         Reported by Jim Meyering.
69490 2009-02-28  Bruno Haible  <bruno@clisp.org>
69492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69493         Mention the results of these tests on various platforms.
69494         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69495         order.
69496         * doc/posix-functions/printf.texi: Likewise.
69497         * doc/posix-functions/snprintf.texi: Likewise.
69498         * doc/posix-functions/sprintf.texi: Likewise.
69499         * doc/posix-functions/vfprintf.texi: Likewise.
69500         * doc/posix-functions/vprintf.texi: Likewise.
69501         * doc/posix-functions/vsnprintf.texi: Likewise.
69502         * doc/posix-functions/vsprintf.texi: Likewise.
69503         * doc/glibc-functions/obstack_printf.texi: Likewise.
69504         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69506 2009-02-28  Bruno Haible  <bruno@clisp.org>
69508         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69509         Reported by Loïc Minier <lool@dooz.org>.
69511 2009-02-27  Bruno Haible  <bruno@clisp.org>
69513         * gnulib-tool (func_import): Make the sed expression used to create the
69514         sed script for updating the .gitignore file POSIX compliant.
69515         Reported by Eric Blake.
69517 2009-02-27  Bruno Haible  <bruno@clisp.org>
69519         * gnulib-tool (sed): Don't alias as "sed --posix".
69520         Reported by Eric Blake.
69522 2009-02-27  Bruno Haible  <bruno@clisp.org>
69524         Avoid test link errors.
69525         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69526         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69527         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69528         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69531 2009-02-27  Bruno Haible  <bruno@clisp.org>
69533         Avoid spurious "(cached)" in configure output.
69534         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69535         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69536         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69537         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69538         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69539         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69540         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69541         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69542         Reported by Eric Blake.
69544 2009-02-27  Eric Blake  <ebb9@byu.net>
69546         printf: fix regression in previous patch
69547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69549 2009-02-27  Bruno Haible  <bruno@clisp.org>
69551         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69552         value.
69553         * lib/stdint.in.h: Likewise.
69554         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69556 2009-02-27  Eric Blake  <ebb9@byu.net>
69558         doc: mention more functions added in cygwin 1.7.0
69559         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69560         addition.
69561         * doc/posix-functions/open_wmemstream.texi: Likewise.
69562         * doc/posix-functions/wcsnlen.texi: Likewise.
69563         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69564         * doc/posix-functions/wcstod.texi: Likewise.
69565         * doc/posix-functions/wcstof.texi: Likewise.
69566         * doc/posix-functions/wcstoimax.texi: Likewise.
69567         * doc/posix-functions/wcstok.texi: Likewise.
69568         * doc/posix-functions/wcstoumax.texi: Likewise.
69570         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69571         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69572         * doc/posix-functions/fprintf.texi: Update.
69573         * doc/posix-functions/printf.texi: Update.
69574         * doc/posix-functions/snprintf.texi: Update.
69575         * doc/posix-functions/sprintf.texi: Update.
69576         * doc/posix-functions/vfprintf.texi: Update.
69577         * doc/posix-functions/vprintf.texi: Update.
69578         * doc/posix-functions/vsnprintf.texi: Update.
69579         * doc/posix-functions/vsprintf.texi: Update.
69580         * doc/glibc-functions/obstack_printf.texi: Update.
69581         * doc/glibc-functions/obstack_vprintf.texi: Update.
69583 2009-02-26  Eric Blake  <ebb9@byu.net>
69585         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69586         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69587         compilation bug by using runtime conversion.
69588         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69589         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69590         * modules/ceill-tests (Files): Use nan.h.
69591         * modules/floorl-tests (Files): Likewise.
69592         * modules/frexpl-tests (Files): Likewise.
69593         * modules/isnanl-tests (Files): Likewise.
69594         * modules/ldexpl-tests (Files): Likewise.
69595         * modules/roundl-tests (Files): Likewise.
69596         * modules/truncl-tests (Files): Likewise.
69597         * tests/test-ceill.c (main): Use a working NaN.
69598         * tests/test-floorl.c (main): Likewise.
69599         * tests/test-frexpl.c (main): Likewise.
69600         * tests/test-isnan.c (test_long_double): Likewise.
69601         * tests/test-isnanl.h (main): Likewise.
69602         * tests/test-ldexpl.h (main): Likewise.
69603         * tests/test-roundl.h (main): Likewise.
69604         * tests/test-truncl.h (main): Likewise.
69605         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69607 2009-02-26  Eric Blake  <ebb9@byu.net>
69608             Bruno Haible  <bruno@clisp.org>
69610         Work around a *printf bug with %ls on Solaris.
69611         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69612         precision is specified, sprintf stops converting the wide string
69613         argument when the number of bytes that have been produced by this
69614         conversion equals or exceeds the precision.
69615         * doc/posix-functions/fprintf.texi: Update.
69616         * doc/posix-functions/printf.texi: Update.
69617         * doc/posix-functions/snprintf.texi: Update.
69618         * doc/posix-functions/sprintf.texi: Update.
69619         * doc/posix-functions/vfprintf.texi: Update.
69620         * doc/posix-functions/vprintf.texi: Update.
69621         * doc/posix-functions/vsnprintf.texi: Update.
69622         * doc/posix-functions/vsprintf.texi: Update.
69623         * doc/glibc-functions/obstack_printf.texi: Update.
69624         * doc/glibc-functions/obstack_vprintf.texi: Update.
69626 2009-02-26  Eric Blake  <ebb9@byu.net>
69628         stdlib: favor compiler check of random.h
69629         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69630         to avoid an ObjC random.h installed by Swarm.
69632 2009-02-26  Bruno Haible  <bruno@clisp.org>
69634         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69635         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69636         Reported by Gary V. Vaughan <gary@gnu.org>.
69638 2009-02-26  Bruno Haible  <bruno@clisp.org>
69640         Fix *printf behaviour regarding the %ls directive.
69641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69642         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69643         NEED_PRINTF_DIRECTIVE_LS.
69644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69645         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69647         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69648         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69649         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69650         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69653         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69655         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69659         * doc/posix-functions/fprintf.texi: Update.
69660         * doc/posix-functions/printf.texi: Update.
69661         * doc/posix-functions/snprintf.texi: Update.
69662         * doc/posix-functions/sprintf.texi: Update.
69663         * doc/posix-functions/vfprintf.texi: Update.
69664         * doc/posix-functions/vprintf.texi: Update.
69665         * doc/posix-functions/vsnprintf.texi: Update.
69666         * doc/posix-functions/vsprintf.texi: Update.
69667         * doc/glibc-functions/obstack_printf.texi: Update.
69668         * doc/glibc-functions/obstack_vprintf.texi: Update.
69669         Reported by Eric Blake.
69671 2009-02-25  Bruno Haible  <bruno@clisp.org>
69673         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69674         with known value.
69675         Reported by Gary V. Vaughan <gary@gnu.org>.
69677 2009-02-25  Bruno Haible  <bruno@clisp.org>
69679         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69680         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69681         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69682         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69683         Reported by Gary V. Vaughan <gary@gnu.org>.
69685 2009-02-25  Bruno Haible  <bruno@clisp.org>
69687         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69688         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69689         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69690         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69691         Reported by Gary V. Vaughan <gary@gnu.org>.
69693 2009-02-25  Eric Blake  <ebb9@byu.net>
69695         tests: skip fseek/ftell tests if ungetc is broken
69696         * m4/ungetc.m4: New file.
69697         * modules/fseek-tests: Split test, so ungetc dependency is
69698         separate from rest of test.
69699         * modules/fseeko-tests: Likewise.
69700         * modules/ftell-tests: Likewise.
69701         * modules/ftello-tests: Likewise.
69702         * tests/test-fseek.c (main): Isolate ungetc dependency.
69703         * tests/test-fseeko.c (main): Likewise.
69704         * tests/test-ftell.c (main): Likewise.
69705         * tests/test-ftello.c (main): Likewise.
69706         * tests/test-fseek2.sh: New file.
69707         * tests/test-fseeko2.sh: Likewise.
69708         * tests/test-ftell2.sh: Likewise.
69709         * tests/test-ftello2.sh: Likewise.
69711 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69713         test-getaddrinfo: fix usage of skip return code 77
69714         * tests/test-gettaddrinfo.c: Return skip code 77 only
69715         for first occurrence of skip (4x77 is not 77)
69717 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69719         strtod: avoid C99 decl-after-statement
69720         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69722 2009-02-24  Eric Blake  <ebb9@byu.net>
69724         strtod: detect HP-UX 11.31 bug
69725         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69726         Reported by Gary V. Vaughan.
69728 2009-02-23  Bruno Haible  <bruno@clisp.org>
69730         Fix invalid read past end of memory block.
69731         * lib/vasnprintf.c (DCHAR_SET): Define.
69732         (local_wcslen): Define only when needed.
69733         (local_strnlen, local_wcsnlen): New functions.
69734         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69735         directives that involve a conversion ourselves.
69736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69737         wcsnlen, mbrtowc, wcrtomb.
69738         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69739         * tests/test-vasprintf-posix.c (test_function): Likewise.
69740         * tests/test-snprintf-posix.h (test_function): Likewise.
69741         * tests/test-sprintf-posix.h (test_function): Likewise.
69742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69744 2009-02-22  Bruno Haible  <bruno@clisp.org>
69746         Implement new clarified decomposition of Hangul syllables.
69747         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69748         of type LTV, return only a pairwise decomposition.
69749         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69750         Likewise.
69751         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69752         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69753         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69755 2009-02-22  Bruno Haible  <bruno@clisp.org>
69757         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69758         zero-length results and shrink excess allocated memory.
69759         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69760         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69761         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69762         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69763         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69764         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69765         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69766         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69767         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69768         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69769         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69770         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69772 2009-02-21  Bruno Haible  <bruno@clisp.org>
69774         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69775         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69776         spaces after a period. Put a space between a macro name and its
69777         argument list. Trivial rewordings.
69778         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69779         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69780         (main): Return 0 explicitly.
69782 2009-02-21  Bruno Haible  <bruno@clisp.org>
69784         Tests for module 'uninorm/filter'.
69785         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69786         * modules/uninorm/filter-tests: New file.
69788         New module 'uninorm/filter'.
69789         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69790         uninorm_filter_flush, uninorm_filter_free): New declarations.
69791         * lib/uninorm/uninorm-filter.c: New file.
69792         * modules/uninorm/filter: New file.
69794 2009-02-21  Bruno Haible  <bruno@clisp.org>
69796         Tests for module 'uninorm/nfkc'.
69797         * tests/uninorm/test-nfkc.c: New file.
69798         * tests/uninorm/test-u8-nfkc.c: New file.
69799         * tests/uninorm/test-u16-nfkc.c: New file.
69800         * tests/uninorm/test-u32-nfkc.c: New file.
69801         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69802         * tests/uninorm/test-u32-nfkc-big.c: New file.
69803         * modules/uninorm/nfkc-tests: New file.
69805         New module 'uninorm/nfkc'.
69806         * lib/uninorm/nfkc.c: New file.
69807         * modules/uninorm/nfkc: New file.
69809         Tests for module 'uninorm/nfkd'.
69810         * tests/uninorm/test-nfkd.c: New file.
69811         * tests/uninorm/test-u8-nfkd.c: New file.
69812         * tests/uninorm/test-u16-nfkd.c: New file.
69813         * tests/uninorm/test-u32-nfkd.c: New file.
69814         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69815         * tests/uninorm/test-u32-nfkd-big.c: New file.
69816         * modules/uninorm/nfkd-tests: New file.
69818         New module 'uninorm/nfkd'.
69819         * lib/uninorm/nfkd.c: New file.
69820         * modules/uninorm/nfkd: New file.
69822         Tests for module 'uninorm/nfc'.
69823         * tests/uninorm/test-nfc.c: New file.
69824         * tests/uninorm/test-u8-nfc.c: New file.
69825         * tests/uninorm/test-u16-nfc.c: New file.
69826         * tests/uninorm/test-u32-nfc.c: New file.
69827         * tests/uninorm/test-u32-nfc-big.sh: New file.
69828         * tests/uninorm/test-u32-nfc-big.c: New file.
69829         * modules/uninorm/nfc-tests: New file.
69831         New module 'uninorm/nfc'.
69832         * lib/uninorm/nfc.c: New file.
69833         * modules/uninorm/nfc: New file.
69835         Tests for module 'uninorm/nfd'.
69836         * tests/uninorm/test-nfd.c: New file.
69837         * tests/uninorm/test-u8-nfd.c: New file.
69838         * tests/uninorm/test-u16-nfd.c: New file.
69839         * tests/uninorm/test-u32-nfd.c: New file.
69840         * tests/uninorm/test-u32-nfd-big.sh: New file.
69841         * tests/uninorm/test-u32-nfd-big.c: New file.
69842         * tests/uninorm/test-u32-normalize-big.h: New file.
69843         * tests/uninorm/test-u32-normalize-big.c: New file.
69844         * tests/uninorm/NormalizationTest.txt: New file, created from
69845         Unicode 5.1.0 NormalizationTest.txt.
69846         * modules/uninorm/nfd-tests: New file.
69848         New module 'uninorm/nfd'.
69849         * lib/uninorm/nfd.c: New file.
69850         * modules/uninorm/nfd: New file.
69852         New module 'uninorm/u32-normalize'.
69853         * lib/uninorm/u32-normalize.c: New file.
69854         * modules/uninorm/u32-normalize: New file.
69856         New module 'uninorm/u16-normalize'.
69857         * lib/uninorm/u16-normalize.c: New file.
69858         * modules/uninorm/u16-normalize: New file.
69860         New module 'uninorm/u8-normalize'.
69861         * lib/uninorm/u8-normalize.c: New file.
69862         * lib/uninorm/normalize-internal.h: New file.
69863         * lib/uninorm/u-normalize-internal.h: New file.
69864         * modules/uninorm/u8-normalize: New file.
69866         New module 'uninorm/decompose-internal'.
69867         * lib/uninorm/decompose-internal.c: New file.
69868         * modules/uninorm/decompose-internal: New file.
69870         Tests for module 'uninorm/composition'.
69871         * tests/uninorm/test-composition.c: New file.
69872         * modules/uninorm/composition-tests: New file.
69874         New module 'uninorm/composition'.
69875         * lib/uninorm/composition.c: New file.
69876         * lib/uninorm/composition-table.gperf: New file, generated by
69877         gen-uni-tables.
69878         * modules/uninorm/composition: New file.
69880         Tests for module 'uninorm/compat-decomposition'.
69881         * tests/uninorm/test-compat-decomposition.c: New file.
69882         * modules/uninorm/compat-decomposition-tests: New file.
69884         New module 'uninorm/compat-decomposition'.
69885         * lib/uninorm/decompose-internal.h: New file.
69886         * lib/uninorm/compat-decomposition.c: New file.
69887         * modules/uninorm/compat-decomposition: New file.
69889         Tests for module 'uninorm/canonical-decomposition'.
69890         * tests/uninorm/test-canonical-decomposition.c: New file.
69891         * modules/uninorm/canonical-decomposition-tests: New file.
69893         New module 'uninorm/canonical-decomposition'.
69894         * lib/uninorm/canonical-decomposition.c: New file.
69895         * modules/uninorm/canonical-decomposition: New file.
69897         Tests for module 'uninorm/decomposition'.
69898         * tests/uninorm/test-decomposition.c: New file.
69899         * modules/uninorm/decomposition-tests: New file.
69901         New module 'uninorm/decomposition'.
69902         * lib/uninorm/decomposition.c: New file.
69903         * modules/uninorm/decomposition: New file.
69905         New module 'uninorm/decomposition-table'.
69906         * lib/uninorm/decomposition-table.h: New file.
69907         * lib/uninorm/decomposition-table.c: New file.
69908         * lib/uninorm/decomposition-table1.h: New file, generated by
69909         gen-uni-tables.
69910         * lib/uninorm/decomposition-table2.h: New file, generated by
69911         gen-uni-tables.
69912         * modules/uninorm/decomposition-table: New file.
69914         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
69915         (UC_DECOMP_*): New enumeration items.
69916         (get_decomposition): New function.
69917         (struct decomp_table): New type.
69918         (output_decomposition, output_decomposition_tables): New functions.
69919         (unicode_composition_exclusions): New variable.
69920         (fill_composition_exclusions, debug_output_composition_tables): New
69921         functions.
69922         (main): Accept one more argument. Invoke fill_composition_exclusions.
69923         Output decomposition and composition tables.
69925         New module 'uninorm/base'.
69926         * lib/uninorm.h: New file.
69927         * lib/unictype.h: Update comment.
69928         * modules/uninorm/base: New file.
69930 2009-02-21  David Lutterkort  <lutter@redhat.com>
69932         Tests for module 'safe-alloc'.
69933         * tests/test-safe-alloc.c: New file.
69934         * modules/safe-alloc-tests: New file.
69936         New module 'safe-alloc'.
69937         * lib/safe-alloc.h: New file.
69938         * lib/safe-alloc.c: New file.
69939         * m4/safe-alloc.m4: New file.
69940         * modules/safe-alloc: New file.
69941         * doc/safe-alloc.texi: New file.
69942         * doc/gnulib.texi: Include it.
69943         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
69944         safe-alloc.
69946 2009-02-18  Bruno Haible  <bruno@clisp.org>
69948         Fix link error on non-glibc systems.
69949         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
69950         variable.
69951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69953 2009-02-18  Jim Meyering  <meyering@redhat.com>
69955         fts: avoid used-uninitialized error due to recent change
69956         * lib/fts.c (fts_read): Guard uses of the new member,
69957         parent->fts_n_dirs_remaining, since it's not relevant for
69958         the parent of a directory specified on the command-line.
69960 2009-02-17  James Youngman  <jay@gnu.org>
69961             Bruno Haible  <bruno@clisp.org>
69963         * m4/include_next.m4: Reformulate comment.
69965 2009-02-16  Jim Meyering  <meyering@redhat.com>
69967         fts: add #if guards so that the fts_lgpl module still builds
69968         * lib/fts.c: Guard just-added hash-table-using parts with
69969         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
69970         Reported by Simon Josefsson.
69972 2009-02-15  Bruno Haible  <bruno@clisp.org>
69974         * modules/array-mergesort-tests: New file.
69975         * tests/test-array-mergesort.c: New file.
69977         New module 'array-mergesort'.
69978         * modules/array-mergesort: New file.
69979         * lib/array-mergesort.h: New file.
69981 2009-02-15  Bruno Haible  <bruno@clisp.org>
69983         Fix 2009-02-07 commit.
69984         * lib/gen-uni-tables.c (output_predicate, output_category,
69985         output_combclass, output_bidi_category, output_decimal_digit,
69986         output_digit, output_numeric, output_mirror, output_scripts,
69987         output_ident_category, output_simple_mapping): Fix format directives.
69988         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
69990 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
69992         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
69993         fixes are available from IBM.
69995 2009-02-13  Jim Meyering  <meyering@redhat.com>
69997         fts: arrange not to stat non-directories in more cases
69998         This makes GNU find (when it doesn't need to stat each file)
69999         *much* more efficient at traversing reiserfs file systems.
70000         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70001         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70002         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70003         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70004         (leaf_optimization_applies): New function.
70005         (LCO_hash, LCO_compare): New helper functions.
70006         (link_count_optimize_ok): New function.
70007         (fts_stat): Initialize new member (if dir).
70008         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70009         we've just stat'ed a directory.  Skip the stat call when possible.
70010         ---
70011         Note this AFS-related exchange:
70012         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70013         and note find's pioctl call in find/fstype.c.
70014         But that is necessary only if you want to enable the
70015         optimization for AFS, and for now, I don't.
70017         fts: move a function definition "up" (no semantic change)
70018         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70019         "up" to precede upcoming use of a related function.
70021 2009-02-11  Jim Meyering  <meyering@redhat.com>
70023         fts: correct internal computation of nlinks (optimization-related)
70024         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70025         whether the current entry is a directory, so don't test it.
70027 2009-02-10  Bruno Haible  <bruno@clisp.org>
70029         Tests for module 'uniwbrk/ulc-wordbreaks'.
70030         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70031         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70032         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70034         Tests for module 'uniwbrk/u32-wordbreaks'.
70035         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70036         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70038         Tests for module 'uniwbrk/u16-wordbreaks'.
70039         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70040         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70042         Tests for module 'uniwbrk/u8-wordbreaks'.
70043         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70044         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70046 2009-02-10  Bruno Haible  <bruno@clisp.org>
70048         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70049         property.
70050         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70051         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70052         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70054 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70056         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70057         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70059 2009-02-10  Bruno Haible  <bruno@clisp.org>
70061         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70062         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70063         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70064         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70065         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70066         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70068 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70070         * lib/sockets.h (gl_fd_to_handle): New function.
70072         * tests/test-sockets.c: Call gl_fd_to_handle.
70074 2009-02-09  Bruno Haible  <bruno@clisp.org>
70076         * doc/havelib.texi: Document the conventions on bi-arch systems.
70078 2009-02-08  Bruno Haible  <bruno@clisp.org>
70080         Document the AC_LIB_LINKFLAGS macro.
70081         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70082         * doc/gnulib.texi: Include it.
70084 2009-02-08  Bruno Haible  <bruno@clisp.org>
70086         Fix wrong order of sections, compared to TOC.
70087         * doc/gnulib.texi: Include relocatable-maint.texi after the
70088         "Regular expressions" node, not before.
70090 2009-02-08  Bruno Haible  <bruno@clisp.org>
70092         Tests for module 'unicase/totitle'.
70093         * modules/unicase/totitle-tests: New file.
70095         Tests for module 'unicase/tolower'.
70096         * modules/unicase/tolower-tests: New file.
70098         Tests for module 'unicase/toupper'.
70099         * modules/unicase/toupper-tests: New file.
70100         * tests/unicase/test-mapping-part1.h: New file.
70101         * tests/unicase/test-mapping-part2.h: New file.
70103         New module 'unicase/totitle'.
70104         * modules/unicase/totitle: New file.
70105         * lib/unicase/totitle.c: New file.
70107         New module 'unicase/tolower'.
70108         * modules/unicase/tolower: New file.
70109         * lib/unicase/tolower.c: New file.
70111         New module 'unicase/toupper'.
70112         * modules/unicase/toupper: New file.
70113         * lib/unicase/toupper.c: New file.
70114         * lib/unicase/simple-mapping.h: New file.
70116         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70117         (mapping_table): New structure.
70118         (output_simple_mapping): New function.
70119         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70120         * modules/gen-uni-tables (Description): Update.
70121         * lib/unicase/toupper.h: New file, automatically generated by
70122         gen-uni-tables.
70123         * lib/unicase/tolower.h: New file, automatically generated by
70124         gen-uni-tables.
70125         * lib/unicase/totitle.h: New file, automatically generated by
70126         gen-uni-tables.
70127         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70128         gen-uni-tables.
70129         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70130         gen-uni-tables.
70131         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70132         gen-uni-tables.
70134         New module 'unicase/base'.
70135         * modules/unicase/base: New file.
70136         * lib/unicase.h: New file.
70138 2009-02-08  Bruno Haible  <bruno@clisp.org>
70140         New module 'uniwbrk/ulc-wordbreaks'.
70141         * modules/uniwbrk/ulc-wordbreaks: New file.
70142         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70144         New module 'uniwbrk/u32-wordbreaks'.
70145         * modules/uniwbrk/u32-wordbreaks: New file.
70146         * lib/uniwbrk/u32-wordbreaks.c: New file.
70148         New module 'uniwbrk/u16-wordbreaks'.
70149         * modules/uniwbrk/u16-wordbreaks: New file.
70150         * lib/uniwbrk/u16-wordbreaks.c: New file.
70152         New module 'uniwbrk/u8-wordbreaks'.
70153         * modules/uniwbrk/u8-wordbreaks: New file.
70154         * lib/uniwbrk/u8-wordbreaks.c: New file.
70155         * lib/uniwbrk/u-wordbreaks.h: New file.
70157         New module 'uniwbrk/table'.
70158         * modules/uniwbrk/table: New file.
70159         * lib/uniwbrk/wbrktable.h: New file.
70160         * lib/uniwbrk/wbrktable.c: New file.
70162         New module 'uniwbrk/wordbreak-property'.
70163         * modules/uniwbrk/wordbreak-property: New file.
70164         * lib/uniwbrk/wordbreak-property.c: New file.
70166         * lib/gen-uni-tables.c (WBP_*): New enum items.
70167         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70168         (unicode_org_wbp): New variable.
70169         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70170         New functions.
70171         (wbp_table): New structure.
70172         (output_wbp, output_wbrk_tables): New functions.
70173         (main): Accept additional argument. Invoke fill_org_wbp,
70174         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70175         output_wbrk_tables.
70176         * modules/gen-uni-tables (Description): Update.
70177         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70178         gen-uni-tables.
70180         New module 'uniwbrk/base'.
70181         * modules/uniwbrk/base: New file.
70182         * lib/uniwbrk.h: New file.
70184 2009-02-08  Bruno Haible  <bruno@clisp.org>
70186         Update to Unicode 5.1.0.
70187         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70188         U+2185..U+2188.
70189         (is_property_default_ignorable_code_point): Don't include characters
70190         of category Cc or Cs and not-a-characters.
70191         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70192         U+0D79, U+109E, U+109F, U+A60C.
70193         * lib/unictype/bidi_of.h: Regenerated.
70194         * lib/unictype/blocks.h: Regenerated.
70195         * lib/unictype/categ_C.h: Regenerated.
70196         * lib/unictype/categ_Cf.h: Regenerated.
70197         * lib/unictype/categ_Cn.h: Regenerated.
70198         * lib/unictype/categ_L.h: Regenerated.
70199         * lib/unictype/categ_Ll.h: Regenerated.
70200         * lib/unictype/categ_Lm.h: Regenerated.
70201         * lib/unictype/categ_Lo.h: Regenerated.
70202         * lib/unictype/categ_Lu.h: Regenerated.
70203         * lib/unictype/categ_M.h: Regenerated.
70204         * lib/unictype/categ_Mc.h: Regenerated.
70205         * lib/unictype/categ_Me.h: Regenerated.
70206         * lib/unictype/categ_Mn.h: Regenerated.
70207         * lib/unictype/categ_N.h: Regenerated.
70208         * lib/unictype/categ_Nd.h: Regenerated.
70209         * lib/unictype/categ_Nl.h: Regenerated.
70210         * lib/unictype/categ_No.h: Regenerated.
70211         * lib/unictype/categ_P.h: Regenerated.
70212         * lib/unictype/categ_Pd.h: Regenerated.
70213         * lib/unictype/categ_Pe.h: Regenerated.
70214         * lib/unictype/categ_Pf.h: Regenerated.
70215         * lib/unictype/categ_Pi.h: Regenerated.
70216         * lib/unictype/categ_Po.h: Regenerated.
70217         * lib/unictype/categ_Ps.h: Regenerated.
70218         * lib/unictype/categ_S.h: Regenerated.
70219         * lib/unictype/categ_Sk.h: Regenerated.
70220         * lib/unictype/categ_Sm.h: Regenerated.
70221         * lib/unictype/categ_So.h: Regenerated.
70222         * lib/unictype/categ_of.h: Regenerated.
70223         * lib/unictype/combining.h: Regenerated.
70224         * lib/unictype/ctype_alnum.h: Regenerated.
70225         * lib/unictype/ctype_alpha.h: Regenerated.
70226         * lib/unictype/ctype_graph.h: Regenerated.
70227         * lib/unictype/ctype_lower.h: Regenerated.
70228         * lib/unictype/ctype_print.h: Regenerated.
70229         * lib/unictype/ctype_punct.h: Regenerated.
70230         * lib/unictype/ctype_upper.h: Regenerated.
70231         * lib/unictype/decdigit.h: Regenerated.
70232         * lib/unictype/digit.h: Regenerated.
70233         * lib/unictype/mirror.h: Regenerated.
70234         * lib/unictype/numeric.h: Regenerated.
70235         * lib/unictype/pr_alphabetic.h: Regenerated.
70236         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70237         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70238         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70239         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70240         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70241         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70242         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70243         * lib/unictype/pr_combining.h: Regenerated.
70244         * lib/unictype/pr_dash.h: Regenerated.
70245         * lib/unictype/pr_decimal_digit.h: Regenerated.
70246         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70247         * lib/unictype/pr_deprecated.h: Regenerated.
70248         * lib/unictype/pr_diacritic.h: Regenerated.
70249         * lib/unictype/pr_extender.h: Regenerated.
70250         * lib/unictype/pr_format_control.h: Regenerated.
70251         * lib/unictype/pr_grapheme_base.h: Regenerated.
70252         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70253         * lib/unictype/pr_grapheme_link.h: Regenerated.
70254         * lib/unictype/pr_id_continue.h: Regenerated.
70255         * lib/unictype/pr_id_start.h: Regenerated.
70256         * lib/unictype/pr_ideographic.h: Regenerated.
70257         * lib/unictype/pr_ignorable_control.h: Regenerated.
70258         * lib/unictype/pr_lowercase.h: Regenerated.
70259         * lib/unictype/pr_math.h: Regenerated.
70260         * lib/unictype/pr_numeric.h: Regenerated.
70261         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70262         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70263         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70264         * lib/unictype/pr_other_id_continue.h: Regenerated.
70265         * lib/unictype/pr_other_lowercase.h: Regenerated.
70266         * lib/unictype/pr_other_math.h: Regenerated.
70267         * lib/unictype/pr_punctuation.h: Regenerated.
70268         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70269         * lib/unictype/pr_soft_dotted.h: Regenerated.
70270         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70271         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70272         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70273         * lib/unictype/pr_uppercase.h: Regenerated.
70274         * lib/unictype/pr_xid_continue.h: Regenerated.
70275         * lib/unictype/pr_xid_start.h: Regenerated.
70276         * lib/unictype/pr_zero_width.h: Regenerated.
70277         * lib/unictype/scripts.h: Regenerated.
70278         * lib/unictype/scripts_byname.gperf: Regenerated.
70279         * lib/unictype/sy_java_ident.h: Regenerated.
70280         * lib/unilbrk/lbrkprop1.h: Regenerated.
70281         * lib/unilbrk/lbrkprop2.h: Regenerated.
70282         * tests/unictype/test-categ_C.c: Regenerated.
70283         * tests/unictype/test-categ_Cf.c: Regenerated.
70284         * tests/unictype/test-categ_Cn.c: Regenerated.
70285         * tests/unictype/test-categ_L.c: Regenerated.
70286         * tests/unictype/test-categ_Ll.c: Regenerated.
70287         * tests/unictype/test-categ_Lm.c: Regenerated.
70288         * tests/unictype/test-categ_Lo.c: Regenerated.
70289         * tests/unictype/test-categ_Lu.c: Regenerated.
70290         * tests/unictype/test-categ_M.c: Regenerated.
70291         * tests/unictype/test-categ_Mc.c: Regenerated.
70292         * tests/unictype/test-categ_Me.c: Regenerated.
70293         * tests/unictype/test-categ_Mn.c: Regenerated.
70294         * tests/unictype/test-categ_N.c: Regenerated.
70295         * tests/unictype/test-categ_Nd.c: Regenerated.
70296         * tests/unictype/test-categ_Nl.c: Regenerated.
70297         * tests/unictype/test-categ_No.c: Regenerated.
70298         * tests/unictype/test-categ_P.c: Regenerated.
70299         * tests/unictype/test-categ_Pd.c: Regenerated.
70300         * tests/unictype/test-categ_Pe.c: Regenerated.
70301         * tests/unictype/test-categ_Pf.c: Regenerated.
70302         * tests/unictype/test-categ_Pi.c: Regenerated.
70303         * tests/unictype/test-categ_Po.c: Regenerated.
70304         * tests/unictype/test-categ_Ps.c: Regenerated.
70305         * tests/unictype/test-categ_S.c: Regenerated.
70306         * tests/unictype/test-categ_Sk.c: Regenerated.
70307         * tests/unictype/test-categ_Sm.c: Regenerated.
70308         * tests/unictype/test-categ_So.c: Regenerated.
70309         * tests/unictype/test-ctype_alnum.c: Regenerated.
70310         * tests/unictype/test-ctype_alpha.c: Regenerated.
70311         * tests/unictype/test-ctype_graph.c: Regenerated.
70312         * tests/unictype/test-ctype_lower.c: Regenerated.
70313         * tests/unictype/test-ctype_print.c: Regenerated.
70314         * tests/unictype/test-ctype_punct.c: Regenerated.
70315         * tests/unictype/test-ctype_upper.c: Regenerated.
70316         * tests/unictype/test-decdigit.h: Regenerated.
70317         * tests/unictype/test-digit.h: Regenerated.
70318         * tests/unictype/test-numeric.h: Regenerated.
70319         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70320         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70321         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70322         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70323         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70324         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70325         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70326         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70327         * tests/unictype/test-pr_combining.c: Regenerated.
70328         * tests/unictype/test-pr_dash.c: Regenerated.
70329         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70330         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70331         * tests/unictype/test-pr_deprecated.c: Regenerated.
70332         * tests/unictype/test-pr_diacritic.c: Regenerated.
70333         * tests/unictype/test-pr_extender.c: Regenerated.
70334         * tests/unictype/test-pr_format_control.c: Regenerated.
70335         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70336         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70337         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70338         * tests/unictype/test-pr_id_continue.c: Regenerated.
70339         * tests/unictype/test-pr_id_start.c: Regenerated.
70340         * tests/unictype/test-pr_ideographic.c: Regenerated.
70341         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70342         * tests/unictype/test-pr_lowercase.c: Regenerated.
70343         * tests/unictype/test-pr_math.c: Regenerated.
70344         * tests/unictype/test-pr_numeric.c: Regenerated.
70345         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70346         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70347         Regenerated.
70348         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70349         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70350         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70351         * tests/unictype/test-pr_other_math.c: Regenerated.
70352         * tests/unictype/test-pr_punctuation.c: Regenerated.
70353         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70354         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70355         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70356         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70357         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70358         * tests/unictype/test-pr_uppercase.c: Regenerated.
70359         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70360         * tests/unictype/test-pr_xid_start.c: Regenerated.
70361         * tests/unictype/test-pr_zero_width.c: Regenerated.
70363         Update to Unicode 5.1.0.
70364         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70365         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70366         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70367         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70368         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70369         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70370         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70371         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70372         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70373         (nonspacing_table_ind): Update.
70374         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70376         Update to Unicode 5.1.0.
70377         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70378         code transform.
70379         * lib/uniname/uniname.c (unicode_character_name,
70380         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70381         * lib/uniname/uninames.h: Regenerated.
70382         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70384 2009-02-07  Bruno Haible  <bruno@clisp.org>
70386         Merge gen-ctype and gen-lbrk into a single program.
70387         * lib/gen-uni-tables.c: New file, incorporating
70388         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70389         Add directory prefixes to the names of the generated files.
70390         * lib/unictype/gen-ctype.c: Remove file.
70391         * lib/unilbrk/gen-lbrk.c: Remove file.
70392         * modules/gen-uni-tables: New file.
70393         * modules/unictype/gen-ctype: Remove file.
70394         * modules/unilbrk/gen-lbrk: Remove file.
70396 2009-02-07  Bruno Haible  <bruno@clisp.org>
70398         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70400         New module 'unistr/u32-strcoll'.
70401         * modules/unistr/u32-strcoll: New file.
70402         * lib/unistr/u32-strcoll.c: New file.
70404         New module 'unistr/u16-strcoll'.
70405         * modules/unistr/u16-strcoll: New file.
70406         * lib/unistr/u16-strcoll.c: New file.
70408         New module 'unistr/u8-strcoll'.
70409         * modules/unistr/u8-strcoll: New file.
70410         * lib/unistr/u8-strcoll.c: New file.
70411         * lib/unistr/u-strcoll.h: New file.
70413 2009-02-07  Bruno Haible  <bruno@clisp.org>
70415         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70416         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70417         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70418         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70419         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70420         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70422 2009-02-07  Bruno Haible  <bruno@clisp.org>
70424         Make 64-bit clean.
70425         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70426         output_combclass, output_bidi_category, output_decimal_digit,
70427         output_digit, output_numeric, output_mirror, output_scripts,
70428         output_ident_category): Use proper width specifier in format strings.
70430 2009-02-07  Bruno Haible  <bruno@clisp.org>
70432         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70433         failure behaviour.
70435 2009-02-07  Jim Meyering  <meyering@redhat.com>
70437         regex: avoid compilation failure with upcoming gcc-4.4
70438         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70439         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70440         "... error: integer overflow in preprocessor expression".
70442 2009-02-05  Ben Pfaff  <blp@gnu.org>
70444         Fix link errors on Windows when close module is used.
70445         * modules/close: Add $(LIB_CLOSE) to Link section.
70446         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70447         $(LIB_CLOSE) on Windows.
70449 2009-02-05  Jim Meyering  <meyering@redhat.com>
70451         still avoid unused-parameter warnings, but do it cleanly
70452         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70453         (get_fs_usage): Cast to void instead.
70454         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70455         (dev_from_mount_options, read_file_system_list): Cast to void.
70456         Prompted by Bruno Haible.
70458 2009-02-04  Jim Meyering  <meyering@redhat.com>
70460         fsusage.c: correct copyright year
70461         * lib/fsusage.c: Reflect year in which the change is pushed into
70463         avoid misc. warnings
70464         * lib/fsusage.c (UNUSED_PARAM): Define.
70465         (get_fs_usage): Mark parameter "disk" as unused.
70466         * lib/getugroups.c (getgrent): Use "void" in prototype.
70467         * lib/mountlist.c: Mark unused parameters.
70468         (read_file_system_list): Declare a local with "const".
70469         * lib/nanosleep.c (getnow): Declare static.
70470         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70472         dirfd: set errno upon failure
70473         * lib/dirfd.c: Include <errno.h>.
70474         Set errno to ENOTSUP when returning -1.
70475         * modules/dirfd (Depends-on): Add errno.
70476         Suggested by John Kodis <kodis@comcast.net>.
70478 2009-02-01  Bruno Haible  <bruno@clisp.org>
70480         Don't assume sizeof (long) >= sizeof (void *).
70481         * lib/memcmp.c: Include stdint.h.
70482         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70483         srcp2 to 'const byte *'.
70484         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70485         types to uintptr_t.
70486         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70487         * modules/memcmp (Depends-on): Add stdint.
70488         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70490 2009-01-30  Eric Blake  <ebb9@byu.net>
70492         fix more require-before-expand issues
70493         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70494         expand, AC_PROG_AWK.
70495         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70497 2009-01-28  Eric Blake  <ebb9@byu.net>
70499         version-etc: use consistent URL formatting
70500         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70501         Improve formatting.  Use fputs for string without %.
70503 2009-01-28  Jim Meyering  <meyering@redhat.com>
70505         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70506         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70507         "underquoted definition of NAME" from autoconf-2.59.
70509 2009-01-28  Bruno Haible  <bruno@clisp.org>
70511         * doc/gnulib.texi: Add "Obsolete modules" to index.
70513 2009-01-28  Jim Meyering  <meyering@redhat.com>
70515         useless-if-before-free: recognize more variants
70516         * build-aux/useless-if-before-free: Also recognize e.g.,
70517         if (NULL != p) free (p);
70519 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70521         test-getaddrinfo: skip (don't fail) this test when there's no network
70522         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70523         on the presumption that it means you lack network access.
70525 2009-01-26  Jim Meyering  <meyering@redhat.com>
70527         fflush: avoid warnings on modern systems
70528         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70529         pos and result, into scopes where they're used.
70531 2009-01-26  Eric Blake  <ebb9@byu.net>
70533         Silence warning reintroduced by recent extensions patch.
70534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70535         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70536         autoconf.
70538         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70539         * m4/00gnulib.m4: New file.
70540         * gnulib-tool (func_get_filelist): Always use it.
70541         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70542         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70544 2009-01-25  Bruno Haible  <bruno@clisp.org>
70546         Make test-quotearg work on MacOS X and AIX.
70547         * tests/test-quotearg.sh: New file.
70548         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70549         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70550         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70551         include <libintl.h>.
70552         (fake_locale): Remove variable.
70553         (gettext, dgettext, dcgettext): Remove functions.
70554         (main): Instead of setting a fake locale, set a real locale. Call
70555         textdomain and bindtextdomain.
70556         * modules/quotearg-tests (Files): Add the new files.
70557         (Depends-on): Add gettext, setenv, unsetenv.
70558         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70559         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70560         Augment TESTS_ENVIRONMENT.
70562 2009-01-25  Bruno Haible  <bruno@clisp.org>
70564         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70565         fr_FR.ISO8859-1 locale on MacOS X.
70566         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70567         ja_JP.eucJP locale on MacOS X.
70568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70569         zh_CN.GB18030 locale on MacOS X.
70571 2009-01-25  Bruno Haible  <bruno@clisp.org>
70573         Avoid link errors on MacOS X 10.3.
70574         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70575         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70577 2009-01-25  Bruno Haible  <bruno@clisp.org>
70579         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70580         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70581         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70582         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70583         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70584         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70585         posix_spawnattr_init, posix_spawnattr_setsigmask,
70586         posix_spawnattr_setflags, posix_spawnattr_destroy.
70588         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70589         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70590         * modules/execute (Files): Remove m4/posix_spawn.m4.
70591         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70592         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70593         posix_spawnattr_init, posix_spawnattr_setsigmask,
70594         posix_spawnattr_setflags, posix_spawnattr_destroy.
70596 2009-01-25  Bruno Haible  <bruno@clisp.org>
70598         * lib/glthread/threadlib.c: Include <stdlib.h>.
70600 2009-01-25  Bruno Haible  <bruno@clisp.org>
70602         * lib/glthread/threadlib.c (dummy): New declaration.
70604 2009-01-25  Bruno Haible  <bruno@clisp.org>
70606         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70607         multibyte characters also for the GB18030 encoding. Don't crash when
70608         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70610 2009-01-25  Bruno Haible  <bruno@clisp.org>
70612         Avoid redefining 'struct random_data' on OSF/1 5.1.
70613         * lib/stdlib.in.h: Include <random.h> if it exists.
70614         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70615         HAVE_RANDOM_H. Include <random.h> when testing whether
70616         'struct random_data' exists.
70617         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70619 2009-01-25  Bruno Haible  <bruno@clisp.org>
70621         Don't install charset.alias on MacOS X >= 10.3.
70622         * lib/localcharset.c (DARWIN7): New macro.
70623         (get_charset_aliases): Hardcode the result for Darwin7.
70624         * modules/localcharset (install-exec-local): Don't install
70625         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70627 2009-01-25  Bruno Haible  <bruno@clisp.org>
70629         Don't install charset.alias on mingw and Cygwin.
70630         * modules/localcharset (install-exec-local): Don't install
70631         charset.alias on mingw and Cygwin, if the file does not yet exist.
70632         The result for these platforms is hardcoded in localcharset.c.
70634 2009-01-25  Bruno Haible  <bruno@clisp.org>
70636         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70638         before requiring AC_USE_SYSTEM_EXTENSIONS.
70640 2009-01-25  Jim Meyering  <meyering@redhat.com>
70642         c-strtod: avoid warnings
70643         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70644         "assignment discards qualifiers from pointer target type" warnings.
70646 2009-01-24  Bruno Haible  <bruno@clisp.org>
70648         Add support for non-UTF-8 locales on MacOS X.
70649         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70650         canonical encodings. For Darwin 7 and newer, don't map traditional
70651         encodings to UTF-8.
70652         Reported by Vincent Lefevre <vincent@vinc17.org>
70653         at <http://savannah.gnu.org/bugs/?25235>.
70655 2009-01-24  Bruno Haible  <bruno@clisp.org>
70657         * doc/gnulib.texi (Obsolete modules): New section.
70658         Reported by Mike Frysinger <vapier@gentoo.org>.
70660 2009-01-24  Bruno Haible  <bruno@clisp.org>
70662         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70663         (%.dvi): New rule.
70665 2009-01-24  Bruno Haible  <bruno@clisp.org>
70667         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70668         Reported by Eric Blake.
70670 2009-01-24  Bruno Haible  <bruno@clisp.org>
70672         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70673         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70674         Reported by Gary V. Vaughan <gary@gnu.org>.
70676 2009-01-24  Bruno Haible  <bruno@clisp.org>
70678         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70680 2009-01-23  Bruno Haible  <bruno@clisp.org>
70682         Make c-strtod, c-strtold usable in libraries.
70683         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70684         (C_STRTOD): Call strdup instead of xstrdup.
70685         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70686         * modules/c-strtold (Depends-on): Likewise.
70687         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70688         * NEWS: Mention the change.
70689         Reported by Michael Gold <mgold@ncf.ca>.
70691 2009-01-23  Jim Meyering  <meyering@redhat.com>
70693         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70694         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70695         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70697 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70699         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70700         GNU CoreUtils.
70701         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70702         * modules/version-etc (Description): Update.
70704 2009-01-22  Bruno Haible  <bruno@clisp.org>
70706         Cache the C locale object.
70707         * lib/c-strtod.c (c_locale_cache): New variable.
70708         (c_locale): New function.
70709         (C_STRTOD): Use it, and don't call freelocale.
70710         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70711         Suggested by Paolo Bonzini.
70713 2009-01-21  Bruno Haible  <bruno@clisp.org>
70715         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70716         conditions other than overflow.
70718 2009-01-21  Bruno Haible  <bruno@clisp.org>
70720         * lib/c-strtod.c: Include errno.h.
70721         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70722         value from STRTOD_L and STRTOD.
70724 2009-01-21  Bruno Haible  <bruno@clisp.org>
70725         and Jim Meyering  <meyering@redhat.com>
70727         nanosleep: skip configure test (fail it) for apple universal builds
70728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70729         universal builds, assume that nanosleep does not work.
70730         * modules/nanosleep (Depends-on): Add multiarch.
70732         mktime: skip configure test (fail it) for apple universal builds
70733         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70734         universal builds, assume that mktime does not work.
70735         * modules/mktime (Depends-on): Add multiarch.
70737 2009-01-21  Eric Blake  <ebb9@byu.net>
70739         multiarch: avoid expand-before-require warning
70740         * modules/multiarch (configure.ac): Require, rather than expand,
70741         gl_MULTIARCH.
70742         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70743         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70744         enforce that all clients require it.  Partial reversion of
70745         2008-12-29 patch.
70747         error: avoid expand-before-require warning
70748         * modules/errno (configure.ac): Require, rather than expand,
70749         gl_HEADER_ERRNO_H.
70750         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70751         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70752         enforce that all clients require it.
70754         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70755         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70756         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70757         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70759 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70761         Revert:
70762         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70764         regex: do not depend on obsolete modules.
70765         * modules/regex: Remove memcmp and memmove.
70767 2009-01-20  Bruno Haible  <bruno@clisp.org>
70769         Make the 'link' module link on Windows NT 4.
70770         * lib/link.c (_WIN32_WINNT): Don't define.
70771         (CreateHardLinkFuncType): New type.
70772         (CreateHardLinkFunc, initialized): New variables.
70773         (initialize): New function.
70774         (link): Invoke CreateHardLink indirectly through the function pointer.
70776 2009-01-20  Bruno Haible  <bruno@clisp.org>
70778         Fix compilation failure on mingw.
70779         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70781 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70783         * doc/c-strtod.texi: Mention a couple of restrictions.
70785 2009-01-20  Jim Meyering  <meyering@redhat.com>
70787         gettimeofday: move more declarations out of functions
70788         * lib/gettimeofday.c: Move extern declarations of tzset and
70789         gmtime out of containing functions.  Prompted by Bruno Haible.
70791 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70793         regex: do not depend on obsolete modules.
70794         * modules/regex: Remove memcmp and memmove.
70796 2009-01-19  Bruno Haible  <bruno@clisp.org>
70798         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70799         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70800         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70801         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70802         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70804 2009-01-19  Bruno Haible  <bruno@clisp.org>
70806         * tests/test-link.c: Include <errno.h>.
70807         (main): Exit with code 77 when a hard link cannot be created due to
70808         the file system.
70809         * tests/test-link.sh: Skip test when a hard link cannot be created due
70810         to the file system.
70811         Suggested by Eric Blake.
70813 2009-01-19  Martin Lambers  <marlam@marlam.de>
70815         * modules/link-tests: New file.
70816         * tests/test-link.sh: New file.
70817         * tests/test-link.c: New file.
70819 2009-01-19  Eric Blake  <ebb9@byu.net>
70821         doc: mention another function added in cygwin 1.7.0
70822         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70823         Another new function in cygwin 1.7.
70825 2009-01-19  Bruno Haible  <bruno@clisp.org>
70827         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70828         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70829         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70830         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70831         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70832         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70834         * m4/md4.m4 (gl_MD4): Likewise.
70835         * m4/md5.m4 (gl_MD5): Likewise.
70836         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70837         * m4/sha1.m4 (gl_SHA1): Likewise.
70838         * m4/sha256.m4 (gl_SHA256): Likewise.
70839         * m4/sha512.m4 (gl_SHA512): Likewise.
70841 2009-01-19  Bruno Haible  <bruno@clisp.org>
70843         * modules/uniname/uniname-tests (Depends-on): Add progname.
70844         * tests/uniname/test-uninames.c: Include progname.h.
70845         (main): Call set_program_name.
70847         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70848         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70849         (main): Call set_program_name.
70851         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70852         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70853         (main): Call set_program_name.
70855         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70856         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70857         (main): Call set_program_name.
70859         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70860         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70861         (main): Call set_program_name.
70863         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70864         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70865         (main): Call set_program_name.
70867         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70868         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70869         (main): Call set_program_name.
70871         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70872         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70873         (main): Call set_program_name.
70875         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70876         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70877         (main): Call set_program_name.
70879 2009-01-19  Eric Blake  <ebb9@byu.net>
70881         test-unistd: test previous patch
70882         * tests/test-unistd.c: Test *_FILENO macros.
70884         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70885         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70886         Guarantee a definition.
70887         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70888         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70889         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70890         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70891         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70892         Likewise.
70893         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
70894         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
70895         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70896         Likewise.
70897         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
70898         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
70899         (STDERR_FILENO): Likewise.
70900         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
70901         (STDERR_FILENO): Likewise.
70902         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
70903         (STDERR_FILENO): Likewise.
70904         Reported by Elbert Pol.
70906 2009-01-19  Eric Blake  <ebb9@byu.net>
70908         doc: mention more functions added in cygwin 1.7.0
70909         * doc/posix-functions/abort.texi (abort): Update wording related
70910         to cygwin.
70911         * doc/posix-functions/daylight.texi (daylight): Likewise.
70912         * doc/posix-functions/optarg.texi (optarg): Likewise.
70913         * doc/posix-functions/optarg.texi (opterr): Likewise.
70914         * doc/posix-functions/optarg.texi (optind): Likewise.
70915         * doc/posix-functions/optarg.texi (optopt): Likewise.
70916         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
70917         worked in 1.5.x, and was withdrawn in 1.7.
70918         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
70919         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
70920         cygwin versions.
70921         * doc/posix-functions/perror.texi (perror): Likewise.
70922         * doc/posix-functions/printf.texi (printf): Likewise.
70923         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
70924         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
70925         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
70926         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
70927         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
70928         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
70929         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70930         Likewise.
70931         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70932         Likewise.
70933         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
70934         this function.
70935         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
70936         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
70937         Likewise.
70938         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
70939         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
70940         * doc/posix-functions/confstr.texi (confstr): Likewise.
70941         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
70942         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
70943         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
70944         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
70945         * doc/posix-functions/fputws.texi (fputws): Likewise.
70946         * doc/posix-functions/fwide.texi (fwide): Likewise.
70947         * doc/posix-functions/getwc.texi (getwc): Likewise.
70948         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
70949         * doc/posix-functions/putwc.texi (putwc): Likewise.
70950         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
70951         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
70952         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
70953         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
70954         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
70955         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
70956         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
70957         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
70958         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
70959         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
70960         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
70962 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70964         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
70965         * lib/ioctl.c: Include <sys/ioctl.h>.
70967 2009-01-19  Simon Josefsson  <simon@josefsson.org>
70969         * modules/getdate-tests (Depends-on): Add progname.
70970         * tests/test-getdate.c: Use progname module, to avoid link errors
70971         on non-glibc systems.
70973 2009-01-18  Simon Josefsson  <simon@josefsson.org>
70975         * modules/filenamecat-tests (Depends-on): Add progname.
70976         * modules/fstrcmp-tests (Depends-on): Likewise.
70978         * tests/test-filenamecat.c: Use progname module, to avoid link
70979         errors on non-glibc systems.
70980         * tests/test-fstrcmp.c: Likewise.
70982 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70984         gettimeofday: avoid warning: nested extern declaration of 'localtime'
70985         * lib/gettimeofday.c: Move extern declaration out of function.
70987 2009-01-18  Bruno Haible  <bruno@clisp.org>
70989         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
70990         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
70991         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
70993 2009-01-18  Bruno Haible  <bruno@clisp.org>
70995         * lib/strftime.c (MEMPCPY): Remove unused macro.
70996         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
70998 2009-01-18  Martin Lambers  <marlam@marlam.de>
71000         New module 'link'.
71001         * lib/unistd.in.h (link): New declaration.
71002         * lib/link.c: New file.
71003         * m4/link.m4: New file.
71004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71005         HAVE_LINK.
71006         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71007         * modules/link: New file.
71008         * doc/posix-functions/link.texi: Mention the new module.
71010 2009-01-18  Bruno Haible  <bruno@clisp.org>
71012         * tests/test-avltree_list.c (main): Call set_program_name.
71013         * tests/test-avltree_oset.c (main): Likewise.
71014         * tests/test-obstack-printf.c: Include progname.h.
71015         (main): Call set_program_name.
71016         * tests/test-quotearg.c: Include progname.h.
71017         (main): Call set_program_name.
71018         * tests/test-xmemdup0.c: Include progname.h.
71019         (main): Call set_program_name.
71021 2009-01-18  Bruno Haible  <bruno@clisp.org>
71023         New module 'alphasort'.
71024         * lib/dirent.in.h (alphasort): New declaration.
71025         * lib/alphasort.c: New file, from glibc with modifications.
71026         * m4/alphasort.m4: New file.
71027         * modules/alphasort: New file.
71028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71029         HAVE_ALPHASORT.
71030         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71031         HAVE_ALPHASORT.
71032         * doc/posix-functions/alphasort.texi: Mention the new module and the
71033         portability problems.
71035 2009-01-18  Bruno Haible  <bruno@clisp.org>
71037         New module 'scandir'.
71038         * lib/dirent.in.h (scandir): New declaration.
71039         * lib/scandir.c: New file, from glibc with modifications.
71040         * m4/scandir.m4: New file.
71041         * modules/scandir: New file.
71042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71043         HAVE_SCANDIR.
71044         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71045         HAVE_SCANDIR.
71046         * doc/posix-functions/scandir.texi: Mention the new module and the
71047         portability problems.
71049 2009-01-17  Bruno Haible  <bruno@clisp.org>
71051         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71052         Update documentation.
71053         (func_remove_suffix): Escape all dots in the suffix. Update
71054         documentation.
71055         (func_filter_filelist): Update documentation.
71056         Reported by Ralf Wildenhues.
71058 2009-01-17  Bruno Haible  <bruno@clisp.org>
71060         * modules/dprintf-posix-tests: New file.
71061         * tests/test-dprintf-posix.sh: New file.
71062         * tests/test-dprintf-posix.c: New file.
71064         New modules 'dprintf', 'dprintf-posix'.
71065         * lib/stdio.in.h (dprintf): New declaration.
71066         * lib/dprintf.c: New file.
71067         * m4/dprintf.m4: New file.
71068         * m4/dprintf-posix.m4: New file.
71069         * modules/dprintf: New file.
71070         * modules/dprintf-posix: New file.
71071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71072         HAVE_DPRINTF, REPLACE_DPRINTF.
71073         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71074         HAVE_DPRINTF, REPLACE_DPRINTF.
71075         * doc/posix-functions/dprintf.texi: Mention the new modules.
71077 2009-01-17  Bruno Haible  <bruno@clisp.org>
71079         * modules/vdprintf-posix-tests: New file.
71080         * tests/test-vdprintf-posix.sh: New file.
71081         * tests/test-vdprintf-posix.c: New file.
71083         New modules 'vdprintf', 'vdprintf-posix'.
71084         * lib/stdio.in.h (vdprintf): New declaration.
71085         * lib/vdprintf.c: New file.
71086         * m4/vdprintf.m4: New file.
71087         * m4/vdprintf-posix.m4: New file.
71088         * modules/vdprintf: New file.
71089         * modules/vdprintf-posix: New file.
71090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71091         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71092         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71093         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71094         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71096 2009-01-17  Bruno Haible  <bruno@clisp.org>
71098         Fix replacement of fopen on mingw.
71099         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71100         mingw.
71102 2009-01-17  Bruno Haible  <bruno@clisp.org>
71104         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71105         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71107 2009-01-17  Bruno Haible  <bruno@clisp.org>
71109         Avoid test-fflush2.sh failure on mingw.
71110         * tests/test-fflush2.c: Include binary-io.h.
71111         (main): Put standard input into binary mode.
71112         * modules/fflush-tests (Depends-on): Add binary-io.
71114 2009-01-17  Bruno Haible  <bruno@clisp.org>
71116         * lib/wchar.in.h: In another particular situation, include only the
71117         system's <wchar.h> file.
71118         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71119         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71120         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71122 2009-01-17  Bruno Haible  <bruno@clisp.org>
71124         Support for stripping executables in --enable-relocatable.
71125         * build-aux/install-reloc: Expect one more argument, or an environment
71126         variable RELOC_STRIP_PROG. If set, strip the destination program and
71127         its wrapper.
71128         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71129         RELOC_STRIP_PROG.
71130         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71131         to set RELOCATABLE_STRIP.
71132         * NEWS: Mention the new Makefile requirement.
71134 2009-01-17  Bruno Haible  <bruno@clisp.org>
71136         * build-aux/install-reloc: Remove debugging information left over by
71137         C compiler on MacOS X.
71139 2009-01-17  Bruno Haible  <bruno@clisp.org>
71141         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71142         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71143         _NSGetExecutablePath.
71145 2009-01-16  Jim Meyering  <meyering@redhat.com>
71147         strerror: avoid warnings about discarding "const"
71148         * lib/strerror.c (rpl_strerror): Instead of returning a const
71149         string from each and every "case", use a variable, and add a single
71150         cast after the switch.
71152 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71154         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71156 2009-01-16  Bruno Haible  <bruno@clisp.org>
71158         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71159         array initializer syntax that also works in C++ mode.
71160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71162 2009-01-16  Jim Meyering  <meyering@redhat.com>
71164         poll: suppress a warning
71165         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71166         to ignore "...unsigned expression < 0 is always false" warnings.
71168 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71170         poll: remove declarations of unused variables
71171         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71172         sockbuf and optlen.
71174 2009-01-15  Bruno Haible  <bruno@clisp.org>
71176         Make fflush-after-ungetc POSIX compliant on BSD systems.
71177         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71178         (clear_ungetc_buffer): Implement also for other systems.
71179         (rpl_fflush): On glibc systems, invoke
71180         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71181         clear_ungetc_buffer after fetching the stream's position, not before.
71183 2009-01-15  Bruno Haible  <bruno@clisp.org>
71185         Make fflush-after-ungetc POSIX compliant on glibc systems.
71186         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71187         after ungetc.
71188         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71189         (rpl_fflush): On glibc systems, simply call the system's fflush
71190         function after clearing the ungetc buffer.
71191         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71192         Instead, lseek only to the end of file, then use the system's fseeko
71193         for the rest. On glibc systems, reset the EOF indicator bit.
71195 2009-01-15  Jim Meyering  <meyering@redhat.com>
71197         openmp.m4: revert quote-adding change, for portability to older autoconf
71198         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71199         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71200         Simon Josefsson noticed the problem when using autoconf-2.61.
71202 2009-01-15  Bruno Haible  <bruno@clisp.org>
71204         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71205         * tests/test-fflush2.c (ASSERT): Always fail.
71206         (main): Add two tests for fflush() after ungetc(), taking into account
71207         the Austin Group's clarification.
71208         Suggested by Eric Blake.
71210 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71212         mktime.m4: remove K&R-style function prototypes
71213         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71214         for the Sun C++ compiler.
71216 2009-01-14  Bruno Haible  <bruno@clisp.org>
71218         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71219         while including <wchar.h>.
71220         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71221         the system's <wchar.h> file.
71222         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71224 2009-01-14  Bruno Haible  <bruno@clisp.org>
71226         * m4/csharp.m4: Don't mention gettext on the serial number line.
71227         * m4/csharpexec.m4: Likewise.
71228         * m4/eaccess.m4: Likewise.
71229         * m4/javaexec.m4: Likewise.
71230         * m4/sig_atomic_t.m4: Likewise.
71231         * m4/tmpdir.m4: Likewise.
71232         * m4/intldir.m4: Bump gettext version.
71233         * m4/lib-ld.m4: Likewise.
71235 2009-01-14  Bruno Haible  <bruno@clisp.org>
71237         * lib/progname.c (set_program_name): Add more comments.
71238         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71240 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71242         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71243         were sys/stat.h does not define it.
71245 2009-01-14  Jim Meyering  <meyering@redhat.com>
71247         many *.m4 files: improve m4 quoting
71248         99% of this change was performed by running the following commands:
71249         git ls-files | grep '\.m4$' | xargs perl -pi \
71250           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71251           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71252           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71253           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71254         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71255         The remainder were to add Copyright dates, increment serial numbers,
71256         undo some changes in comments, exclude m4/intl.m4, and add quotes
71257         around the "1" in ",1" where the unusual spacing prohibited the
71258         above regexps from doing the job.  For more details, see
71259         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71260         * m4/acl.m4: Modified.
71261         * m4/afs.m4: Likewise.
71262         * m4/alloca.m4: Likewise.
71263         * m4/argp.m4: Likewise.
71264         * m4/argz.m4: Likewise.
71265         * m4/atexit.m4: Likewise.
71266         * m4/bison-i18n.m4: Likewise.
71267         * m4/bison.m4: Likewise.
71268         * m4/byteswap.m4: Likewise.
71269         * m4/c-stack.m4: Likewise.
71270         * m4/c-strtod.m4: Likewise.
71271         * m4/calloc.m4: Likewise.
71272         * m4/canonicalize-lgpl.m4: Likewise.
71273         * m4/chown.m4: Likewise.
71274         * m4/clock_time.m4: Likewise.
71275         * m4/codeset.m4: Likewise.
71276         * m4/copy-file.m4: Likewise.
71277         * m4/csharp.m4: Likewise.
71278         * m4/csharpcomp.m4: Likewise.
71279         * m4/csharpexec.m4: Likewise.
71280         * m4/d-ino.m4: Likewise.
71281         * m4/d-type.m4: Likewise.
71282         * m4/dirfd.m4: Likewise.
71283         * m4/double-slash-root.m4: Likewise.
71284         * m4/eaccess.m4: Likewise.
71285         * m4/eealloc.m4: Likewise.
71286         * m4/environ.m4: Likewise.
71287         * m4/errno_h.m4: Likewise.
71288         * m4/euidaccess.m4: Likewise.
71289         * m4/execute.m4: Likewise.
71290         * m4/fatal-signal.m4: Likewise.
71291         * m4/fchdir.m4: Likewise.
71292         * m4/fcntl_h.m4: Likewise.
71293         * m4/fileblocks.m4: Likewise.
71294         * m4/filenamecat.m4: Likewise.
71295         * m4/findprog.m4: Likewise.
71296         * m4/flexmember.m4: Likewise.
71297         * m4/fnmatch.m4: Likewise.
71298         * m4/fopen.m4: Likewise.
71299         * m4/fpending.m4: Likewise.
71300         * m4/fprintf-posix.m4: Likewise.
71301         * m4/free.m4: Likewise.
71302         * m4/frexp.m4: Likewise.
71303         * m4/frexpl.m4: Likewise.
71304         * m4/fsusage.m4: Likewise.
71305         * m4/ftruncate.m4: Likewise.
71306         * m4/gc-camellia.m4: Likewise.
71307         * m4/gc-random.m4: Likewise.
71308         * m4/gc.m4: Likewise.
71309         * m4/getaddrinfo.m4: Likewise.
71310         * m4/getcwd-abort-bug.m4: Likewise.
71311         * m4/getcwd-path-max.m4: Likewise.
71312         * m4/getdate.m4: Likewise.
71313         * m4/getdomainname.m4: Likewise.
71314         * m4/getgroups.m4: Likewise.
71315         * m4/gethostname.m4: Likewise.
71316         * m4/gethrxtime.m4: Likewise.
71317         * m4/getline.m4: Likewise.
71318         * m4/getloadavg.m4: Likewise.
71319         * m4/getndelim2.m4: Likewise.
71320         * m4/getpass.m4: Likewise.
71321         * m4/gettext.m4: Likewise.
71322         * m4/gettime.m4: Likewise.
71323         * m4/gettimeofday.m4: Likewise.
71324         * m4/gnulib-common.m4: Likewise.
71325         * m4/group-member.m4: Likewise.
71326         * m4/host-os.m4: Likewise.
71327         * m4/iconv.m4: Likewise.
71328         * m4/iconv_open.m4: Likewise.
71329         * m4/inet_ntop.m4: Likewise.
71330         * m4/inet_pton.m4: Likewise.
71331         * m4/inline.m4: Likewise.
71332         * m4/intldir.m4: Likewise.
71333         * m4/intlmacosx.m4: Likewise.
71334         * m4/intmax.m4: Likewise.
71335         * m4/intmax_t.m4: Likewise.
71336         * m4/inttypes.m4: Likewise.
71337         * m4/inttypes_h.m4: Likewise.
71338         * m4/inttypes-pri.m4: Likewise.
71339         * m4/isapipe.m4: Likewise.
71340         * m4/isnand.m4: Likewise.
71341         * m4/isnanf.m4: Likewise.
71342         * m4/isnanl.m4: Likewise.
71343         * m4/javacomp.m4: Likewise.
71344         * m4/javaexec.m4: Likewise.
71345         * m4/jm-winsz1.m4: Likewise.
71346         * m4/jm-winsz2.m4: Likewise.
71347         * m4/lchown.m4: Likewise.
71348         * m4/lcmessage.m4: Likewise.
71349         * m4/ldexpl.m4: Likewise.
71350         * m4/lib-ld.m4: Likewise.
71351         * m4/lib-link.m4: Likewise.
71352         * m4/libsigsegv.m4: Likewise.
71353         * m4/link-follow.m4: Likewise.
71354         * m4/localcharset.m4: Likewise.
71355         * m4/locale-fr.m4: Likewise.
71356         * m4/locale-ja.m4: Likewise.
71357         * m4/locale-tr.m4: Likewise.
71358         * m4/locale-zh.m4: Likewise.
71359         * m4/lock.m4: Likewise.
71360         * m4/longlong.m4: Likewise.
71361         * m4/ls-mntd-fs.m4: Likewise.
71362         * m4/lstat.m4: Likewise.
71363         * m4/malloc.m4: Likewise.
71364         * m4/mathl.m4: Likewise.
71365         * m4/mbrtowc.m4: Likewise.
71366         * m4/mbstate_t.m4: Likewise.
71367         * m4/mbswidth.m4: Likewise.
71368         * m4/memchr.m4: Likewise.
71369         * m4/memcmp.m4: Likewise.
71370         * m4/memcpy.m4: Likewise.
71371         * m4/memmem.m4: Likewise.
71372         * m4/memmove.m4: Likewise.
71373         * m4/mempcpy.m4: Likewise.
71374         * m4/memrchr.m4: Likewise.
71375         * m4/memset.m4: Likewise.
71376         * m4/minmax.m4: Likewise.
71377         * m4/mkdir-slash.m4: Likewise.
71378         * m4/mkdtemp.m4: Likewise.
71379         * m4/mktime.m4: Likewise.
71380         * m4/mmap-anon.m4: Likewise.
71381         * m4/mountlist.m4: Likewise.
71382         * m4/nanosleep.m4: Likewise.
71383         * m4/nls.m4: Likewise.
71384         * m4/nocrash.m4: Likewise.
71385         * m4/open.m4: Likewise.
71386         * m4/openat.m4: Likewise.
71387         * m4/openmp.m4: Likewise.
71388         * m4/pathmax.m4: Likewise.
71389         * m4/perl.m4: Likewise.
71390         * m4/physmem.m4: Likewise.
71391         * m4/pipe.m4: Likewise.
71392         * m4/po.m4: Likewise.
71393         * m4/poll.m4: Likewise.
71394         * m4/posixtm.m4: Likewise.
71395         * m4/posixver.m4: Likewise.
71396         * m4/printf-frexp.m4: Likewise.
71397         * m4/printf-frexpl.m4: Likewise.
71398         * m4/printf-posix.m4: Likewise.
71399         * m4/printf-posix-rpl.m4: Likewise.
71400         * m4/printf.m4: Likewise.
71401         * m4/progtest.m4: Likewise.
71402         * m4/putenv.m4: Likewise.
71403         * m4/readline.m4: Likewise.
71404         * m4/readlink.m4: Likewise.
71405         * m4/readutmp.m4: Likewise.
71406         * m4/realloc.m4: Likewise.
71407         * m4/regex.m4: Likewise.
71408         * m4/relocatable.m4: Likewise.
71409         * m4/relocatable-lib.m4: Likewise.
71410         * m4/rename-dest-slash.m4: Likewise.
71411         * m4/rename.m4: Likewise.
71412         * m4/rmdir-errno.m4: Likewise.
71413         * m4/rmdir.m4: Likewise.
71414         * m4/roundf.m4: Likewise.
71415         * m4/roundl.m4: Likewise.
71416         * m4/rpmatch.m4: Likewise.
71417         * m4/save-cwd.m4: Likewise.
71418         * m4/selinux-selinux-h.m4: Likewise.
71419         * m4/setenv.m4: Likewise.
71420         * m4/settime.m4: Likewise.
71421         * m4/sig2str.m4: Likewise.
71422         * m4/sig_atomic_t.m4: Likewise.
71423         * m4/signalblocking.m4: Likewise.
71424         * m4/signbit.m4: Likewise.
71425         * m4/sigpipe.m4: Likewise.
71426         * m4/sockets.m4: Likewise.
71427         * m4/sockpfaf.m4: Likewise.
71428         * m4/st_dm_mode.m4: Likewise.
71429         * m4/stat-time.m4: Likewise.
71430         * m4/stdbool.m4: Likewise.
71431         * m4/stdint.m4: Likewise.
71432         * m4/stdint_h.m4: Likewise.
71433         * m4/stpcpy.m4: Likewise.
71434         * m4/stpncpy.m4: Likewise.
71435         * m4/strcase.m4: Likewise.
71436         * m4/strchrnul.m4: Likewise.
71437         * m4/strcspn.m4: Likewise.
71438         * m4/strdup.m4: Likewise.
71439         * m4/strftime.m4: Likewise.
71440         * m4/strndup.m4: Likewise.
71441         * m4/strnlen.m4: Likewise.
71442         * m4/strpbrk.m4: Likewise.
71443         * m4/strptime.m4: Likewise.
71444         * m4/strsep.m4: Likewise.
71445         * m4/strtod.m4: Likewise.
71446         * m4/strtoimax.m4: Likewise.
71447         * m4/strtok_r.m4: Likewise.
71448         * m4/strtol.m4: Likewise.
71449         * m4/strtoll.m4: Likewise.
71450         * m4/strtoul.m4: Likewise.
71451         * m4/strtoull.m4: Likewise.
71452         * m4/strtoumax.m4: Likewise.
71453         * m4/strverscmp.m4: Likewise.
71454         * m4/threadlib.m4: Likewise.
71455         * m4/timegm.m4: Likewise.
71456         * m4/tm_gmtoff.m4: Likewise.
71457         * m4/tmpdir.m4: Likewise.
71458         * m4/tmpfile.m4: Likewise.
71459         * m4/tzset.m4: Likewise.
71460         * m4/uintmax_t.m4: Likewise.
71461         * m4/unlinkdir.m4: Likewise.
71462         * m4/unlocked-io.m4: Likewise.
71463         * m4/uptime.m4: Likewise.
71464         * m4/userspec.m4: Likewise.
71465         * m4/utimbuf.m4: Likewise.
71466         * m4/utime.m4: Likewise.
71467         * m4/utimes-null.m4: Likewise.
71468         * m4/utimes.m4: Likewise.
71469         * m4/vararrays.m4: Likewise.
71470         * m4/vasnprintf.m4: Likewise.
71471         * m4/vfprintf-posix.m4: Likewise.
71472         * m4/vprintf-posix.m4: Likewise.
71473         * m4/wait-process.m4: Likewise.
71474         * m4/wchar_t.m4: Likewise.
71475         * m4/wint_t.m4: Likewise.
71476         * m4/write-any-file.m4: Likewise.
71477         * m4/yield.m4: Likewise.
71479 2009-01-13  Bruno Haible  <bruno@clisp.org>
71481         Avoid test-copy-file.sh failures when ACL support insufficient.
71482         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71483         TESTS_ENVIRONMENT.
71484         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71485         Reported by Jim Meyering.
71487 2009-01-13  Bruno Haible  <bruno@clisp.org>
71489         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71490         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71491         * modules/unistdio/u8-printf-parse (Files): Likewise.
71492         * modules/unistdio/u32-printf-parse (Files): Likewise.
71493         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71495 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71497         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71498         and m4/inttypes_h.m4 too.
71500 2009-01-12  Eric Blake  <ebb9@byu.net>
71502         tests: IRIX 6.2 cc can't compile -0.0 into .data
71503         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71504         rather than at compile-time.
71505         * tests/test-floorl.c (minus_zero): Likewise.
71506         * tests/test-frexpl.c (minus_zero): Likewise.
71507         * tests/test-isnan.c (minus_zerol): Likewise.
71508         * tests/test-isnanl.h (minus_zero): Likewise.
71509         * tests/test-ldexpl.c (minus_zero): Likewise.
71510         * tests/test-roundl.c (minus_zero): Likewise.
71511         * tests/test-signbit.c (minus_zerol): Likewise.
71512         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71513         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71514         * tests/test-truncl.c (minus_zero): Likewise.
71515         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71516         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71517         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71519 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71521         regex: fix glibc bug 9697
71522         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71523         handling.
71525 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71527         regex: fix glibc bug 697
71528         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71529         being NULL also if there are no backreferences.
71531 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71533         regex: merge glibc changes
71534         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71535         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71536         re_string_skip_chars, re_string_reconstruct): Likewise.
71537         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71539 2009-01-07  Jim Meyering  <meyering@redhat.com>
71541         poll: filter through cppi
71542         * lib/poll.c: Indent cpp directives to reflect nesting.
71544 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71546         poll: don't return uninitialized
71547         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71549 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71551         avoid compile failure on AIX 6.1
71552         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71553         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71555 2009-01-04  Jim Meyering  <meyering@redhat.com>
71557         remove duplicate inclusion of <stdio.h>
71558         * tests/test-fprintf-posix.c: Likewise.
71559         * tests/test-printf-posix.c: Likewise.
71560         * tests/test-snprintf-posix.c: Likewise.
71561         * tests/test-sprintf-posix.c: Likewise.
71562         * tests/test-vasprintf-posix.c: Likewise.
71563         * tests/test-vfprintf-posix.c: Likewise.
71564         * tests/test-vprintf-posix.c: Likewise.
71565         * tests/test-vsnprintf-posix.c: Likewise.
71566         * tests/test-vsprintf-posix.c: Likewise.
71568 2009-01-03  Jim Meyering  <meyering@redhat.com>
71570         gnulib-tool: fix sed-based filtering
71571         * gnulib-tool (func_filter_filelist): Remove extra backslash
71572         in sed_fff_filter definition.
71574 2009-01-02  Jim Meyering  <meyering@redhat.com>
71576         strftime: avoid compilation failure on Solaris 2.6
71577         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71578         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71579         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71580         be available.  Reported by Tom G. Christensen.  Details in
71581         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71583 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71584             Bruno Haible  <bruno@clisp.org>
71586         Speed up gnulib-tool by doing more string processing through shell
71587         built-ins.
71588         * gnulib-tool (fast_func_append): New variable.
71589         (func_remove_prefix, func_remove_suffix): New functions.
71590         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71591         (func_filter_filelist): New function.
71592         (func_get_dependencies): Use func_remove_suffix instead of sed.
71593         (func_get_automake_snippet): Use func_filter_filelist instead of a
71594         subshell and sed invocation.
71596 2009-01-01  Bruno Haible  <bruno@clisp.org>
71598         Fix a security bug.
71599         * gnulib-tool (func_import, import, update): Don't allow the characters
71600         '"', '$', '`', '\' in macro arguments that become part of commands that
71601         are evaluated.
71603 2009-01-01  Bruno Haible  <bruno@clisp.org>
71605         * gnulib-tool (func_reset_sigpipe): Add more comments.
71607 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71609         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71610         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71611         already know the answer.
71613 2009-01-01  Jim Meyering  <meyering@redhat.com>
71615         * lib/version-etc.c (version_etc_va): Update copyright year.
71617 2008-12-30  Bruno Haible  <bruno@clisp.org>
71619         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71620         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71621         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71623 2008-12-29  Eric Blake  <ebb9@byu.net>
71625         multiarch: avoid autoconf AC_REQUIRE bug
71626         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71627         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71628         2.63 and older.
71629         Reported by Bruno Haible, and analyzed in
71630         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71632 2008-12-29  Bruno Haible  <bruno@clisp.org>
71634         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71635         files in subdirectories correctly.
71636         Reported by Ralf Wildenhues.
71638 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71640         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71641         rather than 'join FILE -', for Solaris join.
71643 2008-12-29  Bruno Haible  <bruno@clisp.org>
71645         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71646         quoting.
71647         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71648         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71649         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71650         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71651         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71652         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71653         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71654         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71655         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71656         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71657         * m4/nls.m4 (AM_NLS): Likewise.
71658         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71659         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71660         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71661         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71662         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71663         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71664         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71665         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71666         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71667         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71668         * m4/xsize.m4 (gl_XSIZE): Likewise.
71669         Suggested by Jim Meyering.
71671 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71673         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71674         * lib/parse-duration.c: use a switch instead of cascading if's.
71676 2008-12-29  Eric Blake  <ebb9@byu.net>
71678         wchar.h: supply WEOF on Irix 5.3
71679         * lib/wchar.in.h (wint_t): Also supply WEOF.
71680         * lib/wctype.in.h (wint_t): Likewise.
71681         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71682         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71683         Reported by Tom G. Christensen.
71685 2008-12-26  Bruno Haible  <bruno@clisp.org>
71687         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71688         i486, i586, i686.
71690 2008-12-26  Bruno Haible  <bruno@clisp.org>
71692         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71694 2008-12-26  Bruno Haible  <bruno@clisp.org>
71696         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71697         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71698         not __STDC_CONSTANT_MACROS.
71699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71701 2008-12-25  Bruno Haible  <bruno@clisp.org>
71703         Add support for universal builds to vasnprintf.
71704         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71705         universal builds, guess no.
71706         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71707         * modules/vasprintf-posix (Depends-on): Likewise.
71708         * modules/fprintf-posix (Depends-on): Likewise.
71709         * modules/vfprintf-posix (Depends-on): Likewise.
71710         * modules/snprintf-posix (Depends-on): Likewise.
71711         * modules/vsnprintf-posix (Depends-on): Likewise.
71712         * modules/sprintf-posix (Depends-on): Likewise.
71713         * modules/vsprintf-posix (Depends-on): Likewise.
71714         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71715         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71716         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71717         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71718         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71719         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71720         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71722         Add support for universal builds to <inttypes.h>.
71723         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71724         _SCNu64_PREFIX): In Apple
71725         universal builds, define directly, using _LP64.
71726         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71727         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71728         * modules/inttypes (Depends-on): Add multiarch.
71729         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71731         Add support for universal builds to <stdint.h>.
71732         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71733         universal builds, define directly, using _LP64.
71734         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71735         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71736         and size_t.
71737         * modules/stdint (Depends-on): Add multiarch.
71738         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71740         New module 'multiarch'.
71741         * modules/multiarch: New file.
71742         * m4/multiarch.m4: New file.
71744 2008-12-25  Bruno Haible  <bruno@clisp.org>
71746         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71748 2008-12-25  Bruno Haible  <bruno@clisp.org>
71750         * modules/btowc (License): Relicense under LGPLv2+.
71751         * modules/mbsinit (License): Likewise.
71752         * modules/mbrtowc (License): Likewise.
71753         * modules/wcrtomb (License): Likewise.
71754         * modules/streq (License): Likewise.
71755         Reported by David Lutterkort <lutter@redhat.com>.
71757 2008-12-23  Bruno Haible  <bruno@clisp.org>
71759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71761 2008-12-23  Bruno Haible  <bruno@clisp.org>
71763         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71765         GETADDRINFO_LIB, not in LIBS.
71766         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71767         * modules/canon-host (Link): Likewise.
71768         * NEWS: Mention the change.
71769         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71770         GETADDRINFO_LIB.
71772 2008-12-22  Bruno Haible  <bruno@clisp.org>
71774         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71775         * doc/posix-functions/iswalpha_l.texi: Likewise.
71776         * doc/posix-functions/iswblank_l.texi: Likewise.
71777         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71778         * doc/posix-functions/iswctype_l.texi: Likewise.
71779         * doc/posix-functions/iswdigit_l.texi: Likewise.
71780         * doc/posix-functions/iswgraph_l.texi: Likewise.
71781         * doc/posix-functions/iswlower_l.texi: Likewise.
71782         * doc/posix-functions/iswprint_l.texi: Likewise.
71783         * doc/posix-functions/iswpunct_l.texi: Likewise.
71784         * doc/posix-functions/iswspace_l.texi: Likewise.
71785         * doc/posix-functions/iswupper_l.texi: Likewise.
71786         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71787         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71788         * doc/posix-functions/open_wmemstream.texi: Likewise.
71789         * doc/posix-functions/swscanf.texi: Likewise.
71790         * doc/posix-functions/towctrans_l.texi: Likewise.
71791         * doc/posix-functions/towlower.texi: Likewise.
71792         * doc/posix-functions/towlower_l.texi: Likewise.
71793         * doc/posix-functions/towupper.texi: Likewise.
71794         * doc/posix-functions/towupper_l.texi: Likewise.
71795         * doc/posix-functions/vfwprintf.texi: Likewise.
71796         * doc/posix-functions/vfwscanf.texi: Likewise.
71797         * doc/posix-functions/vswscanf.texi: Likewise.
71798         * doc/posix-functions/vwprintf.texi: Likewise.
71799         * doc/posix-functions/vwscanf.texi: Likewise.
71800         * doc/posix-functions/wcpcpy.texi: Likewise.
71801         * doc/posix-functions/wcpncpy.texi: Likewise.
71802         * doc/posix-functions/wcscasecmp.texi: Likewise.
71803         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71804         * doc/posix-functions/wcscoll_l.texi: Likewise.
71805         * doc/posix-functions/wcsdup.texi: Likewise.
71806         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71807         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71808         * doc/posix-functions/wcsnlen.texi: Likewise.
71809         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71810         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71811         * doc/posix-functions/wctrans_l.texi: Likewise.
71812         * doc/posix-functions/wctype_l.texi: Likewise.
71813         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71814         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71815         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71816         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71817         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71818         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71819         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71820         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71821         * doc/glibc-functions/wcschrnul.texi: Likewise.
71822         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71823         * doc/glibc-functions/wcstod_l.texi: Likewise.
71824         * doc/glibc-functions/wcstof_l.texi: Likewise.
71825         * doc/glibc-functions/wcstol_l.texi: Likewise.
71826         * doc/glibc-functions/wcstold_l.texi: Likewise.
71827         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71828         * doc/glibc-functions/wcstoq.texi: Likewise.
71829         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71830         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71831         * doc/glibc-functions/wcstouq.texi: Likewise.
71832         * doc/glibc-functions/wmempcpy.texi: Likewise.
71834 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71835             Eric Blake  <ebb9@byu.net>
71836             Paolo Bonzini  <bonzini@gnu.org>
71837             Bruno Haible  <bruno@clisp.org>
71839         Make c-stack work on Haiku.
71840         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71841         (c_stack_action): Use SA_ONSTACK flag.
71843 2008-12-22  Bruno Haible  <bruno@clisp.org>
71845         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71847 2008-12-22  Bruno Haible  <bruno@clisp.org>
71849         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71850         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71851         being overridden.
71852         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71853         New macros.
71854         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71856         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71857         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71859 2008-12-22  Bruno Haible  <bruno@clisp.org>
71861         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71862         from test code.
71864 2008-12-22  Eric Blake  <ebb9@byu.net>
71866         Avoid gcc warnings on cygwin.
71867         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71868         Avoid unused variable.
71869         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71870         Likewise.
71872 2008-12-22  Bruno Haible  <bruno@clisp.org>
71874         Remove HAVE_MBRTOWC conditionals.
71875         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71876         (mbscasecmp): Assume mbrtowc function.
71877         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71878         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71879         * lib/mbschr.c: Include mbuiter.h unconditionally.
71880         (mbschr): Assume mbrtowc function.
71881         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71882         (mbscspn): Assume mbrtowc function.
71883         * lib/mbslen.c: Include mbuiter.h unconditionally.
71884         (mbslen): Assume mbrtowc function.
71885         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71886         (mbsncasecmp): Assume mbrtowc function.
71887         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71888         (mbsnlen): Assume mbrtowc function.
71889         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71890         (mbspbrk): Assume mbrtowc function.
71891         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71892         (mbspcasecmp): Assume mbrtowc function.
71893         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
71894         (mbsrchr): Assume mbrtowc function.
71895         * lib/mbssep.c: Include mbuiter.h unconditionally.
71896         (mbssep): Assume mbrtowc function.
71897         * lib/mbsspn.c: Include mbuiter.h unconditionally.
71898         (mbsspn): Assume mbrtowc function.
71899         * lib/mbsstr.c: Include mbuiter.h unconditionally.
71900         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
71901         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
71902         (mbstok_r): Assume mbrtowc function.
71903         * lib/propername.c: Include mbuiter.h unconditionally.
71904         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
71905         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
71906         (trim2): Assume mbrtowc function.
71907         * lib/mbswidth.c (mbsinit): Remove fallback definition.
71908         (mbsnwidth): Assume mbrtowc function.
71909         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
71910         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
71911         fallback definitions.
71912         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
71914 2008-12-22  Bruno Haible  <bruno@clisp.org>
71916         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
71918 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
71920         * modules/regex: Request emulations for the mb*/wc* functions we need.
71921         * m4/regex.m4: Don't look for those functions here.
71922         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
71924 2008-12-22  Bruno Haible  <bruno@clisp.org>
71926         * modules/fnmatch (Depends-on): Remove duplicated dependency.
71928 2008-12-21  Bruno Haible  <bruno@clisp.org>
71930         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
71931         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
71932         (Include): Remove conditionalization.
71933         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
71934         (Include): Remove conditionalization.
71935         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
71936         (Include): Remove conditionalization.
71937         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
71938         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71939         * NEWS: Mention the change.
71940         Reported by Alan Hourihane <alanh@fairlite.co.uk>
71941         via Sergey Poznyakoff <gray@gnu.org.ua>.
71943 2008-12-21  Bruno Haible  <bruno@clisp.org>
71945         * MODULES.html.sh (Extended multibyte and wide character utilities
71946         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
71947         wcrtomb, wcsrtombs.
71948         (Support for systems lacking POSIX:2008): Add accept, bind, close,
71949         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
71950         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
71951         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
71953 2008-12-21  Bruno Haible  <bruno@clisp.org>
71955         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
71957 2008-12-21  Bruno Haible  <bruno@clisp.org>
71959         * modules/wcsnrtombs-tests: New file.
71960         * tests/test-wcsnrtombs1.sh: New file.
71961         * tests/test-wcsnrtombs2.sh: New file.
71962         * tests/test-wcsnrtombs3.sh: New file.
71963         * tests/test-wcsnrtombs4.sh: New file.
71964         * tests/test-wcsnrtombs.c: New file.
71966         New module 'wcsnrtombs'.
71967         * lib/wchar.in.h (wcsnrtombs): New declaration.
71968         * lib/wcsnrtombs.c: New file.
71969         * lib/wcsrtombs-state.c: New file.
71970         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
71971         (internal_state): Remove variable.
71972         * m4/wcsnrtombs.m4: New file.
71973         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
71974         compilation units.
71975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
71976         HAVE_WCSNRTOMBS.
71977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
71978         HAVE_WCSNRTOMBS.
71979         * modules/wcsnrtombs: New file.
71980         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
71981         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
71983 2008-12-21  Bruno Haible  <bruno@clisp.org>
71985         * modules/wcsrtombs-tests: New file.
71986         * tests/test-wcsrtombs1.sh: New file.
71987         * tests/test-wcsrtombs2.sh: New file.
71988         * tests/test-wcsrtombs3.sh: New file.
71989         * tests/test-wcsrtombs4.sh: New file.
71990         * tests/test-wcsrtombs.c: New file.
71992         New module 'wcsrtombs'.
71993         * lib/wchar.in.h (wcsrtombs): New declaration.
71994         * lib/wcsrtombs.c: New file.
71995         * m4/wcsrtombs.m4: New file.
71996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
71997         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
71999         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72000         * modules/wcsrtombs: New file.
72001         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72002         bugs.
72004 2008-12-21  Bruno Haible  <bruno@clisp.org>
72006         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72007         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72008         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72009         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72010         if not correct.
72011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72012         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72013         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72014         m4/locale-zh.m4, m4/codeset.m4.
72015         * doc/posix-functions/wcrtomb.texi: Document the bug.
72017 2008-12-21  Bruno Haible  <bruno@clisp.org>
72019         Work around a btowc() bug on IRIX 6.5.
72020         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72021         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72022         REPLACE_WTOBC if not.
72023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72024         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72025         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72027 2008-12-21  Bruno Haible  <bruno@clisp.org>
72029         * modules/wcrtomb-tests: New file.
72030         * tests/test-wcrtomb.sh: New file.
72031         * tests/test-wcrtomb.c: New file.
72033         New module 'wcrtomb'.
72034         * lib/wchar.in.h (wcrtomb): New declaration.
72035         * lib/wcrtomb.c: New file.
72036         * m4/wcrtomb.m4: New file.
72037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72038         HAVE_WCRTOMB.
72039         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72040         HAVE_WCRTOMB.
72041         * modules/wcrtomb: New file.
72042         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72044 2008-12-21  Bruno Haible  <bruno@clisp.org>
72046         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72047         * modules/mbsrtowcs (Files): Likewise.
72048         * modules/wctob (Files): Likewise.
72049         * modules/c-strcase-tests (Files): Likewise.
72050         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72051         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72052         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72053         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72054         * modules/vasnprintf-posix-tests (Files): Likewise.
72056 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72058         gitlog-to-changelog: pass all command-line arguments to git-log
72059         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72060         it is sometimes convenient to filter the commits in various ways.
72061         gitlog-to-changelog only allows --since to specify a start date,
72062         but git-log itself supports many other filtering mechanisms.
72063         At the moment, I want to filter by branch name.  Rather than
72064         adding a --branch option to gitlog-to-changelog, it seems more
72065         flexible to simply pass all options directly to git-log and let
72066         git do the work.  Notice that this effectively makes --since a
72067         redundant option for gitlog-to-changelog, but removing it would
72068         require current usage to change since calls would then require
72069         an additional '--'.
72071 2008-12-21  Bruno Haible  <bruno@clisp.org>
72073         * modules/mbsnrtowcs-tests: New file.
72074         * tests/test-mbsnrtowcs1.sh: New file.
72075         * tests/test-mbsnrtowcs2.sh: New file.
72076         * tests/test-mbsnrtowcs3.sh: New file.
72077         * tests/test-mbsnrtowcs4.sh: New file.
72078         * tests/test-mbsnrtowcs.c: New file.
72080         New module 'mbsnrtowcs'.
72081         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72082         * lib/mbsnrtowcs.c: New file.
72083         * lib/mbsrtowcs-state.c: New file.
72084         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72085         (internal_state): Remove variable.
72086         * m4/mbsnrtowcs.m4: New file.
72087         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72088         compilation units.
72089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72090         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72091         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72092         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72093         * modules/mbsnrtowcs: New file.
72094         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72095         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72096         portability problem.
72098 2008-12-21  Bruno Haible  <bruno@clisp.org>
72100         Work around mbsrtowcs bug.
72101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72102         (gl_FUNC_MBSRTOWCS): Invoke it.
72103         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72104         m4/locale-zh.m4.
72105         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72107 2008-12-21  Bruno Haible  <bruno@clisp.org>
72109         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72111 2008-12-21  Bruno Haible  <bruno@clisp.org>
72113         Update doc for AIX.
72114         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72115         16-bit wchar_t type.
72116         * doc/posix-functions/btowc.texi: Likewise.
72117         * doc/posix-functions/fgetwc.texi: Likewise.
72118         * doc/posix-functions/fgetws.texi: Likewise.
72119         * doc/posix-functions/fputwc.texi: Likewise.
72120         * doc/posix-functions/fputws.texi: Likewise.
72121         * doc/posix-functions/fwide.texi: Likewise.
72122         * doc/posix-functions/fwprintf.texi: Likewise.
72123         * doc/posix-functions/fwscanf.texi: Likewise.
72124         * doc/posix-functions/getwchar.texi: Likewise.
72125         * doc/posix-functions/getwc.texi: Likewise.
72126         * doc/posix-functions/iswalnum.texi: Likewise.
72127         * doc/posix-functions/iswalpha.texi: Likewise.
72128         * doc/posix-functions/iswblank.texi: Likewise.
72129         * doc/posix-functions/iswcntrl.texi: Likewise.
72130         * doc/posix-functions/iswctype.texi: Likewise.
72131         * doc/posix-functions/iswdigit.texi: Likewise.
72132         * doc/posix-functions/iswgraph.texi: Likewise.
72133         * doc/posix-functions/iswlower.texi: Likewise.
72134         * doc/posix-functions/iswprint.texi: Likewise.
72135         * doc/posix-functions/iswpunct.texi: Likewise.
72136         * doc/posix-functions/iswspace.texi: Likewise.
72137         * doc/posix-functions/iswupper.texi: Likewise.
72138         * doc/posix-functions/iswxdigit.texi: Likewise.
72139         * doc/posix-functions/mbrtowc.texi: Likewise.
72140         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72141         * doc/posix-functions/mbstowcs.texi: Likewise.
72142         * doc/posix-functions/mbtowc.texi: Likewise.
72143         * doc/posix-functions/putwchar.texi: Likewise.
72144         * doc/posix-functions/putwc.texi: Likewise.
72145         * doc/posix-functions/swprintf.texi: Likewise.
72146         * doc/posix-functions/tolower.texi: Likewise.
72147         * doc/posix-functions/toupper.texi: Likewise.
72148         * doc/posix-functions/towctrans.texi: Likewise.
72149         * doc/posix-functions/ungetwc.texi: Likewise.
72150         * doc/posix-functions/vswprintf.texi: Likewise.
72151         * doc/posix-functions/wcrtomb.texi: Likewise.
72152         * doc/posix-functions/wcscat.texi: Likewise.
72153         * doc/posix-functions/wcschr.texi: Likewise.
72154         * doc/posix-functions/wcscmp.texi: Likewise.
72155         * doc/posix-functions/wcscoll.texi: Likewise.
72156         * doc/posix-functions/wcscpy.texi: Likewise.
72157         * doc/posix-functions/wcscspn.texi: Likewise.
72158         * doc/posix-functions/wcsftime.texi: Likewise.
72159         * doc/posix-functions/wcslen.texi: Likewise.
72160         * doc/posix-functions/wcsncat.texi: Likewise.
72161         * doc/posix-functions/wcsncmp.texi: Likewise.
72162         * doc/posix-functions/wcsncpy.texi: Likewise.
72163         * doc/posix-functions/wcspbrk.texi: Likewise.
72164         * doc/posix-functions/wcsrchr.texi: Likewise.
72165         * doc/posix-functions/wcsrtombs.texi: Likewise.
72166         * doc/posix-functions/wcsspn.texi: Likewise.
72167         * doc/posix-functions/wcsstr.texi: Likewise.
72168         * doc/posix-functions/wcstod.texi: Likewise.
72169         * doc/posix-functions/wcstof.texi: Likewise.
72170         * doc/posix-functions/wcstoimax.texi: Likewise.
72171         * doc/posix-functions/wcstok.texi: Likewise.
72172         * doc/posix-functions/wcstold.texi: Likewise.
72173         * doc/posix-functions/wcstoll.texi: Likewise.
72174         * doc/posix-functions/wcstol.texi: Likewise.
72175         * doc/posix-functions/wcstombs.texi: Likewise.
72176         * doc/posix-functions/wcstoull.texi: Likewise.
72177         * doc/posix-functions/wcstoul.texi: Likewise.
72178         * doc/posix-functions/wcstoumax.texi: Likewise.
72179         * doc/posix-functions/wcswidth.texi: Likewise.
72180         * doc/posix-functions/wcsxfrm.texi: Likewise.
72181         * doc/posix-functions/wctob.texi: Likewise.
72182         * doc/posix-functions/wctomb.texi: Likewise.
72183         * doc/posix-functions/wctrans.texi: Likewise.
72184         * doc/posix-functions/wctype.texi: Likewise.
72185         * doc/posix-functions/wcwidth.texi: Likewise.
72186         * doc/posix-functions/wmemchr.texi: Likewise.
72187         * doc/posix-functions/wmemcmp.texi: Likewise.
72188         * doc/posix-functions/wmemcpy.texi: Likewise.
72189         * doc/posix-functions/wmemmove.texi: Likewise.
72190         * doc/posix-functions/wmemset.texi: Likewise.
72191         * doc/posix-functions/wprintf.texi: Likewise.
72192         * doc/posix-functions/wscanf.texi: Likewise.
72194 2008-12-21  Bruno Haible  <bruno@clisp.org>
72196         Update doc for HP-UX 11.11.
72197         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72198         in HP-UX version 11.00, not in all versions of HP-UX 11.
72199         * doc/posix-functions/fwide.texi: Likewise.
72200         * doc/posix-functions/fwprintf.texi: Likewise.
72201         * doc/posix-functions/fwscanf.texi: Likewise.
72202         * doc/posix-functions/inet_ntop.texi: Likewise.
72203         * doc/posix-functions/inet_pton.texi: Likewise.
72204         * doc/posix-functions/mbrlen.texi: Likewise.
72205         * doc/posix-functions/mbrtowc.texi: Likewise.
72206         * doc/posix-functions/mbsinit.texi: Likewise.
72207         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72208         * doc/posix-functions/swprintf.texi: Likewise.
72209         * doc/posix-functions/swscanf.texi: Likewise.
72210         * doc/posix-functions/towctrans.texi: Likewise.
72211         * doc/posix-functions/vfwprintf.texi: Likewise.
72212         * doc/posix-functions/vswprintf.texi: Likewise.
72213         * doc/posix-functions/vwprintf.texi: Likewise.
72214         * doc/posix-functions/wcrtomb.texi: Likewise.
72215         * doc/posix-functions/wcsrtombs.texi: Likewise.
72216         * doc/posix-functions/wcsstr.texi: Likewise.
72217         * doc/posix-functions/wctob.texi: Likewise.
72218         * doc/posix-functions/wctrans.texi: Likewise.
72219         * doc/posix-functions/wmemchr.texi: Likewise.
72220         * doc/posix-functions/wmemcmp.texi: Likewise.
72221         * doc/posix-functions/wmemcpy.texi: Likewise.
72222         * doc/posix-functions/wmemmove.texi: Likewise.
72223         * doc/posix-functions/wmemset.texi: Likewise.
72224         * doc/posix-functions/wprintf.texi: Likewise.
72225         * doc/posix-functions/wscanf.texi: Likewise.
72227 2008-12-21  Bruno Haible  <bruno@clisp.org>
72229         Work around a portability problem.
72230         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72231         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72233 2008-12-20  Bruno Haible  <bruno@clisp.org>
72235         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72236         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72237         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72239         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72241         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72242         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72243         set.
72244         (GNULIB_defined_mbstate_t): New macro.
72245         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72246         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72247         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72248         reuses the system's mbrtowc function but works around the bugs.
72249         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72250         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72251         macros.
72252         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72253         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72254         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72255         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72256         REPLACE_MBSINIT if mbsinit needs to be overridden.
72257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72258         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72259         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72260         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72261         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72262         m4/locale-zh.m4.
72263         (Depends): Add mbsinit.
72264         * modules/mbsinit (Depends): Add mbrtowc.
72265         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72267 2008-12-20  Bruno Haible  <bruno@clisp.org>
72269         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72270         so that there are no conversion errors on AIX.
72271         * tests/test-mbsrtowcs.c (main): LIkewise.
72273 2008-12-20  Bruno Haible  <bruno@clisp.org>
72275         Work around wctob bug on Solaris <= 9.
72276         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72277         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72279         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72280         * modules/wctob (Files): Add m4/locale-fr.m4.
72281         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72283 2008-12-20  Bruno Haible  <bruno@clisp.org>
72285         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72286         /dev/null.
72287         * tests/test-select-in.sh: Likewise.
72288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72290 2008-12-20  Bruno Haible  <bruno@clisp.org>
72292         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72293         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72294         Cygwin 1.5.x.
72296 2008-12-20  Bruno Haible  <bruno@clisp.org>
72298         Ensure mbstate_t is defined on HP-UX 11.11.
72299         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72300         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72301         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72302         AC_USE_SYSTEM_EXTENSIONS.
72303         * modules/fnmatch (Depends-on): Add extensions.
72304         * modules/mbrlen (Depends-on): Likewise.
72305         * modules/mbrtowc (Depends-on): Likewise.
72306         * modules/mbsinit (Depends-on): Likewise.
72307         * modules/mbsrtowcs (Depends-on): Likewise.
72308         * modules/mbswidth (Depends-on): Likewise.
72309         * modules/quotearg (Depends-on): Likewise.
72310         * modules/strftime (Depends-on): Likewise.
72312 2008-12-20  Bruno Haible  <bruno@clisp.org>
72314         Ensure wctob is declared on IRIX 6.5.
72315         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72316         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72317         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72319         of HAVE_WCTOB.
72320         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72321         HAVE_WCTOB.
72322         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72324 2008-12-19  Bruno Haible  <bruno@clisp.org>
72326         * modules/mbsrtowcs-tests: New file.
72327         * tests/test-mbsrtowcs1.sh: New file.
72328         * tests/test-mbsrtowcs2.sh: New file.
72329         * tests/test-mbsrtowcs3.sh: New file.
72330         * tests/test-mbsrtowcs4.sh: New file.
72331         * tests/test-mbsrtowcs.c: New file.
72333         New module 'mbsrtowcs'.
72334         * lib/wchar.in.h (mbsrtowcs): New declaration.
72335         * lib/mbsrtowcs.c: New file.
72336         * m4/mbsrtowcs.m4: New file.
72337         * modules/mbsrtowcs: New file.
72338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72339         HAVE_MBSRTOWCS.
72340         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72341         HAVE_MBSRTOWCS.
72342         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72344 2008-12-19  Bruno Haible  <bruno@clisp.org>
72346         New module 'mbrlen'.
72347         * lib/wchar.in.h (mbrlen): New declaration.
72348         * lib/mbrlen.c: New file.
72349         * m4/mbrlen.m4: New file.
72350         * modules/mbrlen: New file.
72351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72352         HAVE_MBRLEN.
72353         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72354         HAVE_MBRLEN.
72355         * doc/posix-functions/mbrlen.texi: Document the new module.
72357 2008-12-19  Bruno Haible  <bruno@clisp.org>
72359         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72360         * modules/mbrtowc (Depends-on): Add verify.
72361         Suggested by Paul Eggert.
72363 2008-12-18  Bruno Haible  <bruno@clisp.org>
72365         * modules/mbsinit-tests: New file.
72366         * tests/test-mbsinit.sh: New file.
72367         * tests/test-mbsinit.c: New file.
72369 2008-12-18  Bruno Haible  <bruno@clisp.org>
72371         * modules/mbrtowc-tests: New file.
72372         * tests/test-mbrtowc1.sh: New file.
72373         * tests/test-mbrtowc2.sh: New file.
72374         * tests/test-mbrtowc3.sh: New file.
72375         * tests/test-mbrtowc4.sh: New file.
72376         * tests/test-mbrtowc.c: New file.
72378         New module 'mbrtowc'.
72379         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72380         mbsinit and mbrtowc.
72381         (mbrtowc): New declaration.
72382         * lib/mbrtowc.c: New file.
72383         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72384         * modules/mbrtowc: New file.
72385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72386         HAVE_MBRTOWC.
72387         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72388         HAVE_MBRTOWC.
72389         * doc/posix-functions/mbrtowc.texi: Document the new module.
72391 2008-12-18  Bruno Haible  <bruno@clisp.org>
72393         New module 'wctob'.
72394         * lib/wchar.in.h (wctob): New declaration.
72395         * lib/wctob.c: New file.
72396         * m4/wctob.m4: New file.
72397         * modules/wctob: New file.
72398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72399         HAVE_WCTOB.
72400         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72401         * doc/posix-functions/wctob.texi: Document the new module.
72403 2008-12-18  Bruno Haible  <bruno@clisp.org>
72405         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72406         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72408 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72410         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72411         G. Christensen" <tgc@jupiterrise.com>.
72413         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72414         G. Christensen" <tgc@jupiterrise.com>.
72416         * lib/flock.c: Need to include string.h.  Reported by "Tom
72417         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72418         <ebb9@byu.net>.
72420 2008-12-18  Bruno Haible  <bruno@clisp.org>
72422         * m4/locale-ja.m4: New file, from GNU gettext.
72424 2008-12-17  Bruno Haible  <bruno@clisp.org>
72426         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72427         Suggested by Eric Blake.
72429 2008-12-17  Bruno Haible  <bruno@clisp.org>
72431         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72433 2008-12-17  Bruno Haible  <bruno@clisp.org>
72435         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72436         * modules/mbsinit (Depends-on): Add verify.
72437         Suggested by Paul Eggert.
72439 2008-12-17  Bruno Haible  <bruno@clisp.org>
72441         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72442         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72443         gl_FUNC_MBRTOWC.
72444         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72445         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72446         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72447         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72448         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72449         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72450         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72451         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72452         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72453         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72454         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72455         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72456         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72457         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72458         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72459         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72460         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72461         * modules/trim (configure.ac): Likewise.
72463 2008-12-17  Bruno Haible  <bruno@clisp.org>
72465         * modules/btowc-tests: New file.
72466         * tests/test-btowc1.sh: New file.
72467         * tests/test-btowc2.sh: New file.
72468         * tests/test-btowc.c: New file.
72470         New module 'btowc'.
72471         * lib/wchar.in.h (btowc): New declaration.
72472         * lib/btowc.c: New file.
72473         * m4/btowc.m4: New file.
72474         * modules/btowc: New file.
72475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72476         HAVE_BTOWC.
72477         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72478         * doc/posix-functions/btowc.texi: Document the new module.
72480 2008-12-17  Bruno Haible  <bruno@clisp.org>
72482         New module 'mbsinit'.
72483         * lib/wchar.in.h (mbsinit): New declaration.
72484         * lib/mbsinit.c: New file.
72485         * m4/mbsinit.m4: New file.
72486         * modules/mbsinit: New file.
72487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72488         HAVE_MBSINIT.
72489         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72490         HAVE_MBSINIT.
72491         * doc/posix-functions/mbsinit.texi: Document the new module.
72493 2008-12-16  Bruno Haible  <bruno@clisp.org>
72495         * lib/unistd.in.h: Add comment.
72496         * tests/test-environ.c: Don't include <stdlib.h>.
72498 2008-12-16  Bruno Haible  <bruno@clisp.org>
72500         * lib/parse-duration.h (parse_duration): Document return value
72501         convention.
72502         * lib/parse-duration.c: Include specification header first. Add
72503         comments.
72504         (_): Remove macro.
72505         (parse_year_month_day, parse_hour_minute_second): Move side effects
72506         outside of strchr call.
72507         (parse_non_iso8601): Move side effects outside of isspace call.
72508         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72509         call.
72511 2008-12-16  Bruno Haible  <bruno@clisp.org>
72513         * tests/test-parse-duration.sh: Produce no output when the test
72514         succeeds.
72516 2008-12-16  Bruno Haible  <bruno@clisp.org>
72518         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72519         expressions.
72521 2008-12-15  Bruno Haible  <bruno@clisp.org>
72523         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72524         * doc/glibc-functions/flistxattr.texi: Likewise.
72525         * doc/glibc-functions/fopencookie.texi: Likewise.
72526         * doc/glibc-functions/fremovexattr.texi: Likewise.
72527         * doc/glibc-functions/fsetxattr.texi: Likewise.
72528         * doc/glibc-functions/getxattr.texi: Likewise.
72529         * doc/glibc-functions/lgetxattr.texi: Likewise.
72530         * doc/glibc-functions/listxattr.texi: Likewise.
72531         * doc/glibc-functions/llistxattr.texi: Likewise.
72532         * doc/glibc-functions/lremovexattr.texi: Likewise.
72533         * doc/glibc-functions/lsetxattr.texi: Likewise.
72534         * doc/glibc-functions/removexattr.texi: Likewise.
72535         * doc/glibc-functions/setxattr.texi: Likewise.
72536         * doc/posix-functions/open_memstream.texi: Likewise.
72538 2008-12-15  Eric Blake  <ebb9@byu.net>
72540         Update doc for cygwin 1.7.
72541         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72542         functions.
72543         * doc/posix-functions/fchmodat.texi: Likewise.
72544         * doc/posix-functions/fchownat.texi: Likewise.
72545         * doc/posix-functions/fdopendir.texi: Likewise.
72546         * doc/posix-functions/fmemopen.texi: Likewise.
72547         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72548         * doc/posix-functions/fstatat.texi: Likewise.
72549         * doc/posix-functions/futimens.texi: Likewise.
72550         * doc/posix-functions/gai_strerror.texi: Likewise.
72551         * doc/posix-functions/getaddrinfo.texi: Likewise.
72552         * doc/posix-functions/getnameinfo.texi: Likewise.
72553         * doc/posix-functions/if_freenameindex.texi: Likewise.
72554         * doc/posix-functions/if_indextoname.texi: Likewise.
72555         * doc/posix-functions/if_nameindex.texi: Likewise.
72556         * doc/posix-functions/if_nametoindex.texi: Likewise.
72557         * doc/posix-functions/insque.texi: Likewise.
72558         * doc/posix-functions/linkat.texi: Likewise.
72559         * doc/posix-functions/llrint.texi: Likewise.
72560         * doc/posix-functions/llrintf.texi: Likewise.
72561         * doc/posix-functions/llrintl.texi: Likewise.
72562         * doc/posix-functions/lockf.texi: Likewise.
72563         * doc/posix-functions/lrintl.texi: Likewise.
72564         * doc/posix-functions/mkdirat.texi: Likewise.
72565         * doc/posix-functions/mkfifoat.texi: Likewise.
72566         * doc/posix-functions/mknodat.texi: Likewise.
72567         * doc/posix-functions/mq_close.texi: Likewise.
72568         * doc/posix-functions/mq_getattr.texi: Likewise.
72569         * doc/posix-functions/mq_notify.texi: Likewise.
72570         * doc/posix-functions/mq_open.texi: Likewise.
72571         * doc/posix-functions/mq_receive.texi: Likewise.
72572         * doc/posix-functions/mq_send.texi: Likewise.
72573         * doc/posix-functions/mq_setattr.texi: Likewise.
72574         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72575         * doc/posix-functions/mq_timedsend.texi: Likewise.
72576         * doc/posix-functions/mq_unlink.texi: Likewise.
72577         * doc/posix-functions/open_memstream.texi: Likewise.
72578         * doc/posix-functions/openat.texi: Likewise.
72579         * doc/posix-functions/posix_fadvise.texi: Likewise.
72580         * doc/posix-functions/posix_fallocate.texi: Likewise.
72581         * doc/posix-functions/posix_madvise.texi: Likewise.
72582         * doc/posix-functions/posix_memalign.texi: Likewise.
72583         * doc/posix-functions/posix_openpt.texi: Likewise.
72584         * doc/posix-functions/readlinkat.texi: Likewise.
72585         * doc/posix-functions/remque.texi: Likewise.
72586         * doc/posix-functions/renameat.texi: Likewise.
72587         * doc/posix-functions/rintl.texi: Likewise.
72588         * doc/posix-functions/sem_unlink.texi: Likewise.
72589         * doc/posix-functions/shm_open.texi: Likewise.
72590         * doc/posix-functions/shm_unlink.texi: Likewise.
72591         * doc/posix-functions/signgam.texi: Likewise.
72592         * doc/posix-functions/sigset.texi: Likewise.
72593         * doc/posix-functions/stpcpy.texi: Likewise.
72594         * doc/posix-functions/stpncpy.texi: Likewise.
72595         * doc/posix-functions/strerror.texi: Likewise.
72596         * doc/posix-functions/strtod.texi: Likewise.
72597         * doc/posix-functions/symlinkat.texi: Likewise.
72598         * doc/posix-functions/unlinkat.texi: Likewise.
72599         * doc/posix-functions/utimensat.texi: Likewise.
72600         * doc/glibc-functions/bindresvport.texi: Likewise.
72601         * doc/glibc-functions/dn_expand.texi: Likewise.
72602         * doc/glibc-functions/exp10.texi: Likewise.
72603         * doc/glibc-functions/exp10f.texi: Likewise.
72604         * doc/glibc-functions/fgetxattr.texi: Likewise.
72605         * doc/glibc-functions/flistxattr.texi: Likewise.
72606         * doc/glibc-functions/fopencookie.texi: Likewise.
72607         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72608         * doc/glibc-functions/fremovexattr.texi: Likewise.
72609         * doc/glibc-functions/fsetxattr.texi: Likewise.
72610         * doc/glibc-functions/getifaddrs.texi: Likewise.
72611         * doc/glibc-functions/getxattr.texi: Likewise.
72612         * doc/glibc-functions/lgetxattr.texi: Likewise.
72613         * doc/glibc-functions/listxattr.texi: Likewise.
72614         * doc/glibc-functions/llistxattr.texi: Likewise.
72615         * doc/glibc-functions/lremovexattr.texi: Likewise.
72616         * doc/glibc-functions/lsetxattr.texi: Likewise.
72617         * doc/glibc-functions/pow10.texi: Likewise.
72618         * doc/glibc-functions/pow10f.texi: Likewise.
72619         * doc/glibc-functions/rcmd_af.texi: Likewise.
72620         * doc/glibc-functions/removexattr.texi: Likewise.
72621         * doc/glibc-functions/res_init.texi: Likewise.
72622         * doc/glibc-functions/res_mkquery.texi: Likewise.
72623         * doc/glibc-functions/res_query.texi: Likewise.
72624         * doc/glibc-functions/res_querydomain.texi: Likewise.
72625         * doc/glibc-functions/res_send.texi: Likewise.
72626         * doc/glibc-functions/rresvport_af.texi: Likewise.
72627         * doc/glibc-functions/setxattr.texi: Likewise.
72628         * doc/glibc-functions/strcasestr.texi: Likewise.
72630 2008-12-15  Bruno Haible  <bruno@clisp.org>
72632         Fix compilation error on OSF/1 4.0.
72633         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72634         <sys/time.h>, simply delegate to the system header.
72635         Reported by Daniel Richard G. <oss@teragram.com>.
72637 2008-12-15  Bruno Haible  <bruno@clisp.org>
72639         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72640         * doc/posix-functions/fchmodat.texi: Likewise.
72641         * doc/posix-functions/fchownat.texi: Likewise.
72642         * doc/posix-functions/fdopendir.texi: Likewise.
72643         * doc/posix-functions/fstatat.texi: Likewise.
72644         * doc/posix-functions/mkdirat.texi: Likewise.
72645         * doc/posix-functions/unlinkat.texi: Likewise.
72647 2008-12-14  Bruno Haible  <bruno@clisp.org>
72649         Update doc for POSIX:2008.
72650         * doc/posix-functions/faccessat.texi: New file.
72651         * doc/posix-functions/fchmodat.texi: New file.
72652         * doc/posix-functions/fchownat.texi: New file.
72653         * doc/posix-functions/fdopendir.texi: New file.
72654         * doc/posix-functions/fstatat.texi: New file.
72655         * doc/posix-functions/futimens.texi: New file.
72656         * doc/posix-functions/linkat.texi: New file.
72657         * doc/posix-functions/mkdirat.texi: New file.
72658         * doc/posix-functions/mkfifoat.texi: New file.
72659         * doc/posix-functions/mknodat.texi: New file.
72660         * doc/posix-functions/open_wmemstream.texi: New file.
72661         * doc/posix-functions/openat.texi: New file.
72662         * doc/posix-functions/psiginfo.texi: New file.
72663         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72664         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72665         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72666         * doc/posix-functions/readlinkat.texi: New file.
72667         * doc/posix-functions/renameat.texi: New file.
72668         * doc/posix-functions/strerror_l.texi: New file.
72669         * doc/posix-functions/symlinkat.texi: New file.
72670         * doc/posix-functions/unlinkat.texi: New file.
72671         * doc/posix-functions/utimensat.texi: New file.
72672         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72674 2008-12-14  Bruno Haible  <bruno@clisp.org>
72676         Update doc for POSIX:2008.
72677         * doc/posix-functions/alphasort.texi: Renamed from
72678         doc/glibc-functions/alphasort.texi.
72679         * doc/posix-functions/dirfd.texi: Renamed from
72680         doc/glibc-functions/dirfd.texi.
72681         * doc/posix-functions/dprintf.texi: Renamed from
72682         doc/glibc-functions/dprintf.texi.
72683         * doc/posix-functions/duplocale.texi: Renamed from
72684         doc/glibc-functions/duplocale.texi.
72685         * doc/posix-functions/fexecve.texi: Renamed from
72686         doc/glibc-functions/fexecve.texi.
72687         * doc/posix-functions/fmemopen.texi: Renamed from
72688         doc/glibc-functions/fmemopen.texi.
72689         * doc/posix-functions/freelocale.texi: Renamed from
72690         doc/glibc-functions/freelocale.texi.
72691         * doc/posix-functions/getdate_err.texi: Renamed from
72692         doc/glibc-functions/getdate_err.texi.
72693         * doc/posix-functions/isalnum_l.texi: Renamed from
72694         doc/glibc-functions/isalnum_l.texi.
72695         * doc/posix-functions/isalpha_l.texi: Renamed from
72696         doc/glibc-functions/isalpha_l.texi.
72697         * doc/posix-functions/isblank_l.texi: Renamed from
72698         doc/glibc-functions/isblank_l.texi.
72699         * doc/posix-functions/iscntrl_l.texi: Renamed from
72700         doc/glibc-functions/iscntrl_l.texi.
72701         * doc/posix-functions/isdigit_l.texi: Renamed from
72702         doc/glibc-functions/isdigit_l.texi.
72703         * doc/posix-functions/isgraph_l.texi: Renamed from
72704         doc/glibc-functions/isgraph_l.texi.
72705         * doc/posix-functions/islower_l.texi: Renamed from
72706         doc/glibc-functions/islower_l.texi.
72707         * doc/posix-functions/isprint_l.texi: Renamed from
72708         doc/glibc-functions/isprint_l.texi.
72709         * doc/posix-functions/ispunct_l.texi: Renamed from
72710         doc/glibc-functions/ispunct_l.texi.
72711         * doc/posix-functions/isspace_l.texi: Renamed from
72712         doc/glibc-functions/isspace_l.texi.
72713         * doc/posix-functions/isupper_l.texi: Renamed from
72714         doc/glibc-functions/isupper_l.texi.
72715         * doc/posix-functions/iswalnum_l.texi: Renamed from
72716         doc/glibc-functions/iswalnum_l.texi.
72717         * doc/posix-functions/iswalpha_l.texi: Renamed from
72718         doc/glibc-functions/iswalpha_l.texi.
72719         * doc/posix-functions/iswblank_l.texi: Renamed from
72720         doc/glibc-functions/iswblank_l.texi.
72721         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72722         doc/glibc-functions/iswcntrl_l.texi.
72723         * doc/posix-functions/iswctype_l.texi: Renamed from
72724         doc/glibc-functions/iswctype_l.texi.
72725         * doc/posix-functions/iswdigit_l.texi: Renamed from
72726         doc/glibc-functions/iswdigit_l.texi.
72727         * doc/posix-functions/iswgraph_l.texi: Renamed from
72728         doc/glibc-functions/iswgraph_l.texi.
72729         * doc/posix-functions/iswlower_l.texi: Renamed from
72730         doc/glibc-functions/iswlower_l.texi.
72731         * doc/posix-functions/iswprint_l.texi: Renamed from
72732         doc/glibc-functions/iswprint_l.texi.
72733         * doc/posix-functions/iswpunct_l.texi: Renamed from
72734         doc/glibc-functions/iswpunct_l.texi.
72735         * doc/posix-functions/iswspace_l.texi: Renamed from
72736         doc/glibc-functions/iswspace_l.texi.
72737         * doc/posix-functions/iswupper_l.texi: Renamed from
72738         doc/glibc-functions/iswupper_l.texi.
72739         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72740         doc/glibc-functions/iswxdigit_l.texi.
72741         * doc/posix-functions/isxdigit_l.texi: Renamed from
72742         doc/glibc-functions/isxdigit_l.texi.
72743         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72744         doc/glibc-functions/mbsnrtowcs.texi.
72745         * doc/posix-functions/mkdtemp.texi: Renamed from
72746         doc/glibc-functions/mkdtemp.texi.
72747         * doc/posix-functions/newlocale.texi: Renamed from
72748         doc/glibc-functions/newlocale.texi.
72749         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72750         doc/glibc-functions/nl_langinfo_l.texi.
72751         * doc/posix-functions/open_memstream.texi: Renamed from
72752         doc/glibc-functions/open_memstream.texi.
72753         * doc/posix-functions/opterr.texi: Renamed from
72754         doc/glibc-functions/opterr.texi.
72755         * doc/posix-functions/optind.texi: Renamed from
72756         doc/glibc-functions/optind.texi.
72757         * doc/posix-functions/optopt.texi: Renamed from
72758         doc/glibc-functions/optopt.texi.
72759         * doc/posix-functions/psignal.texi: Renamed from
72760         doc/glibc-functions/psignal.texi.
72761         * doc/posix-functions/scandir.texi: Renamed from
72762         doc/glibc-functions/scandir.texi.
72763         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72764         doc/glibc-functions/sched_get_priority_min.texi.
72765         * doc/posix-functions/signgam.texi: Renamed from
72766         doc/glibc-functions/signgam.texi.
72767         * doc/posix-functions/stpcpy.texi: Renamed from
72768         doc/glibc-functions/stpcpy.texi.
72769         * doc/posix-functions/stpncpy.texi: Renamed from
72770         doc/glibc-functions/stpncpy.texi.
72771         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72772         doc/glibc-functions/strcasecmp_l.texi.
72773         * doc/posix-functions/strcoll_l.texi: Renamed from
72774         doc/glibc-functions/strcoll_l.texi.
72775         * doc/posix-functions/strfmon_l.texi: Renamed from
72776         doc/glibc-functions/strfmon_l.texi.
72777         * doc/posix-functions/strftime_l.texi: Renamed from
72778         doc/glibc-functions/strftime_l.texi.
72779         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72780         doc/glibc-functions/strncasecmp_l.texi.
72781         * doc/posix-functions/strndup.texi: Renamed from
72782         doc/glibc-functions/strndup.texi.
72783         * doc/posix-functions/strnlen.texi: Renamed from
72784         doc/glibc-functions/strnlen.texi.
72785         * doc/posix-functions/strsignal.texi: Renamed from
72786         doc/glibc-functions/strsignal.texi.
72787         * doc/posix-functions/strxfrm_l.texi: Renamed from
72788         doc/glibc-functions/strxfrm_l.texi.
72789         * doc/posix-functions/timer_gettime.texi: Renamed from
72790         doc/glibc-functions/timer_gettime.texi.
72791         * doc/posix-functions/tolower_l.texi: Renamed from
72792         doc/glibc-functions/tolower_l.texi.
72793         * doc/posix-functions/toupper_l.texi: Renamed from
72794         doc/glibc-functions/toupper_l.texi.
72795         * doc/posix-functions/towctrans_l.texi: Renamed from
72796         doc/glibc-functions/towctrans_l.texi.
72797         * doc/posix-functions/towlower_l.texi: Renamed from
72798         doc/glibc-functions/towlower_l.texi.
72799         * doc/posix-functions/towupper_l.texi: Renamed from
72800         doc/glibc-functions/towupper_l.texi.
72801         * doc/posix-functions/uselocale.texi: Renamed from
72802         doc/glibc-functions/uselocale.texi.
72803         * doc/posix-functions/vdprintf.texi: Renamed from
72804         doc/glibc-functions/vdprintf.texi.
72805         * doc/posix-functions/wcpcpy.texi:
72806         Renamed from doc/glibc-functions/wcpcpy.texi.
72807         * doc/posix-functions/wcpncpy.texi: Renamed from
72808         doc/glibc-functions/wcpncpy.texi.
72809         * doc/posix-functions/wcscasecmp.texi: Renamed from
72810         doc/glibc-functions/wcscasecmp.texi.
72811         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72812         doc/glibc-functions/wcscasecmp_l.texi.
72813         * doc/posix-functions/wcscoll_l.texi: Renamed from
72814         doc/glibc-functions/wcscoll_l.texi.
72815         * doc/posix-functions/wcsdup.texi: Renamed from
72816         doc/glibc-functions/wcsdup.texi.
72817         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72818         doc/glibc-functions/wcsncasecmp.texi.
72819         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72820         doc/glibc-functions/wcsncasecmp_l.texi.
72821         * doc/posix-functions/wcsnlen.texi: Renamed from
72822         doc/glibc-functions/wcsnlen.texi.
72823         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72824         doc/glibc-functions/wcsnrtombs.texi.
72825         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72826         doc/glibc-functions/wcsxfrm_l.texi.
72827         * doc/posix-functions/wctrans_l.texi: Renamed from
72828         doc/glibc-functions/wctrans_l.texi.
72829         * doc/posix-functions/wctype_l.texi: Renamed from
72830         doc/glibc-functions/wctype_l.texi.
72831         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72832         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72833         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72834         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72835         these subsections.
72836         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72837         Remove sections.
72839 2008-12-14  Bruno Haible  <bruno@clisp.org>
72841         Update doc for POSIX:2008.
72842         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72844 2008-12-14  Bruno Haible  <bruno@clisp.org>
72846         Update doc for POSIX:2008.
72847         * doc/pastposix-functions/bcmp.texi: Renamed from
72848         doc/posix-functions/bcmp.texi.
72849         * doc/pastposix-functions/bcopy.texi: Renamed from
72850         doc/posix-functions/bcopy.texi.
72851         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72852         doc/posix-functions/bsd_signal.texi.
72853         * doc/pastposix-functions/bzero.texi: Renamed from
72854         doc/posix-functions/bzero.texi.
72855         * doc/pastposix-functions/ecvt.texi: Renamed from
72856         doc/posix-functions/ecvt.texi.
72857         * doc/pastposix-functions/fcvt.texi: Renamed from
72858         doc/posix-functions/fcvt.texi.
72859         * doc/pastposix-functions/ftime.texi: Renamed from
72860         doc/posix-functions/ftime.texi.
72861         * doc/pastposix-functions/gcvt.texi: Renamed from
72862         doc/posix-functions/gcvt.texi.
72863         * doc/pastposix-functions/getcontext.texi: Renamed from
72864         doc/posix-functions/getcontext.texi.
72865         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72866         doc/posix-functions/gethostbyaddr.texi.
72867         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72868         doc/posix-functions/gethostbyname.texi.
72869         * doc/pastposix-functions/getwd.texi: Renamed from
72870         doc/posix-functions/getwd.texi.
72871         * doc/pastposix-functions/h_errno.texi: Renamed from
72872         doc/posix-functions/h_errno.texi.
72873         * doc/pastposix-functions/index.texi: Renamed from
72874         doc/posix-functions/index.texi.
72875         * doc/pastposix-functions/makecontext.texi: Renamed from
72876         doc/posix-functions/makecontext.texi.
72877         * doc/pastposix-functions/mktemp.texi: Renamed from
72878         doc/posix-functions/mktemp.texi.
72879         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72880         doc/posix-functions/pthread_attr_getstackaddr.texi.
72881         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72882         doc/posix-functions/pthread_attr_setstackaddr.texi.
72883         * doc/pastposix-functions/rindex.texi: Renamed from
72884         doc/posix-functions/rindex.texi.
72885         * doc/pastposix-functions/scalb.texi: Renamed from
72886         doc/posix-functions/scalb.texi.
72887         * doc/pastposix-functions/setcontext.texi: Renamed from
72888         doc/posix-functions/setcontext.texi.
72889         * doc/pastposix-functions/swapcontext.texi: Renamed from
72890         doc/posix-functions/swapcontext.texi.
72891         * doc/pastposix-functions/ualarm.texi: Renamed from
72892         doc/posix-functions/ualarm.texi.
72893         * doc/pastposix-functions/usleep.texi: Renamed from
72894         doc/posix-functions/usleep.texi.
72895         * doc/pastposix-functions/vfork.texi: Renamed from
72896         doc/posix-functions/vfork.texi.
72897         * doc/pastposix-functions/wcswcs.texi: Renamed from
72898         doc/posix-functions/wcswcs.texi.
72899         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
72900         (Function Substitutes): Update.
72902 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72904         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
72905         m4/strerror.m4.
72907 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72908             Bruno Haible  <bruno@clisp.org>
72910         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
72912 2008-12-13  Bruno Haible  <bruno@clisp.org>
72914         * modules/strtoull (Depends-on): Remove unistd.
72916 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72918         * modules/strtoull (Depends-on): Add stdlib.
72920 2008-12-11  Simon Josefsson  <simon@josefsson.org>
72922         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
72924 2008-12-10  Jim Meyering  <meyering@redhat.com>
72926         gl_ASSERT: don't say assertions are disabled when they're not
72927         * m4/assert.m4 (gl_ASSERT): Do not make configure report
72928         "checking whether to enable assertions... no", when they are in
72929         fact enabled.  This is solely a bug in the output of configure.
72930         In spite of saying "no", NDEBUG was not defined in that case.
72931         Also, as noted by Eric Blake, leave assertions enabled upon
72932         --enable-assert=INVALID.
72934 2008-12-10  Bruno Haible  <bruno@clisp.org>
72936         Change MODULES.html to refer to POSIX:2008 where possible.
72937         * MODULES.html.sh (POSIX2008_URL): New variable.
72938         (posix_headers): Remove sys/timeb, ucontext.
72939         (posix2001_headers): New variable.
72940         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
72941         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
72942         index, makecontext, mktemp, pthread_attr_getstackaddr,
72943         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
72944         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
72945         (posix2001_functions): New variable.
72946         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
72947         otherwise.
72949 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72951         add missing include to parse-duration.c
72952         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
72953         * modules/parse-duration (Depends-on): Add xalloc.
72955         fix sed script reading maint.mk
72956         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
72957         (syntax-check-rules): Use it.
72959 2008-12-09  Bruno Haible  <bruno@clisp.org>
72961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
72962         MacOS X 10.4/PowerPC.
72963         Reported by Simon Josefsson.
72965 2008-12-08  Jim Meyering  <meyering@redhat.com>
72967         work around mingw's lack of some S_IF definitions
72968         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
72969         Reported by Simon Josefsson.
72971 2008-12-08  Bruno Haible  <bruno@clisp.org>
72973         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
72974         applied to variables. Needed on MacOS X 10.4/PowerPC.
72975         Reported by Simon Josefsson.
72977 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
72978         and Eric Blake  <ebb9@byu.net>
72980         assert: honor --enable-assert
72981         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
72982         order to honor --enable-assert, rather than treating it as a
72983         synonym for --disable-assert.
72985 2008-12-08  Jim Meyering  <meyering@redhat.com>
72987         * lib/posixtm.c: Remove now-useless declaration of mktime.
72989         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
72991 2008-12-07  Bruno Haible  <bruno@clisp.org>
72993         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
72994         test_once): Mark functions as static.
72995         * tests/test-tls.c (test_tls): Likewise.
72997 2008-12-07  Bruno Haible  <bruno@clisp.org>
72999         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73000         iconv_register_autodetect.
73002 2008-12-07  Jim Meyering  <meyering@redhat.com>
73004         posixtm.c: avoid a warning
73005         * lib/posixtm.c (posixtime): Don't initialize tm0.
73006         It's no longer needed to placate gcc4's -Wuninitialized,
73007         and the attempt to placate would elicit a new warning.
73009         unicodeio.c: mark unused parameters
73010         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73011         (fallback_failure_callback): Likewise.
73013 2008-12-07  Bruno Haible  <bruno@clisp.org>
73015         * gnulib-tool (func_create_testdir): When building the tests
73016         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73017         Reported by Simon Josefsson.
73019 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73021         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73023 2008-12-06  Bruno Haible  <bruno@clisp.org>
73025         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73026         Suggested by Eric Blake.
73028 2008-12-06  Bruno Haible  <bruno@clisp.org>
73030         Fix a c-stack test failure on MacOS X.
73031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73032         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73033         handler for SIGBUS as well.
73034         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73035         install a signal handler for SIGBUS as well.
73036         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73038 2008-12-06  Bruno Haible  <bruno@clisp.org>
73040         Advocacy documentation.
73041         * doc/gnulib-intro.texi (Benefits): New section.
73042         * doc/gnulib.texi: Update.
73044 2008-12-06  Bruno Haible  <bruno@clisp.org>
73046         Document the 'manywarnings' module.
73047         * doc/manywarnings.texi: New file.
73048         * doc/gnulib.texi: Include it.
73050 2008-12-05  Eric Blake  <ebb9@byu.net>
73052         tests: silence some gcc warnings
73053         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73054         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73055         type mismatches.
73057 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73058             Bruno Haible  <bruno@clisp.org>
73060         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73062 2008-11-29  Jim Meyering  <meyering@redhat.com>
73064         unicodeio.c: mark unused parameters
73065         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73066         (fallback_failure_callback): Likewise.
73068         fts: fix a thinko
73069         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73070         (set_stat_type): Return S_IF*-valued "type" directly.
73071         Prompted by James Youngman's spotting a related bug.
73072         Confirmed by further testing through find.
73074         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73075         * lib/fts.c (D_TYPE): Define.
73076         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73077         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73078         (s_ifmt_shift_bits): New function.
73079         (set_stat_type): New function.
73080         (fts_build): When not calling fts_stat, call set_stat_type
73081         to propagate dirent.d_type info to fts_read caller.
73082         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73083         fts_statp->st_mode type information may be valid.
73085 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73087         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73088         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73089         <sds@gnu.org>.
73091 2008-11-20  Bruno Haible  <bruno@clisp.org>
73093         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73094         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73095         INCLUDE_NEXT.
73096         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73097         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73098         * modules/math (Makefile.am): Substitute
73099         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73100         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73102 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73103             Bruno Haible  <bruno@clisp.org>
73105         * lib/stdint.in.h: Define all type macros so that their expansion is
73106         a single typedef'ed token. Fixes a compilation failure in Boost which
73107         does "using ::int8_t;".
73109 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73111         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73112         gl_MANYWARN_ALL_GCC.
73113         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73114         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73115         * modules/manywarnings: New file.
73116         * MODULES.html.sh: Mention manywarnings module.
73118 2008-11-18  Bruno Haible  <bruno@clisp.org>
73120         * doc/gnulib-tool.texi (Unit tests): New section.
73122 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73124         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73125         paths like 'lib/po/foo.po'.
73127 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73129         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73130         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73132 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73134         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73135         parameter works.
73137 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73139         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73141 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73143         * modules/parse-duration-tests: New file.
73144         * tests/test-parse-duration.sh: New file.
73145         * tests/test-parse-duration.c: New file.
73147         New module 'parse-duration'.
73148         * lib/parse-duration.h: New file.
73149         * lib/parse-duration.c: New file.
73150         * modules/parse-duration: New file.
73152 2008-11-17  Bruno Haible  <bruno@clisp.org>
73154         * tests/test-select-out.sh: Comment out the first pipe test.
73155         Reported by Simon Josefsson.
73157 2008-11-17  Bruno Haible  <bruno@clisp.org>
73159         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73160         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73161         gl_HOSTENT.
73163 2008-11-17  Bruno Haible  <bruno@clisp.org>
73165         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73166         -lnetwork and -lnet. Needed for Haiku and BeOS.
73168 2008-11-16  Bruno Haible  <bruno@clisp.org>
73170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73172 2008-11-16  Bruno Haible  <bruno@clisp.org>
73174         Avoid test failure on Haiku.
73175         * tests/test-fsync.c: Include <errno.h>.
73176         (main): Don't require that fsync (0) fails.
73178 2008-11-15  Bruno Haible  <bruno@clisp.org>
73180         New module 'hostent'.
73181         * modules/hostent: New file.
73182         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73184 2008-11-15  Bruno Haible  <bruno@clisp.org>
73186         New module 'servent'.
73187         * modules/servent: New file.
73188         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73190 2008-11-15  Bruno Haible  <bruno@clisp.org>
73192         Avoid generating same test program with two different rules.
73193         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73194         test-frexp to test-frexp-nolibm.
73195         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73196         test-frexpl to test-frexpl-nolibm.
73198 2008-11-15  Bruno Haible  <bruno@clisp.org>
73200         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73201         $(FREXPL_LIBM).
73203 2008-11-15  Bruno Haible  <bruno@clisp.org>
73205         * lib/netdb.in.h: Activate the definitions also when the system's
73206         <netdb.h> has 'struct addrinfo'.
73207         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73208         EAI_OVERFLOW or AI_NUMERICSERV.
73209         * doc/posix-headers/netdb.texi: Document the problem.
73211 2008-11-15  Bruno Haible  <bruno@clisp.org>
73213         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73215         Make the 'sched' module work on platforms where <sched.h> exists but
73216         is incomplete (such as Haiku).
73217         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73218         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73219         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73220         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73221         HAVE_STRUCT_SCHED_PARAM.
73222         * modules/sched (Depends-on): Add include_next.
73223         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73224         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73225         * doc/posix-headers/sched.texi: Document the issue.
73227 2008-11-13  Jim Meyering  <meyering@redhat.com>
73229         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73230         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73231         test would fail due to the difference in the Report bugs to ...
73232         line.  The expected address is empty, "<>", while the actual
73233         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73235 2008-11-12  Bruno Haible  <bruno@clisp.org>
73237         lstat: don't compile lstat.c on systems lacking lstat
73238         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73239         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73240         Reported by Daniel P. Berrange via Jim Meyering.
73242 2008-11-12  Jim Meyering  <meyering@redhat.com>
73244         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73246 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73248         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73249         instead.
73251 2008-11-12  Bruno Haible  <bruno@clisp.org>
73253         * lib/unicodeio.c: Include unistr.h.
73254         (utf8_wctomb): Remove function.
73255         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73257 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73259         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73260         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73261         <bruno@clisp.org>.
73262         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73264 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73266         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73267         * doc/gnulib.texi: Add section for warnings.
73269 2008-11-11  Bruno Haible  <bruno@clisp.org>
73271         * lib/sockets.h: Add a comment.
73273 2008-11-11  Karl Berry  <karl@gnu.org>
73275         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73277 2008-11-11  Eric Blake  <ebb9@byu.net>
73279         fdl.texi: avoid git symlinks
73280         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73282 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73284         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73286 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73288         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73289         (gl_WARN_ADD): Substitute $2 if literal.
73291 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73293         * m4/warning.m4: Remove.
73295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73297         * m4/warnings.m4: Almost complete rewrite. :-)
73299 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73301         * modules/warnings: New module.
73302         * m4/warnings.m4: New file.
73303         * MODULES.html.sh: Mention warnings module.
73304         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73305         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73307 2008-11-10  Eric Blake  <ebb9@byu.net>
73309         fdl.texi: make a symlink to the latest version
73310         * doc/standards.texi: Revert today's earlier change.
73311         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73312         * doc/fdl.texi: ...and replace this with a symlink to the newer
73313         fdl-1.3.texi.
73315 2008-11-10  Bruno Haible  <bruno@clisp.org>
73317         * tests/test-select-fd.c (main): Accept the result file name as fourth
73318         argument.
73319         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73320         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73322 2008-11-10  Bruno Haible  <bruno@clisp.org>
73324         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73325         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73326         as autoconf-substituted macros.
73327         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73329         gl_NETDB_H_DEFAULTS. Set these variables.
73330         * modules/netdb (Makefile.am): Substitute these variables.
73332 2008-11-10  Eric Blake  <ebb9@byu.net>
73334         standards.texi: include correct file for FDL 1.3
73335         * doc/standards.texi (GNU Free Documentation License): Change
73336         include file to pull in FDL 1.3, not 1.2.
73338         fdl.texi: revert accidental change to license
73339         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73341 2008-11-10  Bruno Haible  <bruno@clisp.org>
73343         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73344         cross-compiling guesses also when the native compile gives no result.
73346 2008-11-10  Bruno Haible  <bruno@clisp.org>
73348         * lib/spawni.c (__spawni): Force variable into the stack.
73350 2008-11-10  Bruno Haible  <bruno@clisp.org>
73352         Add support for Haiku.
73353         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73354         glibc and BeOS, but also on Haiku.
73355         * lib/fpurge.c (fpurge): Likewise.
73356         * lib/freadable.c (freadable): Likewise.
73357         * lib/freadahead.c (freadahead): Likewise.
73358         * lib/freading.c (freading): Likewise.
73359         * lib/freadptr.c (freadptr): Likewise.
73360         * lib/freadseek.c (freadptrinc): Likewise.
73361         * lib/fseeko.c (rpl_fseeko): Likewise.
73362         * lib/fseterr.c (fseterr): Likewise.
73363         * lib/fwritable.c (fwritable): Likewise.
73364         * lib/fwriting.c (fwriting): Likewise.
73365         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73367 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73369         * lib/config.charset: Treat Haiku like BeOS.
73371 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73373         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73374         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73376 2008-11-08  Bruno Haible  <bruno@clisp.org>
73378         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73379         AC_CACHE_CHECK.
73381 2008-11-08  Bruno Haible  <bruno@clisp.org>
73383         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73385 2008-11-08  Bruno Haible  <bruno@clisp.org>
73387         * tests/test-select-fd.c: New file.
73388         * tests/test-select-in.sh: New file.
73389         * tests/test-select-out.sh: New file.
73390         * tests/test-select-stdin.c: New file.
73391         * modules/select-tests (Files): Add the new files.
73392         (Depends-on): Add gettimeofday.
73393         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73394         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73395         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73397 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73398             Bruno Haible  <bruno@clisp.org>
73400         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73402 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73404         * build-aux/pmccabe2html: Added support for C++ source files.
73406 2008-11-05  Ben Pfaff  <blp@gnu.org>
73408         Fix lib/close.c build on Windows.
73409         * modules/close (Files): Add lib/w32sock.h.
73411 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73413         Accept Bison's NEWS format.
73414         * build-aux/announce-gen (print_news_deltas): Tweak
73415         $re_prefix.
73417 2008-11-04  Bruno Haible  <bruno@clisp.org>
73419         * modules/random_r (Maintainer): Add glibc.
73421 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73423         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73424         by karl@freefriends.org (Karl Berry).
73425         * doc/alloca.texi: Likewise.
73426         * doc/c-ctype.texi: Likewise.
73427         * doc/c-strcase.texi: Likewise.
73428         * doc/c-strcaseeq.texi: Likewise.
73429         * doc/c-strcasestr.texi: Likewise.
73430         * doc/c-strstr.texi: Likewise.
73431         * doc/c-strtod.texi: Likewise.
73432         * doc/c-strtold.texi: Likewise.
73433         * doc/ctime.texi: Likewise.
73434         * doc/error.texi: Likewise.
73435         * doc/fdl.texi: Likewise.
73436         * doc/gcd.texi: Likewise.
73437         * doc/getdate.texi: Likewise.
73438         * doc/gnulib-intro.texi: Likewise.
73439         * doc/gnulib-tool.texi: Likewise.
73440         * doc/gnulib.texi: Likewise.
73441         * doc/inet_ntoa.texi: Likewise.
73442         * doc/maintain.texi: Likewise.
73443         * doc/make-stds.texi: Likewise.
73444         * doc/quote.texi: Likewise.
73445         * doc/regexprops-generic.texi: Likewise.
73446         * doc/standards.texi: Likewise.
73447         * doc/verify.texi: Likewise.
73448         * doc/visibility.texi: Likewise.
73449         * doc/gnulib.texi (GNU Free Documentation License): Include
73450         fdl-1.3.texi instead of fdl.texi.
73452 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73454         * doc/fdl-1.3.texi: New file, from
73455         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73456         * modules/fdl-1.3: Add.
73457         * MODULES.html.sh: Add fdl-1.3.
73459 2008-11-03  Bruno Haible  <bruno@clisp.org>
73461         Make determination of absolute name of header file work with AIX xlc.
73462         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73463         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73464         preprocessing.
73465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73466         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73468 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73470         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73471         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73472         <ludo@gnu.org>.
73474 2008-11-02  Bruno Haible  <bruno@clisp.org>
73476         Mark 'strpbrk' obsolete.
73477         * modules/strpbrk (Status, Notice): New sections.
73478         * modules/strtok_r (Depends-on): Add strpbrk.
73480 2008-11-02  Bruno Haible  <bruno@clisp.org>
73482         Mark 'strdup' obsolete.
73483         * modules/strdup (Status, Notice): New sections.
73484         * modules/findprog (Depends-on): Add strdup.
73485         * modules/getaddrinfo (Depends-on): Likewise.
73486         * modules/localename (Depends-on): Likewise.
73487         * modules/relocatable-lib (Depends-on): Likewise.
73488         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73489         * modules/relocatable-prog (Depends-on): Likewise.
73490         * modules/trim (Depends-on): Likewise.
73491         * modules/unictype/gen-ctype (Depends-on): Likewise.
73492         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73494 2008-11-02  Bruno Haible  <bruno@clisp.org>
73496         Mark 'strcspn' obsolete.
73497         * modules/strcspn (Status, Notice): New sections.
73499 2008-11-02  Bruno Haible  <bruno@clisp.org>
73501         Mark 'rmdir' obsolete.
73502         * modules/rmdir (Status, Notice): New sections.
73503         * modules/clean-temp (Depends-on): Add rmdir.
73504         * modules/openat (Depends-on): Likewise.
73506 2008-11-02  Bruno Haible  <bruno@clisp.org>
73508         Mark 'raise' obsolete.
73509         * modules/raise (Status, Notice): New sections.
73510         (Include): Specify <signal.h>.
73511         * modules/stdio (Depends-on): Add raise.
73512         * modules/write (Depends-on): Likewise.
73514 2008-11-02  Bruno Haible  <bruno@clisp.org>
73516         Mark 'memset' obsolete.
73517         * modules/memset (Status, Notice): New sections.
73519 2008-11-02  Bruno Haible  <bruno@clisp.org>
73521         Mark 'memmove' obsolete.
73522         * modules/memmove (Status, Notice): New sections.
73523         * modules/argp (Depends-on): Add memmove.
73524         * modules/argz (Depends-on): Likewise.
73525         * modules/canonicalize (Depends-on): Likewise.
73526         * modules/canonicalize-lgpl (Depends-on): Likewise.
73527         * modules/fts (Depends-on): Likewise.
73528         * modules/getcwd (Depends-on): Likewise.
73529         * modules/human (Depends-on): Likewise.
73530         * modules/regex (Depends-on): Likewise.
73531         * modules/striconveh (Depends-on): Likewise.
73532         * modules/trim (Depends-on): Likewise.
73533         * modules/unistr/u8-move (Depends-on): Likewise.
73534         * modules/unistr/u16-move (Depends-on): Likewise.
73535         * modules/unistr/u32-move (Depends-on): Likewise.
73537 2008-11-02  Bruno Haible  <bruno@clisp.org>
73539         Mark 'memcpy' obsolete.
73540         * modules/memcpy (Status, Notice): New sections.
73542 2008-11-02  Bruno Haible  <bruno@clisp.org>
73544         Mark 'memcmp' obsolete.
73545         * modules/memcmp (Status, Notice): New sections.
73546         * modules/argmatch (Depends-on): Add memchr.
73547         * modules/backupfile (Depends-on): Likewise.
73548         * modules/c-strcasestr (Depends-on): Likewise.
73549         * modules/crypto/des (Depends-on): Likewise.
73550         * modules/csharpcomp (Depends-on): Likewise.
73551         * modules/fnmatch (Depends-on): Likewise.
73552         * modules/git-merge-changelog (Depends-on): Likewise.
73553         * modules/isnand (Depends-on): Likewise.
73554         * modules/isnand-nolibm (Depends-on): Likewise.
73555         * modules/isnanf (Depends-on): Likewise.
73556         * modules/isnanf-nolibm (Depends-on): Likewise.
73557         * modules/isnanl (Depends-on): Likewise.
73558         * modules/isnanl-nolibm (Depends-on): Likewise.
73559         * modules/mbchar (Depends-on): Likewise.
73560         * modules/memcoll (Depends-on): Likewise.
73561         * modules/quotearg (Depends-on): Likewise.
73562         * modules/regex (Depends-on): Likewise.
73563         * modules/relocatable-prog (Depends-on): Likewise.
73564         * modules/same (Depends-on): Likewise.
73565         * modules/signbit (Depends-on): Likewise.
73566         * modules/strcasestr-simple (Depends-on): Likewise.
73567         * modules/unictype/gen-ctype (Depends-on): Likewise.
73568         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73569         * modules/uniname/uniname (Depends-on): Likewise.
73570         * modules/unistr/u8-cmp (Depends-on): Likewise.
73572 2008-11-02  Bruno Haible  <bruno@clisp.org>
73574         Mark 'memchr' obsolete.
73575         * modules/memchr (Status, Notice): New sections.
73576         * modules/argp (Depends-on): Add memchr.
73577         * modules/base64 (Depends-on): Likewise.
73578         * modules/c-strcasestr (Depends-on): Likewise.
73579         * modules/chdir-long (Depends-on): Likewise.
73580         * modules/fnmatch (Depends-on): Likewise.
73581         * modules/getsubopt (Depends-on): Likewise.
73582         * modules/git-merge-changelog (Depends-on): Likewise.
73583         * modules/glob (Depends-on): Likewise.
73584         * modules/strcasestr-simple (Depends-on): Likewise.
73585         * modules/strnlen (Depends-on): Likewise.
73587 2008-11-02  Bruno Haible  <bruno@clisp.org>
73589         Mark 'atexit' obsolete.
73590         * modules/atexit (Status, Notice): New sections.
73591         * modules/chdir-long (Depends-on): Add atexit.
73592         * modules/wait-process (Depends-on): Likewise.
73594 2008-11-02  Bruno Haible  <bruno@clisp.org>
73596         * gnulib-tool: New option --with-obsolete.
73597         (func_usage): Document it.
73598         (func_modules_transitive_closure): Drop obsolete dependencies if
73599         incobsolete is not true.
73600         (func_import): Read and save the incobsolete variable to the cache.
73602 2008-11-02  Bruno Haible  <bruno@clisp.org>
73604         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73605         * gnulib-tool: New option --extract-status.
73606         (func_usage): Document it.
73607         (sed_extract_prog): Recognize it.
73608         (func_get_status): New function.
73610 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73612         * modules/sockets (License): Change from LGPL to LGPLv2+.
73614 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73616         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73618 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73620         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73621         Mention times and sys_times.
73622         * modules/sys_times, modules/sys_times-tests: New modules.
73623         * modules/times, modules/times-tests: Likewise
73624         * m4/sys_times_h.m4: New file.
73625         * lib/sys_times.in.h: Likewise
73626         * lib/times.c: Likewise.
73627         * tests/test-sys_times.c: Likewise.
73628         * tests/test-times.c: Likewise.
73629         * doc/posix-headers/sys_times.texi: Update.
73630         * doc/posix-functions/times.texi: Update.
73632 2008-10-28  Jim Meyering  <meyering@redhat.com>
73634         * modules/tempname (Depends-on): Add lstat.
73636         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73638 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73640         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73641         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73642         using idiom used elsewhere in gnulib.
73644 2008-10-27  Jim Meyering  <meyering@redhat.com>
73646         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73648 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73650         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73651         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73652         programs.
73653         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73655 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73657         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73659 2008-10-27  Bruno Haible  <bruno@clisp.org>
73661         * tests/test-lstat.c: Include <stdio.h>.
73663 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73665         * modules/lstat-tests: New module.
73666         * tests/test-lstat.c: New file.
73668 2008-10-26  Jim Meyering  <meyering@redhat.com>
73670         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73672 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73673             Bruno Haible  <bruno@clisp.org>
73675         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73676         * modules/configmake (Include): Add a note that the include must come
73677         after all system headers.
73678         * lib/javaversion.c: Include configmake.h after all other includes.
73680 2008-10-26  Bruno Haible  <bruno@clisp.org>
73682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73683         HAVE_STRUCT_RANDOM_DATA to 1.
73684         (gl_STDLIB_H): Simplify.
73686 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73688         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73689         substitute HAVE_STRUCT_RANDOM_DATA.
73690         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73691         random_data.
73692         * modules/stdlib (Makefile.am): Substitute
73693         HAVE_STRUCT_RANDOM_DATA.
73695 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73697         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73698         * doc/gnulib-intro.texi (Copyright): Likewise.
73700 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73702         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73703         findings.
73705 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73706             Bruno Haible  <bruno@clisp.org>
73708         * lib/unistd.in.h: Include <winsock2.h>.
73709         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73710         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73711         Provide dummy declarations.
73712         (gethostname): Override.
73713         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73714         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73715         gl_PREREQ_SYS_H_WINSOCK2.
73716         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73717         * doc/posix-functions/gethostname.texi: More details.
73719 2008-10-25  Bruno Haible  <bruno@clisp.org>
73721         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73722         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73723         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73725         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73726         here ...
73727         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73728         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73729         gl_UNISTD_H_DEFAULTS.
73731 2008-10-25  Eric Blake  <ebb9@byu.net>
73733         signbit: avoid spurious compiler failure
73734         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73735         declarations inside function.
73737 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73738             Bruno Haible  <bruno@clisp.org>
73740         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73741         * modules/random_r (Depends-on): Add stdint.
73743 2008-10-24  Bruno Haible  <bruno@clisp.org>
73745         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73746         Eggert.
73747         * modules/strerror (License): Likewise.
73749 2008-10-24  Jim Meyering  <meyering@redhat.com>
73751         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73752         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73754 2008-10-24  Eric Blake  <ebb9@byu.net>
73756         getgroups: fix compilation when getgroups is available
73757         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73758         but with <config.h> override of getgroups disabled.
73760 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73762         * doc/gnulib.texi (Header files): Add note about C++ problems.
73763         Explained by Bruno Haible <bruno@clisp.org>.
73765 2008-10-23  Bruno Haible  <bruno@clisp.org>
73767         Define a dummy SA_NODEFER macro on Interix.
73768         * lib/signal.in.h (SA_NODEFER): Define fallback.
73769         Reported by Aleksey Cheusov <cheusov@tut.by> via
73770         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73772 2008-10-23  Bruno Haible  <bruno@clisp.org>
73774         * modules/freadahead (License): Change to LGPLv2+.
73775         Suggested by Simon Josefsson.
73777 2008-10-23  Jim Meyering  <meyering@redhat.com>
73779         random_r: new module
73780         * modules/random_r: New file.
73781         * m4/random_r.m4: New file.
73782         * lib/random_r.c: New file, from glibc.
73783         * modules/random_r-tests: New file.
73784         * tests/test-random_r.c: New file.
73785         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73786          Declare.
73787         (RAND_MAX): Define.
73788         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73789         * modules/stdlib: Substitute them, too.
73790         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73791         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73792         * doc/glibc-functions/random_r.texi: Likewise.
73793         * doc/glibc-functions/setstate_r.texi: Likewise.
73794         * doc/glibc-functions/srandom_r.texi: Likewise.
73795         * config/srclist.txt: Mention it.
73797 2008-10-23  David Lutterkort  <lutter@redhat.com>
73799         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73800         link requirement
73802 2008-10-23  Jim Meyering  <meyering@redhat.com>
73804         selinux-h: mark parameters of stub functions as intentionally unused
73805         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73806         * lib/se-context.in.h: Likewise.
73808 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73810         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73812 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73814         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73816 2008-10-22  Eric Blake  <ebb9@byu.net>
73818         glthread/thread: avoid compiler warning
73819         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73820         Add unreachable abort to silence compiler.
73822 2008-10-22  Eric Blake  <ebb9@byu.net>
73824         netdb: also supply struct addrinfo for cygwin 1.5.x
73825         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73826         older cygwin.
73827         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73828         cygwin.
73829         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73831 2008-10-22  Bruno Haible  <bruno@clisp.org>
73833         * users.txt: Update entry about pspp.
73835 2008-10-21  Bruno Haible  <bruno@clisp.org>
73837         Simplification.
73838         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73839         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73841         Simplification.
73842         * lib/ioctl.c (ioctl): Don't undefine.
73843         * lib/socket.c (socket): Don't undefine.
73845         Remove unused module indicator macros.
73846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73847         GNULIB_$1 as a C macro.
73849         * doc/posix-functions/close.texi: Undo last change.
73850         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73851         Windows platforms.
73853 2008-10-21  Bruno Haible  <bruno@clisp.org>
73855         Add gethostname() declaration to <unistd.h>.
73856         * lib/unistd.in.h (gethostname): New declaration.
73857         * lib/gethostname.c: Include <unistd.h>.
73858         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73859         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73861         and HAVE_GETHOSTNAME.
73862         * modules/gethostname (Depends-on): Add unistd.
73863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73864         (Include): Specify <unistd.h>.
73865         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73866         HAVE_GETHOSTNAME.
73867         * tests/test-gethostname.c: Include <unistd.h> first.
73869 2008-10-21  Bruno Haible  <bruno@clisp.org>
73871         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73872         * modules/select-tests (Depends-on): Likewise.
73873         Reported by Simon Josefsson.
73875 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73877         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73878         * lib/accept.c: New file, based on winsock.c.
73879         * lib/bind.c: New file, based on winsock.c.
73880         * lib/connect.c: New file, based on winsock.c.
73881         * lib/getpeername.c: New file, based on winsock.c.
73882         * lib/getsockname.c: New file, based on winsock.c.
73883         * lib/getsockopt.c: New file, based on winsock.c.
73884         * lib/ioctl.c: New file, based on winsock.c.
73885         * lib/listen.c: New file, based on winsock.c.
73886         * lib/recv.c: New file, based on winsock.c.
73887         * lib/recvfrom.c: New file, based on winsock.c.
73888         * lib/send.c: New file, based on winsock.c.
73889         * lib/sendto.c: New file, based on winsock.c.
73890         * lib/setsockopt.c: New file, based on winsock.c.
73891         * lib/shutdown.c: New file, based on winsock.c.
73892         * lib/socket.c: New file, based on winsock.c.
73893         * lib/w32sock.h: New file, based on winsock.c.
73894         * lib/winsock.c: Remove file.
73895         * modules/accept: Likewise.
73896         * modules/bind: Likewise.
73897         * modules/connect: Likewise.
73898         * modules/getpeername: Likewise.
73899         * modules/getsockname: Likewise.
73900         * modules/getsockopt: Likewise.
73901         * modules/ioctl: Likewise.
73902         * modules/listen: Likewise.
73903         * modules/recv: Likewise.
73904         * modules/recvfrom: Likewise.
73905         * modules/send: Likewise.
73906         * modules/sendto: Likewise.
73907         * modules/setsockopt: Likewise.
73908         * modules/shutdown: Likewise.
73909         * modules/socket: Use socket.c instead of winsock.c.
73910         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
73911         * doc/posix-functions/accept.texi: Doc fix.
73912         * doc/posix-functions/bind.texi: Doc fix.
73913         * doc/posix-functions/close.texi: Doc fix.
73914         * doc/posix-functions/connect.texi: Doc fix.
73915         * doc/posix-functions/getpeername.texi: Doc fix.
73916         * doc/posix-functions/getsockname.texi: Doc fix.
73917         * doc/posix-functions/getsockopt.texi: Doc fix.
73918         * doc/posix-functions/ioctl.texi: Doc fix.
73919         * doc/posix-functions/listen.texi: Doc fix.
73920         * doc/posix-functions/recv.texi: Doc fix.
73921         * doc/posix-functions/recvfrom.texi: Doc fix.
73922         * doc/posix-functions/send.texi: Doc fix.
73923         * doc/posix-functions/sendto.texi: Doc fix.
73924         * doc/posix-functions/setsockopt.texi: Doc fix.
73925         * doc/posix-functions/shutdown.texi: Doc fix.
73926         * doc/posix-functions/socket.texi: Doc fix.
73928 2008-10-20  Bruno Haible  <bruno@clisp.org>
73930         Take into account the role of SIGABRT_COMPAT on Windows 2008.
73931         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
73932         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
73933         as an alias for SIGABRT.
73934         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
73935         (sigaction): Map it to SIGABRT.
73936         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
73938 2008-10-20  Bruno Haible  <bruno@clisp.org>
73940         * lib/fts.c: Don't include lstat.h.
73941         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
73943         Move the lstat() declaration to <sys/stat.h>.
73944         * lib/lstat.h: Remove file.
73945         * lib/sys_stat.in.h: Add special invocation convention.
73946         (lstat): New declaration.
73947         * lib/lstat.c (orig_lstat): New function.
73948         (rpl_lstat): Use orig_lstat instead of lstat.
73949         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
73950         AC_C_INLINE. Set REPLACE_LSTAT.
73951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
73952         and REPLACE_LSTAT.
73953         * modules/lstat (Files): Remove lib/lstat.h.
73954         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73955         (Include): Specify <sys/stat.h> instead of lstat.h.
73956         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
73957         REPLACE_LSTAT.
73958         * NEWS: Mention the change.
73960 2008-10-20  Bruno Haible  <bruno@clisp.org>
73962         * modules/posix_spawn-tests: New file.
73963         * tests/test-posix_spawn3.c: New file.
73965 2008-10-20  Bruno Haible  <bruno@clisp.org>
73967         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
73968         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73969         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
73970         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73971         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
73973 2008-10-20  Bruno Haible  <bruno@clisp.org>
73975         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
73976         of posix_spawn on AIX 5.3.
73978 2008-10-20  Bruno Haible  <bruno@clisp.org>
73980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
73982 2008-10-20  Bruno Haible  <bruno@clisp.org>
73984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
73985         of AC_LANG_PROGRAM.
73987 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73989         * lib/netdb.in.h: Don't define GNU specific constants until they
73990         are supported or needed.  Reported by Bruno Haible
73991         <bruno@clisp.org>.
73993 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73995         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
73997 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73999         * lib/getaddrinfo.h: Remove file.
74000         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74001         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74002         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74003         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74004         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74005         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74006         * tests/test-getaddrinfo.c: Likewise.
74007         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74008         * NEWS: Mention change.
74010 2008-10-19  Bruno Haible  <bruno@clisp.org>
74012         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74014 2008-10-19  Bruno Haible  <bruno@clisp.org>
74016         * lib/wait-process.c: Include simply <sys/wait.h>.
74017         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74018         WIFSTOPPED): Remove fallback definitions.
74019         * modules/wait-process (Depends-on): Add sys_wait.
74021         New module 'sys_wait'.
74022         * modules/sys_wait: New file.
74023         * lib/sys_wait.in.h: New file, partially copied from
74024         lib/wait-process.c.
74025         * m4/sys_wait_h.m4: New file.
74026         * doc/posix-headers/sys_wait.texi: Mention the new module.
74028 2008-10-19  Bruno Haible  <bruno@clisp.org>
74030         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74032 2008-10-19  Bruno Haible  <bruno@clisp.org>
74034         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74035         * lib/wait-process.c (WAIT_T): Remove type.
74036         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74037         (wait_subprocess): Update.
74039 2008-10-19  Bruno Haible  <bruno@clisp.org>
74041         New module 'atoll'.
74042         * modules/atoll: New file.
74043         * lib/stdlib.in.h (atoll): New declaration.
74044         * lib/atoll.c: New file, from glibc with modifications.
74045         * m4/atoll.m4: New file.
74046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74047         HAVE_ATOLL.
74048         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74049         * doc/posix-functions/atoll.texi: Mention the new module.
74051 2008-10-19  Bruno Haible  <bruno@clisp.org>
74053         Add strtoull() declaration to <stdlib.h>.
74054         * lib/stdlib.in.h (strtoull): New declaration.
74055         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74056         Set HAVE_STRTOULL.
74057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74058         HAVE_STRTOULL.
74059         * modules/strtoull (Depends-on): Add stdlib.
74060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74061         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74062         HAVE_STRTOULL.
74064 2008-10-19  Bruno Haible  <bruno@clisp.org>
74066         Add strtoll() declaration to <stdlib.h>.
74067         * lib/stdlib.in.h (strtoll): New declaration.
74068         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74069         Set HAVE_STRTOLL.
74070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74071         HAVE_STRTOLL.
74072         * modules/strtoll (Depends-on): Add stdlib.
74073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74074         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74076 2008-10-19  Bruno Haible  <bruno@clisp.org>
74078         * modules/bcopy (Depends-on): Add strings.
74079         (Include): Specify <strings.h>.
74081 2008-10-19  Bruno Haible  <bruno@clisp.org>
74083         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74085 2008-10-19  Bruno Haible  <bruno@clisp.org>
74087         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74088         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74089         mingw.
74091 2008-10-19  Bruno Haible  <bruno@clisp.org>
74093         * lib/atanl.c: Don't include isnanl.h.
74094         * lib/cosl.c: Likewise.
74095         * lib/ldexpl.c: Likewise.
74096         * lib/logl.c: Likewise.
74097         * lib/sinl.c: Likewise.
74098         * lib/sqrtl.c: Likewise.
74099         * lib/tanl.c: Likewise.
74101         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74102         * lib/isnanf.h: Remove file.
74103         * lib/isnand.h: Remove file.
74104         * lib/isnanl.h: Remove file.
74105         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74106         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74107         macros.
74108         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74109         HAVE_ISNANF, don't define it as a C macro.
74110         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74111         HAVE_ISNAND, don't define it as a C macro.
74112         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74113         HAVE_ISNANL, don't define it as a C macro.
74114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74115         HAVE_ISNAN[FDL].
74116         * modules/isnanf (Files): Remove lib/isnanf.h.
74117         (Depends-on): Add math.
74118         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74119         (Include): Specify <math.h> instead of isnanf.h.
74120         * modules/isnand (Files): Remove lib/isnand.h.
74121         (Depends-on): Add math.
74122         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74123         (Include): Specify <math.h> instead of isnand.h.
74124         * modules/isnanl (Files): Remove lib/isnanl.h.
74125         (Depends-on): Add math.
74126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74127         (Include): Specify <math.h> instead of isnanl.h.
74128         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74129         HAVE_ISNAN[FDL].
74130         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74131         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74132         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74133         * NEWS: Mention the change.
74135 2008-10-18  Bruno Haible  <bruno@clisp.org>
74137         Add getusershell(), setusershell(), endusershell() declarations to
74138         <unistd.h>.
74139         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74140         declarations.
74141         * lib/getusershell.c: Include unistd.h.
74142         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74143         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74144         HAVE_GETUSERSHELL.
74145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74146         and HAVE_GETUSERSHELL.
74147         * modules/getusershell (Depends-on): Add unistd, extensions.
74148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74149         (Include): Specify <unistd.h>.
74150         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74151         HAVE_GETUSERSHELL.
74153 2008-10-18  Bruno Haible  <bruno@clisp.org>
74155         Add a getloadavg() declaration to <stdlib.h>.
74156         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74157         getloadavg declaration.
74158         (getloadavg): New declaration.
74159         * lib/getloadavg.c: Include <stdlib.h> first.
74160         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74161         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74162         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74164         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74165         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74167         (Include): Specify <stdlib.h>.
74168         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74169         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74171 2008-10-18  Bruno Haible  <bruno@clisp.org>
74173         * lib/dirchownmod.c: Don't include lchmod.h.
74175         Move the lchmod() declaration to <sys/stat.h>.
74176         * lib/lchmod.h: Remove file.
74177         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74178         (lchmod): New declaration, moved here from lib/lchown.h.
74179         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74180         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74182         and HAVE_LCHMOD.
74183         * modules/lchmod (Files): Remove lib/lchmod.h.
74184         (Depends-on): Add sys_stat, extensions.
74185         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74186         (Include): Specify <sys/stat.h> instead of lchmod.h.
74187         * modules/sys_stat (Depends-on): Add link-warning.
74188         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74189         definition of GL_LINK_WARNING.
74190         * NEWS: Mention the change.
74192 2008-10-18  Bruno Haible  <bruno@clisp.org>
74194         * lib/fchdir.c: Don't include dirfd.h.
74195         * lib/fts.c: Likewise.
74196         * lib/getcwd.c: Likewise.
74197         * lib/glob.c: Likewise.
74199         Move the dirfd() declaration to <dirent.h>.
74200         * lib/dirfd.h: Remove file.
74201         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74202         (dirfd): New declaration.
74203         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74204         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74205         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74206         HAVE_DECL_DIRFD.
74207         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74208         HAVE_DECL_DIRFD.
74209         * modules/dirfd (Files): Remove lib/dirfd.h.
74210         (Depends-on): Add dirent, extensions.
74211         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74212         (Include): Specify <dirent.h> instead of dirfd.h.
74213         * modules/dirent (Depends-on): Add link-warning.
74214         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74215         definition of GL_LINK_WARNING.
74216         * NEWS: Mention the change.
74218 2008-10-18  Bruno Haible  <bruno@clisp.org>
74220         Move the euidaccess() declaration to <unistd.h>.
74221         * lib/euidaccess.h: Remove file.
74222         * lib/unistd.in.h (euidaccess): New declaration.
74223         * lib/euidaccess.c: Don't include euidaccess.h.
74224         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74225         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74227         and HAVE_EUIDACCESS.
74228         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74229         (Depends-on): Add unistd.
74230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74231         (Include): Specify <unistd.h> instead of euidaccess.h.
74232         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74233         HAVE_EUIDACCESS.
74234         * NEWS: Mention the change.
74236 2008-10-18  Bruno Haible  <bruno@clisp.org>
74238         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74240         Move the getdomainname() declaration to <unistd.h>.
74241         * lib/getdomainname.h: Remove file.
74242         * lib/unistd.in.h (getdomainname): New declaration.
74243         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74244         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74245         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74246         HAVE_GETDOMAINNAME.
74247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74248         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74249         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74250         (Depends-on): Add unistd, extensions.
74251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74252         (Includes): Specify <unistd.h> instead of getdomainname.h.
74253         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74254         HAVE_GETDOMAINNAME.
74255         * NEWS: Mention the change.
74257 2008-10-18  Bruno Haible  <bruno@clisp.org>
74259         * modules/dirent: New file.
74260         * m4/dirent_h.m4: New file.
74261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74262         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74263         * modules/fchdir (Files): Remove lib/dirent.in.h.
74264         (Depends-on): Add dirent.
74265         (Makefile.am): Move rules to modules/dirent.
74266         * doc/posix-headers/dirent.texi: Mention the new module.
74268 2008-10-18  Bruno Haible  <bruno@clisp.org>
74270         Avoid -Wunused-parameter warnings in public gnulib header files.
74271         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74272         macro.
74273         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74275 2008-10-18  Bruno Haible  <bruno@clisp.org>
74277         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74278         * doc/glibc-functions/error.texi: Mention the module 'error'.
74279         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74280         * doc/glibc-functions/getdomainname.texi: Mention the module
74281         'getdomainname'.
74282         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74283         * doc/glibc-functions/getpagesize.texi: Mention the module
74284         'getpagesize'.
74285         * doc/glibc-functions/getusershell.texi: Mention the module
74286         'getusershell'.
74287         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74288         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74289         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74290         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74291         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74292         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74293         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74294         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74295         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74296         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74297         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74298         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74299         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74300         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74302 2008-10-17  Bruno Haible  <bruno@clisp.org>
74304         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74305         HP-UX and IRIX, use -0.0L.
74306         * tests/test-ceill.c (minus_zero): Likewise.
74307         * tests/test-floorl.c (minus_zero): Likewise.
74308         * tests/test-frexpl.c (minus_zero): Likewise.
74309         * tests/test-isnan.c (minus_zerol): Likewise.
74310         * tests/test-isnanl.h (minus_zero): Likewise.
74311         * tests/test-ldexpl.c (minus_zero): Likewise.
74312         * tests/test-roundl.c (minus_zero): Likewise.
74313         * tests/test-signbit.c (minus_zerol): Likewise.
74314         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74315         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74316         * tests/test-truncl.c (minus_zero): Likewise.
74317         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74318         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74319         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74320         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74322 2008-10-17  Bruno Haible  <bruno@clisp.org>
74324         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74325         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74326         that it gets activated only for gcc >= 3.0.
74327         * lib/dirent.in.h: Likewise.
74328         * lib/errno.in.h: Likewise.
74329         * lib/fcntl.in.h: Likewise.
74330         * lib/float.in.h: Likewise.
74331         * lib/iconv.in.h: Likewise.
74332         * lib/inttypes.in.h: Likewise.
74333         * lib/locale.in.h: Likewise.
74334         * lib/math.in.h: Likewise.
74335         * lib/netdb.in.h: Likewise.
74336         * lib/netinet_in.in.h: Likewise.
74337         * lib/search.in.h: Likewise.
74338         * lib/signal.in.h: Likewise.
74339         * lib/spawn.in.h: Likewise.
74340         * lib/stdarg.in.h: Likewise.
74341         * lib/stdint.in.h: Likewise.
74342         * lib/stdio.in.h: Likewise.
74343         * lib/stdlib.in.h: Likewise.
74344         * lib/string.in.h: Likewise.
74345         * lib/strings.in.h: Likewise.
74346         * lib/sys_file.in.h: Likewise.
74347         * lib/sys_ioctl.in.h: Likewise.
74348         * lib/sys_select.in.h: Likewise.
74349         * lib/sys_socket.in.h: Likewise.
74350         * lib/sys_stat.in.h: Likewise.
74351         * lib/sys_time.in.h: Likewise.
74352         * lib/sysexits.in.h: Likewise.
74353         * lib/time.in.h: Likewise.
74354         * lib/unistd.in.h: Likewise.
74355         * lib/wchar.in.h: Likewise.
74356         * lib/wctype.in.h: Likewise.
74357         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74359 2008-10-17  Jim Meyering  <meyering@redhat.com>
74361         ignore-value: don't depend on inline module
74362         * modules/ignore-value (Depends-on): Remove 'inline'.
74363         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74364         Suggestion from Bruno Haible.
74366 2008-10-17  Bruno Haible  <bruno@clisp.org>
74368         New implementation of condition variables for Win32.
74369         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74370         (gl_linked_waitqueue_t): New type.
74371         (gl_cond_t): Use it.
74372         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74373         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74374         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74375         (glthread_cond_init_func, glthread_cond_wait_func,
74376         glthread_cond_timedwait_func, glthread_cond_signal_func,
74377         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74378         Reimplemented on the basis of gl_linked_waitqueue_t.
74379         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74380         gl_waitqueue_t.
74381         (gl_rwlock_t): Update.
74382         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74384 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74386         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74387         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74389 2008-10-17  Jim Meyering  <meyering@redhat.com>
74391         ignore-value: new module
74392         * modules/ignore-value: New file.
74393         * lib/ignore-value.h: New file.
74394         * MODULES.html.sh (Compiler warning management): New section,
74395         just for this module.  More to come.
74397 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74399         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74400         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74401         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74403 2008-10-16  Jim Meyering  <meyering@redhat.com>
74405         openat-die.c: avoid 'no previous prototype' warning
74406         * lib/openat-die.c: Include "openat.h".
74407         Reported by Reuben Thomas <rrt@sc3d.org>.
74409 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74411         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74412         * lib/netdb.in.h: Fix typo.
74413         Reported by Bruno Haible  <bruno@clisp.org>
74415         * lib/netdb.in.h: Include sys/socket.h for platforms without
74416         netdb.h, to get structures like hostent on MinGW.
74417         * modules/netdb (Depends-on): Add sys_socket.
74419 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74421         * modules/netdb, modules/netdb-tests: New file.
74422         * m4/netdb_h.m4: New file.
74423         * lib/netdb.in.h: Add, currently just an empty file pending
74424         definitions.
74425         * tests/test-netdb.c: New file.
74426         * doc/posix-headers/netdb.texi: Mention that we replace it if
74427         needed.
74428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74429         netdb.
74431 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74433         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74434         with code.
74436 2008-10-13  Bruno Haible  <bruno@clisp.org>
74438         * lib/glthread/cond.c (glthread_cond_wait_func,
74439         glthread_cond_timedwait_func): Add a comment.
74441 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74443         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74444         * tests/test-select.c: Likewise,
74446 2008-10-13  Bruno Haible  <bruno@clisp.org>
74448         * lib/glthread/cond.c (glthread_cond_wait_func,
74449         glthread_cond_timedwait_func): Fix variable name.
74450         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74452 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74454         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74456         struct sockaddr.sa_len.
74457         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74459 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74461         * build-aux/pmccabe2html: Add css and css_url parameters.
74463 2008-10-12  Bruno Haible  <bruno@clisp.org>
74465         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74466         calling aclx_get.
74467         Reported by Rainer Tammer <tammer@tammer.net>.
74469 2008-10-12  Bruno Haible  <bruno@clisp.org>
74471         Use msvcrt aware primitives for creation/termination of Win32 threads.
74472         * lib/glthread/thread.c: Include <process.h>.
74473         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74474         (wrapper_func): Update signature.
74475         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74477 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74478             Bruno Haible  <bruno@clisp.org>
74480         Provide a Win32 implementation of the 'cond' module.
74481         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74482         * lib/glthread/cond.c (glthread_cond_init_func,
74483         glthread_cond_wait_func, glthread_cond_timedwait_func,
74484         glthread_cond_signal_func, glthread_cond_broadcast_func,
74485         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74486         * modules/cond (Dependencies): Add gettimeofday.
74488 2008-10-11  Bruno Haible  <bruno@clisp.org>
74490         Make sleep work on older versions of mingw.
74491         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74492         only whether it exists.
74493         * doc/posix-functions/sleep.texi: Mention the problem with older
74494         versions of mingw.
74496 2008-10-11  Bruno Haible  <bruno@clisp.org>
74498         New module 'shutdown'.
74499         * modules/shutdown: New file.
74500         * lib/sys_socket.in.h (shutdown): New declaration.
74501         * lib/winsock.c (shutdown): New function.
74502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74503         GNULIB_SHUTDOWN.
74504         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74505         * doc/posix-functions/shutdown.texi: Document the new module.
74507 2008-10-11  Jim Meyering  <meyering@redhat.com>
74509         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74511 2008-10-11  Bruno Haible  <bruno@clisp.org>
74513         New module 'fclose'.
74514         * modules/fclose: New file.
74515         * lib/stdio.in.h (fclose): New declaration.
74516         * lib/fclose.c: New file.
74517         * m4/fclose.m4: New file.
74518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74519         REPLACE_FCLOSE.
74520         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74521         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74522         REPLACE_FCLOSE.
74523         * modules/close (Depends-on): fclose.
74524         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74526 2008-10-11  Bruno Haible  <bruno@clisp.org>
74528         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74529         set errno and don't call _close.
74531 2008-10-10  Bruno Haible  <bruno@clisp.org>
74533         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74534         ACL, not afterwards. Fixes test failure on Cygwin.
74536 2008-10-09  Ben Pfaff  <blp@gnu.org>
74538         * build-aux/announce-gen: Fix gnulib version related part of usage
74539         message.  Die with a useful error message if no tarballs are
74540         found.
74542 2008-10-10  Jim Meyering  <meyering@redhat.com>
74544         bootstrap: use git's --depth=N option only if it's supported
74545         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74546         recognize the --depth option.  Reported by Pádraig Brady.
74548 2008-10-09  Bruno Haible  <bruno@clisp.org>
74550         New module 'ioctl'.
74551         * modules/ioctl: New file.
74552         * lib/sys_socket.in.h (ioctl): Remove declaration.
74553         * lib/winsock.c: Include <sys/ioctl.h>.
74554         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74555         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74556         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74557         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74558         * doc/posix-functions/ioctl.texi: Mention the new module.
74560 2008-10-09  Bruno Haible  <bruno@clisp.org>
74562         New module 'sys_ioctl'.
74563         * lib/sys_ioctl.in.h: New file.
74564         * m4/sys_ioctl_h.m4: New file.
74565         * modules/sys_ioctl: New file.
74566         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74568 2008-10-09  Bruno Haible  <bruno@clisp.org>
74570         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74571         * lib/winsock.c: Include <stdarg.h>.
74572         (rpl_ioctl): Change to second argument 'int' and then varargs.
74574 2008-10-09  Bruno Haible  <bruno@clisp.org>
74576         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74577         when the sys_socket module is present and the system has <winsock2.h>.
74579 2008-10-09  Bruno Haible  <bruno@clisp.org>
74581         * doc/posix-functions/close.texi: Mention module 'close' instead of
74582         module 'sys_socket'.
74584 2008-10-09  Bruno Haible  <bruno@clisp.org>
74586         * doc/glibc-headers/sys_ioctl.texi: New file.
74587         * doc/gnulib.texi: Include it.
74589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74590             Bruno Haible  <bruno@clisp.org>
74592         Combine the two replacements of 'close'.
74593         * lib/sys_socket.in.h (close): Define to a reminder to include
74594         <unistd.h>.
74595         (_gl_close_fd_maybe_socket): New declaration.
74596         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74597         * lib/winsock.c (close): Remove undefinition.
74598         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74599         needed for the gnulib module 'close'.
74600         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74601         define to an error symbol or to a warning, if suitable.
74602         * lib/close.c: Include <sys/socket.h>.
74603         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74604         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74605         UNISTD_H_HAVE_WINSOCK2_H.
74606         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74608         UNISTD_H_HAVE_WINSOCK2_H.
74609         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74610         (configure.ac): Set a module indicator.
74611         (Makefile.am): Substitute GNULIB_CLOSE.
74612         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74613         * modules/poll-tests (Depends-on): Add close.
74614         * modules/select-tests (Depends-on): Likewise.
74616 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74617             Bruno Haible  <bruno@clisp.org>
74619         New module 'close'.
74620         * modules/close: New file.
74621         * lib/unistd.in.h (close): Move declaration out of the
74622         FCHDIR_REPLACEMENT scope.
74623         (_gl_unregister_fd): New declaration.
74624         * lib/close.c: New file.
74625         * lib/fchdir.c (rpl_close): Remove function.
74626         * m4/close.m4: New file.
74627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74628         close.
74629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74630         REPLACE_CLOSE.
74631         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74632         REPLACE_CLOSE.
74633         * modules/fchdir (Depends-on): Add close.
74635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74636             Bruno Haible  <bruno@clisp.org>
74638         * lib/fcntl.in.h (open): Simplify conditionals.
74639         (_gl_register_fd): New declaration.
74640         * lib/fchdir.c (rpl_open): Remove function.
74641         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74642         also.
74643         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74645         open.
74647 2008-10-09  Jim Meyering  <meyering@redhat.com>
74649         GNUmakefile: use the more name-space-friendly "_version"
74650         * top/GNUmakefile (_dummy): Update.
74651         (_version): Rename from "version".
74653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74654             Bruno Haible  <bruno@clisp.org>
74656         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74657         rpl_close.
74658         (_gl_register_fd): New function, extracted from rpl_open.
74659         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74660         (rpl_open, rpl_opendir): Use _gl_register_fd.
74662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74664         Fix organization of 'open' replacement.
74665         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74666         (gl_FUNC_OPEN): Use it.
74667         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74669 2008-10-08  Bruno Haible  <bruno@clisp.org>
74671         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74673 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74675         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74676         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74677         listen).
74679 2008-10-08  Eric Blake  <ebb9@byu.net>
74681         GNUmakefile: add 'make version' target
74682         * top/GNUmakefile (_curr-ver): Split version update rules...
74683         (version): ...into a target.
74685 2008-10-07  Bruno Haible  <bruno@clisp.org>
74687         Use a more portable replacement expression for -0.0L.
74688         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74689         instead of -0.0L. Fix m4 quotation.
74691         * tests/test-signbit.c: Include <float.h>.
74692         (minus_zero): New variable.
74693         (test_signbitl): Use minus_zero instead of -zero.
74694         * modules/signbit-tests (Depends-on): Add float.
74696         * tests/test-ceill.c: Include <float.h>.
74697         (zero): Remove variable.
74698         (minus_zero): New variable.
74699         (main): Use minus_zero instead of -zero.
74700         * modules/ceill-tests (Depends-on): Add float.
74702         * tests/test-floorl.c: Include <float.h>.
74703         (zero): Remove variable.
74704         (minus_zero): New variable.
74705         (main): Use minus_zero instead of -zero.
74706         * modules/floorl-tests (Depends-on): Add float.
74708         * tests/test-roundl.c: Include <float.h>.
74709         (zero): Remove variable.
74710         (minus_zero): New variable.
74711         (main): Use minus_zero instead of -zero.
74712         * modules/roundl-tests (Depends-on): Add float.
74714         * tests/test-truncl.c: Include <float.h>.
74715         (zero): Remove variable.
74716         (minus_zero): New variable.
74717         (main): Use minus_zero instead of -zero.
74718         * modules/truncl-tests (Depends-on): Add float.
74720         * tests/test-frexpl.c (zero): Remove variable.
74721         (minus_zero): New variable.
74722         (main): Use minus_zero instead of -zero.
74723         * modules/frexpl-tests (Depends-on): Add float.
74725         * tests/test-isnan.c (zerol): Remove variable.
74726         (minus_zerol): New variable.
74727         (test_long_double): Use minus_zerol instead of -zerol.
74728         * modules/isnan-tests (Depends-on): Add float.
74730         * tests/test-isnanl.h (zero): Remove variable.
74731         (minus_zero): New variable.
74732         (main): Use minus_zero instead of -zero.
74733         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74734         * modules/isnanl-tests (Depends-on): Add float.
74736         * tests/test-ldexpl.c (zero): Remove variable.
74737         (minus_zero): New variable.
74738         (main): Use minus_zero instead of -zero.
74739         * modules/ldexpl-tests (Depends-on): Add float.
74741         * tests/test-snprintf-posix.h (zerol): Remove variable.
74742         (minus_zerol): New variable.
74743         (test_function): Use minus_zerol instead of -zerol.
74744         * modules/snprintf-posix-tests (Depends-on): Add float.
74745         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74747         * tests/test-sprintf-posix.h (zerol): Remove variable.
74748         (minus_zerol): New variable.
74749         (test_function): Use minus_zerol instead of -zerol.
74750         * modules/sprintf-posix-tests (Depends-on): Add float.
74751         * modules/vsprintf-posix-tests (Depends-on): Add float.
74753         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74754         (minus_zerol): New variable.
74755         (test_function): Use minus_zerol instead of -zerol.
74756         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74758         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74759         (minus_zerol): New variable.
74760         (test_function): Use minus_zerol instead of -zerol.
74761         * modules/vasprintf-posix-tests (Depends-on): Add float.
74763 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74765         * MODULES.html.sh (Support for building documentation): Mention
74766         pmccabe2html.  Sort entries.
74768         Add pmccabe2html module, from gnupdf.
74769         * build-aux/pmccabe.css: New file.
74770         * build-aux/pmccabe2html: New file.
74771         * m4/pmccabe2html.m4: New file.
74772         * modules/pmccabe2html: New file.
74774 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74776         flock: new module
74777         * MODULES.html.sh: Add to list of modules.
74778         * lib/flock.c: flock implementation for Windows and Unix systems
74779         which have fcntl.
74780         * doc/glibc-functions/flock.texi: Update documentation.
74781         * lib/sys_file.in.h: <sys/file.h> header file.
74782         * m4/flock.m4: M4 macros.
74783         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74784         * modules/flock: flock module.
74785         * modules/flock-tests: flock tests module.
74786         * modules/sys_file: sys/file.h module.
74787         * tests/test-flock.c: test suite for flock.
74789 2008-10-06  Jim Meyering  <meyering@redhat.com>
74791         bootstrap: check for LT_INIT more portably still ;-)
74792         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74793         Spotted by Bruno Haible.
74795 2008-10-06  Eric Blake  <ebb9@byu.net>
74797         test-signbit: avoid tripping Irix cc bug on -0.0L
74798         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74799         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74800         entire testsuite consistent and avoids an Irix 6.2 bug.
74802 2008-10-05  Bruno Haible  <bruno@clisp.org>
74803             Jim Meyering  <jim@meyering.net>
74805         Add an option for ignoring EPIPE during close_stdout.
74806         * lib/closeout.h: Include <stdbool.h>.
74807         (close_stdout_set_ignore_EPIPE): New declaration.
74808         * lib/closeout.c: Include <stdbool.h>.
74809         (ignore_EPIPE): New variable.
74810         (close_stdout_set_ignore_EPIPE): New function.
74811         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74812         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74813         failure.
74814         * modules/closeout (Depends-on): Add stdbool.
74816 2008-10-05  Bruno Haible  <bruno@clisp.org>
74818         * modules/accept: New file.
74819         * modules/bind: New file.
74820         * modules/connect: New file.
74821         * modules/getpeername: New file.
74822         * modules/getsockname: New file.
74823         * modules/getsockopt: New file.
74824         * modules/listen: New file.
74825         * modules/recv: New file.
74826         * modules/recvfrom: New file.
74827         * modules/send: New file.
74828         * modules/sendto: New file.
74829         * modules/setsockopt: New file.
74830         * modules/socket: New file.
74831         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74832         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74833         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74834         the particular module is requested. Add a link warning when the
74835         particular module is not requested.
74836         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74837         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74838         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74839         the particular module is requested.
74840         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74841         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74842         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74843         * modules/sys_socket (Depends-on): Add link-warning.
74844         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74845         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74846         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74847         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74848         GL_LINK_WARNING.
74849         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74850         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74851         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74852         * doc/posix-functions/getpeername.texi: Mention the new module
74853         'getpeername'.
74854         * doc/posix-functions/getsockname.texi: Mention the new module
74855         'getsockname'.
74856         * doc/posix-functions/getsockopt.texi: Mention the new module
74857         'getsockopt'.
74858         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74859         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74860         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74861         * doc/posix-functions/send.texi: Mention the new module 'send'.
74862         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74863         * doc/posix-functions/setsockopt.texi: Mention the new module
74864         'setsockopt'.
74865         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74866         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74867         listen, connect, accept.
74868         * modules/select-tests (Depends-on): Likewise.
74870 2008-10-05  Bruno Haible  <bruno@clisp.org>
74872         * lib/winsock.c (strerror): Remove unused #undef.
74873         (rpl_close): Remove unused local variable.
74875         * modules/sys_socket (Depends-on); Add errno.
74877 2008-10-05  Bruno Haible  <bruno@clisp.org>
74879         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74880         (select): Add a link warning when the 'select' module is not used.
74881         * modules/sys_select (Depends-on): Add link-warning.
74882         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74883         Suggested by Paolo Bonzini.
74885 2008-10-05  Jim Meyering  <meyering@redhat.com>
74887         bootstrap: check for LT_INIT more portably
74888         * build-aux/bootstrap: Avoid using grep -E, since it's not
74889         portable enough.  Suggestion from Bruno Haible.
74891 2008-10-05  Bruno Haible  <bruno@clisp.org>
74893         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
74894         as being fixed by gnulib.
74896 2008-10-05  Bruno Haible  <bruno@clisp.org>
74898         * modules/select-tests: New file, mostly copied from
74899         modules/sys_select-tests.
74900         * tests/test-select.c: New file, mostly copied from
74901         tests/test-sys_select.c.
74902         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
74903         * modules/sys_select-tests (Depends-on): Remove all dependencies.
74904         (Makefile.am): Remove test_sys_select_LDADD.
74906         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
74907         to an undefined symbol, for an error message.
74908         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
74909         (gl_SYS_SELECT_H_DEFAULTS): New macro.
74910         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
74911         winsock-select.c here.
74912         * modules/sys_select (Files): Remove lib/winsock-select.c.
74913         (Depends-on): Remove alloca.
74914         (Makefile.am): Substitute GNULIB_SELECT.
74915         * modules/select: New file.
74916         * doc/posix-functions/select.texi: Update.
74918 2008-10-05  Bruno Haible  <bruno@clisp.org>
74920         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
74921         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
74922         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
74923         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
74924         getdtablesize.
74925         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
74926         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
74928 2008-10-05  Bruno Haible  <bruno@clisp.org>
74930         * modules/getdtablesize-tests: New file.
74931         * tests/test-getdtablesize.c: New file.
74933         New module 'getdtablesize'.
74934         * lib/unistd.in.h (getdtablesize): New declaration.
74935         * lib/getdtablesize.c: New file.
74936         * m4/getdtablesize.m4: New file.
74937         * modules/getdtablesize: New file.
74938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74939         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
74940         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
74941         HAVE_GETDTABLESIZE.
74942         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
74944 2008-10-05  Bruno Haible  <bruno@clisp.org>
74946         * modules/sched (Makefile.am): Fix typo.
74947         Reported by Simon Josefsson.
74949 2008-10-05  Jim Meyering  <meyering@redhat.com>
74951         bootstrap: check for LT_INIT, too
74952         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
74953         are deprecated.  Suggestion from Ralf Wildenhues.
74955 2008-10-05  Bruno Haible  <bruno@clisp.org>
74957         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
74958         overriding them by ours.
74959         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
74961 2008-10-05  Jim Meyering  <meyering@redhat.com>
74963         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
74964         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
74965         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
74967 2008-10-04  Bruno Haible  <bruno@clisp.org>
74969         * modules/dup2 (License): Change to LGPLv2+.
74970         * modules/sleep (License): Likewise.
74971         * modules/perror (License): Likewise.
74972         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
74973         Blake.
74974         * modules/signal (License): Likewise.
74975         * modules/sigprocmask (License): Likewise.
74976         * modules/raise (License): Change to LGPLv2+, with approval by Jim
74977         Meyering.
74979 2008-10-04  Bruno Haible  <bruno@clisp.org>
74981         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
74982         Reported by Rainer Tammer <tammer@tammer.net>.
74984 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
74985             Bruno Haible  <bruno@clisp.org>
74987         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
74988         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
74989         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
74991 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
74993         filevercmp: new module
74994         * lib/filevercmp.h: New function filevercmp comparing version strings.
74995         * lib/filevercmp.c: Implementation of filevercmp function.
74996         * modules/filevercmp: Module metadata.
74997         * tests/test-filevercmp.c: Unit test for new module.
74998         * modules/filevercmp-tests: Unit test metadata.
74999         * MODULES.html.sh: Add filevercmp module.
75001 2008-10-03  Bruno Haible  <bruno@clisp.org>
75003         * lib/c-ctype.h: Add comment.
75004         Reported by Jim Meyering.
75006 2008-10-02  Bruno Haible  <bruno@clisp.org>
75008         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75010 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75012         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75013         name of bootstrap.conf accordingly.
75015 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75017         * build-aux/bootstrap: Install git-merge-changelog configuration
75018         items into .gitconfig if needed.
75020 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75022         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75023         git repository, and initialize/update it accordingly.
75025 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75027         * modules/fsync-tests: New file.
75028         * tests/test-fsync.c: New file.
75030         New module 'fsync'.
75031         * lib/fsync.c: New file.
75032         * m4/fsync.m4: New file.
75033         * modules/fsync: New file.
75034         * lib/unistd.in.h (fsync): New declaration.
75035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75036         GNULIB_FSYNC and HAVE_FSYNC.
75037         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75038         * MODULES.html.sh (posix_functions): Add fsync.
75039         * doc/posix-functions/fsync.texi: Mention the new module.
75041 2008-10-02  Jim Meyering  <meyering@redhat.com>
75043         fts.c: sync with similar code from coreutils' remove.c
75044         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75045         Guard also with "#if defined __linux__", since for now at least,
75046         this code is Linux-kernel-specific.
75048 2008-10-02  Jim Meyering  <meyering@redhat.com>
75050         fts: bug fixes
75051         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75052         Include <sys/vfs.h>, not <sys/statfs.h>.
75054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75055         Include <sys/vfs.h>, not <sys/statfs.h>.
75057 2008-10-01  Bruno Haible  <bruno@clisp.org>
75059         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75061         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75062         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75063         * doc/posix-functions/posix_spawnp.texi: Likewise.
75064         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75065         whether posix_spawn actually works.
75066         * m4/pipe.m4 (gl_PIPE): Likewise.
75067         * modules/execute (Files): Add m4/posix_spawn.m4.
75068         * modules/pipe (Files): Add m4/posix_spawn.m4.
75069         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75071 2008-10-01  Jim Meyering  <meyering@redhat.com>
75073         remove trailing spaces
75074         * NEWS: Likewise.
75075         * lib/poll.c (poll): Likewise.
75076         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75077         * lib/winsock.c (rpl_close): Likewise.
75078         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75079         * modules/yield: Likewise.
75080         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75081         * tests/test-sys_select.c (connect_to_socket): Likewise.
75083         fts.c: adjust a new interface to be more generally useful
75084         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75085         (fts_build): Adjust caller.
75087 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75089         * modules/cond-tests: New file.
75090         * tests/test-cond.c: New file.
75092 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75093             Bruno Haible  <bruno@clisp.org>
75095         * modules/cond (Dependencies): Add errno, time.
75096         * lib/glthread/cond.h: Include <time.h>.
75097         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75098         across platforms.
75100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75101             Bruno Haible  <bruno@clisp.org>
75103         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75106             Bruno Haible  <bruno@clisp.org>
75108         * modules/tls-tests (Depends-on): Add thread, yield.
75109         (configure.ac): Remove all checks.
75110         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75111         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75112         gl_thread_self): Remove definitions. Include glthread/thread.h and
75113         glthread/yield.h instead.
75114         (test_tls): Pass an additional NULL argument to gl_thread_join.
75116 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75117             Bruno Haible  <bruno@clisp.org>
75119         * modules/lock-tests (Depends-on): Add thread, yield.
75120         (configure.ac): Remove all checks.
75121         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75122         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75123         gl_thread_self): Remove definitions. Include glthread/thread.h and
75124         glthread/yield.h instead.
75125         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75126         additional NULL argument to gl_thread_join.
75128 2008-09-30  Bruno Haible  <bruno@clisp.org>
75130         Fix the Win32 implementation of the 'thread' module.
75131         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75132         pointer type.
75133         (gl_thread_self): Invoke gl_thread_self_func.
75134         (gl_thread_self_func): New declaration.
75135         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75136         (do_init_self_key, init_self_key): New functions.
75137         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75138         Remove some fields.
75139         (running_threads, running_lock): Remove variables.
75140         (get_current_thread_handle): New function.
75141         (gl_thread_self_func, wrapper_func, glthread_create_func,
75142         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75143         simplified.
75145 2008-09-30  Bruno Haible  <bruno@clisp.org>
75147         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75148         files.
75150 2008-09-30  Jim Meyering  <meyering@redhat.com>
75152         fts.m4: correct the test for statfs.f_type
75153         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75154         when checking for statfs.f_type.
75156 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75158         tests: avoid some compiler warnings
75159         * tests/test-memchr.c (main): Pass NULL indirectly.
75160         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75162 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75164         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75165         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75166         exactly specified dayshifts.
75167         (dayshift): New rule.
75168         (rel): Add dayshift.
75169         (relative_time_table) [tomorrow, yesterday, today, now]:
75170         Use tDAY_SHIFT in place of tDAY_UNIT.
75171         * tests/test-getdate.c: Add tests for now-disallowed countable
75172         dayshifts, e.g., "4 yesterday ago".
75174 2008-09-29  Bruno Haible  <bruno@clisp.org>
75176         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75177         * tests/test-posix_spawn1.in.sh: Renamed from
75178         tests/test-posix_spawn.in.sh.
75179         * tests/test-posix_spawn2.c: New file.
75180         * tests/test-posix_spawn2.in.sh: New file.
75181         * modules/posix_spawnp-tests (Files): Update.
75182         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75184 2008-09-29  Bruno Haible  <bruno@clisp.org>
75186         Propagate effects of putenv/setenv/unsetenv to child processes.
75187         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75188         * lib/pipe.c (create_pipe): Likewise.
75190 2008-09-29  Bruno Haible  <bruno@clisp.org>
75192         Enable use of shell scripts as executables in mingw.
75193         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75194         run the program as a shell script.
75195         * lib/pipe.c (create_pipe): Likewise.
75196         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75197         resulting array.
75199 2008-09-29  Eric Blake  <ebb9@byu.net>
75201         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75203 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75205         * doc/posix-functions/accept.texi: Update mingw problems.
75206         * doc/posix-functions/bind.texi: Update mingw problems.
75207         * doc/posix-functions/close.texi: Update mingw problems.
75208         * doc/posix-functions/connect.texi: Update mingw problems.
75209         * doc/posix-functions/getpeername.texi: Update mingw problems.
75210         * doc/posix-functions/getsockname.texi: Update mingw problems.
75211         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75212         * doc/posix-functions/ioctl.texi: Update mingw problems.
75213         * doc/posix-functions/listen.texi: Update mingw problems.
75214         * doc/posix-functions/recv.texi: Update mingw problems.
75215         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75216         * doc/posix-functions/select.texi: Update mingw problems.
75217         * doc/posix-functions/send.texi: Update mingw problems.
75218         * doc/posix-functions/sendto.texi: Update mingw problems.
75219         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75220         * doc/posix-functions/socket.texi: Update mingw problems.
75222 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75223             Bruno Haible  <bruno@clisp.org>
75225         * lib/sys_select.in.h: Include sys/time.h.
75226         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75227         * modules/sys_select: Depend on sys_time.
75228         * tests/test-sys_select.c: Test that sys/select.h defines struct
75229         timeval fully.
75231 2008-09-29  Bruno Haible  <bruno@clisp.org>
75233         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75234         * lib/sys_select.in.h: Likewise.
75236 2008-09-29  Bruno Haible  <bruno@clisp.org>
75238         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75240 2008-09-29  Bruno Haible  <bruno@clisp.org>
75242         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75243         Set LIBSOCKET instead of augmenting LIBS.
75244         * modules/sockets (Link): New section.
75245         * modules/sockets-tests (test_sockets_LDADD): New variable.
75246         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75247         * modules/poll-tests (test_poll_LDADD): New variable.
75248         * NEWS: Document the change.
75250 2008-09-29  Bruno Haible  <bruno@clisp.org>
75252         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75253         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75254         ARPA_INET_H directly.
75255         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75257 2008-09-28  Bruno Haible  <bruno@clisp.org>
75259         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75260         from gl_HEADER_SYS_SOCKET.
75261         (gl_HEADER_SYS_SOCKET): Invoke it.
75262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75264 2008-09-28  Bruno Haible  <bruno@clisp.org>
75266         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75267         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75268         Needed on OSF/1 4.0.
75270 2008-09-28  Bruno Haible  <bruno@clisp.org>
75272         Override open more carefully.
75273         * lib/open.c (orig_open): New function.
75274         (rpl_open): Use orig_open instead of open.
75275         * lib/fcntl.in.h: Add special invocation convention.
75276         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75277         (gl_FUNC_OPEN): Invoke it.
75279         Override freopen more carefully.
75280         * lib/freopen.c (orig_freopen): New function.
75281         (rpl_freopen): Use orig_freopen instead of freopen.
75282         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75283         (gl_FUNC_FREOPEN): Invoke it.
75285         Override fopen more carefully.
75286         * lib/fopen.c (orig_fopen): New function.
75287         (rpl_fopen): Use orig_fopen instead of fopen.
75288         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75289         (gl_FUNC_FOPEN): Invoke it.
75290         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75292 2008-09-28  Bruno Haible  <bruno@clisp.org>
75294         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75295         SIGPIPE.
75297 2008-09-28  Bruno Haible  <bruno@clisp.org>
75299         * tests/test-sigaction.c (handler, main): Disable the check whether
75300         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75301         glibc systems with LinuxThreads.
75303 2008-09-28  Bruno Haible  <bruno@clisp.org>
75305         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75307         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75308         with AIX xlc.
75309         * lib/fcntl.in.h (open): Likewise.
75310         Reported by Rainer Tammer <tammer@tammer.net>.
75312 2008-09-28  Bruno Haible  <bruno@clisp.org>
75314         * modules/posix_spawnp-tests: New file.
75315         * tests/test-posix_spawn.c: New file.
75316         * tests/test-posix_spawn.in.sh: New file.
75318         New module 'posix_spawnp'.
75319         * modules/posix_spawnp: New file.
75320         * lib/spawnp.c: New file, from GNU libc with modifications.
75321         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75323         New module 'posix_spawn'.
75324         * modules/posix_spawn: New file.
75325         * lib/spawn.c: New file, from GNU libc with modifications.
75326         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75328         New module 'posix_spawnattr_destroy'.
75329         * modules/posix_spawnattr_destroy: New file.
75330         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75331         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75332         module.
75334         New module 'posix_spawnattr_setsigmask'.
75335         * modules/posix_spawnattr_setsigmask: New file.
75336         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75337         modifications.
75338         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75339         new module.
75341         New module 'posix_spawnattr_getsigmask'.
75342         * modules/posix_spawnattr_getsigmask: New file.
75343         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75344         modifications.
75345         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75346         new module.
75348         New module 'posix_spawnattr_setsigdefault'.
75349         * modules/posix_spawnattr_setsigdefault: New file.
75350         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75351         modifications.
75352         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75353         new module.
75355         New module 'posix_spawnattr_getsigdefault'.
75356         * modules/posix_spawnattr_getsigdefault: New file.
75357         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75358         modifications.
75359         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75360         new module.
75362         New module 'posix_spawnattr_setschedpolicy'.
75363         * modules/posix_spawnattr_setschedpolicy: New file.
75364         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75365         modifications.
75366         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75367         new module.
75369         New module 'posix_spawnattr_getschedpolicy'.
75370         * modules/posix_spawnattr_getschedpolicy: New file.
75371         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75372         modifications.
75373         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75374         new module.
75376         New module 'posix_spawnattr_setschedparam'.
75377         * modules/posix_spawnattr_setschedparam: New file.
75378         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75379         modifications.
75380         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75381         new module.
75383         New module 'posix_spawnattr_getschedparam'.
75384         * modules/posix_spawnattr_getschedparam: New file.
75385         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75386         modifications.
75387         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75388         new module.
75390         New module 'posix_spawnattr_setpgroup'.
75391         * modules/posix_spawnattr_setpgroup: New file.
75392         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75393         modifications.
75394         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75395         module.
75397         New module 'posix_spawnattr_getpgroup'.
75398         * modules/posix_spawnattr_getpgroup: New file.
75399         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75400         modifications.
75401         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75402         module.
75404         New module 'posix_spawnattr_setflags'.
75405         * modules/posix_spawnattr_setflags: New file.
75406         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75407         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75408         module.
75410         New module 'posix_spawnattr_getflags'.
75411         * modules/posix_spawnattr_getflags: New file.
75412         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75413         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75414         module.
75416         New module 'posix_spawnattr_init'.
75417         * modules/posix_spawnattr_init: New file.
75418         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75419         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75420         module.
75422         New module 'posix_spawn_file_actions_destroy'.
75423         * modules/posix_spawn_file_actions_destroy: New file.
75424         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75425         modifications.
75426         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75427         the new module.
75429         New module 'posix_spawn_file_actions_addopen'.
75430         * modules/posix_spawn_file_actions_addopen: New file.
75431         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75432         modifications.
75433         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75434         the new module.
75436         New module 'posix_spawn_file_actions_adddup2'.
75437         * modules/posix_spawn_file_actions_adddup2: New file.
75438         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75439         modifications.
75440         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75441         the new module.
75443         New module 'posix_spawn_file_actions_addclose'.
75444         * modules/posix_spawn_file_actions_addclose: New file.
75445         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75446         modifications.
75447         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75448         the new module.
75450         New module 'posix_spawn_file_actions_init'.
75451         * modules/posix_spawn_file_actions_init: New file.
75452         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75453         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75454         new module.
75456         New module 'posix_spawn-internal'.
75457         * modules/posix_spawn-internal: New file.
75458         * lib/spawn_int.h: New file, from GNU libc with modifications.
75459         * lib/spawni.c: New file, from GNU libc with modifications.
75460         * m4/posix_spawn.m4: New file.
75462         New module 'spawn'.
75463         * modules/spawn: New file.
75464         * lib/spawn.in.h: New file, from GNU libc with modifications.
75465         * m4/spawn_h.m4: New file.
75466         * doc/posix-headers/spawn.texi: Mention the new module.
75468 2008-09-28  Bruno Haible  <bruno@clisp.org>
75470         * modules/sched-tests: New file.
75471         * tests/test-sched.c: New file.
75473         New module 'sched'.
75474         * modules/sched: New file.
75475         * lib/sched.in.h: New file.
75476         * m4/sched_h.m4: New file.
75477         * doc/posix-headers/sched.texi: Mention the new module.
75479 2008-09-27  Eric Blake  <ebb9@byu.net>
75481         Fix previous patch, and tweak references to $0.
75482         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75483         (func_version, func_gnulib_dir): Don't call this program
75484         gnulib-tool.
75485         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75486         with using $0 in function.
75487         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75488         (func_fatal_error): Reuse the name the user invoked us with.
75490 2008-09-27  Bruno Haible  <bruno@clisp.org>
75492         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75493         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75494         (gl_ICONV_H): Not here.
75495         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75496         instead of assigning ICONV_H directly.
75498         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75500         WCHAR_H directly.
75502 2008-09-27  Bruno Haible  <bruno@clisp.org>
75504         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75505         * modules/arpa_inet (Depends-on): Add link-warning.
75506         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75507         * modules/unistd (Makefile.am): Likewise.
75509 2008-09-26  Bruno Haible  <bruno@clisp.org>
75511         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75512         variables.
75513         (func_version): Essentially copied from gnulib-tool.
75514         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75515         func_readlink): Copied from gnulib-tool.
75517 2008-09-26  Bruno Haible  <bruno@clisp.org>
75519         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75520         invoking git-version-gen.
75522 2008-09-26  Bruno Haible  <bruno@clisp.org>
75524         * posix-modules: Update to directory names changed on 2008-01-19.
75525         Remove commas in output before splitting into words. No more need to
75526         avoid 'ftruncate' since 2007-02-19.
75528 2008-09-26  Bruno Haible  <bruno@clisp.org>
75530         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75532 2008-09-26  Bruno Haible  <bruno@clisp.org>
75534         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75535         * modules/fwriteerror (Depends-on): Add errno.
75537 2008-09-26  Bruno Haible  <bruno@clisp.org>
75539         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75540         * tests/test-vc-list-files-cvs.sh: Likewise.
75542 2008-09-26  Bruno Haible  <bruno@clisp.org>
75544         * doc/posix-headers/sys_resource.texi: Reorder items.
75546 2008-09-26  Jim Meyering  <meyering@redhat.com>
75548         fts: tweak inode comparison function
75549         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75550         inode numbers, as documented.
75552         fts: sort dirent entries on inode number before traversing
75553         This avoids a quadratic, seek-related performance penalty when
75554         operating on a directory containing many entries (measurable at 10k;
75555         3.5 hours at 2 million entries with a cold cache) on certain types
75556         of file systems, including ext3 and ext4, but not tmpfs.
75557         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75558         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75559         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75560         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75561         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75562         (fts_build): Set the stat.st_ino member from D_INO.
75563         If it is likely to be useful, sort dirent entries on inode number.
75565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75566         and the struct statfs.f_type member.
75567         * modules/fts (Depends-on): Add d-ino.
75569 2008-09-26  Bruno Haible  <bruno@clisp.org>
75571         * modules/sigpipe-die (Depends-on): Add sigpipe.
75573         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75574         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75575         and GNULIB_STDIO_H_SIGPIPE are set.
75576         * lib/stdio-write.c: New file.
75577         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75578         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75579         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75580         REPLACE_STDIO_WRITE_FUNCS.
75581         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75582         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75583         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75584         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75585         * modules/stdio (Files): Add lib/stdio-write.c.
75586         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75587         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75588         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75589         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75590         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75591         REPLACE_FPRINTF_POSIX.
75592         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75593         REPLACE_PRINTF_POSIX.
75594         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75595         REPLACE_VFPRINTF_POSIX.
75596         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75597         REPLACE_VPRINTF_POSIX.
75598         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75599         SIGPIPE issue.
75600         * doc/posix-functions/fputc.texi: Likewise.
75601         * doc/posix-functions/fputs.texi: Likewise.
75602         * doc/posix-functions/fwrite.texi: Likewise.
75603         * doc/posix-functions/printf.texi: Likewise.
75604         * doc/posix-functions/putc.texi: Likewise.
75605         * doc/posix-functions/putchar.texi: Likewise.
75606         * doc/posix-functions/puts.texi: Likewise.
75607         * doc/posix-functions/vfprintf.texi: Likewise.
75608         * doc/posix-functions/vprintf.texi: Likewise.
75610         * modules/safe-write (Depends-on): Add write.
75612         * modules/sigpipe-tests: New file.
75613         * tests/test-sigpipe.c: New file.
75614         * tests/test-sigpipe.sh: New file.
75616         * modules/write: New file.
75617         * lib/unistd.in.h: Include <sys/types.h>.
75618         (write): New declaration.
75619         * lib/write.c: New file.
75620         * m4/write.m4: New file.
75621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75622         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75623         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75624         GNULIB_WRITE, REPLACE_WRITE.
75625         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75626         and the SIGPIPE issue.
75628         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75629         (raise): New declaration.
75630         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75631         (ext_signal): New function.
75632         (rpl_raise): New function.
75633         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75634         GNULIB_SIGNAL_H_SIGPIPE.
75635         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75636         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75638         * modules/sigpipe: New file.
75639         * m4/sigpipe.m4: New file.
75641 2008-09-25  Derek Price  <derek@ximbiot.com>
75642             Bruno Haible  <bruno@clisp.org>
75644         * gnulib-tool (func_import): Report all license incompatibilities, not
75645         just the first one.
75647 2008-09-25  Bruno Haible  <bruno@clisp.org>
75649         * gnulib-tool (func_import): When computing the edits, consider not
75650         only the Makefile.ams that exist but also those that will be generated.
75652 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75654         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75655         fixes gnulib-tool --test warning about duplicate dependency.
75657 2008-09-25  Bruno Haible  <bruno@clisp.org>
75659         * gnulib-tool: Don't ask the user to perform edits in the generated
75660         Makefile.ams.
75661         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75662         apply to the Makefile.am being generated.
75663         (func_emit_tests_Makefile_am): Execute edits that apply to the
75664         Makefile.am being generated.
75665         (func_import): Setup list of Makefile.am edits before emitting the
75666         Makefile.ams, not at the end.
75667         (func_create_testdir): Update.
75668         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75670 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75672         * gnulib-tool (func_import): Store the --tests-base option in the
75673         comment in gnulib-cache.m4.
75675 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75677         * NEWS: Document increased portability that sys_select now provides.
75679         * lib/sys_select.in.h: Install select wrapper.
75680         * lib/sys_socket.in.h: Use more descriptive name when there is no
75681         select wrapper.
75682         * lib/winsock-select.c: New.
75683         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75684         Require gl_HEADER_SYS_SOCKET.
75685         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75686         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75687         * tests/test-sys_select.c: Add functional tests.
75689 2008-09-24  Eric Blake  <ebb9@byu.net>
75691         open, fopen: close fd leak in last patch
75692         * lib/open.c (rpl_open): Close fd before returning error.
75693         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75694         * doc/posix-functions/open.texi (open): Document that Irix also
75695         has the bug.
75696         * doc/posix-functions/fopen.texi (fopen): Likewise.
75697         Reported by Paolo Bonzini.
75699 2008-09-24  Bruno Haible  <bruno@clisp.org>
75701         Ensure that a filename ending in a slash cannot be used to access a
75702         non-directory.
75703         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75704         to check whether it's really a directory.
75705         * lib/fopen.c: Include fcntl.h, unistd.h.
75706         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75707         and fdopen().
75708         * modules/fopen (Depends-on): Add unistd.
75709         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75710         * tests/test-fopen.c (main): Likewise.
75711         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75712         * doc/posix-functions/fopen.texi: Likewise.
75713         Reported by Eric Blake.
75715 2008-09-23  Eric Blake  <ebb9@byu.net>
75717         c-stack: avoid compiler optimizations when provoking overflow
75718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75719         recursion harder to optimize, to ensure a stack overflow occurs.
75720         * tests/test-c-stack.c (recurse): Likewise.
75721         Borrowed from libsigsegv.
75723         c-stack: work around Irix sigaltstack bug
75724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75725         whether sigaltstack uses wrong end of stack_t (copied in part from
75726         libsigsegv).
75727         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75728         Irix bug, without requiring an over-allocation.
75729         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75730         bug.
75732         fopen: document mingw bug on directories
75733         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75734         not allowing a stream visiting a directory, even though reading
75735         from such a stream is not portable.
75737 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75739         * lib/poll.c: Rewrite.
75740         * modules/poll: Depend on alloca.
75742 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75744         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75745         instead define prototypes for a full set of wrappers.  Ensure
75746         that Cygwin does not use the compatibility code, which is only
75747         for MinGW.
75748         * lib/winsock.c: New.
75749         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75750         * modules/sys_socket: Add lib/winsock.c.
75752         * modules/poll-tests: Add errno and perror.
75753         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75757         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75759 2008-09-23  Bruno Haible  <bruno@clisp.org>
75761         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75762         * doc/glibc-functions/*: Likewise.
75764 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75766         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75767         success.
75769 2008-09-22  Eric Blake  <ebb9@byu.net>
75770             Bruno Haible  <bruno@clisp.org>
75772         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75773         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75774         supply %A but mishandle pseudo-NaN.
75775         Reported by Simon Josefsson.
75777 2008-09-21  Bruno Haible  <bruno@clisp.org>
75779         * tests/test-lock.c (main): Tweak skip message.
75780         * tests/test-tls.c (main): Likewise.
75782 2008-09-21  Bruno Haible  <bruno@clisp.org>
75784         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75785         whether 'struct sigaction' has sa_sigaction here...
75786         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75787         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75789 2008-09-21  Bruno Haible  <bruno@clisp.org>
75791         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75792         section.
75793         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75794         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75795         the new section.
75796         (Support for obsolete systems lacking POSIX:2001): New section.
75797         (String handling <string.h>): Move strdup to the new section.
75798         Suggested by Simon Josefsson and Paolo Bonzini.
75800 2008-09-21  Bruno Haible  <bruno@clisp.org>
75802         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75803         exponents in %e and %g results on 'long double'. Needed for mingw's
75804         improved *printf functions.
75805         * tests/test-vasprintf-posix.c (test_function): Likewise.
75806         * tests/test-snprintf-posix.h (test_function): Likewise.
75807         * tests/test-sprintf-posix.h (test_function): Likewise.
75808         Reported by Eric Blake.
75810 2008-09-21  Bruno Haible  <bruno@clisp.org>
75812         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75813         * tests/test-sprintf-posix.h (test_function): Likewise.
75815 2008-09-21  Bruno Haible  <bruno@clisp.org>
75817         * modules/getpass (Depends-on): Add strdup-posix.
75819         New module 'strdup-posix'.
75820         * modules/strdup-posix: New file.
75821         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75822         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75824         REPLACE_STRDUP.
75825         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75826         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75828         strdup-posix.
75830         * modules/strdup (Depends-on): Remove malloc-posix.
75832 2008-09-20  Bruno Haible  <bruno@clisp.org>
75834         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75835         Wildenhues.
75837 2008-09-20  Bruno Haible  <bruno@clisp.org>
75839         Ensure that wint_t gets defined on IRIX 5.3.
75840         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75841         * lib/wctype.in.h (wint_t): Likewise.
75842         (__wctype_wint_t): Remove type.
75843         (isw*): Use wint_t instead of __wctype_wint_t.
75844         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75845         * modules/wchar (Files): Add m4/wint_t.m4.
75846         (Makefile.am): Substitute HAVE_WINT_T.
75847         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75848         * tests/test-wctype.c: Check that wint_t is defined.
75849         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75850         * doc/posix-headers/wctype.texi: Likewise.
75851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75853 2008-09-18  Bruno Haible  <bruno@clisp.org>
75855         * gnulib-tool (func_exit): Update comment.
75857 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75859         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75860         assumes strdup exists and does not depend on strdup to return
75861         ENOMEM on out of memory conditions.
75863 2008-09-18  Bruno Haible  <bruno@clisp.org>
75865         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75866         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75867         digits for the exponent.
75869 2008-09-18  Jim Meyering  <meyering@redhat.com>
75870             Bruno Haible  <bruno@clisp.org>
75872         * lib/vasnprintf.c (decimal_point_char): Define also if
75873         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75875 2008-09-16  Bruno Haible  <bruno@clisp.org>
75876         and Eric Blake  <ebb9@byu.net>
75878         vasnprintf: support Irix 5.3
75879         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75880         that mishandle long double infinity.
75881         Reported by Tom G. Christensen.
75883 2008-09-16  Bruno Haible  <bruno@clisp.org>
75885         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75886         Solaris 9.
75887         * doc/glibc-functions/alphasort.texi: Likewise.
75888         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75890 2008-09-16  Jim Meyering  <meyering@redhat.com>
75892         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75893         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
75894         a umask modification leak out of a subshell.  Otherwise, the
75895         opensolaris /bin/sh would be accepted and thus cause unwarranted
75896         failures in the coreutils test suite.
75898 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
75900         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
75901         to succeed.
75903 2008-09-16  Jim Meyering  <meyering@redhat.com>
75905         avoid spurious test failure when library is built without ACL support
75906         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
75907         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
75908         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
75909         * tests/test-copy-acl.sh: Likewise.
75911 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75913         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
75914         based on character occurrence counts.
75916 2008-09-15  Eric Blake  <ebb9@byu.net>
75918         tests: avoid some compiler warnings
75919         * tests/test-memchr.c (main): Pass NULL indirectly.
75920         * tests/test-closein.c (main): Avoid unused variable.
75922 2008-09-15  Bruno Haible  <bruno@clisp.org>
75924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
75925         are missing on OpenBSD 4.0 individually.
75926         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75928 2008-09-15  Bruno Haible  <bruno@clisp.org>
75930         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
75931         * doc/posix-functions/strerror.texi: Mention also Cygwin.
75932         * doc/posix-functions/perror.texi: Likewise.
75933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
75934         is missing.
75935         Reported by Eric Blake.
75937         * lib/errno.in.h: Use replacement values >= 2000.
75938         Reported by Eric Blake.
75940 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75942         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
75943         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
75944         limit.
75945         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
75946         compareseq was aborted.
75948 2008-09-14  Bruno Haible  <bruno@clisp.org>
75950         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
75951         yvec_edit_count.
75952         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
75953         (fstrcmp_bounded): Simplify result computation accordingly.
75955 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75957         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
75958         (fstrcmp): Define in terms of fstrcmp_bounded.
75959         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
75960         lower_bound argument.
75961         Return quickly if the result is certainly < lower_bound.
75962         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
75964 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75966         * lib/diffseq.h (EARLY_ABORT): New macro.
75967         (compareseq): Change return type to bool. Return true when EARLY_ABORT
75968         evaluates to true.
75970 2008-09-14  Bruno Haible  <bruno@clisp.org>
75972         * modules/perror-tests: New file.
75973         * tests/test-perror.sh: New file.
75974         * tests/test-perror.c: New file.
75976         New module 'perror'.
75977         * lib/stdio.in.h (perror): New declaration.
75978         * lib/perror.c: New file.
75979         * m4/perror.m4: New file.
75980         * modules/perror: New file.
75981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
75982         * doc/posix-functions/perror.texi: Mention the perror module.
75983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
75984         REPLACE_PERROR.
75985         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
75986         REPLACE_PERROR.
75988 2008-09-14  Bruno Haible  <bruno@clisp.org>
75990         * modules/stdio (Makefile.am): Reorder to match the order in
75991         lib/stdio.in.h.
75992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75994 2008-09-13  Bruno Haible  <bruno@clisp.org>
75996         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
75998 2008-09-13  Bruno Haible  <bruno@clisp.org>
76000         Extend strerror to cover the added errno values.
76001         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76002         (rpl_strerror): Provide error messages for the added errno values and
76003         for the WSA* values.
76004         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76005         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76006         strerror.
76007         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76008         * modules/strerror (Depends-on): Add errno.
76009         * doc/posix-functions/strerror.texi: Document the change.
76010         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76011         and EOVERFLOW.
76013 2008-09-13  Bruno Haible  <bruno@clisp.org>
76015         * modules/EOVERFLOW: Remove file.
76016         * m4/eoverflow.m4: Remove file.
76017         * modules/EOVERFLOW-tests: Remove file.
76018         * tests/test-EOVERFLOW.c: Remove file.
76019         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76020         * modules/ftell (Depends-on): Likewise.
76021         * modules/getdelim (Depends-on): Likewise.
76022         * modules/getugroups (Depends-on): Likewise.
76023         * modules/poll (Depends-on): Likewise.
76024         * modules/snprintf (Depends-on): Likewise.
76025         * modules/sprintf-posix (Depends-on): Likewise.
76026         * modules/vasnprintf (Depends-on): Likewise.
76027         * modules/vasprintf (Depends-on): Likewise.
76028         * modules/vfprintf-posix (Depends-on): Likewise.
76029         * modules/vsnprintf (Depends-on): Likewise.
76030         * modules/vsprintf-posix (Depends-on): Likewise.
76031         * modules/xvasprintf (Depends-on): Likewise.
76032         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76033         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76034         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76035         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76036         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76037         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76038         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76039         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76040         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76041         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76042         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76043         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76044         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76045         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76046         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76047         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76048         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76049         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76050         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76051         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76053         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76054         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76055         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76056         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76057         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76058         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76059         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76060         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76061         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76062         * MODULES.html.sh: Remove EOVERFLOW.
76063         * NEWS: Mention the change.
76065 2008-09-13  Bruno Haible  <bruno@clisp.org>
76067         * modules/errno-tests: New file.
76068         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76070         * lib/errno.in.h: New file.
76071         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76072         * modules/errno: New file.
76073         * doc/posix-headers/errno.texi: Update documentation.
76074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76076 2008-09-13  Bruno Haible  <bruno@clisp.org>
76078         * tests/test-poll.c: Use #if for native Windows, rather than testing
76079         __MSVCRT__.
76081 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76082             Bruno Haible  <bruno@clisp.org>
76084         * lib/glob.c: Don't include <pwd.h> on native Windows.
76085         (WINDOWS32): New macro.
76086         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76088 2008-09-13  Bruno Haible  <bruno@clisp.org>
76090         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76091         (ETIMEDOUT): Remove macro.
76092         (glthread_cond_timedwait_multithreaded): New declaration.
76093         (glthread_cond_timedwait): Use it.
76094         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76095         (glthread_cond_timedwait_multithreaded): New function.
76097 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76099         * modules/poll-tests: Do not check for io.h.
76100         * tests/test-poll.c: Check for __MSVCRT__ instead.
76102 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76104         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76105         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76106         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76108 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76110         * modules/poll-tests: New.
76111         * tests/test-poll.c: New.
76113 2008-09-12  Eric Blake  <ebb9@byu.net>
76115         frexp: test for NetBSD failure on -0.0
76116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76117         not all, bugs from NetBSD 3.0 have been fixed.
76118         * doc/posix-functions/frexp.texi (frexp): Document bug.
76119         Reported by Thomas Klausner.
76121         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76122         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76123         literal -0.0.
76124         Reported by Jonathan C. Patschke <jp@centtech.com>.
76126 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76128         * lib/glthread/cond.h: Use dummy implementation also if
76129         USE_WIN32_THREADS.
76131 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76133         * modules/fnmatch-posix (License): Change to LGPLv2+.
76134         * modules/fnmatch-gnu (License): Likewise.
76136 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76138         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76140 2008-09-11  Jim Meyering  <meyering@redhat.com>
76142         * users.txt: Add gtk-vnc.
76144 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76146         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76147         rotate amounts.
76149         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76150         required for 16-bit and 8-bit rotates.
76151         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76152         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76153         UINT8_MAX instead of hard-coded constants.
76154         Suggested by Paul Eggert.
76156 2008-09-07  Bruno Haible  <bruno@clisp.org>
76158         * tests/test-striconveh.c (main): Check behaviour when converting from
76159         UTF-7.
76161         Make striconveh work better with stateful encodings.
76162         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76163         that iconv does not increment the inptr when returning -1/EINVAL.
76165 2008-09-07  Bruno Haible  <bruno@clisp.org>
76167         * build-aux/config.rpath: Update according to libtool-2.2.6.
76168         * build-aux/config.libpath: Likewise.
76170 2008-09-06  Bruno Haible  <bruno@clisp.org>
76172         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76173         * lib/freadptr.c (freadptr): Likewise.
76174         * lib/freadseek.c (freadptrinc): Likewise.
76175         Reported by Simon Josefsson.
76177 2008-09-06  Bruno Haible  <bruno@clisp.org>
76179         * modules/freadptr (License): Change to LGPLv2+.
76180         * modules/freadseek (License): Likewise.
76181         Suggested by Eric Blake.
76183         * modules/memchr2 (License): Change to LGPLv2+.
76184         Approved by Eric Blake.
76186 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76187             Bruno Haible  <bruno@clisp.org>
76189         Make gnulib-tool work with native 'sed' on AIX.
76190         * gnulib-tool (sed_noop): New variable.
76191         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76192         func_add_or_update, func_create_testdir): Use it to initialize sed
76193         script variables.
76194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76196 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76197             Bruno Haible  <bruno@clisp.org>
76199         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76200         also works after #include directives.
76202 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76204         getdate.y: reject an out-of-range timezone value
76205         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76206         the range [-24...+24].  When specified with only one or two digits,
76207         * tests/test-getdate.c: Tests for the fix.
76208         * doc/getdate.texi: Document this change.
76210 2008-09-03  Bruno Haible  <bruno@clisp.org>
76212         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76214 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76216         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76217         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76218         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76219         Blake <ebb9@byu.net>.
76221         * tests/test-bitrotate.c: Add more test vectors.
76223 2008-09-02  Eric Blake  <ebb9@byu.net>
76225         vasnprintf-posix: handle large precision via %.*d
76226         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76227         when handling it ourselves.
76228         * tests/test-vasnprintf-posix.c (test_function): Add test.
76229         * tests/test-snprintf-posix.h (test_function): Likewise.
76230         * tests/test-sprintf-posix.h (test_function): Likewise.
76231         * tests/test-vasprintf-posix.c (test_function): Likewise.
76232         Reported by Alain Guibert.
76234 2008-09-01  Eric Blake  <ebb9@byu.net>
76236         c-stack: make configure-time check more robust
76237         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76238         successful sigaction call.
76239         Reported by Tom G. Christensen.
76241 2008-09-01  Bruno Haible  <bruno@clisp.org>
76243         New module 'findprog-lgpl'.
76244         * modules/findprog-lgpl: New file.
76245         * lib/findprog-lgpl.c: New file.
76246         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76247         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76248         to decide whether to use strdup or xstrdup, concatenated_filename or
76249         xconcatenated_filename.
76251 2008-09-01  Bruno Haible  <bruno@clisp.org>
76253         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76254         'xconcat-filename' (GPL).
76255         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76256         (License): Change to LGPLv2+.
76257         * modules/xconcat-filename: New file.
76258         * lib/concat-filename.h (concatenated_filename): Change specification.
76259         (xconcatenated_filename): New declaration.
76260         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76261         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76262         memory situations.
76263         * lib/xconcat-filename.c: New file.
76264         * NEWS: Mention the change.
76265         * lib/findprog.c: Include concat-filename.h, not filename.h.
76266         (find_in_path): Use xconcatenated_filename instead of
76267         concatenated_filename.
76268         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76269         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76270         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76271         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76272         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76273         instead of concatenated_filename.
76274         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76275         (execute_java_class): Use xconcatenated_filename instead of
76276         concatenated_filename.
76277         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76278         * modules/javacomp (Depends-on): Likewise.
76279         * modules/javaexec (Depends-on): Likewise.
76281 2008-09-01  Bruno Haible  <bruno@clisp.org>
76283         Split module 'filename' into 'filename' and 'concat-filename'.
76284         * modules/filename: Keep only lib/filename.h.
76285         (License): Change to LGPLv2+.
76286         * modules/concat-filename: New file, extracted from modules/filename.
76287         * lib/filename.h (concatenated_filename): Remove declaration.
76288         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76289         * lib/concat-filename.c: Include concat-filename.h.
76290         * NEWS: Mention the change.
76292 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76294         * lib/bitrotate.h (rotl8, rotr8): Add.
76296         * modules/bitrotate (configure.ac): Need
76297         AC_REQUIRE([AC_C_INLINE]).
76298         (Description): Mention stdint.h.  Reported by Bruno Haible
76299         <bruno@clisp.org>.
76301         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76302         Paolo Bonzini <bonzini@gnu.org>.
76304 2008-08-31  Bruno Haible  <bruno@clisp.org>
76306         Assume Solaris specific bi-arch conventions on Solaris systems.
76307         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76308         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76310         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76311         like acl_libdirstem.
76312         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76313         acl_libdirstem.
76314         * NEWS: Mention the change.
76315         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76317 2008-08-31  Jim Meyering  <meyering@redhat.com>
76319         * lib/strftime.h: Add comments describing the two added arguments.
76321         remove duplicate #include directives
76322         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76323         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76325 2008-08-31  Bruno Haible  <bruno@clisp.org>
76327         New module 'sigpipe-die'.
76328         * modules/sigpipe-die: New file.
76329         * lib/sigpipe-die.h: New file.
76330         * lib/sigpipe-die.c: New file.
76331         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76333 2008-08-31  Bruno Haible  <bruno@clisp.org>
76335         Don't override previously installed signal handlers.
76336         * lib/fatal-signal.c (saved_sigactions): New variable.
76337         (uninstall_handlers): Reset the signal to the saved handler, not
76338         to SIG_DFL (except when ignored).
76339         (install_handlers): Save the previous handlers.
76341 2008-08-30  Bruno Haible  <bruno@clisp.org>
76343         * gnulib-tool (func_reset_sigpipe): New function.
76344         (func_get_automake_snippet, func_modules_transitive_closure,
76345         func_import): Invoke it before a join command that reads from stdin,
76346         to avoid "echo: write error: Broken pipe" error messages on stderr.
76347         Reported by Sam Steingold <sds@gnu.org>.
76349 2008-08-30  Bruno Haible  <bruno@clisp.org>
76351         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76352         Code copied from m4/open.m4.
76353         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76354         access and the filename ends in a slash. Code copied from lib/open.c.
76355         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76356         * tests/test-fopen.c (main): Check against bug with trailing slash.
76358 2008-08-29  Bruno Haible  <bruno@clisp.org>
76360         Avoid some "gcc -pedantic" warnings.
76361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76362         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76363         * lib/dirent.in.h: Likewise.
76364         * lib/fcntl.in.h: Likewise.
76365         * lib/float.in.h: Likewise.
76366         * lib/iconv.in.h: Likewise.
76367         * lib/inttypes.in.h: Likewise.
76368         * lib/locale.in.h: Likewise.
76369         * lib/math.in.h: Likewise.
76370         * lib/netinet_in.in.h: Likewise.
76371         * lib/search.in.h: Likewise.
76372         * lib/signal.in.h: Likewise.
76373         * lib/stdarg.in.h: Likewise.
76374         * lib/stdint.in.h: Likewise.
76375         * lib/stdio.in.h: Likewise.
76376         * lib/stdlib.in.h: Likewise.
76377         * lib/string.in.h: Likewise.
76378         * lib/strings.in.h: Likewise.
76379         * lib/sys_select.in.h: Likewise.
76380         * lib/sys_socket.in.h: Likewise.
76381         * lib/sys_stat.in.h: Likewise.
76382         * lib/sys_time.in.h: Likewise.
76383         * lib/sysexits.in.h: Likewise.
76384         * lib/time.in.h: Likewise.
76385         * lib/unistd.in.h: Likewise.
76386         * lib/wchar.in.h: Likewise.
76387         * lib/wctype.in.h: Likewise.
76388         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76389         * modules/fchdir (Makefile.am): Likewise.
76390         * modules/fcntl (Makefile.am): Likewise.
76391         * modules/float (Makefile.am): Likewise.
76392         * modules/iconv_open (Makefile.am): Likewise.
76393         * modules/inttypes (Makefile.am): Likewise.
76394         * modules/locale (Makefile.am): Likewise.
76395         * modules/math (Makefile.am): Likewise.
76396         * modules/netinet_in (Makefile.am): Likewise.
76397         * modules/search (Makefile.am): Likewise.
76398         * modules/signal (Makefile.am): Likewise.
76399         * modules/stdarg (Makefile.am): Likewise.
76400         * modules/stdint (Makefile.am): Likewise.
76401         * modules/stdio (Makefile.am): Likewise.
76402         * modules/stdlib (Makefile.am): Likewise.
76403         * modules/string (Makefile.am): Likewise.
76404         * modules/strings (Makefile.am): Likewise.
76405         * modules/sys_select (Makefile.am): Likewise.
76406         * modules/sys_socket (Makefile.am): Likewise.
76407         * modules/sys_stat (Makefile.am): Likewise.
76408         * modules/sys_time (Makefile.am): Likewise.
76409         * modules/sysexits (Makefile.am): Likewise.
76410         * modules/time (Makefile.am): Likewise.
76411         * modules/unistd (Makefile.am): Likewise.
76412         * modules/wchar (Makefile.am): Likewise.
76413         * modules/wctype (Makefile.am): Likewise.
76414         Reported by Reuben Thomas <rrt@sc3d.org>.
76416 2008-08-29  Bruno Haible  <bruno@clisp.org>
76418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76419         any more.
76421 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76423         * MODULES.html.sh (Misc): Add bitrotate.
76425         * modules/bitrotate: New file.
76427         * lib/bitrotate.h: New file.
76429         * modules/bitrotate-tests: New file.
76431         * tests/test-bitrotate.c: New file.
76433         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76434         on the bitrotate module.
76436         * lib/arctwo.c: Use new bitrotate module.
76438 2008-08-29  Jim Meyering  <meyering@redhat.com>
76440         bootstrap: merge changes from coreutils
76441         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76442         of copied files.  Remove a kludge, now that this is fixed.
76443         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76444         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76445         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76447 2008-08-29  Bruno Haible  <bruno@clisp.org>
76449         * MODULES.html.sh: Remove --cvs-urls option.
76451 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76453         maint.mk: adjust to file name change
76454         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76456 2008-08-28  Jim Meyering  <meyering@redhat.com>
76458         * modules/getndelim2 (License): Relicense to LGPLv2+.
76459         Approved by Richard Stallman for the version of 1995, and by
76460         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76462 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76464         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76465         dummy if one is not available.  Do not touch them if
76466         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76467         (getc_maybe_unlocked): New.
76468         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76470 2008-08-26  Eric Blake  <ebb9@byu.net>
76472         doc/INSTALL: resync from autoconf
76473         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76474         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76475         moving...
76476         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76477         * INSTALL: Regenerate.
76478         * INSTALL.ISO: New file.
76479         * INSTALL.UTF-8: Likewise.
76481 2008-08-26  Jim Meyering  <meyering@redhat.com>
76483         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76484         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76485         these definitions conditional, so that they may be overridden, too.
76487 2008-08-26  Bruno Haible  <bruno@clisp.org>
76489         Generate INSTALL file variants with prettier quotes.
76490         * doc/Makefile (INSTALL_PRELUDE): New macro.
76491         (INSTALL): Use it.
76492         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76494 2008-08-26  Bruno Haible  <bruno@clisp.org>
76496         Run makeinfo in an English locale.
76497         * doc/Makefile (MAKEINFO): New variable.
76499 2008-08-26  Bruno Haible  <bruno@clisp.org>
76501         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76502         Suggested by Eric Blake.
76504 2008-08-25  Bruno Haible  <bruno@clisp.org>
76506         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76508 2008-08-25  Eric Blake  <ebb9@byu.net>
76510         c-stack: test that stack overflow can be caught
76511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76512         that platform allows handling stack overflow; at least OS/2 EMX
76513         has sigaltstack, but crashes before transferring control to
76514         handler on stack overflow.
76515         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76516         check for HAVE_STACK_OVERFLOW_HANDLING.
76517         Reported by Elbert Pol.
76519 2008-08-25  Bruno Haible  <bruno@clisp.org>
76521         * doc/posix-functions/strftime.texi: Fix description of strftime
76522         module.
76524 2008-08-24  Bruno Haible  <bruno@clisp.org>
76526         * tests/uniwidth/test-uc_width2.c: New file.
76527         * tests/uniwidth/test-uc_width2.sh: New file.
76528         * modules/uniwidth/width-tests (Files): Add the new files.
76529         (TESTS): Add uniwidth/test-uc_width2.sh.
76530         (TESTS_ENVIRONMENT): New variable.
76531         (check_PROGRAMS): Add test-uc_width2.
76532         (test_uc_width2_SOURCES): New variable.
76534         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76535         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76536         not 0x00AB.
76537         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76539 2008-08-22  Eric Blake  <ebb9@byu.net>
76541         test-lock, test-tls: mention why a test is skipped
76542         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76543         skipped.
76544         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76546         count-one-bits: relax license
76547         * modules/count-one-bits (License): Relicense to LGPLv2+.
76548         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76550 2008-08-22  Andreas Schwab  <schwab@suse.de>
76552         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76553         Remove spurious space in assignment.
76555 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76557         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76558         Paul Eggert <eggert@CS.UCLA.EDU>.
76560 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76562         * modules/gettext: Add m4/threadlib.m4.
76564 2008-08-19  Eric Blake  <ebb9@byu.net>
76566         test-c-stack: fix compilation failure on FreeBSD 5.0
76567         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76568         headers before <sys/resource.h>.
76569         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76570         the bug.
76571         Reported by Nelson H. F. Beebe.
76573         strverscmp: migrate from "strverscmp.h" to <string.h>
76574         * modules/string (Makefile.am): Add new hooks.
76575         * modules/strverscmp (Files): Remove strverscmp.h.
76576         (Depends-on): Add string.
76577         (configure.ac): Add indicator.
76578         (Include): Mention new header.
76579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76580         defaults.
76581         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76582         results.
76583         * lib/strverscmp.h: Delete.
76584         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76585         * tests/test-strverscmp.c (includes): Adjust client.
76586         * lib/check-version.c (includes): Likewise.
76587         * NEWS: Document the change.
76589         strverscmp: add unit test
76590         * modules/strverscmp-tests: New file.
76591         * tests/test-strverscmp.c: Likewise.
76593 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76595         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76596         regarding Windows crypto stuff, from Mono.
76598 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76600         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76601         if present, for intel RND.  Return error on failures.
76603 2008-08-18  Ben Pfaff  <blp@gnu.org>
76605         gitlog-to-changelog: give better diagnostic for failed pipe-open
76606         * build-aux/gitlog-to-changelog: Improve error message: suggest
76607         that the version of Git may be too old.
76609 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76611         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76612         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76614 2008-08-18  Bruno Haible  <bruno@clisp.org>
76616         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76617         pthread_in_use().
76619 2008-08-18  Bruno Haible  <bruno@clisp.org>
76621         * lib/glthread/threadlib.c: Include <pthread.h>.
76623 2008-08-18  Bruno Haible  <bruno@clisp.org>
76625         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76626         glthread_recursive_lock_* macros.
76627         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76628         Fix syntax error.
76630 2008-08-18  Bruno Haible  <bruno@clisp.org>
76632         * lib/glthread/thread.c: Avoid forcing a context switch right after
76633         thread creation.
76635 2008-08-17  Bruno Haible  <bruno@clisp.org>
76637         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76638         * lib/glthread/thread.h: Provide Win32 specific implementation.
76639         * modules/thread (Files): Add lib/glthread/thread.c.
76640         (Depends-on): Add lock.
76641         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76643 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76645         New module 'yield'.
76646         * modules/yield: New file.
76647         * lib/glthread/yield.h: New file.
76648         * m4/yield.m4: New file.
76649         * MODULES.html.sh (Multithreading): Add yield.
76651 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76653         New module 'thread'.
76654         * modules/thread: New file.
76655         * lib/glthread/thread.h: New file.
76656         * m4/thread.m4: New file.
76657         * MODULES.html.sh (Multithreading): Add thread.
76659 2008-08-17  Bruno Haible  <bruno@clisp.org>
76661         * lib/glthread/lock.h: Include <stdlib.h> always.
76662         * lib/glthread/tls.h: Likewise.
76663         * lib/glthread/cond.h: Likewise.
76665 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76667         New module 'cond'.
76668         * modules/cond: New file.
76669         * lib/glthread/cond.h: New file.
76670         * lib/glthread/cond.c: New file.
76671         * m4/cond.m4: New file.
76672         * MODULES.html.sh (Multithreading): Add cond.
76674 2008-08-16  Eric Blake  <ebb9@byu.net>
76676         c-stack: fix regression on Irix 5.3 from 2008-06-21
76677         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76678         sa_sigaction...
76679         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76680         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76681         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76682         * modules/signal (Makefile.am): Use the value.
76683         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76684         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76685         * doc/posix-headers/signal.texi (signal.h): Document this
76686         portability issue.
76687         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76688         Reported by Tom G. Christensen.
76690 2008-08-17  Bruno Haible  <bruno@clisp.org>
76692         New module 'threadlib'.
76693         * modules/threadlib: New file.
76694         * lib/glthread/threadlib.c: New file, extracted from
76695         lib/glthread/lock.c.
76696         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76697         functions.
76698         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76699         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76700         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76701         macros.
76702         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76703         (gl_DISABLE_THREADS): Remove macro.
76704         * modules/lock (Files): Remove build-aux/config.rpath.
76705         (Depends-on): Remove havelib. Add threadlib.
76706         (configure.ac-early): Remove section.
76707         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76708         * modules/tls (Depends-on): Remove lock. Add threadlib.
76709         (Link): New section, copied from threadlib.
76710         * MODULES.html.sh (Multithreading): Add threadlib.
76712 2008-08-14  Bruno Haible  <bruno@clisp.org>
76714         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76715         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76716         glthread_rwlock_unlock, glthread_rwlock_destroy,
76717         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76718         glthread_recursive_lock_destroy): Define as macros always.
76719         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76720         glthread_lock_lock.
76721         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76722         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76723         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76724         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76725         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76726         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76727         (glthread_recursive_lock_lock_func): Renamed from
76728         glthread_recursive_lock_lock.
76729         (glthread_recursive_lock_unlock_func): Renamed from
76730         glthread_recursive_lock_unlock.
76731         (glthread_recursive_lock_destroy_func): Renamed from
76732         glthread_recursive_lock_destroy.
76734 2008-08-14  Bruno Haible  <bruno@clisp.org>
76736         * lib/glthread/lock.h: Renamed from lib/lock.h.
76737         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76738         * lib/glthread/tls.h: Renamed from lib/tls.h.
76739         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76740         * lib/fstrcmp.c: Update includes.
76741         * lib/strsignal.c: Update includes.
76742         * modules/lock (Files, Makefile.am): Update.
76743         (Include): Change to "glthread/lock.h".
76744         * modules/tls (Files, Makefile.am): Update.
76745         (Include): Change to "glthread/tls.h".
76746         * tests/test-lock.c: Update includes.
76747         * tests/test-tls.c: Update includes.
76748         * NEWS: Mention the renamed header files.
76750 2008-08-11  Jim Meyering  <meyering@redhat.com>
76752         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76754 2008-08-11  Eric Blake  <ebb9@byu.net>
76756         test-c-stack: avoid C99-ism
76757         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76758         before statement.
76759         Reported by Alain Guibert.
76761 2008-08-10  Jim Meyering  <meyering@redhat.com>
76763         ensure that return value of uinttostr et al are not ignored
76764         * lib/inttostr.h (__GNUC_PREREQ): Define.
76765         (__attribute_warn_unused_result__): Define.
76766         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76768 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76770         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76771         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76773 2008-08-07  Jim Meyering  <meyering@redhat.com>
76775         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76777         * modules/mkstemp (License): Relicense under LGPLv2+.
76778         * modules/tempname (License): Likewise.
76780 2008-08-06  Bruno Haible  <bruno@clisp.org>
76782         * lib/poll.c (poll): Further micro-optimization.
76784 2008-08-06  Jim Meyering  <meyering@redhat.com>
76786         inet_pton.c: use locale-independent tolower
76787         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76788         (inet_pton6): Use c_tolower rather than tolower.
76789         * modules/inet_pton (Depends-on): Add c-ctype.
76791 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76793         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76794         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76796 2008-08-06  Jim Meyering  <meyering@redhat.com>
76798         * modules/inet_pton (License): Relicense under LGPLv2+.
76800 2008-08-03  Bruno Haible  <bruno@clisp.org>
76802         Additional non-aborting API for lock and tls.
76803         * lib/lock.h: Include <errno.h>.
76804         (glthread_lock_init): New macro/function.
76805         (gl_lock_init): Define as wrapper around glthread_lock_init.
76806         (glthread_lock_lock): New macro/function.
76807         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76808         (glthread_lock_unlock): New macro/function.
76809         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76810         (glthread_lock_destroy): New macro/function.
76811         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76812         (glthread_rwlock_init): New macro/function.
76813         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76814         (glthread_rwlock_rdlock): New macro/function.
76815         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76816         (glthread_rwlock_wrlock): New macro/function.
76817         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76818         (glthread_rwlock_unlock): New macro/function.
76819         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76820         (glthread_rwlock_destroy): New macro/function.
76821         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76822         (glthread_recursive_lock_init): New macro/function.
76823         (gl_recursive_lock_init): Define as wrapper around
76824         glthread_recursive_lock_init.
76825         (glthread_recursive_lock_lock): New macro/function.
76826         (gl_recursive_lock_lock): Define as wrapper around
76827         glthread_recursive_lock_lock.
76828         (glthread_recursive_lock_unlock): New macro/function.
76829         (gl_recursive_lock_unlock): Define as wrapper around
76830         glthread_recursive_lock_unlock.
76831         (glthread_recursive_lock_destroy): New macro/function.
76832         (gl_recursive_lock_destroy): Define as wrapper around
76833         glthread_recursive_lock_destroy.
76834         (glthread_once): New macro/function.
76835         (gl_once): Define as wrapper around glthread_once.
76836         Update function declarations.
76837         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76838         glthread_rwlock_init. Return error code.
76839         (glthread_rwlock_rdlock_multithreaded): Renamed from
76840         glthread_rwlock_rdlock. Return error code.
76841         (glthread_rwlock_wrlock_multithreaded): Renamed from
76842         glthread_rwlock_wrlock. Return error code.
76843         (glthread_rwlock_unlock_multithreaded): Renamed from
76844         glthread_rwlock_unlock. Return error code.
76845         (glthread_rwlock_destroy_multithreaded): Renamed from
76846         glthread_rwlock_destroy. Return error code.
76847         (glthread_recursive_lock_init_multithreaded): Renamed from
76848         glthread_recursive_lock_init. Return error code.
76849         (glthread_recursive_lock_lock_multithreaded): Renamed from
76850         glthread_recursive_lock_lock. Return error code.
76851         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76852         glthread_recursive_lock_unlock. Return error code.
76853         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76854         glthread_recursive_lock_destroy. Return error code.
76855         (glthread_once_call): Make static.
76856         (glthread_once_multithreaded): Renamed from glthread_once.
76857         * lib/tls.h: Include <errno.h>.
76858         (glthread_tls_key_init): New macro/function.
76859         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76860         (glthread_tls_set): New macro/function.
76861         (gl_tls_set): Define as wrapper around glthread_tls_set.
76862         (glthread_tls_key_destroy): New macro/function.
76863         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76864         Update function declarations.
76865         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76866         glthread_tls_get.
76867         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76869 2008-08-04  Eric Blake  <ebb9@byu.net>
76871         gnumakefile: use space, not TAB, outside of targets
76872         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76874 2008-08-02  Jim Meyering  <meyering@redhat.com>
76876         getdate.y: avoid locale-dependent date parsing failure
76877         In Turkish locales, getdate would fail to recognize keywords
76878         containing a lowercase "i".  The solution is not to rely on
76879         locale-sensitive case-conversion.
76880         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76881         (lookup_word): Use c_toupper in place of toupper.
76882         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76883         Reported by Vefa Bicakci <bicave@superonline.com> in
76884         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76885         * modules/getdate (Depends-on): Add c-ctype.
76887 2008-08-02  Bruno Haible  <bruno@clisp.org>
76889         * gnulib-tool (func_import): When updating or creating a .gitignore
76890         file, prepend each added line with a slash, and ignore leading slashes
76891         from the existing lines.
76892         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
76894 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76896         Portability fix for GNU make 3.79.1.
76897         * top/GNUmakefile: Avoid 'else COND', which older GNU make
76898         versions do not understand.
76900 2008-08-01  Bruno Haible  <bruno@clisp.org>
76902         Work around bug of HP-UX 10.20 cc with -0.0 literal.
76903         * tests/test-isnanf.h (zero): New variable.
76904         (main): Avoid literal -0.0f.
76905         * tests/test-isnand.h (zero): New variable.
76906         (main): Avoid literal -0.0.
76907         * tests/test-isnanl.h (zero): New variable.
76908         (main): Avoid literal -0.0L.
76909         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
76910         (test_float, test_double, test_long_double): Avoid literals -0.0f,
76911         -0.0, -0.0L.
76912         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
76913         (test_signbitd): Avoid literal -0.0.
76914         (test_signbitl): Avoid literal -0.0L.
76915         * tests/test-ceilf1.c (zero): New variable.
76916         (main): Avoid literal -0.0f.
76917         * tests/test-ceill.c (zero): New variable.
76918         (main): Avoid literal -0.0L.
76919         * tests/test-floorf1.c (zero): New variable.
76920         (main): Avoid literal -0.0f.
76921         * tests/test-floorl.c (zero): New variable.
76922         (main): Avoid literal -0.0L.
76923         * tests/test-roundf1.c (zero): New variable.
76924         (main): Avoid literal -0.0f.
76925         * tests/test-round1.c (zero): New variable.
76926         (main): Avoid literal -0.0.
76927         * tests/test-roundl.c (zero): New variable.
76928         (main): Avoid literal -0.0L.
76929         * tests/test-truncf1.c (zero): New variable.
76930         (main): Avoid literal -0.0f.
76931         * tests/test-trunc1.c (zero): New variable.
76932         (main): Avoid literal -0.0.
76933         * tests/test-truncl.c (zero): New variable.
76934         (main): Avoid literal -0.0L.
76935         * tests/test-frexp.c (zero): New variable.
76936         (main): Avoid literal -0.0.
76937         * tests/test-frexpl.c (zero): New variable.
76938         (main): Avoid literal -0.0L.
76939         * tests/test-ldexpl.c (zero): New variable.
76940         (main): Avoid literal -0.0L.
76941         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76942         (zerod, zerol): New variables.
76943         (test_function): Avoid literals -0.0, -0.0L.
76944         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76945         (zerod, zerol): New variables.
76946         (test_function): Avoid literals -0.0, -0.0L.
76947         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76948         (zerod, zerol): New variables.
76949         (test_function): Avoid literals -0.0, -0.0L.
76950         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76951         (zerod, zerol): New variables.
76952         (test_function): Avoid literals -0.0, -0.0L.
76953         * tests/test-strtod.c (zero): New variable.
76954         (main): Avoid literal -0.0.
76955         Reported by Jonathan C. Patschke <jp@centtech.com>.
76957 2008-07-31  Jim Meyering  <meyering@redhat.com>
76959         sha256.h: correct definition of SHA224_DIGEST_SIZE
76960         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
76961         Reported by Paulie Pena IV <paulie4@gmail.com>.
76962         Define as 224 / 8, rather than as a literal.
76963         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
76964         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
76965         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
76967 2008-07-31  Bruno Haible  <bruno@clisp.org>
76969         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
76970         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
76971         Reported by Jonathan Patschke <jp@centtech.com>.
76973 2008-07-31  Bruno Haible  <bruno@clisp.org>
76975         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
76976         Reported by Paolo Bonzini <bonzini@gnu.org>.
76978 2008-07-30  Eric Blake  <ebb9@byu.net>
76980         test-strtod: allow compilation without -lm
76981         * tests/test-strtod.c (main): Avoid link dependence on fabs.
76982         Reported by Dennis Clarke <blastwave@gmail.com>.
76984 2008-07-28  Jim Meyering  <meyering@redhat.com>
76986         bootstrap: work also when there are no .po files in po/
76987         * build-aux/bootstrap (update_po_files): Complete the change
76988         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
76990 2008-07-27  Jim Meyering  <meyering@redhat.com>
76992         * users.txt: Add zile.
76994 2008-07-26  Ben Pfaff  <blp@gnu.org>
76996         Add missing dependencies on new m4/exponent[fdl].m4 files.
76997         * modules/isnanf-nolibm: Add m4/exponentf.m4.
76998         * modules/isnand-nolibm: Add m4/exponentd.m4.
76999         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77000         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77001         m4/isnan[fdl].m4, because the macros actually used moved.
77002         Reported by Jim Meyering.
77004 2008-07-14  Ben Pfaff  <blp@gnu.org>
77006         Add isinf module.
77007         * lib/isinf.c: New file.
77008         * lib/math.in.h: Define isinf macro if we have decided to replace
77009         it.
77010         * m4/isinf.m4: New file.
77011         * m4/math_h.m4: Initialize and substitute variables for isinf
77012         module.
77013         * modules/isinf: New file.
77014         * modules/isinf-tests: New file.
77015         * modules/math: Add substitutions for new module.
77016         * tests/test-isinf.c: New file.
77017         * doc/posix-functions/isinf.texi: Mention new module.
77018         * MODULES.html.sh: Mention new module.
77020 2008-07-14  Ben Pfaff  <blp@gnu.org>
77022         Factor out some macros for use by additional modules.
77023         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77024         exponentf.m4.
77025         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77026         exponentd.m4.
77027         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77028         file exponentl.m4.
77029         * m4/exponentf.m4: New file.
77030         * m4/exponentd.m4: New file.
77031         * m4/exponentl.m4: New file.
77032         * modules/isnanf: Use new file m4/exponentf.m4.
77033         * modules/isnand: Use new file m4/exponentd.m4.
77034         * modules/isnanl: Use new file m4/exponentl.m4.
77036 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77038         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77039         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77040         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77041         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77043         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77044         readlink on platforms without PATH_MAX.
77046 2008-07-21  Eric Blake  <ebb9@byu.net>
77048         Warn, not fail, on stale version.
77049         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77051         Don't allow installation with stale devel version number.
77052         * top/GNUmakefile (_is-install-target): New macro.
77053         (_curr-ver): Forbid installation with stale version number.
77055 2008-07-20  Bruno Haible  <bruno@clisp.org>
77057         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77058         TESTS_ENVIRONMENT.
77059         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77061 2008-07-20  Bruno Haible  <bruno@clisp.org>
77063         * lib/c-stack.h (c_stack_action): Add documentation.
77064         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77066 2008-07-20  Bruno Haible  <bruno@clisp.org>
77068         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77069         * modules/readlink (License): Likewise.
77071 2008-07-17  Eric Blake  <ebb9@byu.net>
77073         * modules/c-stack (Link): Fix typo.
77075         Make c-stack use libsigsegv, when available.
77076         * modules/c-stack (Depends-on): Add libsigsegv.
77077         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77078         needed.
77079         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77080         (segv_handler, overflow_handler, c_stack_action)
77081         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77082         implementation when libsigsegv is available, but only when using
77083         the library is necessary.
77084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77085         comment, explaining why XSI check fails on Linux.
77086         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77087         * tests/test-c-stack2.sh: Tweak skip message.
77088         * NEWS: Document new link-time requirements.
77090 2008-07-16  Eric Blake  <ebb9@byu.net>
77092         c-stack: Expose false positives when not using libsigsegv.
77093         * modules/c-stack-tests (Files): Expand test.
77094         * tests/test-c-stack.c (main): Add means to conditionally trigger
77095         non-overflow SIGSEGV.
77096         * tests/test-c-stack2.sh: New file.
77098 2008-07-14  Bruno Haible  <bruno@clisp.org>
77100         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77101         Reported by Eric Blake.
77103 2008-07-14  Sam Steingold  <sds@gnu.org>
77104             Bruno Haible  <bruno@clisp.org>
77106         New module libsigsegv.
77107         * modules/libsigsegv: New file.
77108         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77109         modifications.
77110         * MODULES.html.sh (Signal handling): New section.
77112 2008-07-14  Bruno Haible  <bruno@clisp.org>
77114         * modules/unictype/ctype-* (Description): Add the word "function".
77115         Improves the resulting doc in MODULES.html.
77117 2008-07-12  Ben Pfaff  <blp@gnu.org>
77119         Add longlong module.
77120         * modules/longlong: New file.
77122 2008-07-12  Bruno Haible  <bruno@clisp.org>
77124         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77125         to empty.
77127 2008-07-10  Ben Pfaff  <blp@gnu.org>
77129         Add isnan module.
77130         * doc/posix-functions/isnan.texi: Mention new module.
77131         * lib/math.in.h: Define isnan macro if we have decided to replace
77132         it.
77133         * m4/isnan.m4: New file.
77134         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77135         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77136         also.
77137         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77138         redundancy.
77139         * m4/math_h.m4: Initialize and substitute variables for isnan
77140         module.
77141         * modules/isnan: New file.
77142         * modules/isnan-tests: New file.
77143         * modules/math: Add substitutions for new module.
77144         * tests/test-isnan.c: New file.
77145         * MODULES.html.sh: Mention new module.
77147 2008-07-10  Ben Pfaff  <blp@gnu.org>
77149         Add isnanf module.
77150         * lib/isnanf.m4: New file.
77151         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77152         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77153         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77154         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77155         * modules/isnanf: New file.
77156         * modules/isnanf-tests: New file.
77157         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77158         files.
77159         * tests/test-isnanf-nolibm.c: factored most of its contents into
77160         new file tests/test-isnanf.h.
77161         * tests/test-isnanf.h: New file.
77162         * tests/test-isnanf.c: New file.
77163         * MODULES.html.sh: Mention new module.
77164         * doc/glibc-functions/isnanf.texi: Mention new module.
77166 2008-07-10  Ben Pfaff  <blp@gnu.org>
77168         Add isnand module.
77169         * lib/isnand.h: New file.
77170         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77171         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77172         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77173         functionality also.
77174         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77175         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77176         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77177         * modules/isnand: New file.
77178         * modules/isnand-tests: New file.
77179         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77180         files.
77181         * tests/test-isnand-nolibm.c: factored most of its contents into
77182         new file tests/test-isnand.h.
77183         * tests/test-isnand.h: New file.
77184         * tests/test-isnand.c: New file.
77185         * MODULES.html.sh: Mention new module.
77187 2008-07-10  Ben Pfaff  <blp@gnu.org>
77189         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77190         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77191         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77192         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77193         * modules/isnanf-nolibm: Update references to renamed files.
77194         * modules/isnand-nolibm: Likewise.
77195         * modules/isnanf-nolibm-tests: Likewise.
77196         * modules/isnand-nolibm-tests: Likewise.
77197         * lib/frexp.c: Likewise.
77198         * lib/isfinite.c: Likewise.
77199         * lib/signbitd.c: Likewise.
77200         * lib/signbitf.c: Likewise.
77201         * lib/vasnprintf.c: Likewise.
77202         * tests/test-ceilf1.c: Likewise.
77203         * tests/test-ceilf2.c: Likewise.
77204         * tests/test-floorf1.c: Likewise.
77205         * tests/test-floorf2.c: Likewise.
77206         * tests/test-frexp.c: Likewise.
77207         * tests/test-round1.c: Likewise.
77208         * tests/test-round2.c: Likewise.
77209         * tests/test-roundf1.c: Likewise.
77210         * tests/test-strtod.c: Likewise.
77211         * tests/test-trunc1.c: Likewise.
77212         * tests/test-trunc2.c: Likewise.
77213         * tests/test-truncf1.c: Likewise.
77214         * tests/test-truncf2.c: Likewise.
77215         * NEWS: Mention the renamed header files.
77217 2008-07-11  Jim Meyering  <meyering@redhat.com>
77219         vc-list-files: make the last-resort awk code more portable
77220         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77221         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77222         does not support it.
77224 2008-07-10  Eric Blake  <ebb9@byu.net>
77226         Work with tar's bootstrap.
77227         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77228         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77229         an m4 comment.
77231 2008-07-09  Jim Meyering  <meyering@redhat.com>
77233         posix-shell.m4: fix typo that made this test malfunction
77234         * m4/posix-shell.m4: Remove capitalization in variable name.
77236 2008-07-08  Bruno Haible  <bruno@clisp.org>
77238         * m4/onceonly.m4: Update comments.
77239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77241 2008-07-04  Jim Meyering  <meyering@redhat.com>
77243         * users.txt: Add vc-dwim.
77244         (bison, coreutils): Use the gitweb URL.
77246 2008-07-03  Jim Meyering  <meyering@redhat.com>
77248         * users.txt: Add libffcall.  From Sam Steingold.
77250 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77252         getdate.y: do not ignore TZ with relative day, month or year offset
77253         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77254         relative-date-handling, since otherwise, the latter would clobber the
77255         sole output (an updated Start value) of the tz-handling block.
77256         * tests/test-getdate.c: Tests for the fix
77258 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77260         Recognize 'foo_LIBRARIES += libgnu.a'.
77261         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77262         makefile snippet has already specified an installation location,
77263         also using '+='.
77265 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77267         getdate.y: factor out common actions
77268         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77269         Use them in place of open-coded actions.
77271 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77273         Add self-test for getdate module.
77274         * modules/getdate-tests: New file.
77275         * tests/test-getdate.c: New file.
77277 2008-06-29  Bruno Haible  <bruno@clisp.org>
77279         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77280         .gitignore.
77281         Reported by Sylvain Beucler <beuc@beuc.net>.
77283 2008-06-29  Bruno Haible  <bruno@clisp.org>
77285         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77286         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77288 2008-06-29  Bruno Haible  <bruno@clisp.org>
77290         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77291         EXTRA_DIST.
77292         Reported by Sylvain Beucler <beuc@beuc.net>.
77294 2008-06-26  Jim Meyering  <meyering@redhat.com>
77296         make several modules depend on the "open" module
77297         This provides slightly increased consistency when opening-for-write
77298         the name of a non-directory spelled with a trailing slash.
77299         * modules/chdir-safer: Likewise.
77300         * modules/chown: Likewise.
77301         * modules/clean-temp: Likewise.
77302         * modules/copy-file: Likewise.
77303         * modules/fchdir: Likewise.
77304         * modules/fcntl-safer: Likewise.
77305         * modules/pipe: Likewise.
77306         * modules/utime: Likewise.
77307         Prompted by Eric Blake and Bruno Haible.
77309 2008-06-24  Andreas Schwab  <schwab@suse.de>
77311         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77312         literals can be used as initializers for global variables.
77314 2008-06-23  Eric Blake  <ebb9@byu.net>
77316         Make gnulib-cache.m4 easier to diff.
77317         * gnulib-tool (func_import): Allow newlines when reading cached
77318         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77320 2008-06-23  Bruno Haible  <bruno@clisp.org>
77322         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77323         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77324         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77325         m4/signalblocking.m4.
77326         (gl_PREREQ_SIGACTION): Don't invoke it.
77327         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77328         gl_PREREQ_SIG_HANDLER_H.
77329         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77330         Don't check for sigaction here.
77332 2008-06-23  Bruno Haible  <bruno@clisp.org>
77334         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77335         (install_handlers): Don't set the SA_RESETHAND flag.
77337 2008-06-23  Bruno Haible  <bruno@clisp.org>
77339         * m4/sigaction.m4: Comment fixes.
77340         * lib/signal.in.h: Likewise.
77342 2008-06-23  Eric Blake  <ebb9@byu.net>
77344         Fix typo.
77345         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77347         Avoid SA_ namespace.
77348         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77349         Reported by Ralf Wildenhues.
77351         Avoid test failure due to SA_RESTORER.
77352         * tests/test-sigaction.c (SA_MASK): New macro.
77353         (main): Avoid failing due to extension flags being set.
77354         Reported by Jim Meyering.
77356         Revert use of sig-handler.h in sigprocmask.c.
77357         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77358         it requires the existence of struct sigaction.
77359         * lib/sigprocmask.c (handler_t): Restore typedef.
77360         (rpl_signal, old_handlers): Use local type.
77362 2008-06-22  Bruno Haible  <bruno@clisp.org>
77364         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77365         conditionally.
77366         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77368 2008-06-22  Bruno Haible  <bruno@clisp.org>
77370         * doc/posix-functions/siginterrupt.texi: Move note.
77372         * lib/signal.in.h (SA_RESTART): New macro.
77373         * lib/sigaction.c: Update comment.
77375         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77377         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77378         (gl_PREREQ_SIGPROCMASK): Invoke it.
77379         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77381         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77383         * lib/sigprocmask.c: Update a comment.
77385 2008-06-21  Eric Blake  <ebb9@byu.net>
77387         Use sigaction module rather than signal().
77388         * modules/c-stack (Depends-on): Add sigaction.
77389         * modules/fatal-signal (Depends-on): Likewise.
77390         * modules/nanosleep (Depends-on): Likewise.
77391         * modules/sigprocmask (Files): Add sig-handler.h.
77392         * modules/sigaction (Files): Likewise.
77393         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77394         Eggert.
77395         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77396         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77397         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77398         (init_fatal_signals): Likewise.
77399         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77400         (siginterrupt): Delete fallback.
77401         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77402         instead.
77403         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77404         siginterrupt.
77406         New module sigaction, for mingw.
77407         * modules/sigaction: New module...
77408         * modules/sigaction-tests: ...and its test.
77409         * m4/sigaction.m4: New file.
77410         * lib/sigaction.c: Likewise.
77411         * tests/test-sigaction.c: Likewise.
77412         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77413         * modules/signal (Makefile.am): Likewise.
77414         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77415         needed.
77416         * doc/posix-headers/signal.texi (signal.h): Mention provided
77417         types.
77418         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77419         that sigaction is preferable.
77420         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77421         module.
77422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77423         sigaction.
77425         Improve robustness of sigprocmask by overriding signal.
77426         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77427         is in use.
77428         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77429         (SIGKILL, SIGSTOP): Provide fallbacks.
77430         (rpl_signal): Implement.
77431         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77432         signal can be called inside handlers.
77434         Fix nanosleep module on mingw.
77435         * modules/nanosleep (Depends-on): Add sys_select.
77436         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77438         Fix licensing of sigprocmask.
77439         * modules/raise (License): Relicense as LGPL.
77441 2008-06-21  Bruno Haible  <bruno@clisp.org>
77443         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77444         result if it contains question marks.
77445         Reported by Michael Geng <linux@michaelgeng.de>.
77447 2008-06-19  Bruno Haible  <bruno@clisp.org>
77449         Fix CVS-ism.
77450         * doc/gnulib.texi: Include updated-stamp.texi.
77451         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77452         (updated-stamp.texi): New rule.
77453         (gnulib.info): Depend on it.
77454         * doc/.gitignore: Add updated-stamp.texi.
77455         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77457 2008-06-19  Bruno Haible  <bruno@clisp.org>
77459         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77460         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77462 2008-06-19  Eric Blake  <ebb9@byu.net>
77464         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77465         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77466         Reported by Stepan Kasal.
77468 2008-06-18  Bruno Haible  <bruno@clisp.org>
77470         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77471         Reported by Eric Blake.
77473 2008-06-18  Eric Blake  <ebb9@byu.net>
77475         Work around cygwin 1.5.25 strsignal bug.
77476         * tests/test-strsignal.c: Allow for const char *.
77477         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77479 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77481         * users.txt: Update URL to article and add author/date
77482         information.
77484 2008-06-17  Bruno Haible  <bruno@clisp.org>
77486         New macro gl_DISABLE_THREADS.
77487         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77488         if the user did not pass --enable-threads or --disable-threads option.
77489         (gl_DISABLE_THREADS): New macro.
77490         Reported by Eric Blake <ebb9@byu.net>.
77492 2008-06-17  Bruno Haible  <bruno@clisp.org>
77494         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77495         when the macro ignores it.
77496         Based on a patch by Eric Blake <ebb9@byu.net>.
77498 2008-06-17  Bruno Haible  <bruno@clisp.org>
77500         * modules/tls (License): Change to LGPLv2+.
77501         Reported by Eric Blake.
77503 2008-06-17  Eric Blake  <ebb9@byu.net>
77505         Simplify c-stack prerequisites.
77506         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77508         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77509         check.
77510         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77511         <sys/resource.h>.
77513         Move c-stack test into testsuite.
77514         * modules/c-stack-tests: New file.
77515         * lib/c-stack.c [DEBUG]: Move test program...
77516         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77517         fail test if sigaltstack is lacking.
77518         * tests/test-c-stack.sh: New driver file.
77520 2008-06-16  Eric Blake  <ebb9@byu.net>
77522         Use raise module consistently.
77523         * modules/fatal-signal (Depends-on): Add raise.
77524         * modules/sigprocmask (Depends-on): Likewise.
77525         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77526         * lib/sigprocmask.c (sigprocmask): Likewise.
77527         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77528         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77530         Fix compliance bug in sigpending.
77531         * lib/sigprocmask.c (sigpending): Return pending array via
77532         parameter, not return value.
77534 2008-06-14  Eric Blake  <ebb9@byu.net>
77536         Improve obstack-printf test code.
77537         * tests/test-obstack-printf.c (test_function): Fix comment, and
77538         simplify usage of obstack_* in macros.  Add a test for coverage.
77539         Reported by Bruno Haible.
77541 2008-06-14  Bruno Haible  <bruno@clisp.org>
77543         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77544         array size as a constant, not as a const variable.
77545         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77546         AC_USE_SYSTEM_EXTENSIONS.
77547         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77548         Test whether the obstack_printf function actually exists.
77549         * modules/obstack-printf (Depends-on): Add extensions.
77550         (Include): Remove obstack.h.
77551         * modules/obstack-printf-posix (Depends-on): Add extensions.
77552         (Include): Remove obstack.h.
77554 2008-06-13  Eric Blake  <ebb9@byu.net>
77556         Add obstack-printf and obstack-printf-posix modules.
77557         * modules/obstack-printf: New file.
77558         * modules/obstack-printf-posix: Likewise.
77559         * MODULES.html.sh (Misc): Mention them.
77560         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77561         Likewise.
77562         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77563         Likewise.
77564         * modules/stdio (Makefile.am): Accomodate new modules.
77565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77566         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77567         Declare.
77568         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77569         functions.
77570         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77571         (gl_REPLACE_OBSTACK_PRINTF): New macros
77572         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77573         * tests/test-obstack-printf.c: New file.
77574         * modules/obstack-printf-tests: Likewise.
77575         * modules/obstack-printf-posix-tests: Likewise.
77577 2008-06-11  Bruno Haible  <bruno@clisp.org>
77579         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77580         * lib/open.c: Include errno.h.
77581         (open): Fail when attempting to write to a file that has a trailing
77582         slash.
77583         * tests/test-open.c (main): Test against trailing slash bug.
77584         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77586 2008-06-10  Bruno Haible  <bruno@clisp.org>
77588         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77589         for $? to work inside the trap command, with various /bin/sh-s.
77590         * tests/test-vc-list-files-cvs.sh: Likewise.
77592 2008-06-10  Bruno Haible  <bruno@clisp.org>
77594         * lib/acl-internal.h: Don't include gettext.h here.
77595         * lib/set-mode-acl.c: Include gettext.h here.
77596         * lib/copy-acl.c: Likewise.
77598 2008-06-10  Bruno Haible  <bruno@clisp.org>
77600         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77601         * lib/wait-process.c (wait_subprocess): Likewise.
77602         * lib/execute.h (execute): Add termsigp argument.
77603         * lib/execute.c (execute): Likewise.
77604         * lib/csharpcomp.c (compile_csharp_using_pnet,
77605         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77606         * lib/csharpexec.c (execute_csharp_using_pnet,
77607         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77608         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77609         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77610         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77611         is_jikes_present): Update.
77612         * lib/javaexec.c (execute_java_class): Update.
77613         * lib/javaversion.c (execute_and_read_line): Update.
77614         * NEWS: Document the changes.
77615         Reported by Eric Blake.
77617 2008-06-10  Eric Blake  <ebb9@byu.net>
77619         Add missing include.
77620         * tests/test-strstr.c (includes): Add <signal.h>.
77621         * tests/test-strcasestr.c (includes): Likewise.
77622         * tests/test-memmem.c (includes): Likewise.
77624 2008-06-10  Bruno Haible  <bruno@clisp.org>
77626         * lib/wait-process.c (wait_subprocess): Add an assertion.
77628 2008-06-10  Bruno Haible  <bruno@clisp.org>
77630         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77632 2008-06-10  Bruno Haible  <bruno@clisp.org>
77634         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77635         using alarm().
77636         * tests/test-strcasestr.c (main): Likewise.
77637         * tests/test-strstr.c (main): Likewise.
77639 2008-06-09  Bruno Haible  <bruno@clisp.org>
77641         Work around the Solaris 10 ACE ACLs ABI change.
77642         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77643         declare if ACL_NO_TRIVIAL is present.
77644         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77645         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77646         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77647         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77648         define if ACL_NO_TRIVIAL is present.
77649         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77650         and use the current ABI.
77651         (file_has_acl): Use same #if condition as elsewhere.
77652         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77653         in use, and use the current ABI.
77654         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77655         Reported by Jim Meyering.
77657 2008-06-09  Eric Blake  <ebb9@byu.net>
77659         Work around environments that (stupidly) ignore SIGALRM.
77660         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77661         before using alarm().
77662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77663         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77664         Reported by Ian Beckwith <ianb@erislabs.net>.
77666         Produce autobuild blurb earlier in log.
77667         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77669 2008-06-09  Jim Meyering  <meyering@redhat.com>
77670         and Ondřej Vašík  <ovasik@redhat.com>
77672         utimens.c: correct kernel bug work-around
77673         Ondřej Vašík found that the invalid return value of 280 indicates
77674         failure, not success, and the kernel bug we're trying to work
77675         around affects not just the utimensat call, but also the fallback
77676         futimens call.
77677         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77678         not success.
77679         [HAVE_FUTIMENS]: Use the same work-around, here.
77681 2008-06-09  Jim Meyering  <meyering@redhat.com>
77683         add more guards around definition of ACE_-related code
77684         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77685         ALLOW and ACE_OWNER are also defined.
77687 2008-06-08  Bruno Haible  <bruno@clisp.org>
77689         * lib/acl-internal.h: Add me as co-author.
77690         * lib/file-has-acl.c: Likewise.
77691         * lib/set-mode-acl.c: Likewise.
77692         * lib/copy-acl.c: Likewise.
77694 2008-06-08  Bruno Haible  <bruno@clisp.org>
77696         Add support for AIX ACLs.
77697         * lib/acl-internal.h (acl_nontrivial): New declaration.
77698         * lib/file-has-acl.c (acl_nontrivial): New function.
77699         (file_has_acl): Add implementation using AIX 4 ACL API.
77700         * lib/set-mode-acl.c (qset_acl): Likewise.
77701         * lib/copy-acl.c (qcopy_acl): Likewise.
77703 2008-06-08  Bruno Haible  <bruno@clisp.org>
77705         Add support for HP-UX ACLs.
77706         * lib/acl-internal.h (acl_nontrivial): New declaration.
77707         * lib/file-has-acl.c (acl_nontrivial): New function.
77708         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77709         * lib/set-mode-acl.c (qset_acl): Likewise.
77710         * lib/copy-acl.c (qcopy_acl): Likewise.
77712 2008-06-08  Bruno Haible  <bruno@clisp.org>
77714         Add support for Cygwin ACLs.
77715         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77716         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77717         the chmod_or_fchmod call.
77718         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77720 2008-06-08  Bruno Haible  <bruno@clisp.org>
77722         Fix bug with setuid modes in Solaris 10+ code.
77723         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77724         succeeded, when the mode contains some special bits.
77726 2008-06-08  Bruno Haible  <bruno@clisp.org>
77728         Add support for Solaris 7..10 ACLs.
77729         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77730         declarations.
77731         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77732         functions.
77733         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77734         * lib/set-mode-acl.c (qset_acl): Likewise.
77735         * lib/copy-acl.c (qcopy_acl): Likewise.
77737 2008-06-08  Bruno Haible  <bruno@clisp.org>
77739         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77740         declaration.
77741         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77742         (acl_access_nontrivial): Remove MacOS X case.
77743         (file_has_acl): Use acl_extended_nontrivial.
77744         * lib/copy-acl.c (qcopy_acl): Likewise.
77746 2008-06-08  Bruno Haible  <bruno@clisp.org>
77748         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77750 2008-06-08  Jim Meyering  <meyering@redhat.com>
77752         * modules/acl (Maintainer): Add Bruno Haible.
77754 2008-06-07  Bruno Haible  <bruno@clisp.org>
77756         Improve support for Tru64 ACLs.
77757         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77758         ACL on OSF/1.
77760 2008-06-07  Bruno Haible  <bruno@clisp.org>
77762         Add support for MacOS X ACLs.
77763         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77764         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77765         * lib/set-mode-acl.c (qset_acl): Likewise.
77766         * lib/copy-acl.c (qcopy_acl): Likewise.
77768 2008-06-07  Bruno Haible  <bruno@clisp.org>
77770         Fix memory leak introduced on 2008-05-22.
77771         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77772         use.
77774 2008-06-07  Bruno Haible  <bruno@clisp.org>
77776         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77777         to construct an empty ACL.
77779 2008-06-07  Bruno Haible  <bruno@clisp.org>
77781         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77782         precisely.
77783         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77785 2008-06-07  Bruno Haible  <bruno@clisp.org>
77787         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77788         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77790 2008-06-07  Bruno Haible  <bruno@clisp.org>
77792         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77793         regardless of POSIX.
77794         * doc/posix-functions/_longjmp.texi: Likewise.
77795         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77796         SystemV platform in this case.
77798 2008-06-06  Eric Blake  <ebb9@byu.net>
77800         Document abort() bugs.
77801         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77803         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77804         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77805         sigsetjmp.
77806         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77807         siglongjmp, but only as a macro.
77808         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77809         is obsolete.
77810         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77812         Tweak documentation to cover cygwin argz bugs.
77813         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77814         argz bug fix; no code change needed since no cygwin releases
77815         occurred between the last fix and the bug being tested.
77816         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77817         module and recently fixed cygwin bugs.
77818         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77819         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77820         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77821         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77822         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77823         Likewise.
77824         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77825         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77826         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77827         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77828         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77829         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77830         Likewise.
77832         Avoid gcc warning on cygwin.
77833         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77834         !ACL_NO_TRIVIAL]: Avoid unused variable.
77836 2008-06-05  Eric Blake  <ebb9@byu.net>
77838         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77839         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77840         git-version-gen fails to come up with a version.
77841         Reported by Simon Josefsson.
77843 2008-06-05  Jim Meyering  <meyering@redhat.com>
77844             Paul Eggert  <eggert@cs.ucla.edu>
77846         utimens.c: work around a probable Linux kernel bug
77847         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77848         appears to be a kernel bug that causes utimensat to return 280
77849         instead of 0, indicating success.
77851 2008-06-04  Bruno Haible  <bruno@clisp.org>
77853         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77854         2008-06-01 commit.
77856 2008-06-04  Bruno Haible  <bruno@clisp.org>
77858         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77859         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77860         (file_has_acl): Use it. Save errno afterwards.
77861         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77863 2008-06-03  Bruno Haible  <bruno@clisp.org>
77865         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77866         draft code. Simplify #ifs.
77867         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77868         Put Solaris code after POSIX-draft code. Fix comments regarding
77869         Solaris 10, HP-UX. Mention Cygwin.
77870         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77872 2008-06-03  Eric Blake  <ebb9@byu.net>
77874         Provide fallback for older kernels.
77875         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77876         Provide runtime fallback if kernel lacks support.
77877         Reported by Mike Frysinger.
77879 2008-06-02  Bruno Haible  <bruno@clisp.org>
77881         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77882         it exists.
77884 2008-06-02  Bruno Haible  <bruno@clisp.org>
77886         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77887         * lib/copy-acl.c (qcopy_acl): Update comment.
77889 2008-06-02  Bruno Haible  <bruno@clisp.org>
77891         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77892         like ACL APIs.
77894 2008-06-02  Bruno Haible  <bruno@clisp.org>
77896         * tests/test-file-has-acl.sh: Use different code for Cygwin.
77897         * tests/test-set-mode-acl.sh: Likewise.
77898         * tests/test-copy-acl.sh: Likewise.
77899         * tests/test-copy-file.sh: Likewise.
77901 2008-06-02  Bruno Haible  <bruno@clisp.org>
77903         * tests/test-file-has-acl.sh: Remove unused code.
77905 2008-06-01  Bruno Haible  <bruno@clisp.org>
77907         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
77908         (copy_acl): Just a wrapper around qcopy_acl that emits the error
77909         messages.
77910         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
77912 2008-06-01  Bruno Haible  <bruno@clisp.org>
77914         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
77915         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
77916         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
77917         APIs.
77918         * modules/acl-tests (configure.ac): Remove tests now contained in
77919         m4/acl.m4.
77921 2008-06-02  Jim Meyering  <meyering@redhat.com>
77923         announce-gen: use a better key-server host name
77924         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
77925         it may be more consistently reliable.  Suggested by Werner Koch
77926         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
77928 2008-06-01  Bruno Haible  <bruno@clisp.org>
77930         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
77931         Reported by Voroskoi Andras <voroskoi@gmail.com>.
77933 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
77935         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
77937 2008-06-01  Bruno Haible  <bruno@clisp.org>
77939         New ACL tests.
77940         * tests/test-file-has-acl.sh: New file.
77941         * tests/test-file-has-acl.c: New file.
77942         * tests/test-set-mode-acl.sh: New file.
77943         * tests/test-set-mode-acl.c: New file.
77944         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
77945         * tests/test-copy-acl.c: New file.
77946         * modules/acl-tests: New file, based on modules/copy-file-tests.
77947         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
77948         (Depends-on): Add acl-tests.
77949         (configure.ac): Remove checks.
77950         (Makefile.am): Don't create test-sameacls program here any more.
77952 2008-06-01  Bruno Haible  <bruno@clisp.org>
77954         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77955         * tests/test-sameacls.c: Include progname.h.
77956         (main): Invoke set_program_name. Portability fixes for MacOS X,
77957         Solaris, HP-UX.
77959 2008-06-01  Bruno Haible  <bruno@clisp.org>
77961         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
77962         function.
77963         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
77965 2008-06-01  Bruno Haible  <bruno@clisp.org>
77967         * modules/rpmatch (Depends-on): Add strdup.
77969 2008-06-01  Bruno Haible  <bruno@clisp.org>
77971         * lib/pipe.c: Include unistd-safer.h.
77972         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
77973         * modules/pipe (Depends-on): Add unistd-safer.
77975 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77977         * modules/autobuild (configure.ac): Call AB_INIT.
77979 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77981         * tests/test-getaddrinfo.c: Don't print debug messages by default.
77982         Suggested by Bruno Haible <bruno@clisp.org>.
77984 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77986         * tests/test-base64.c: Cast size_t to unsigned long when invoking
77987         printf.  Use %lu instead of %d.  Reported by Bruno Haible
77988         <bruno@clisp.org>.
77990 2008-05-29  Eric Blake  <ebb9@byu.net>
77992         Prefer new POSIX 200x interfaces over futimesat.
77993         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
77994         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
77995         when available.
77996         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
77998 2008-05-28  Bruno Haible  <bruno@clisp.org>
78000         * modules/stpcpy (License): Change to LGPLv2+.
78001         Requested by David Lutterkort <dlutter@redhat.com>.
78003 2008-05-27  Bruno Haible  <bruno@clisp.org>
78005         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78006         current mingw.
78007         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78009 2008-05-27  Bruno Haible  <bruno@clisp.org>
78011         * modules/iconv_open (Link): New section, from module 'iconv'.
78012         * modules/striconv (Link): Likewise.
78013         * modules/striconveh (Link): Likewise.
78014         * modules/xstriconv (Link): Likewise.
78015         * modules/unicodeio (Link): Likewise.
78016         * modules/propername (Link): Likewise.
78017         Reported by Jim Meyering.
78019 2008-05-26  Jim Meyering  <meyering@redhat.com>
78021         sha256: do not artificially restrict buffer length to be < 2^32
78022         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78023         uint32_t to size_t.
78024         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78025         to match.
78027         avoid unaligned access errors, e.g., on sparc
78028         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78029         direct access through a possibly-unaligned uint64* pointer.
78030         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78031         direct access through a possibly-unaligned uint32* pointer.
78032         Prompted by this patch from Tom "spot" Callaway:
78033         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78035         sha512.c: fix typo in comment
78036         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78038 2008-05-25  Bruno Haible  <bruno@clisp.org>
78040         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78041         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78042         (Makefile.am): Update lib_SOURCES.
78044 2008-05-25  Bruno Haible  <bruno@clisp.org>
78046         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78048 2008-05-25  Jim Meyering  <meyering@redhat.com>
78050         useless-if-before-free: freed expr may have white-space differences
78051         * build-aux/useless-if-before-free: Recognize cases in which the
78052         freed expression differs from the tested one in embedded white
78053         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78054         $1 was used, so we can't make any regexp shy.  Improved tests now
78055         detect this.
78057         useless-if-before-free: accept white space in the expression.
78058         * build-aux/useless-if-before-free: For now, any white space
78059         in the expression must be identical in the free argument.
78061         useless-if-before-free: efficiency tweak
78062         * build-aux/useless-if-before-free: Make the expression-matching
78063         regexp "shy".
78064         Make the *outer* regexp shy, not the expr-matching one.
78066         update code-in-comment to accept cast of free arg
78067         * build-aux/useless-if-before-free: Update regexp.
78069 2008-05-25  Bruno Haible  <bruno@clisp.org>
78071         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78072         * modules/copy-file-tests (Files, Makefile.am): Update.
78073         * tests/test-copy-file.c (func_test_copy): Update.
78075 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78077         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78079 2008-05-23  Bruno Haible  <bruno@clisp.org>
78081         Improve support for ACLs on OSF/1.
78082         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78083         Remove fallback for unknown flavors of ACLs.
78085 2008-05-22  Bruno Haible  <bruno@clisp.org>
78087         Add support for ACLs on OSF/1.
78088         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78089         replacements.
78090         (acl_free_text): New macro fallback.
78091         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78092         acl_free.
78093         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78094         acl_free_text function. Require AC_C_INLINE.
78096 2008-05-22  Bruno Haible  <bruno@clisp.org>
78098         Make copy_acl work on MacOS X 10.5.
78099         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78100         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78101         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78102         If MODE_INSIDE_ACL, don't assume that every system has the same text
78103         representation for ACLs as FreeBSD.
78104         * lib/copy-acl.c (copy_acl): Add support for platforms with
78105         !MODE_INSIDE_ACL.
78106         * lib/file-has-acl.c (file_has_acl): Likewise.
78107         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78108         FreeBSD, MacOS X, or IRIX, respectively.
78110 2008-05-22  Bruno Haible  <bruno@clisp.org>
78112         * lib/acl.h: Don't include <sys/acl.h>.
78113         (GETACLCNT): Move fallback to lib/acl-internal.h.
78114         * lib/acl-internal.h: Include <sys/acl.h> here.
78115         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78117 2008-05-22  Bruno Haible  <bruno@clisp.org>
78119         Split off copy_acl function to separate file.
78120         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78121         * lib/acl.c (copy_acl): Moved function to separate file.
78122         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78123         * modules/acl (Files): Add lib/copy-acl.c.
78124         (Makefiles.am): Augment lib_SOURCES.
78126 2008-05-22  Bruno Haible  <bruno@clisp.org>
78128         * modules/copy-file-tests: New file.
78129         * tests/test-copy-file.sh: New file.
78130         * tests/test-copy-file.c: New file.
78131         * tests/test-copy-file-sameacls.c: New file.
78133 2008-05-22  Eric Blake  <ebb9@byu.net>
78135         Avoid gcc warning.
78136         * tests/test-memcmp.c (main): Pass NULL indirectly.
78138 2008-05-21  Bruno Haible  <bruno@clisp.org>
78140         Add reference doc about ACLs.
78141         * doc/acl-resources.txt: New file.
78142         * doc/acl-cygwin.txt: New file.
78144 2008-05-21  Bruno Haible  <bruno@clisp.org>
78146         Avoid one more warning from gcc.
78147         * lib/vasnprintf.c (IF_LINT): Update comments.
78148         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78150 2008-05-21  Jim Meyering  <meyering@redhat.com>
78152         avoid a warning from gcc
78153         * lib/vasnprintf.c (IF_LINT): Define.
78154         (scale10_round_decimal_long_double):
78155         Use it to avoid a "may be used uninitialized" warning.
78156         (scale10_round_decimal_double): Likewise.
78158 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78160         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78161         declared.
78163 2008-05-20  Bruno Haible  <bruno@clisp.org>
78165         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78166         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78168 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78170         * modules/memcmp-tests: New file.
78171         * tests/test-memcmp.c: New file.
78173 2008-05-19  Bruno Haible  <bruno@clisp.org>
78175         * modules/propername (Notice, configure.ac): Put quoted "..." into
78176         --keyword option.
78177         * lib/propername.h: Update comments accordingly.
78178         Reported by Eric Blake.
78180 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78182         * modules/getpass-gnu (Depends-on): Add fseeko.
78184 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78186         * modules/base64-tests: New file.
78188 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78190         * lib/base64.c (base64_decode_ctx): If a decode context structure
78191         was passed in use it to ignore newlines.  If a context structure
78192         was _not_ passed in, continue to treat newlines as garbage (this
78193         is the historical behavior).  Formerly base64_decode.
78194         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78195         takes a decode context structure.
78196         * lib/base64.h (base64_decode): Macro for four-argument calls.
78197         (base64_decode_alloc): Likewise.
78198         * lib/base64.c (base64_decode_ctx): If a decode context structure
78199         was passed in use it to ignore newlines.  If a context structure
78200         was _not_ passed in, continue to treat newlines as garbage (this
78201         is the historical behavior).  Formerly base64_decode.
78202         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78203         takes a decode context structure.
78204         * lib/base64.h (base64_decode): Macro for four-argument calls.
78205         (base64_decode_alloc): Likewise.
78207 2008-05-19  Jim Meyering  <meyering@redhat.com>
78209         avoid a warning from gcc
78210         * lib/trim.c (IF_LINT): Define.
78211         (trim2): Use it to avoid a "may be used uninitialized" warning.
78213         Fix doc typo.
78214         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78216 2008-05-19  Bruno Haible  <bruno@clisp.org>
78218         * doc/glibc-functions/getpass.texi: Document limits of other
78219         implementations.
78221 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78222             Bruno Haible <bruno@clisp.org>
78224         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78226 2008-05-18  Bruno Haible  <bruno@clisp.org>
78228         * modules/propername: New file, from GNU gettext.
78229         * lib/propername.h: New file, from GNU gettext.
78230         * lib/propername.c: New file, from GNU gettext.
78231         * MODULES.html.sh (Internationalization functions): Add propername.
78233 2008-05-16  Jim Meyering  <meyering@redhat.com>
78234             Bruno Haible  <bruno@clisp.org>
78236         Avoid some warnings from "gcc -Wshadow".
78237         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78239 2008-05-15  Eric Blake  <ebb9@byu.net>
78241         Extend previous patch to cygwin 1.7.0.
78242         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78243         fast implementation in cygwin >= 1.7.0.
78244         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78247 2008-05-15  Bruno Haible  <bruno@clisp.org>
78249         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78250         implementation in glibc >= 2.9.
78251         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78254 2008-05-15  Bruno Haible  <bruno@clisp.org>
78256         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78257         (Unicode string functions): Add unilbrk/*.
78258         Reported by Karl Berry.
78260 2008-05-15  Eric Blake  <ebb9@byu.net>
78262         Fix violation of <stdbool.h> replacement in regex.
78263         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78264         * lib/regexec.c (re_search_internal): Likewise.
78265         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78267 2008-05-15  Jim Meyering  <meyering@redhat.com>
78269         avoid distracting test output when git or cvs is not found
78270         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78271         * tests/test-vc-list-files-git.sh: Likewise.
78273 2008-05-15  Eric Blake  <ebb9@byu.net>
78275         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78276         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78277         glibc version.
78278         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78279         * doc/posix-functions/strstr.texi (strstr): Likewise.
78280         * lib/str-two-way.h (MAX): Sychronize with glibc.
78282 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78284         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78285         opr.ctx_type.
78286         (calc_first): Initialize constraint field.
78287         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78288         Fix grammar.
78289         (duplicate_node): Merge constraint field for all node types.
78290         (calc_eclosure_iter): Look at constraint field for all node types.
78291         * lib/regex_internal.c (create_cd_newstate): Don't look at
78292         opr.ctx_type.
78294 2008-05-14  Bruno Haible  <bruno@clisp.org>
78296         Help GCC to do better code generation.
78297         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78298         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78299         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78300         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78301         Declare with attribute 'malloc' if supported.
78303 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78305         use "echo STR|wc -c" rather than unportable "expr length STR"
78306         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78307         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78309 2008-05-14  Jim Meyering  <meyering@redhat.com>
78311         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78312         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78313         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78314         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78315         via Collin Lasse.
78317 2008-05-14  Eric Blake  <ebb9@byu.net>
78319         Avoid quadratic growth in gl_LIBSOURCES.
78320         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78321         Suggested by Bruno Haible.
78323         Test xmemdup0.
78324         * modules/xmemdup0-tests: New file.
78325         * tests/test-xmemdup0.c: Likewise.
78327 2008-05-13  Eric Blake  <ebb9@byu.net>
78329         Split xmemdup0 into its own module.
78330         * modules/xmemdup0: New file.
78331         * lib/xmemdup0.h: Likewise.
78332         * lib/xmemdup0.c: Likewise.
78333         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78334         * lib/xalloc.h (xmemdup0): Remove.
78335         * lib/xmalloc.c (xmemdup0): Likewise.
78337 2008-05-13  Eric Blake  <ebb9@byu.net>
78338             Bruno Haible  <bruno@clisp.org>
78340         Reduce number of forks required during autoconf.
78341         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78342         and gl_LIBSOURCES_DIR.
78343         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78344         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78345         m4_syscmd per file.
78346         <m4_foreach_w>: Move...
78347         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78349 2008-05-13  Eric Blake  <ebb9@byu.net>
78351         * gnulib-tool: Fix various comment typos.
78353 2008-05-12  Bruno Haible  <bruno@clisp.org>
78355         Tailor the linebreaking algorithm.
78356         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78358 2008-05-12  Bruno Haible  <bruno@clisp.org>
78360         Update to Unicode 5.0.0.
78361         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78362         LBP_JV, LBP_JT. Redistribute values.
78363         (unilbrk_table): Change size.
78364         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78365         Unicode TR#14 rev. 22.
78366         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78367         LBP_JV, LBP_JT. Redistribute values.
78368         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78369         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78370         Update.
78371         * lib/unilbrk/lbrkprop1.h: Regenerated.
78372         * lib/unilbrk/lbrkprop2.h: Regenerated.
78373         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78374         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78375         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78376         Likewise.
78377         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78378         Likewise.
78379         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78380         result.
78381         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78382         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78383         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78384         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78385         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78386         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78388 2008-05-11  Bruno Haible  <bruno@clisp.org>
78390         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78392 2008-05-11  Bruno Haible  <bruno@clisp.org>
78394         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78395         * modules/unilbrk/gen-lbrk: New file.
78397 2008-05-11  Bruno Haible  <bruno@clisp.org>
78399         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78400         * m4/sha512.m4 (gl_SHA512): Likewise.
78402 2008-05-11  Jim Meyering  <meyering@redhat.com>
78404         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78405         * modules/crypto/sha256: New file.
78406         * modules/crypto/sha512: Likewise.
78407         * lib/sha256.c: Likewise.
78408         * lib/sha256.h: Likewise.
78409         * lib/sha512.c: Likewise.
78410         * lib/sha512.h: Likewise.
78411         * lib/u64.h: Likewise.
78412         * m4/sha256.m4: Likewise.
78413         * m4/sha512.m4: Likewise.
78414         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78416 2008-05-10  Bruno Haible  <bruno@clisp.org>
78418         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78419         (Input/Output <stdio.h>): Add xprintf.
78420         (Signal handling <signal.h>): Add strsignal.
78421         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78422         (Core language properties): Add func.
78423         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78424         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78425         strings.
78426         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78427         (Input/output): New section.
78428         (File system functions): Add openat-die, stat-macros.
78429         (Networking functions): Add sockets.
78430         (Unicode string functions): Add unictype/*.
78431         (Support for building libraries and executables): Add gperf.
78432         (Support for building documentation): Add agpl-3.0.
78433         (Misc): Add nocrash.
78435 2008-05-10  Bruno Haible  <bruno@clisp.org>
78437         * modules/unictype/gen-ctype: New file.
78439 2008-05-10  Jim Meyering  <meyering@redhat.com>
78441         Make chdir-safer.c more efficient on a system with no symlinks.
78442         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78443         also if ELOOP is zero.  Suggested by Bruno Haible.
78445         Make chdir-safer.c slightly safer.
78446         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78447         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78449         Avoid compile failure on systems without ELOOP (like mingw).
78450         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78451         Reported by Bruno Haible.
78453 2008-05-10  Bruno Haible  <bruno@clisp.org>
78455         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78456         (is_utf8_encoding): Use a case-insensitive comparison.
78457         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78458         streq.
78460 2008-05-10  Bruno Haible  <bruno@clisp.org>
78462         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78463         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78464         * lib/unilbrk/ulc-common.h (iconv_string_length,
78465         iconv_string_keeping_offsets): Remove declarations.
78466         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78467         Don't include <iconv.h>, streq.h, xsize.h.
78468         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78469         conversion.
78470         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78471         <iconv.h>, streq.h, xsize.h.
78472         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78473         conversion.
78474         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78475         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78476         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78477         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78479 2008-05-10  Bruno Haible  <bruno@clisp.org>
78481         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78482         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78484         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78485         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78487         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78488         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78490         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78491         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78493         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78494         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78496         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78497         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78499         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78500         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78502         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78503         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78505 2008-05-10  Bruno Haible  <bruno@clisp.org>
78507         Split up 'linebreak' module.
78508         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78509         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78510         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78511         modifications.
78512         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78513         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78514         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78515         lib/linebreak.c.
78516         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78517         lib/linebreak.c.
78518         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78519         lib/linebreak.c.
78520         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78521         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78522         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78523         lib/linebreak.c.
78524         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78525         lib/linebreak.c.
78526         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78527         lib/linebreak.c.
78528         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78529         lib/linebreak.c.
78530         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78531         lib/linebreak.c.
78532         * modules/unilbrk/base: New file.
78533         * modules/unilbrk/tables: New file.
78534         * modules/unilbrk/u8-possible-linebreaks: New file.
78535         * modules/unilbrk/u16-possible-linebreaks: New file.
78536         * modules/unilbrk/u32-possible-linebreaks: New file.
78537         * modules/unilbrk/ulc-common: New file.
78538         * modules/unilbrk/ulc-possible-linebreaks: New file.
78539         * modules/unilbrk/u8-width-linebreaks: New file.
78540         * modules/unilbrk/u16-width-linebreaks: New file.
78541         * modules/unilbrk/u32-width-linebreaks: New file.
78542         * modules/unilbrk/ulc-width-linebreaks: New file.
78543         * lib/linebreak.h: Remove file.
78544         * lib/linebreak.c: Remove file.
78545         * m4/linebreak.m4: Remove file.
78546         * modules/linebreak: Remove file.
78547         * NEWS: Mention the changes.
78549 2008-05-09  Eric Blake  <ebb9@byu.net>
78551         Add xmemdup0.
78552         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78553         implementation.
78554         * lib/xmalloc.c (xmemdup0): New C implementation.
78556 2008-05-08  Bruno Haible  <bruno@clisp.org>
78558         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78560 2008-05-07  Eric Blake  <ebb9@byu.net>
78562         Support cross-compilation of <wctype.h>.
78563         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78564         AC_CACHE_CHECK.
78566 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78568         * build-aux/vc-list-files: Add support for bzr.
78570 2008-05-03  Jim Meyering  <meyering@redhat.com>
78572         avoid failed assertion with tight malloc
78573         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78575 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78577         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78578         are needed from arpa/inet.h.
78579         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78580         Reported by Bruno Haible.
78582 2008-05-02  Jim Meyering  <meyering@redhat.com>
78584         avoid compilation error on FreeBSD 6
78585         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78587 2008-05-01  Jim Meyering  <meyering@redhat.com>
78589         useless-if-before-free: correct --help's exit status description
78590         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78591         for one or more matches, etc.  Reported by Bruno Haible.
78593         vc-list-files: make the stand-alone gnulib test work
78594         * modules/vc-list-files-tests (configure.ac):
78595         Define and AC_SUBST abs_aux_dir.
78596         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78597         $(abs_top_srcdir) to each script and having each of them
78598         duplicate the work of setting PATH, set PATH here, using
78599         the new variable, abs_aux_dir instead.
78600         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78601         * tests/test-vc-list-files-git.sh: Likewise.
78602         Reported by Bruno Haible.
78604 2008-05-01  Bruno Haible  <bruno@clisp.org>
78606         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78607         reallocation. Rename 'done' to 'found_delimiter'.
78609 2008-05-01  Jim Meyering  <meyering@redhat.com>
78611         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78612         * build-aux/vc-list-files: Use `...`, not $(...).
78614 2008-04-30  Jim Meyering  <meyering@redhat.com>
78616         add tests for vc-list-files
78617         * modules/vc-list-files-tests: New module.
78618         * tests/test-vc-list-files-cvs.sh: New file.
78619         * tests/test-vc-list-files-git.sh: New file.
78621         avoid a warning from gcc
78622         * lib/getndelim2.c (IF_LINT): Define.
78623         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78625         vc-list-files: work properly with build-aux/cvsu, too
78626         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78627         to all cvs-based clauses.
78629         vc-list-files: work properly in the CVS+awk case, too
78630         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78632         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78633         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78634         take more than one file argument, so .  Add quotes, just in case $dir
78635         ever contains a shell meta-character.  Prompted by Soren Hansen in
78636         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78638 2008-04-29  Eric Blake  <ebb9@byu.net>
78640         Optimize getndelim2 to use block operations when possible.
78641         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78642         freadseek, and memchr2.
78643         * lib/getndelim2.c (getndelim2): Use them for block reads.
78645 2008-04-29  Bruno Haible  <bruno@clisp.org>
78647         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78648         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78649         * modules/inet_ntop (Depends-on): Add extensions.
78650         * modules/inet_pton (Depends-on): Likewise.
78651         Reported by Simon Josefsson.
78653 2008-04-29  Jim Meyering  <meyering@redhat.com>
78655         When the is more than one match in a block, match all of them.
78656         * build-aux/useless-if-before-free: Iterate through each block
78657         until there are no more matches.
78659         Fix broken useless-if-before-free script.
78660         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78661         the expression to match cast of argument to free-like function.
78663 2008-04-29  Eric Blake  <ebb9@byu.net>
78665         Use new header.
78666         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78668 2008-04-29  Jim Meyering  <meyering@redhat.com>
78670         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78671         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78672         by gnulib to exist and to declare e.g., inet_ntop.
78673         Don't include "inet_ntop.h", now removed.
78675         * m4/arpa_inet_h.m4: Remove trailing blanks.
78677 2008-04-29  Eric Blake  <ebb9@byu.net>
78679         Silence valgrind on safe reads beyond potential array bounds.
78680         * lib/rawmemchr.valgrind: New file.
78681         * lib/strchrnul.valgrind: Likewise.
78682         * modules/rawmemchr (Files): Distribute new file.
78683         * modules/strchrnul (Files): Likewise.
78684         Suggested by Bruno Haible.
78686 2008-04-29  Bruno Haible  <bruno@clisp.org>
78688         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78689         (inet_ntop, inet_pton): Change portability warning's wording.
78690         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78691         Invoke gl_CHECK_NEXT_HEADERS.
78692         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78693         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78694         set ARPA_INET_H.
78695         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78696         * modules/arpa_inet (Description): No longer only for systems that
78697         lack it.
78698         (Depends-on): Add include_next.
78699         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78700         HAVE_ARPA_INET_H.
78702 2008-04-29  Jim Meyering  <meyering@redhat.com>
78704         * modules/mkdir (License): Re-license as LGPLv2+.
78706 2008-04-29  Bruno Haible  <bruno@clisp.org>
78708         * modules/rawmemchr (Maintainer): Set to Eric.
78709         * modules/strchrnul (Maintainer): Likewise.
78711 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78713         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78714         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78716         * modules/arpa_inet (arpa/inet.h): Use them.
78718 2008-04-28  Eric Blake  <ebb9@byu.net>
78720         Test getndelim2.
78721         * modules/getndelim2-tests: New file.
78722         * tests/test-getndelim2.c: Likewise.
78723         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78724         stream.
78725         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78727         * MODULES.html.sh: Document new module.
78729 2008-04-20  Bruno Haible  <bruno@clisp.org>
78731         * lib/c-stack.c (die): Use raise.
78732         * modules/c-stack (Depends-on): Add raise.
78734 2008-04-28  Bruno Haible  <bruno@clisp.org>
78736         Expect rpmatch to be declared.
78737         * lib/yesno.c (rpmatch): Remove declaration.
78739         Declare rpmatch.
78740         * lib/stdlib.in.h (rpmatch): New declaration.
78741         * lib/rpmatch.c: Include <stdlib.h> first.
78742         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78743         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78745         HAVE_RPMATCH.
78746         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78748         (Include): Set to <stdlib.h>.
78749         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78750         HAVE_RPMATCH.
78751         * NEWS: Document the change.
78753 2008-04-28  Bruno Haible  <bruno@clisp.org>
78755         Change rpmatch to use nl_langinfo when appropriate.
78756         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78757         (N_): New macro.
78758         (localized_pattern): New function/macro.
78759         (try): Remove match, nomatch arguments. Copy the pattern into safe
78760         memory before caching it.
78761         (rpmatch): Use localized_pattern. Add translator comments.
78762         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78763         Suggested by Eric Blake.
78764         * modules/rpmatch (Depends-on): Add stdbool.
78766 2008-04-28  Eric Blake  <ebb9@byu.net>
78768         Add rawmemchr module, matching glibc.
78769         * modules/string (Makefile.am): New indicator.
78770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78771         * lib/string.in.h (rawmemchr): Declare when appropriate.
78772         * modules/rawmemchr: New file.
78773         * m4/rawmemchr.m4: Likewise.
78774         * lib/rawmemchr.c: Likewise.
78775         * modules/rawmemchr-tests: Likewise.
78776         * tests/test-rawmemchr.c: Likewise.
78777         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78778         module.
78779         * modules/strchrnul (Depends-on): Add rawmemchr.
78780         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78782         Whitespace cleanup.
78783         * tests/test-strchrnul.c: Reindent.
78784         * lib/strchrnul.c: Likewise.
78786         Optimize and test strchrnul.
78787         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78788         * modules/strchrnul-tests: New file.
78789         * tests/test-strchrnul.c: Likewise.
78791         Remove intprops dependency.
78792         * modules/memchr (Depends-on): Remove intprops.
78793         * modules/memrchr (Depends-on): Likewise.
78794         * modules/memchr2 (Depends-on): Likewise.
78795         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78796         * lib/memrchr.c (__memrchr): Likewise.
78797         * lib/memrchr2.c (memchr2): Likewise.
78798         Reported by Simon Josefsson.
78800 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78802         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78803         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78805 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78807         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78809         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78811         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78813         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78814         declarations.
78815         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78817         * m4/inet_pton.m4: Don't check for header files.
78819         * m4/inet_ntop.m4: Don't check for header files.
78821 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78823         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78824         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78825         trigger for cygwin).
78826         Reported by Bruno Haible  <bruno@clisp.org>.
78828 2008-04-28  Bruno Haible  <bruno@clisp.org>
78830         * doc/posix-functions/strdup.texi: Mention mingw problem.
78832 2008-04-27  Bruno Haible  <bruno@clisp.org>
78834         * modules/stat-time-tests (Depends-on): Add sleep.
78835         * tests/test-stat-time.c (force_unlink): New function.
78836         (cleanup): Use it.
78837         (test_mtime): Remove the ctime related tests.
78838         (test_ctime): New function, containing the ctime related tests.
78839         (main): Call test_ctime, except on native Windows platforms.
78841 2008-04-27  Bruno Haible  <bruno@clisp.org>
78843         * lib/rpmatch.c (rpmatch): Add some comments.
78844         Reported by James Youngman <jay@gnu.org>.
78846 2008-04-27  Bruno Haible  <bruno@clisp.org>
78848         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78849         quiet NaNs.
78851 2008-04-27  Bruno Haible  <bruno@clisp.org>
78853         Make test-yesno.sh work on mingw.
78854         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78855         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78856         (main): Set stdin to binary mode.
78857         * modules/yesno-tests (Depends-on): Add binary-io.
78859 2008-04-27  Bruno Haible  <bruno@clisp.org>
78861         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78862         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78863         argument that lie outside the IEEE 854 domain.
78864         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78865         (gl_ISFINITE): Use it.
78866         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78868 2008-04-27  Bruno Haible  <bruno@clisp.org>
78870         Allow local renaming in config.h.
78871         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78873 2008-04-27  Bruno Haible  <bruno@clisp.org>
78875         * lib/memchr.c (__memchr): Change type of 'i'.
78876         * lib/memchr2.c (memchr2): Likewise.
78878 2008-04-26  Eric Blake  <ebb9@byu.net>
78879         and Bruno Haible  <bruno@clisp.org>
78881         Optimize and test memrchr.
78882         * modules/memrchr (Depends-on): Add intprops.
78883         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78884         * modules/memrchr-tests: New file.
78885         * tests/test-memrchr.c: New file.
78887 2008-04-26  Bruno Haible  <bruno@clisp.org>
78889         Add tentative support for DragonFly BSD.
78890         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78891         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78892         fp.
78893         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78894         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
78895         * lib/fpurge.c (fpurge): Likewise.
78896         * lib/freadable.c (freaadable): Likewise.
78897         * lib/freadahead.c (freadahead): Likewise.
78898         * lib/freading.c (freading): Likewise.
78899         * lib/freadptr.c (freadptr): Likewise.
78900         * lib/freadseek.c (freadptrinc): Likewise.
78901         * lib/fseeko.c (fseeko): Likewise.
78902         * lib/fseterr.c (fseterr): Likewise.
78903         * lib/fwritable.c (fwritable): Likewise.
78904         * lib/fwriting.c (fwriting): Likewise.
78906 2008-04-26  Bruno Haible  <bruno@clisp.org>
78908         * lib/stdio-impl.h: New file.
78909         * lib/fbufmode.c: Include stdio-impl.h.
78910         (fbufmode): Use fp_, remove redundant #defines.
78911         * lib/fflush.c: Include stdio-impl.h.
78912         (clear_ungetc_buffer): Remove redundant #defines.
78913         * lib/fpurge.c: Include stdio-impl.h.
78914         (fpurge): Remove redundant #defines.
78915         * lib/freadable.c: Include stdio-impl.h.
78916         (freadable): Remove redundant #defines.
78917         * lib/freadahead.c: Include stdio-impl.h.
78918         (freadahead): Remove redundant #defines.
78919         * lib/freading.c: Include stdio-impl.h.
78920         (freading): Remove redundant #defines.
78921         * lib/freadptr.c: Include stdio-impl.h.
78922         (freadptr): Remove redundant #defines.
78923         * lib/freadseek.c: Include stdio-impl.h.
78924         (freadptrinc): Remove redundant #defines.
78925         * lib/fseeko.c: Include stdio-impl.h.
78926         (rpl_fseeko): Remove redundant #defines.
78927         * lib/fseterr.c: Include stdio-impl.h.
78928         (fseterr): Remove redundant #defines.
78929         * lib/fwritable.c: Include stdio-impl.h.
78930         (fwritable: Remove redundant #defines.
78931         * lib/fwriting.c: Include stdio-impl.h.
78932         (fwriting): Remove redundant #defines.
78933         * modules/fbufmode (Files): Add lib/stdio-impl.h.
78934         * modules/fflush (Files): Likewise.
78935         * modules/fpurge (Files): Likewise.
78936         * modules/freadable (Files): Likewise.
78937         * modules/freadahead (Files): Likewise.
78938         * modules/freading (Files): Likewise.
78939         * modules/freadptr (Files): Likewise.
78940         * modules/freadseek (Files): Likewise.
78941         * modules/fseeko (Files): Likewise.
78942         * modules/fseterr (Files): Likewise.
78943         * modules/fwritable (Files): Likewise.
78944         * modules/fwriting (Files): Likewise.
78946 2008-04-26  Bruno Haible  <bruno@clisp.org>
78948         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78949         restore_seek_optimization, update_fpos_cache): New functions, extracted
78950         from rpl_fflush.
78951         (rpl_fflush): Use them.
78952         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
78953         (gl_REPLACE_FFLUSH): Use it.
78955 2008-04-26  Bruno Haible  <bruno@clisp.org>
78957         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
78958         on Solaris.
78959         * tests/test-xstrtoimax.sh: Likewise.
78960         * tests/test-xstrtoumax.sh: Likewise.
78961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78963 2008-04-26  Bruno Haible  <bruno@clisp.org>
78965         * modules/memchr-tests: New file.
78966         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
78968 2008-04-26  Eric Blake  <ebb9@byu.net>
78969             Bruno Haible  <bruno@clisp.org>
78971         * lib/memchr.c: Include intprops.h.
78972         (__memchr): Optimize parallel detection of matching bytes. Rename local
78973         variables. Add explanatory comments.
78975 2008-04-26  Bruno Haible  <bruno@clisp.org>
78977         Fix module 'memchr', broken since 2000-10-28.
78978         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
78980 2008-04-26  Bruno Haible  <bruno@clisp.org>
78982         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
78983         comments.
78985 2008-04-25  Eric Blake  <ebb9@byu.net>
78987         Use native fstatat on cygwin 1.7.0.
78988         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
78989         first.
78991 2008-04-23  Eric Blake  <ebb9@byu.net>
78993         Improve memchr2 performance.
78994         * lib/memchr2.c (memchr2): Further optimize parallel detection of
78995         NUL bytes.
78996         * modules/memchr2 (Depends-on): Use intprops.h.
78998 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79000         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79001         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79002         <blp@cs.stanford.edu>.
79004 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79006         * lib/arpa_inet.in.h: New file.
79008         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79009         (Makefile.am): Sed in substitute header file.
79011         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79012         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79014         * modules/inet_ntop (configure.ac): Use
79015         gl_ARPA_INET_MODULE_INDICATOR.
79017         * modules/inet_pton (configure.ac): Use
79018         gl_ARPA_INET_MODULE_INDICATOR.
79020 2008-04-22  Jim Meyering  <meyering@redhat.com>
79022         * modules/verify (License): Re-license as LGPLv2+.
79024 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79026         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79027         parameter to void* as per POSIX standard (MinGW uses char*).
79029 2008-04-21  Bruno Haible  <bruno@clisp.org>
79031         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79032         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79033         Define to replacements if REPLACE_ISWCNTRL is 1.
79034         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79035         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79036         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79037         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79038         what it fixes.
79039         * doc/posix-functions/iswalpha.texi: Likewise.
79040         * doc/posix-functions/iswblank.texi: Likewise.
79041         * doc/posix-functions/iswcntrl.texi: Likewise.
79042         * doc/posix-functions/iswdigit.texi: Likewise.
79043         * doc/posix-functions/iswgraph.texi: Likewise.
79044         * doc/posix-functions/iswlower.texi: Likewise.
79045         * doc/posix-functions/iswprint.texi: Likewise.
79046         * doc/posix-functions/iswpunct.texi: Likewise.
79047         * doc/posix-functions/iswspace.texi: Likewise.
79048         * doc/posix-functions/iswupper.texi: Likewise.
79049         * doc/posix-functions/iswxdigit.texi: Likewise.
79050         Reported by Alain Guibert.
79052 2008-04-21  Bruno Haible  <bruno@clisp.org>
79054         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79055         Patch by Alain Guibert.
79057 2008-04-21  Bruno Haible  <bruno@clisp.org>
79059         Fix test failures on mingw.
79060         * tests/test-xstrtol.c (print_no_progname): New function.
79061         (main): Install it in error_print_progname hook.
79062         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79063         * tests/test-xstrtoimax.sh: Likewise.
79064         * tests/test-xstrtoumax.sh: Likewise.
79066 2008-04-21  Bruno Haible  <bruno@clisp.org>
79068         Fix test failure on mingw.
79069         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79071 2008-04-21  Bruno Haible  <bruno@clisp.org>
79073         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79074         Actually assign a value.
79076 2008-04-20  Bruno Haible  <bruno@clisp.org>
79078         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79079         take 2.
79080         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79081         'canonicalize-lgpl' module is also used.
79082         * lib/canonicalize-lgpl.c: Undo last change.
79083         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79085 2008-04-20  Bruno Haible  <bruno@clisp.org>
79087         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79088         config.h. Provide _mkdir based fallback for mingw.
79089         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79090         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79091         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79092         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79093         rather than defining mkdir in config.h.
79094         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79095         (gl_SYS_STAT_H_DEFAULTS): New macro.
79096         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79097         HAVE_IO_H any more.
79098         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79099         HAVE_DECL_MKDIR and HAVE_IO_H.
79101 2008-04-20  Bruno Haible  <bruno@clisp.org>
79103         * lib/isapipe.c: Port to native Windows platforms.
79105 2008-04-20  Bruno Haible  <bruno@clisp.org>
79107         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79109 2008-04-21  Eric Blake  <ebb9@byu.net>
79111         Work around preprocessors that don't handle UINTMAX_MAX.
79112         * lib/memchr2.c (memchr2): Avoid embedded #if.
79113         Reported by Alain Guibert, fix suggested by Bruno Haible.
79115 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79117         * doc/posix-functions/strftime.texi (strftime): Explain better
79118         Windows incompatibility.  Suggested by Micah Cowan
79119         <micah@cowan.name>.
79121 2008-04-20  Bruno Haible  <bruno@clisp.org>
79123         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79124         unistr/u8-mblen.
79126 2008-04-20  Bruno Haible  <bruno@clisp.org>
79128         Fix test failure on platforms with non-GNU iconv.
79129         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79130         (U_TO_U8): Use it, rather than u16_to_u8.
79131         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79132         units at the end of the input string.
79133         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79135 2008-04-20  Bruno Haible  <bruno@clisp.org>
79137         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79138         when the resulting length is 0.
79139         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79141 2008-04-20  Bruno Haible  <bruno@clisp.org>
79143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79144         works.
79145         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79147 2008-04-20  Bruno Haible  <bruno@clisp.org>
79149         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79150         * modules/tsearch-tests (configure.ac): Test for initstate function.
79152 2008-04-20  Bruno Haible  <bruno@clisp.org>
79154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79155         for nlink_t if missing.
79156         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79158 2008-04-19  Bruno Haible  <bruno@clisp.org>
79160         Work around snprintf bug on Linux libc5.
79161         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79162         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79163         gl_SNPRINTF_SIZE1.
79164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79165         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79166         that test failed.
79167         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79168         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79169         * modules/snprintf (Files): Add m4/printf.m4.
79170         * modules/vsnprintf (Files): Likewise.
79171         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79172         * doc/posix-functions/vsnprintf.texi: Likewise.
79174 2008-04-19  Bruno Haible  <bruno@clisp.org>
79176         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79177         from 0.0058 to less than 10^-7.
79179 2008-04-19  Bruno Haible  <bruno@clisp.org>
79181         Fix rounding when a precision is given.
79182         * lib/vasnprintf.c (is_borderline): New function.
79183         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79184         9...9x.
79185         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79186         %e, %g.
79187         * tests/test-vasprintf-posix.c (test_function): Likewise.
79188         * tests/test-snprintf-posix.h (test_function): Likewise.
79189         * tests/test-sprintf-posix.h (test_function): Likewise.
79190         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79191         * tests/test-printf-posix.h (test_function): Likewise.
79192         * tests/test-printf-posix.output: Update.
79193         Reported by John Darrington <john@darrington.wattle.id.au> via
79194         Ben Pfaff <blp@cs.stanford.edu>.
79196 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79198         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79199         Suggested by Bruno Haible <bruno@clisp.org>.
79201 2008-04-17  Bruno Haible  <bruno@clisp.org>
79203         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79204         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79205         implementation.
79206         Patch by Bruce Merry <bmerry@gmail.com>.
79208 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79210         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79211         doesn't work under Windows.
79213 2008-04-16  Bruno Haible  <bruno@clisp.org>
79215         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79216         New macros.
79217         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79218         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79219         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79220         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79221         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79222         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79223         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79224         macros.
79225         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79226         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79227         Northern Sotho, Uighur.
79229 2008-04-16  Bruno Haible  <bruno@clisp.org>
79231         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79232         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79233         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79234         Reported by Daniel Bergström <daniel@octocode.com>.
79236 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79237             Bruno Haible  <bruno@clisp.org>
79239         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79240         function.
79241         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79242         New functions, mostly extracted from gl_locale_name_default.
79243         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79245 2008-04-16  Eric Blake  <ebb9@byu.net>
79247         Adjust strtod detection to catch glibc 2.7 bug.
79248         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79249         Reported by John Gatewood Ham.
79251 2008-04-16  Bruno Haible  <bruno@clisp.org>
79253         Add tentative support for Linux libc5.
79254         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79255         * lib/fpurge.c (fpurge): Likewise.
79256         * lib/freadable.c (freadable): Likewise.
79257         * lib/freadahead.c (freadahead): Likewise.
79258         * lib/freading.c (freading): Likewise.
79259         * lib/freadptr.c (freadptr): Likewise.
79260         * lib/freadseek.c (freadptrinc): Likewise.
79261         * lib/fseeko.c (rpl_fseeko): Likewise.
79262         * lib/fseterr.c (fseterr): Likewise.
79263         * lib/fwritable.c (fwritable): Likewise.
79264         * lib/fwriting.c (fwriting): Likewise.
79265         Reported by Alain Guibert <alguibert+bts@free.fr>.
79267 2008-04-15  Bruno Haible  <bruno@clisp.org>
79269         * modules/mathl (configure.ac): Define module indicator.
79271 2008-04-15  Bruno Haible  <bruno@clisp.org>
79273         * lib/logl.c (logl): Remove unused variables.
79275 2008-04-15  Bruno Haible  <bruno@clisp.org>
79277         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79278         fails.
79280 2008-04-15  Bruno Haible  <bruno@clisp.org>
79282         * lib/trim.c (trim2): Fix argument of isspace() macro.
79284 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79286         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79287         to 0.
79288         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79290 2008-04-14  Bruno Haible  <bruno@clisp.org>
79292         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79293         AC_LANG_PROGRAM argument.
79294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79295         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79297         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79298         * m4/math_h.m4 (gl_MATH_H): Likewise.
79299         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79301         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79302         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79303         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79304         * m4/regex.m4 (gl_REGEX): Likewise.
79305         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79306         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79308         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79309         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79310         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79311         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79314 2008-04-14  Jim Meyering  <meyering@redhat.com>
79316         test-strtod: fix typos: s/abs/fabs/
79317         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79319 2008-04-13  Bruno Haible  <bruno@clisp.org>
79321         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79322         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79323         module is also used and while not building the reloc-wrapper.
79325 2008-04-13  Bruno Haible  <bruno@clisp.org>
79327         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79329 2008-04-13  Bruno Haible  <bruno@clisp.org>
79331         Fix AIX compilation failure introduced on 2008-04-02.
79332         * tests/test-frexp.c (exp): Undefine before redefining.
79333         * tests/test-frexpl.c (exp): Likewise.
79335 2008-04-13  Bruno Haible  <bruno@clisp.org>
79337         Work around a HP-UX stdio bug.
79338         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79339         * tests/test-ftello.c (main): Likewise.
79340         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79341         * doc/posix-functions/ftello.texi: Likewise.
79343 2008-04-13  Bruno Haible  <bruno@clisp.org>
79345         Make test-signbit pass on HP-UX/hppa.
79346         * tests/test-signbit.c (minus_zerol): New variable.
79347         (test_signbitl): Use it.
79349 2008-04-13  Bruno Haible  <bruno@clisp.org>
79351         Make truncl work on OSF/1 4.0.
79352         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79353         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79354         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79356         HAVE_DECL_TRUNCL.
79357         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79358         HAVE_DECL_TRUNCL.
79359         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79361 2008-04-13  Bruno Haible  <bruno@clisp.org>
79363         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79365 2008-04-13  Bruno Haible  <bruno@clisp.org>
79367         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79368         expression, so as to avoid HP-UX 11 cc compiler bug.
79370 2008-04-13  Bruno Haible  <bruno@clisp.org>
79372         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79374 2008-04-13  Bruno Haible  <bruno@clisp.org>
79376         * lib/git-merge-changelog.c: Remove empty declaration outside of
79377         functions.
79379 2008-04-13  Bruno Haible  <bruno@clisp.org>
79381         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79383 2008-04-13  Bruno Haible  <bruno@clisp.org>
79385         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79386         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79388         also if it exists but lacks definitions of the SHUT_* macros.
79389         * modules/sys_socket (Description): Update.
79390         Reported by Elbert Pol <e.pol@chello.nl>.
79392 2008-04-13  Bruno Haible  <bruno@clisp.org>
79394         * lib/localcharset.c (OS2): Don't redefine if already defined.
79395         Reported by Elbert Pol <e.pol@chello.nl>.
79397 2008-04-13  Bruno Haible  <bruno@clisp.org>
79399         * lib/binary-io.h [__EMX__]: Include <io.h>.
79400         Reported by Elbert Pol <e.pol@chello.nl>.
79402 2008-04-12  Bruno Haible  <bruno@clisp.org>
79404         * lib/fpucw.h: Enable the definitions also for x86_64.
79405         Needed for NetBSD/x86_64.
79406         Reported by Thomas Klausner <tk@giga.or.at>.
79408 2008-04-12  Bruno Haible  <bruno@clisp.org>
79410         * tests/test-strtod.c: Include isnand.h.
79411         (main): Use isnand instead of isnan.
79412         Reported by Jim Meyering.
79414 2008-04-12  Bruno Haible  <bruno@clisp.org>
79416         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79417         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79419 2008-04-12  Jim Meyering  <meyering@redhat.com>
79421         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79423 2008-04-12  Bruno Haible  <bruno@clisp.org>
79425         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79426         Reported by Elbert Pol <e.pol@chello.nl>.
79428 2008-04-12  Eric Blake  <ebb9@byu.net>
79430         Work around Solaris 10 math.h bug.
79431         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79432         (gl_MATH_H_DEFAULTS): Set up default.
79433         * modules/math (Makefile.am): Replace new indicators.
79434         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79435         * tests/test-math.c (main): Test this.
79436         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79437         * doc/posix-headers/math.texi (math.h): Mention bug.
79438         Reported by Nelson H. F. Beebe and Jim Meyering.
79440 2008-04-11  Bruno Haible  <bruno@clisp.org>
79442         Adapt to future versions of Apple GCC.
79443         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79444         Reported by Peter O'Gorman <peter@pogma.com>.
79446 2008-04-11  Bruno Haible  <bruno@clisp.org>
79448         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79450 2008-04-11  Bruno Haible  <bruno@clisp.org>
79452         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79454         * modules/getaddrinfo-tests (Makefile.am): Define
79455         test_getaddrinfo_LDADD.
79457 2008-04-11  Bruno Haible  <bruno@clisp.org>
79459         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79460         (init): Fix syntax error.
79461         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79462         is declared.
79464 2008-04-11  Bruno Haible  <bruno@clisp.org>
79466         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79467         * modules/glob (Depends-on): Add stdbool.
79469 2008-04-11  Bruno Haible  <bruno@clisp.org>
79471         * lib/trim.c: Include <string.h>.
79473 2008-04-11  Eric Blake  <ebb9@byu.net>
79475         Avoid compile failure on OS/2.
79476         * lib/regex_internal.h (internal_function): Disable optimization
79477         on OS/2 (__EMX__), where it caused compiler error.
79478         Reported by Elbert Pol.
79480 2008-04-11  Bruno Haible  <bruno@clisp.org>
79482         Flush the standard error stream before aborting. Needed on mingw.
79483         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79484         * tests/test-array_list.c (ASSERT): Likewise.
79485         * tests/test-array_oset.c (ASSERT): Likewise.
79486         * tests/test-avltree_list.c (ASSERT): Likewise.
79487         * tests/test-avltree_oset.c (ASSERT): Likewise.
79488         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79489         * tests/test-binary-io.c (ASSERT): Likewise.
79490         * tests/test-byteswap.c (ASSERT): Likewise.
79491         * tests/test-c-ctype.c (ASSERT): Likewise.
79492         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79493         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79494         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79495         * tests/test-c-strstr.c (ASSERT): Likewise.
79496         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79497         * tests/test-canonicalize.c (ASSERT): Likewise.
79498         * tests/test-carray_list.c (ASSERT): Likewise.
79499         * tests/test-ceilf1.c (ASSERT): Likewise.
79500         * tests/test-ceilf2.c (ASSERT): Likewise.
79501         * tests/test-ceill.c (ASSERT): Likewise.
79502         * tests/test-count-one-bits.c (ASSERT): Likewise.
79503         * tests/test-fbufmode.c (ASSERT): Likewise.
79504         * tests/test-fflush2.c (ASSERT): Likewise.
79505         * tests/test-floorf1.c (ASSERT): Likewise.
79506         * tests/test-floorf2.c (ASSERT): Likewise.
79507         * tests/test-floorl.c (ASSERT): Likewise.
79508         * tests/test-fopen.c (ASSERT): Likewise.
79509         * tests/test-fpending.c (ASSERT): Likewise.
79510         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79511         * tests/test-fpurge.c (ASSERT): Likewise.
79512         * tests/test-freadable.c (ASSERT): Likewise.
79513         * tests/test-freadahead.c (ASSERT): Likewise.
79514         * tests/test-freading.c (ASSERT): Likewise.
79515         * tests/test-freadptr.c (ASSERT): Likewise.
79516         * tests/test-freadptr2.c (ASSERT): Likewise.
79517         * tests/test-freadseek.c (ASSERT): Likewise.
79518         * tests/test-freopen.c (ASSERT): Likewise.
79519         * tests/test-frexp.c (ASSERT): Likewise.
79520         * tests/test-frexpl.c (ASSERT): Likewise.
79521         * tests/test-fseek.c (ASSERT): Likewise.
79522         * tests/test-fseeko.c (ASSERT): Likewise.
79523         * tests/test-fstrcmp.c (ASSERT): Likewise.
79524         * tests/test-ftell.c (ASSERT): Likewise.
79525         * tests/test-ftello.c (ASSERT): Likewise.
79526         * tests/test-func.c (ASSERT): Likewise.
79527         * tests/test-fwritable.c (ASSERT): Likewise.
79528         * tests/test-fwriting.c (ASSERT): Likewise.
79529         * tests/test-getdelim.c (ASSERT): Likewise.
79530         * tests/test-getline.c (ASSERT): Likewise.
79531         * tests/test-i-ring.c (ASSERT): Likewise.
79532         * tests/test-iconv-utf.c (ASSERT): Likewise.
79533         * tests/test-iconv.c (ASSERT): Likewise.
79534         * tests/test-isfinite.c (ASSERT): Likewise.
79535         * tests/test-isnand.c (ASSERT): Likewise.
79536         * tests/test-isnanf.c (ASSERT): Likewise.
79537         * tests/test-isnanl.h (ASSERT): Likewise.
79538         * tests/test-ldexpl.c (ASSERT): Likewise.
79539         * tests/test-linked_list.c (ASSERT): Likewise.
79540         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79541         * tests/test-localename.c (ASSERT): Likewise.
79542         * tests/test-lseek.c (ASSERT): Likewise.
79543         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79544         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79545         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79546         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79547         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79548         * tests/test-mbschr.c (ASSERT): Likewise.
79549         * tests/test-mbscspn.c (ASSERT): Likewise.
79550         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79551         * tests/test-mbspbrk.c (ASSERT): Likewise.
79552         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79553         * tests/test-mbsrchr.c (ASSERT): Likewise.
79554         * tests/test-mbsspn.c (ASSERT): Likewise.
79555         * tests/test-mbsstr1.c (ASSERT): Likewise.
79556         * tests/test-mbsstr2.c (ASSERT): Likewise.
79557         * tests/test-mbsstr3.c (ASSERT): Likewise.
79558         * tests/test-memchr2.c (ASSERT): Likewise.
79559         * tests/test-memmem.c (ASSERT): Likewise.
79560         * tests/test-open.c (ASSERT): Likewise.
79561         * tests/test-printf-frexp.c (ASSERT): Likewise.
79562         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79563         * tests/test-printf-posix.c (ASSERT): Likewise.
79564         * tests/test-quotearg.c (ASSERT): Likewise.
79565         * tests/test-rbtree_list.c (ASSERT): Likewise.
79566         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79567         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79568         * tests/test-round1.c (ASSERT): Likewise.
79569         * tests/test-roundf1.c (ASSERT): Likewise.
79570         * tests/test-roundl.c (ASSERT): Likewise.
79571         * tests/test-signbit.c (ASSERT): Likewise.
79572         * tests/test-sleep.c (ASSERT): Likewise.
79573         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79574         * tests/test-snprintf.c (ASSERT): Likewise.
79575         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79576         * tests/test-stat-time.c (ASSERT): Likewise.
79577         * tests/test-strcasestr.c (ASSERT): Likewise.
79578         * tests/test-strerror.c (ASSERT): Likewise.
79579         * tests/test-striconv.c (ASSERT): Likewise.
79580         * tests/test-striconveh.c (ASSERT): Likewise.
79581         * tests/test-striconveha.c (ASSERT): Likewise.
79582         * tests/test-strsignal.c (ASSERT): Likewise.
79583         * tests/test-strstr.c (ASSERT): Likewise.
79584         * tests/test-strtod.c (ASSERT): Likewise.
79585         * tests/test-trunc1.c (ASSERT): Likewise.
79586         * tests/test-trunc2.c (ASSERT): Likewise.
79587         * tests/test-truncf1.c (ASSERT): Likewise.
79588         * tests/test-truncf2.c (ASSERT): Likewise.
79589         * tests/test-truncl.c (ASSERT): Likewise.
79590         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79591         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79592         * tests/test-vasnprintf.c (ASSERT): Likewise.
79593         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79594         * tests/test-vasprintf.c (ASSERT): Likewise.
79595         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79596         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79597         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79598         * tests/test-vsnprintf.c (ASSERT): Likewise.
79599         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79600         * tests/test-wcwidth.c (ASSERT): Likewise.
79601         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79602         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79603         * tests/test-xvasprintf.c (ASSERT): Likewise.
79604         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79605         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79606         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79607         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79608         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79609         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79610         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79611         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79612         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79613         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79614         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79615         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79616         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79617         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79618         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79619         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79620         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79621         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79622         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79623         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79624         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79625         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79626         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79627         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79628         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79629         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79630         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79631         * tests/unictype/test-combining.c (ASSERT): Likewise.
79632         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79633         * tests/unictype/test-digit.c (ASSERT): Likewise.
79634         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79635         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79636         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79637         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79638         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79639         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79640         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79641         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79642         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79643         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79644         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79645         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79646         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79647         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79648         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79649         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79650         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79651         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79652         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79653         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79654         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79655         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79656         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79657         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79658         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79659         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79660         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79661         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79662         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79663         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79664         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79665         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79666         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79667         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79668         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79669         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79670         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79671         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79672         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79673         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79674         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79675         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79676         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79677         Reported by Eric Blake.
79679 2008-04-11  Bruno Haible  <bruno@clisp.org>
79681         * lib/wchar.in.h: Tweak comment.
79683 2008-04-11  Bruno Haible  <bruno@clisp.org>
79685         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79686         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79687         gl_COMMON.
79688         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79690 2008-04-11  Bruno Haible  <bruno@clisp.org>
79692         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79694 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79696         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79697         of attempting to use non-existing /dev/*random.  Based on patch
79698         from Adam Strzelecki <ono@java.pl> in
79699         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79701 2008-04-08  Bruno Haible  <bruno@clisp.org>
79703         Add tentative support for emx+gcc.
79704         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79705         * lib/fpurge.c (fpurge): Likewise.
79706         * lib/freadable.c (freadable): Likewise.
79707         * lib/freadahead.c (freadahead): Likewise.
79708         * lib/freading.c (freading): Likewise.
79709         * lib/freadptr.c (freadptr): Likewise.
79710         * lib/freadseek.c (freadptrinc): Likewise.
79711         * lib/fseeko.c (rpl_fseeko): Likewise.
79712         * lib/fseterr.c (fseterr): Likewise.
79713         * lib/fwritable.c (fwritable): Likewise.
79714         * lib/fwriting.c (fwriting): Likewise.
79715         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79717 2008-04-09  Eric Blake  <ebb9@byu.net>
79719         Avoid some autoconf warnings.
79720         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79721         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79722         * m4/afs.m4 (gl_AFS): Likewise.
79723         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79724         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79726         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79727         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79728         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79729         (AC_CHECK_DECLS_ONCE): Likewise.
79730         Rename file...
79731         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79732         gnulib-tool requires autoconf 2.59 or better.
79733         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79735 2008-04-08  Eric Blake  <ebb9@byu.net>
79737         Use 'git describe --match' if present (added in git 1.5.5).
79738         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79739         if possible.
79741 2008-04-08  Bruno Haible  <bruno@clisp.org>
79743         Add tentative support for OpenServer.
79744         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79745         _ptr, _cnt.
79746         * lib/fpurge.c (fpurge): Likewise.
79747         * lib/freadable.c (freadable): Likewise.
79748         * lib/freadahead.c (freadahead): Likewise.
79749         * lib/freading.c (freading): Likewise.
79750         * lib/freadptr.c (freadptr): Likewise.
79751         * lib/freadseek.c (freadptrinc): Likewise.
79752         * lib/fseeko.c (rpl_fseeko): Likewise.
79753         * lib/fseterr.c (fseterr): Likewise.
79754         * lib/fwritable.c (fwritable): Likewise.
79755         * lib/fwriting.c (fwriting): Likewise.
79756         Reported by Roger Cornelius <rac@tenzing.org> and
79757         Brian K. White <brian@aljex.com>.
79759 2008-04-06  Jim Meyering  <meyering@redhat.com>
79761         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79763 2008-04-06  Bruno Haible  <bruno@clisp.org>
79765         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79766         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79767         * tests/test-printf-posix.sh: Likewise.
79768         * tests/test-vfprintf-posix.sh: Likewise.
79769         * tests/test-vprintf-posix.sh: Likewise.
79770         * tests/test-xprintf-posix.sh: Likewise.
79772 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79774         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79775         hide error from 'ls', needed on OS/2.
79776         Report by Elbert Pol <elbert.pol@gmail.com>.
79778 2008-04-04  Eric Blake  <ebb9@byu.net>
79780         Make test-fseeko.c failures meaningful.
79781         * tests/test-fseeko.c: Print line number on failure.
79782         * tests/test-fseek.c: Likewise.
79783         Reported by Nelson H. F. Beebe.
79785         Improve strtod bug detection check.
79786         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79787         required for Solaris 10.
79788         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79790 2008-04-04  Bruno Haible  <bruno@clisp.org>
79792         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79793         by m4/setenv.m4.
79795 2008-04-03  Eric Blake  <ebb9@byu.net>
79797         Ensure sane .version contents.
79798         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79799         version string.
79800         * build-aux/git-version-gen: Improve documentation.
79802         Make GNU make output nicer.
79803         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79804         MAKECMDGOALS to enforce message for all command line targets.  Set
79805         srcdir for use in maint.mk.
79807         Another maintainer tweak.
79808         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79809         a target that regenerates version.
79811 2008-04-03  Jim Meyering  <meyering@redhat.com>
79813         vc-list-files: don't cause coreutils "make po-check" failure
79814         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79816 2008-04-03  Eric Blake  <ebb9@byu.net>
79818         Allow VPATH usage of vc-list-files.
79819         * build-aux/vc-list-files (scriptversion): Add timestamp.
79820         (options): Add --help, --version, -C.
79821         (CVS): Support installed cvsu.
79823 2008-04-02  Bruno Haible  <bruno@clisp.org>
79825         Avoid some "statement with no effect" warnings from gcc.
79826         * tests/test-wctype.c (main): Explicitly ignore unused values.
79827         Reported by Jim Meyering.
79829 2008-04-02  Jim Meyering  <meyering@redhat.com>
79831         Avoid some warnings from "gcc -Wshadow".
79832         * tests/test-frexp.c (exp): Define to a different identifier.
79833         * tests/test-frexpl.c (exp): Likewise.
79835 2008-04-03  Jim Meyering  <meyering@redhat.com>
79837         bootstrap: remove dangling *.[ch] symlinks from lib
79838         * build-aux/bootstrap [dangling symlink removal]: Move find's
79839         -depth option to precede all others, to avoid a warning.
79840         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79842 2008-04-02  Bruno Haible  <bruno@clisp.org>
79844         Avoid some warnings from "gcc -Wshadow".
79845         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79846         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79847         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79848         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79849         Reported by Jim Meyering.
79851 2008-04-01  Bruno Haible  <bruno@clisp.org>
79853         Fix test to work on IRIX 6.5 with cc.
79854         * tests/test-math.c (numeric_equal): New function.
79855         (main): Use it.
79857 2008-04-01  Bruno Haible  <bruno@clisp.org>
79859         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79861 2008-04-01  Bruno Haible  <bruno@clisp.org>
79863         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79864         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79865         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79866         (Depends-on): Remove math.
79868         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79869         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79870         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79871         (Depends-on): Remove math.
79873         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79874         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79875         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79876         (Depends-on): Remove math.
79877         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79878         (Depends-on): Remove math.
79880         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79881         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79882         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79883         (Depends-on): Remove math.
79884         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79885         (Depends-on): Remove math.
79887         * tests/test-round1.c: Include nan.h.
79888         (main): Use NaNd instead of NAN.
79889         * modules/round-tests (Files): Add tests/nan.h.
79891         * tests/test-trunc1.c: Include nan.h.
79892         (main): Use NaNd instead of NAN.
79893         * modules/trunc-tests (Files): Add tests/nan.h.
79895         * tests/test-roundf1.c: Include nan.h.
79896         (main): Use NaNf instead of NAN.
79897         * modules/roundf-tests (Files): Add tests/nan.h.
79899         * tests/test-truncf1.c: Include nan.h.
79900         (main): Use NaNf instead of NAN.
79901         * modules/truncf-tests (Files): Add tests/nan.h.
79903         * tests/test-ceilf1.c: Include nan.h.
79904         (main): Use NaNf instead of NAN.
79905         * modules/ceilf-tests (Files): Add tests/nan.h.
79907         * tests/test-floorf1.c: Include nan.h.
79908         (main): Use NaNf instead of NAN.
79909         * modules/floorf-tests (Files): Add tests/nan.h.
79911         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
79912         (main): Use NaNf instead of NAN.
79913         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
79915         * tests/test-isnand.c: Include nan.h instead of <math.h>.
79916         (main): Use NaNd instead of NAN.
79917         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
79919         * tests/test-frexp.c: Include nan.h.
79920         (main): Use NaNd instead of NAN.
79921         * modules/frexp-tests (Files): Add tests/nan.h.
79923         * lib/isnan.c: Don't include <math.h>.
79924         (FUNC): Don't use NAN macro.
79925         * modules/isnand-nolibm (Depends-on): Remove math.
79926         * modules/isnanf-nolibm (Depends-on): Remove math.
79927         * modules/isnanl (Depends-on): Remove math.
79928         * modules/isnanl-nolibm (Depends-on): Remove math.
79930         * tests/nan.h: New file.
79932 2008-04-01  Eric Blake  <ebb9@byu.net>
79934         Fix typos.
79935         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
79936         values to be the right type.
79938         For now, cater to gnulib strtod inaccuracies.
79939         * tests/test-strtod.c (main): Allow 1-ulp error on expected
79940         fractional results.  While not as nice from a QoI perspective, it
79941         is a quicker patch than correctly implementing decimal to binary
79942         rounding.
79944 2008-03-31  Eric Blake  <ebb9@byu.net>
79946         Guarantee a definition of NAN.
79947         * lib/math.in.h (NAN): Define if missing.
79948         * tests/test-math.c (main): Test it.
79949         * doc/posix-headers/math.texi (math.h): Document this.
79950         * lib/isnan.c (rpl_isnand): Use it.
79951         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
79952         * tests/test-floorf1.c (NaN): Likewise.
79953         * tests/test-frexp.c (NaN): Likewise.
79954         * tests/test-isnand.c (NaN): Likewise.
79955         * tests/test-isnanf.c (NaN): Likewise.
79956         * tests/test-round1.c (NaN): Likewise.
79957         * tests/test-roundf1.c (NaN): Likewise.
79958         * tests/test-snprintf-posix.h (NaN): Likewise.
79959         * tests/test-sprintf-posix.h (NaN): Likewise.
79960         * tests/test-trunc1.c (NaN): Likewise.
79961         * tests/test-truncf1.c (NaN): Likewise.
79962         * tests/test-vasnprintf-posix.c (NaN): Likewise.
79963         * tests/test-vasprintf-posix.c (NaN): Likewise.
79964         * modules/isnand-nolibm (Depends-on): Add math.
79965         * modules/isnanf-nolibm (Depends-on): Likewise.
79966         * modules/isnanl (Depends-on): Likewise.
79967         * modules/isnanl-nolibm (Depends-on): Likewise.
79968         * modules/snprintf-posix-tests (Depends-on): Likewise.
79969         * modules/sprintf-posix-tests (Depends-on): Likewise.
79970         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
79971         * modules/vsprintf-posix-tests (Depends-on): Likewise.
79972         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
79973         * modules/vasprintf-posix-tests (Depends-on): Likewise.
79975 2008-03-31  Bruno Haible  <bruno@clisp.org>
79977         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
79978         * doc/posix-functions/strtod.texi: Likewise.
79980 2008-03-31  Bruno Haible  <bruno@clisp.org>
79982         * tests/test-strtod.c (main): Don't use C99 syntax.
79984 2008-03-31  Bruno Haible  <bruno@clisp.org>
79986         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
79987         Reported by Eric Blake.
79989 2008-03-31  Jim Meyering  <meyering@redhat.com>
79991         Don't compare actual signbit return values.
79992         * tests/test-strtod.c (main): Rather, compare only their
79993         zero/non-zero nature.
79995 2008-03-31  Eric Blake  <ebb9@byu.net>
79997         More strtod documentation.
79998         * doc/posix-functions/strtod.texi (strtod): Interpret more test
79999         failures as distinct bugs.
80001 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80003         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80004         Problem reported by Erik Benada in
80005         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80007 2008-03-30  Bruno Haible  <bruno@clisp.org>
80009         * tests/test-strtod.c: Add comments about which assertion fails on which
80010         platform.
80011         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80013 2008-03-30  Eric Blake  <ebb9@byu.net>
80015         Test signbit behavior on zeros.
80016         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80017         (test_signbitd, test_signbitl): Likewise.
80019         More strtod touchups.
80020         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80021         sign of negative underflow, for now.  Use .5, not .1.
80022         * doc/posix-functions/strtod.texi (strtod): Mention these
80023         limitations.
80024         Reported by Jim Meyering.
80026 2008-03-30  Bruno Haible  <bruno@clisp.org>
80028         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80029         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80031 2008-03-30  Bruno Haible  <bruno@clisp.org>
80033         Avoid failure when attempting to return empty iconv results on some
80034         platforms.
80035         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80036         allocation, don't report ENOMEM when the resulting string is empty.
80038 2008-03-30  Bruno Haible  <bruno@clisp.org>
80040         Fix buffer overrun.
80041         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80042         Don't consider the width for tmp_length. Check count against tmp_length
80043         before doing the padding. Ensure enough allocation during padding.
80045 2008-03-30  Eric Blake  <ebb9@byu.net>
80047         strtod touchups.
80048         * lib/strtod.c (strtod): Avoid compiler warnings.
80049         Reported by Jim Meyering.
80051 2008-03-30  Bruno Haible  <bruno@clisp.org>
80053         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80054         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80055         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80056         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80057         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80058         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80059         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80060         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80062         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80063         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80064         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80065         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80066         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80067         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80068         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80069         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80071         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80072         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80073         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80074         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80075         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80076         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80077         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80078         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80080         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80081         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80083         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80084         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80086         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80087         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80089         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80090         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80091         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80093         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80095         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80097         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80099         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80101         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80103         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80105         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80106         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80108         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80109         (Depends-on): Add EOVERFLOW.
80110         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80111         (Depends-on): Add EOVERFLOW.
80112         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80113         (Depends-on): Add EOVERFLOW.
80114         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80115         (Depends-on): Add EOVERFLOW.
80116         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80117         (Depends-on): Add EOVERFLOW.
80118         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80119         (Depends-on): Add EOVERFLOW.
80120         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80121         (Depends-on): Add EOVERFLOW.
80122         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80123         (Depends-on): Add EOVERFLOW.
80125         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80127         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80129         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80131         * modules/snprintf (Depends-on): Add EOVERFLOW.
80133         * lib/poll.c (EOVERFLOW): Remove fallback.
80134         * modules/poll (Depends-on): Add EOVERFLOW.
80136         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80137         * modules/getugroups (Depends-on): Add EOVERFLOW.
80139         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80140         * modules/getdelim (Depends-on): Add EOVERFLOW.
80142         * lib/ftell.c (EOVERFLOW): Remove fallback.
80143         * modules/ftell (Depends-on): Add EOVERFLOW.
80145         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80147         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80149         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80151         * modules/EOVERFLOW-tests: New file.
80152         * tests/test-EOVERFLOW.c: New file.
80154         * modules/EOVERFLOW: New file.
80155         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80157 2008-03-30  Bruno Haible  <bruno@clisp.org>
80159         Fix bug introduced on 2007-06-10.
80160         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80161         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80163 2008-03-30  Bruno Haible  <bruno@clisp.org>
80165         Improve freadseek's efficiency after ungetc.
80166         * lib/freadseek.c: Include freadahead.h.
80167         (freadptrinc): New function, extracted from freadseek.
80168         (freadseek): Use it in a loop. Use freadahead to determine the number
80169         of loop iterations.
80170         * modules/freadseek (Depends-on): Add freadahead.
80171         (configure.ac): Require AC_C_INLINE.
80173 2008-03-30  Bruno Haible  <bruno@clisp.org>
80175         * lib/freadseek.c (freadseek): Don't ignore the return value of
80176         freadptr.
80178 2008-03-29  Eric Blake  <ebb9@byu.net>
80180         Add hex float support.
80181         * modules/strtod (Depends-on): Add c-ctype.
80182         (Link): Mention POW_LIB.
80183         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80184         whitespace between 'e' and exponent.
80185         * tests/test-strtod.c (main): Enable hex float tests.
80186         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80187         now provides.
80189         Document various strtod bugs, with some fixes.
80190         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80191         "-0x", "inf", "nan", and hex constants.
80192         * doc/posix-functions/atof.texi (atof): Likewise.
80193         * modules/stdlib (Makefile.am): Support strtod.
80194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80195         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80196         detect additional strtod bugs.
80197         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80198         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80199         bool where appropriate.  Parse 'inf' and 'nan'.
80200         * tests/test-strtod.c: New file.
80201         * modules/strtod (Depends-on): Add stdbool, stdlib.
80202         (configure.ac): Turn on module indicator.
80203         * modules/strtod-tests: New module.
80205 2008-03-29  Eric Blake  <ebb9@byu.net>
80207         Fix ftell on mingw.
80208         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80209         * modules/ftell-tests (Depends-on): Add binary-io.
80210         * modules/ftello-tests (Depends-on): Likewise.
80211         * tests/test-ftell.c (main): Enhance test to cover behavior after
80212         ungetc.  Enforce binary mode.
80213         * tests/test-ftello.c (main): Likewise.
80215         Pass test-freadseek on cygwin.
80216         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80217         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80218         ungetc buffer.
80220         * tests/test-fflush2.c (main): Fix typo.
80222 2008-03-29  Bruno Haible  <bruno@clisp.org>
80224         * tests/test-fflush2.c (main): Temporarily disable the contents of
80225         this test.
80226         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80227         Reported by Eric Blake.
80229 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80231         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80232         (GC_SHA224_DIGEST_SIZE): Add.
80234         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80235         (gc_hash_digest_length): Likewise.
80236         (gc_hash_buffer): Likewise.
80238 2008-03-25  Bruno Haible  <bruno@clisp.org>
80240         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80241         detail which gettext release to use.
80242         Reported by Simon Josefsson.
80244 2008-03-26  Jim Meyering  <meyering@redhat.com>
80246         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80247         * modules/gnumakefile (clean-GNUmakefile): Also, use
80248         test ... && ... || : syntax rather than if-then ... fi.
80250         gnumakefile: Don't double-quote-expand $(VPATH) value.
80251         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80253 2008-03-24  Eric Blake  <ebb9@byu.net>
80255         Alter GNUmakefile to install into top directory.
80256         * modules/maintainer-makefile: Split, and add dependency...
80257         * modules/gnumakefile: to this new module.
80258         * build-aux/GNUmakefile: Move...
80259         * top/GNUmakefile: ...here.
80260         * build-aux/maint.mk: Move...
80261         * top/maint.mk: ...here.
80262         * MODULES.html.sh (Support for maintaining...): Document new
80263         module.
80265 2008-03-23  Bruno Haible  <bruno@clisp.org>
80267         * gnulib-tool: New options --vc-files, --no-vc-files.
80268         (func_usage): Document them.
80269         (vc_files): New variable.
80270         (func_import): Consider vc_files.
80271         (func_create_testdir): Set vc_files to empty.
80272         Suggested by Jim Meyering and Karl Berry.
80274 2008-03-23  Bruno Haible  <bruno@clisp.org>
80276         Fix regex compilation error on HP-UX 11.
80277         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80278         * modules/regex (Files): Add m4/mbstate_t.m4.
80279         Reported by Ton Voon <ton.voon@altinity.com>.
80281 2008-03-23  Bruno Haible  <bruno@clisp.org>
80283         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80285 2008-03-23  Eric Blake  <ebb9@byu.net>
80286             Bruno Haible  <bruno@clisp.org>
80288         Install files from top/ in the destination directory.
80289         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80290         augmentation also for the files from top/.
80291         (func_import, func_create_testdir): Rewrite file names:
80292         top/filename -> filename.
80294 2008-03-23  Bruno Haible  <bruno@clisp.org>
80296         Tweak "gnulib --version" output.
80297         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80299 2008-03-23  Bruno Haible  <bruno@clisp.org>
80301         Tweak "gnulib --version" output.
80302         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80303         rather than contents of ChangeLog, when possible.
80305 2008-03-21  Eric Blake  <ebb9@byu.net>
80307         More --version tweaks.
80308         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80309         date of last ChangeLog entry.
80311 2008-03-21  Jim Meyering  <meyering@redhat.com>
80313         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80315 2008-03-20  Eric Blake  <ebb9@byu.net>
80317         VPATH fix.
80318         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80320 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80322         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80323         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80325 2008-03-20  Eric Blake  <ebb9@byu.net>
80327         Sync GNUmakefile with coreutils.
80328         * build-aux/GNUmakefile (have-Makefile): Rename...
80329         (_have-Makefile): ...to this, for namespace consideration.
80330         (GNUmakefile.cfg): Include, if present.
80331         (_autoreconf): Define a default.
80332         (_is-dist-target): New rule for rebuilds to pick up intra-release
80333         version.
80334         (maint-cfg.mk): Rename...
80335         (cfg.mk): ...to this.
80337 2008-03-18  Jim Meyering  <meyering@redhat.com>
80339         New script and module: mktempd
80340         * MODULES.html.sh (maint+release support): Add mktempd.
80341         * build-aux/mktempd: New file.
80342         * modules/mktempd: New file.
80344 2008-03-15  Jim Meyering  <meyering@redhat.com>
80346         Undo last change.
80347         * lib/sha1.c, lib/md5.c: 63 != ~63.
80348         Reported by Andreas Schwab.
80350         sha1.c, md5.c: Hoist a redundant expression.
80351         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80352         "ctx->buflen" only once, before calling *_process_block.
80353         * lib/md5.c (md5_process_bytes): Likewise.
80355 2008-03-14  Eric Blake  <ebb9@byu.net>
80357         Bump copyright year in files generated by gnulib-tool.
80358         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80359         gnulib-tool, rather than hard-coding it.
80361         Fix 'gnulib-tool --version' output to work with git.
80362         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80363         (startup): ...here.
80364         (func_version): Use it to invoke git-version-gen, rather than
80365         relying on CVS keyword expansion.  Modernize wording.
80366         (cvsdatestamp, last_checkin_date, version): Kill unused
80367         variables.
80369 2008-03-12  Jim Meyering  <meyering@redhat.com>
80371         Recognize optional cast of the argument to free.
80372         * build-aux/useless-if-before-free: Update regexps.
80374         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80376 2008-03-11  Bruno Haible  <bruno@clisp.org>
80378         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80379         by a single package.
80380         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80381         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80382         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80383         Reported by Sam Steingold <sds@gnu.org>.
80385 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80387         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80388         repositories.
80390 2008-03-11  Bruno Haible  <bruno@clisp.org>
80392         Avoid conflicts between local macro definitions.
80393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80394         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80396 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80397             Bruno Haible  <bruno@clisp.org>
80399         Make va_copy work with some version of xlc on AIX 5.1.
80400         * lib/stdarg.in.h: New file.
80401         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80402         On AIX, use a <stdarg.h> file substitute.
80403         * modules/stdarg (Files): Add lib/stdarg.in.h.
80404         (Depends-on): Add include_next.
80405         (Makefile.am): Build a stdarg.h substitute if requested.
80406         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80408 2008-03-10  Bruno Haible  <bruno@clisp.org>
80410         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80412         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80414 2008-03-10  Bruno Haible  <bruno@clisp.org>
80416         * modules/stdlib (Depends-on): Add include_next, remove
80417         absolute-header.
80419 2008-03-09  Bruno Haible  <bruno@clisp.org>
80421         * lib/freadahead.h (freadahead): Document more precisely.
80422         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80423         the sum of both buffer sizes.
80424         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80425         * NEWS: Document the change.
80427 2008-03-09  Bruno Haible  <bruno@clisp.org>
80429         Extend freadptr to return also the buffer size.
80430         * lib/freadptr.h (freadptr): Add sizep argument.
80431         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80432         (freadptr): Add sizep argument. Determine buffer size like freadahead
80433         does.
80434         * tests/test-freadptr.c: Don't include freadahead.h.
80435         (main): Adapt for new calling convention of freadptr.
80436         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80437         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80438         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80439         tests/test-freadptr2.sh.
80440         (Depends): Remove freadahead.
80441         (TESTS): Add test-freadptr2.sh.
80442         (check_PROGRAMS): Add test-freadptr2.
80444 2008-03-09  Bruno Haible  <bruno@clisp.org>
80446         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80447         Report and solution by Simon Josefsson.
80449 2008-03-06  Bruno Haible  <bruno@clisp.org>
80451         Make fflush after ungetc work on BSD platforms.
80452         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80453         * tests/test-fflush2.c: New file.
80454         * tests/test-fflush2.sh: New file.
80455         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80456         tests/test-fflush2.c.
80457         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80458         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80460 2008-03-06  Eric Blake  <ebb9@byu.net>
80462         Likewise for ftello.
80463         * modules/ftello (Dependencies): Add extensions.
80464         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80466 2008-03-06  Bruno Haible  <bruno@clisp.org>
80468         * modules/fseeko (Dependencies): Add extensions.
80469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80470         Needed on glibc systems.
80472 2008-03-06  Bruno Haible  <bruno@clisp.org>
80474         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80475         email address.
80476         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80478 2008-03-06  Bruno Haible  <bruno@clisp.org>
80480         * users.txt: Add libgnupdf.
80482 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80484         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80485         (Header File Substitutes, Function Substitutes,
80486         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80487         (Build robot for gnulib): Fix typo.
80489 2008-03-06  Bruno Haible  <bruno@clisp.org>
80491         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80492         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80494 2008-03-06  Bruno Haible  <bruno@clisp.org>
80496         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80497         * doc/gnulib.texi: Include it.
80499 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80501         * modules/func (License): Change license to unlimited; there was
80502         no LGPL parts in the module anyway.
80504 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80506         * modules/__func__: Renamed to modules/func.
80507         * modules/__func__-tests: Renamed to modules/func-tests.
80508         * tests/test-__func__.c: Renamed to tests/test-func.c.
80509         * m4/__func__.m4: Renamed to m4/func.m4.
80510         * doc/gnulib.texi (__func__): Section renamed to func.
80511         Suggested by Eric Blake <ebb9@byu.net>.
80513 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80515         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80516         about __func__.  Make example self-contained.  Suggested by Eric
80517         Blake <ebb9@byu.net>.
80519         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80520         Suggested by Eric Blake <ebb9@byu.net>.
80522 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80524         * modules/__func__: New file.
80525         * modules/__func__-tests: New file.
80526         * tests/test-__func__.c: New file.
80527         * m4/__func__.m4: New file.
80528         * doc/gnulib.texi (__func__): Document __func__ module.
80530 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80532         * modules/byteswap (License): Re-license as LGPLv2+.
80534 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80536         * doc/Makefile: Add pdf target.
80538 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80540         * modules/inline (License): Use 'unlimited', since there are only
80541         *.m4 files in this module.
80543 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80544             Bruno Haible  <bruno@clisp.org>
80546         Add support for HP C 7.1 on OpenVMS 8.3.
80547         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80549 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80551         Update VMS specifics.
80552         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80554 2008-03-02  Jim Meyering  <meyering@redhat.com>
80556         Remove the last dependency on the "free" module.
80557         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80558         Reported by Bob Proulx.
80560         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80562         Remove useless "if" tests before free.  Deprecate "free" module.
80563         * doc/posix-functions/free.texi: Mention that this
80564         module is no longer useful.
80565         * modules/free (Notice): Say this module is obsolete.
80566         * modules/readutmp (Depends-on): Remove free.
80567         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80568         * lib/putenv.c (putenv): Likewise.
80569         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80570         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80571         * tests/test-c-strcasestr.c (main): Likewise.
80572         * tests/test-c-strstr.c (main): Likewise.
80573         * tests/test-mbscasestr1.c (main): Likewise.
80574         * tests/test-mbscasestr2.c (main): Likewise.
80575         * tests/test-mbsstr1.c (main): Likewise.
80576         * tests/test-mbsstr2.c (main): Likewise.
80577         * tests/test-memmem.c (main): Likewise.
80578         * tests/test-strcasestr.c (main): Likewise.
80579         * tests/test-striconv.c (main): Likewise.
80580         * tests/test-striconveh.c (main): Likewise.
80581         * tests/test-striconveha.c (main): Likewise.
80582         * tests/test-strstr.c (main): Likewise.
80584         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80586         bootstrap: sync from coreutils again
80587         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80589 2008-03-01  Jim Meyering  <meyering@redhat.com>
80591         bootstrap: sync from coreutils
80592         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80593         also when the target doesn't exist.
80595 2008-03-01  Eric Blake  <ebb9@byu.net>
80597         Fix bugs in last patch.
80598         * lib/memchr2.c (memchr2): Fix typo.
80599         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80600         extension.
80601         Reported by Bruce Korb.
80603         New module 'memchr2'.
80604         * modules/memchr2: New file.
80605         * modules/memchr2-tests: Likewise.
80606         * lib/memchr2.h: Likewise.
80607         * lib/memchr2.c: Likewise, based on memchr.c.
80608         * tests/test-memchr2.c: New test.
80609         * MODULES.html.sh (String handling): Add memchr2.
80611 2008-02-29  Bruno Haible  <bruno@clisp.org>
80613         * modules/freadseek-tests: New file.
80614         * tests/test-freadseek.sh: New file.
80615         * tests/test-freadseek.c: New file.
80617         New module 'freadseek'.
80618         * modules/freadseek: New file.
80619         * lib/freadseek.h: New file.
80620         * lib/freadseek.c: New file.
80621         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80623 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80625         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80626         wydawca.
80628         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80629         program_invocation_name and program_invocation_short_name are
80630         present.
80632 2008-02-28  Bruno Haible  <bruno@clisp.org>
80634         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80635         * tests/test-freadptr.sh: Also test non-seekable stdin.
80637 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80639         * build-aux/bootstrap (source_base, m4_base)
80640         (doc_base, tests_base): New variables.
80641         (gnulib_tool_options): Do not hardcode base directories, use
80642         the above variables instead.
80644 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80646         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80648 2008-02-28  Bruno Haible  <bruno@clisp.org>
80650         * modules/freadptr-tests: New file.
80651         * tests/test-freadptr.sh: New file.
80652         * tests/test-freadptr.c: New file.
80654         New module 'freadptr'.
80655         * modules/freadptr: New file.
80656         * lib/freadptr.h: New file.
80657         * lib/freadptr.c: New file.
80658         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80660 2008-02-26  Karl Berry  <karl@freefriends.org>
80662         Sync from Libtool:
80663         * libltdl/argz.c (argz_add, argz_count): New functions.
80664         * libltdl/argz.in.h: Declare them.
80665         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80667 2008-02-22  Bruno Haible  <bruno@clisp.org>
80669         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80670         is a pointer type.  Needed for HP-UX 10.
80671         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80672         * doc/posix-functions/gmtime_r.texi: Likewise.
80673         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80675 2008-02-24  Bruno Haible  <bruno@clisp.org>
80677         * modules/environ-tests: New file.
80678         * tests/test-environ.c: New file.
80680         New module 'environ'.
80681         * modules/environ: New file.
80682         * lib/unistd.in.h (environ): New declaration.
80683         * m4/environ.m4: New file.
80684         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80685         after use.
80686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80687         HAVE_DECL_ENVIRON.
80688         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80689         HAVE_DECL_ENVIRON.
80690         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80691         wrong claim that 'environ' is missing on some systems.
80692         * modules/execute (Depends-on): Add environ.
80693         * lib/execute.c (environ): Remove fallback declaration.
80694         * modules/pipe (Depends-on): Add environ.
80695         * lib/pipe.c (environ): Remove fallback declaration.
80696         * modules/setenv (Depends-on): Add environ.
80697         * lib/setenv.c (environ): Remove fallback declaration.
80698         * modules/unsetenv (Depends-on): Add environ.
80699         * lib/unsetenv.c (environ): Remove fallback declaration.
80700         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80701         m4/environ.m4.
80702         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80703         (gl_PREREQ_UNSETENV): Likewise.
80705 2008-02-24  Bruno Haible  <bruno@clisp.org>
80707         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80709 2008-02-20  Bob Proulx  <bob@proulx.com>
80711         Enable use of older two part flavor 'git describe'.
80712         * build-aux/git-version-gen: If using the older two part flavor of
80713         git version then recreate the third part now present in the
80714         newer three part flavor of git describe.
80716 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80718         * lib/fts.c (fts_build): Typo correction to comment.
80720 2008-02-17  Bruno Haible  <bruno@clisp.org>
80722         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80723         generating no-op conflicts.
80725 2008-02-17  Bruno Haible  <bruno@clisp.org>
80727         Speed up by 10%.
80728         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80729         result_entries, rather than an index-based loop.
80731 2008-02-17  Bruno Haible  <bruno@clisp.org>
80733         Speed up by 25%.
80734         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80735         'hashcode_cached'.
80736         (entry_create): New function.
80737         (entry_hashcode): Use the cached hashcode if possible.
80738         (read_changelog_file, try_split_merged_entry): Use entry_create.
80740 2008-02-17  Bruno Haible  <bruno@clisp.org>
80742         Speed up from O(n^2) to O(n) for long ChangeLog files.
80743         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80744         (read_changelog_file): Change implementation of entries_reversed list
80745         to rbtreehash.
80746         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80748 2008-02-17  Bruno Haible  <bruno@clisp.org>
80750         New option --split-merged-entry.
80751         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80752         (find_paragraph_end, try_split_merged_entry): New functions.
80753         (long_options): Add option --split-merged-entry.
80754         (usage): Document option --split-merged-entry.
80755         (main): Implement option --split-merged-entry.
80756         Reported by Eric Blake.
80758 2008-02-17  Bruno Haible  <bruno@clisp.org>
80760         * lib/git-merge-changelog.c: Include c-strstr.h.
80761         (main): Support the "git pull --rebase" situation.
80762         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80763         Reported by Eric Blake.
80765 2008-02-16  Eric Blake  <ebb9@byu.net>
80767         Avoid doubling \ in common case of "c-maybe" quoting style.
80768         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80769         eliding outer quotes.
80770         * lib/quotearg.h: Document this.
80771         * tests/test-quotearg.c (result_strings, inputs, results_g)
80772         (flag_results, locale_results): Test it by adding a new string to
80773         each test group.
80774         (compare_strings): Test new string.
80776 2008-02-13  Eric Blake  <ebb9@byu.net>
80778         Avoid trigraph quoting in default output.
80779         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80780         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80781         unless explicitly requested.
80782         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80784 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80786         Don't rely on signed integer overflowing to negative value.
80787         * lib/getugroups.c (getugroups): Include <limits.h>.
80788         Instead, compare against INT_MAX, and increment only if the test passes.
80790 2008-02-13  Jim Meyering  <meyering@redhat.com>
80791         and Eric Blake  <ebb9@byu.net>
80793         Avoid shadowing warning and compile errors on Linux.
80794         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80795         forwarding macros on Linux.
80796         (dcgettext): Define a stub, for Linux.
80797         (results_g, main): Avoid warnings.
80799 2008-02-12  Eric Blake  <ebb9@byu.net>
80801         Silence warning in last patch.
80802         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80804         Quotearg part 4: add tests, fix c-maybe colon quoting.
80805         * lib/quotearg.h: Improve documentation.
80806         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80807         escapes when adding outer quotes.  When quoting trigraphs, use
80808         valid C notation.  When quoting NUL, omit extra characters if next
80809         character is not digit.  Alter prototype.
80810         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80811         callers.
80812         * modules/quotearg-tests: New module.
80813         * tests/test-quotearg.c: New test.
80815 2008-02-07  Eric Blake  <ebb9@byu.net>
80817         Quotearg part 3: add flag to control outer quote elision.
80818         * lib/quotearg.h (c_maybe_quoting_style): New style.
80819         (enum quoting_flags): Better documentation of flags.
80820         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80821         c-maybe style.
80822         (quotearg_buffer_restyled): Handle new flag to elide outer
80823         quotes.
80825         Quotearg part 2: add flag that can control NUL elision.
80826         * lib/quotearg.h (set_quoting_flags): New prototype.
80827         * lib/quotearg.c (struct quoting_options): Add flag field.
80828         (set_quoting_flags): New function.
80829         (quotearg_buffer_restyled): Add flags parameter.
80830         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80831         (quotearg_n_options): Set the flag, since length cannot be
80832         returned.
80833         (quoting_options_from_style): Default flags correctly.
80835         Quotearg part 1: more wrappers, restore quotearg_char state.
80836         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80837         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80838         (quotearg_colon_mem): New wrappers.
80839         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80840         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80841         functions.
80842         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80843         (quotearg_colon_mem): New functions.
80845 2008-02-11  Bruno Haible  <bruno@clisp.org>
80847         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80848         library in the current directory: it does not work with parallel make.
80849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80851 2008-02-11  Bruno Haible  <bruno@clisp.org>
80853         * .gitattributes: New file.
80855 2008-02-11  Jim Meyering  <meyering@redhat.com>
80857         useless-if-before-free: Fix reversed exit values.
80858         * build-aux/useless-if-before-free: Use correct values
80859         for EXIT_MATCH and EXIT_NO_MATCH.
80861         * build-aux/useless-if-before-free: Close stdout carefully.
80863 2008-02-10  Bruno Haible  <bruno@clisp.org>
80865         New module 'git-merge-changelog'.
80866         * modules/git-merge-changelog: New file.
80867         * lib/git-merge-changelog.c: New file.
80869 2008-02-10  Jim Meyering  <meyering@redhat.com>
80871         useless-if-before-free: New option: --list (-l).
80873         useless-if-before-free: Don't exit immediately upon open failure.
80874         * build-aux/useless-if-before-free: Exit 2 for errors.
80875         Upon failure to open a file, don't exit immediately.
80876         Rather, just warn and continue with any remaining files.
80878 2008-02-10  Bruno Haible  <bruno@clisp.org>
80880         New abstract list operation 'node_set_value'.
80881         * lib/gl_list.h (gl_list_node_set_value): New function.
80882         (struct gl_list_implementation): New field node_set_value.
80883         * lib/gl_list.c (gl_list_node_set_value): New function.
80884         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80885         (gl_array_list_implementation): Update.
80886         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80887         (gl_carray_list_implementation): Update.
80888         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80889         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80890         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80891         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80892         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80893         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
80894         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
80895         Update.
80896         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
80897         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
80898         (gl_sublist_list_implementation): Update.
80900 2008-02-10  Bruno Haible  <bruno@clisp.org>
80902         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
80903         Needed when ELEMENT is #defined to 'some_type *'.
80905 2008-02-10  Jim Meyering  <meyering@redhat.com>
80907         New script and module: useless-if-before-free
80908         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
80909         * build-aux/useless-if-before-free: New file.
80910         * modules/useless-if-before-free: New file.
80912         * build-aux/gitlog-to-changelog: Use committer date, not author date.
80914         xstrtol_error: Fix typo.
80915         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
80916         s/exit_failure/exit_status/.
80918 2008-02-09  Jim Meyering  <meyering@redhat.com>
80920         New script and module: gitlog-to-changelog
80921         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
80922         * modules/gitlog-to-changelog: New file.
80923         * build-aux/gitlog-to-changelog: New file.
80925 2008-02-08  Jim Meyering  <meyering@redhat.com>
80927         Avoid two "parameter unused" warnings.
80928         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
80929         Mark "st" as used.
80931         Use "git COMMAND", not "git-COMMAND".
80932         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
80933         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
80934         * build-aux/git-version-gen: Use "git status", not "git-status".
80936 2008-02-07  Bruno Haible  <bruno@clisp.org>
80938         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
80939         Avoids a crash on Windows Vista.
80940         Reported by Adam Strzelecki <ono@java.pl> via
80941         Simon Josefsson <simon@josefsson.org>.
80943 2008-02-06  Bruno Haible  <bruno@clisp.org>
80945         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
80946         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
80947         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
80948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
80949         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80951         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
80952         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
80953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80960         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
80961         left-adjust flag.
80962         * tests/test-snprintf-posix.h (test_function): Likewise.
80963         * tests/test-sprintf-posix.h (test_function): Likewise.
80964         * tests/test-vasprintf-posix.c (test_function): Likewise.
80965         * doc/posix-functions/fprintf.texi: Update.
80966         * doc/posix-functions/printf.texi: Update.
80967         * doc/posix-functions/snprintf.texi: Update.
80968         * doc/posix-functions/sprintf.texi: Update.
80969         * doc/posix-functions/vfprintf.texi: Update.
80970         * doc/posix-functions/vprintf.texi: Update.
80971         * doc/posix-functions/vsnprintf.texi: Update.
80972         * doc/posix-functions/vsprintf.texi: Update.
80973         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80975 2008-02-06  Bruno Haible  <bruno@clisp.org>
80977         Fix bug introduced on 2008-01-26.
80978         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
80980 2008-02-06  Bruno Haible  <bruno@clisp.org>
80982         Fix bug introduced on 2007-06-10.
80983         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
80984         !NEED_PRINTF_FLAG_ZERO.
80986 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
80988         getloadavg: use libperfstat on AIX5
80989         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
80991 2008-02-03  Bruno Haible  <bruno@clisp.org>
80993         * lib/diffseq.h: Add comments about required #includes.
80994         Reported by Michael Biggs <gnulib@doubleplum.net>.
80996 2008-02-01  Bruno Haible  <bruno@clisp.org>
80998         * users.txt: Add gnuit.
81000 2008-01-31  Bruno Haible  <bruno@clisp.org>
81002         * lib/md4.c (set_uint32): Mark as inline.
81003         * lib/md5.c (set_uint32): Likewise.
81004         * lib/sha1.c (set_uint32): Likewise.
81005         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81006         * m4/md5.m4 (gl_MD5): Likewise.
81007         * m4/sha1.m4 (gl_SHA1): Likewise.
81009 2008-01-31  Jim Meyering  <meyering@redhat.com>
81011         Use "sizeof VAR", rather than a literal "4".
81012         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81013         * lib/md4.c (md4_read_ctx): Likewise.
81014         * lib/sha1.c (sha1_read_ctx): Likewise.
81016 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81018         * tests/test-sha1.c: New file, based on test-md5.c.
81020         * modules/crypto/sha1-tests: New file.
81022 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81024         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81026 2008-01-31  Jim Meyering  <meyering@redhat.com>
81028         Prefer "sizeof v" over the equivalent "4".
81029         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81030         * lib/md5.c (set_uint32): Likewise.
81031         * lib/sha1.c (set_uint32): Likewise.
81033 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81035         * lib/sha1.c (set_uint32): Mark function as static.
81037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81039         md2: clarify comments to say that alignment is not required.
81040         * lib/md2.h: Remove warning about alignment in comment.
81041         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81042         never been required.
81044 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81046         md4: adapt alignment constraint fix from sha1.
81047         * lib/md4.c (set_uint32): New function, from sha1.c
81048         (md4_read_ctx): Use it.
81049         (md4_finish_ctx): Doc fix.
81050         * lib/md4.h: Doc fix.
81052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81054         md5: adapt alignment constraint fix from sha1.
81055         * lib/md5.c (set_uint32): New function, from sha1.c
81056         (md5_read_ctx): Use it.
81057         (md5_finish_ctx): Doc fix.
81058         * lib/md5.h: Doc fix.
81060 2008-01-30  Peter Palfrader  <weasel@debian.org>
81062         sha1: remove the result buffer alignment constraint
81063         * lib/sha1.c (set_uint32): New function.
81064         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81065         constraint.
81066         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81067         * lib/sha1.h: Likewise.
81069 2008-01-30  Andreas Schwab  <schwab@suse.de>
81070             Bruno Haible  <bruno@clisp.org>
81072         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81073         correct definition of LDBL_MIN_EXP.
81075 2008-01-30  Karl Berry  <karl@gnu.org>
81077         * config/srclist-update: try to preserve x bit on updates.
81078         * config/srclistvars.sh: update for karl.
81080 2008-01-29  Jim Meyering  <meyering@redhat.com>
81082         vasnprintf.c: Avoid warning about unused label
81083         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81084         "overflow" label definition and associated code with the
81085         same cpp condition that guards the sole use of that label.
81087 2008-01-26  Bruno Haible  <bruno@clisp.org>
81089         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81090         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81091         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81092         * lib/isnanl-nolibm.h (isnanl): Likewise.
81093         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81095 2008-01-26  Bruno Haible  <bruno@clisp.org>
81097         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81098         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81100 2008-01-26  Bruno Haible  <bruno@clisp.org>
81102         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81103         GCC >= 4.0 built-in.
81104         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81106 2008-01-26  Bruno Haible  <bruno@clisp.org>
81108         Rename isnan, applicable to 'double' only, to isnand.
81109         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81110         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81111         (configure.ac): Update.
81112         (Include): Replace "isnan.h" with "isnand.h".
81113         * m4/isnand.m4: Renamed from m4/isnan.m4.
81114         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81115         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81116         instead of isnan.c.
81117         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81118         instead of HAVE_ISNAN_IN_LIBC.
81119         (isnand): Renamed from isnan.
81120         * lib/isnand.c: New file.
81121         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81122         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81123         (Makefile.am): Update.
81124         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81125         Include isnand.h instead of isnan.h.
81126         (main): Test isnand instead of isnan.
81127         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81128         isnan-nolibm.
81129         * modules/frexp (Depends-on): Likewise.
81130         * modules/frexp-tests (Depends-on): Likewise.
81131         * modules/frexp-nolibm (Depends-on): Likewise.
81132         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81133         * modules/isfinite (Depends-on): Likewise.
81134         * modules/round-tests (Depends-on): Likewise.
81135         * modules/signbit (Depends-on): Likewise.
81136         * modules/signbit-tests (Depends-on): Likewise.
81137         * modules/snprintf-posix (Depends-on): Likewise.
81138         * modules/sprintf-posix (Depends-on): Likewise.
81139         * modules/trunc-tests (Depends-on): Likewise.
81140         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81141         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81142         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81143         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81144         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81145         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81146         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81147         * modules/vasnprintf-posix (Depends-on): Likewise.
81148         * modules/vasprintf-posix (Depends-on): Likewise.
81149         * modules/vfprintf-posix (Depends-on): Likewise.
81150         * modules/vsnprintf-posix (Depends-on): Likewise.
81151         * modules/vsprintf-posix (Depends-on): Likewise.
81152         * lib/frexp.c: Include isnand.h instead of isnan.h.
81153         (ISNAN): Set to isnand instead of isnan.
81154         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81155         (gl_isfinited): Use isnand instead of isnan.
81156         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81157         (gl_signbitd): Use isnand instead of isnan.
81158         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81159         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81160         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81161         (main): Use isnand instead of isnan.
81162         * tests/test-round1.c: Include isnand.h.
81163         (main): Use isnand instead of isnan.
81164         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81165         (ISNAN): Set to isnand instead of isnan.
81166         * tests/test-trunc1.c: Include isnand.h.
81167         (main): Use isnand instead of isnan.
81168         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81169         (equal): Use isnand instead of isnan.
81170         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81171         isnand-nolibm.
81172         * NEWS: Mention the change.
81174 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81175             Bruno Haible  <bruno@clisp.org>
81177         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81178         the GCC builtins for signbits are present and set
81179         REPLACE_SIGNBIT_USING_GCC if so.
81180         * lib/math.in.h (signbit): Define using GCC builtins if
81181         REPLACE_SIGNBIT_USING_GCC is set.
81182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81183         REPLACE_SIGNBIT_USING_GCC.
81184         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81186 2008-01-25  Jim Meyering  <meyering@redhat.com>
81188         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81189         * lib/poll.c: Include <config.h>, not "config.h".
81190         * tests/test-getaddrinfo.c: Likewise.
81192 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81194         * modules/sockets-tests: New file.
81196 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81198         * modules/sockets: New module, can be used to call WSA_Startup and
81199         WSA_Cleanup when needed.
81201         * lib/sockets.h, lib/sockets.c: New files.
81203         * m4/sockets.m4: New file.
81205         * tests/test-sockets.c: New file.
81207 2008-01-19  Bruno Haible  <bruno@clisp.org>
81209         * doc/posix-headers: Renamed from doc/headers.
81210         * doc/posix-functions: Renamed from doc/functions.
81211         * doc/gnulib.texi: Update.
81213 2008-01-19  Bruno Haible  <bruno@clisp.org>
81215         * doc/glibc-functions/strcasestr.texi: Include contents of
81216         doc/functions/strcasestr.texi, fixing the list of platforms.
81217         * doc/functions/strcasestr.texi: Remove file.
81219 2008-01-19  Bruno Haible  <bruno@clisp.org>
81221         * doc/glibc-functions/memmem.texi: Include contents of
81222         doc/functions/memmem.texi.
81223         * doc/functions/memmem.texi: Remove file.
81225 2008-01-18  Bruno Haible  <bruno@clisp.org>
81227         * doc/glibc-functions/*.texi: New files.
81228         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81229         to use the new files.
81231 2008-01-17  Bruno Haible  <bruno@clisp.org>
81233         * tests/test-gethostname.c (main): Fix printf statement.
81235 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81237         * modules/gethostname-tests: New file.
81239         * tests/test-gethostname.c: New file.
81241 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81243         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81244         used by the UNAME case.  Reported by Bruno Haible
81245         <bruno@clisp.org>.
81247 2008-01-17  Eric Blake  <ebb9@byu.net>
81249         Convert c-strcasestr to be more efficient.
81250         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81251         (Depends-on): Add c-strcase, remove malloca, strnlen.
81252         * tests/test-c-strcasestr.c (main): Enhance test.
81253         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81255 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81257         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81258         Use it in creating po/Makevars.
81260 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81262         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81263         Applications that requires it should initialize libgcrypt
81264         manually.
81266 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81268         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81270 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81272         Fix problem with getdate on mingw32 reported by Simon Josefsson
81273         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81274         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81275         tzname", when deciding whether to declare tzname.
81276         * lib/strftime.c (tzname): Likewise.
81278 2008-01-15  Bruno Haible  <bruno@clisp.org>
81280         Work around a MacOS X 10.5 bug in frexpl().
81281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81282         * doc/functions/frexpl.texi: Document the bug.
81283         Reported by Elias Pipping <pipping@gentoo.org>.
81285 2008-01-14  Eric Blake  <ebb9@byu.net>
81287         Touch up previous patch.
81288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81289         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81291         Convert strcasestr module to use Two-Way algorithm.
81292         * modules/strcasestr-simple: New module, based on the old
81293         strcasestr, but with Two-Way rather than KMP.
81294         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81295         * lib/string.in.h (rpl_strcasestr): Declare.
81296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81297         performance.
81298         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81299         * modules/string (Makefile.am): Support strcasestr.
81300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81301         * modules/strcasestr-tests (Depends-on): Check for alarm.
81302         * tests/test-strcasestr.c: Augment test.
81303         * lib/str-two-way.h: Clean up stray macro.
81304         * NEWS: Document new module.
81305         * MODULES.html.sh (string handling): Likewise.
81306         * doc/functions/strcasestr.texi: New file.
81307         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81308         here, since it is not a POSIX function.
81310 2008-01-14  Colin Watson  <cjwatson@debian.org>
81311             Bruno Haible  <bruno@clisp.org>
81313         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81314         works fine; if not, set REPLACE_STRSIGNAL.
81315         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81317         REPLACE_STRSIGNAL.
81318         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81319         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81320         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81322 2008-01-14  Bruno Haible  <bruno@clisp.org>
81324         * modules/strsignal (Include): Change to <string.h>.
81326 2008-01-14  Colin Watson  <cjwatson@debian.org>
81328         * modules/argp (Notice): Add a notice recommending to change
81329         XGETTEXT_OPTIONS.
81330         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81332 2008-01-13  Colin Watson  <cjwatson@debian.org>
81334         * modules/strsignal-tests: New file.
81335         * tests/test-strsignal.c: New file.
81337         * lib/strsignal.c: New file, from glibc with modifications.
81338         * lib/siglist.h: New file, from glibc with modifications.
81339         * lib/string.in.h (strsignal): New declaration.
81340         * m4/strsignal.m4: New file.
81341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81342         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81343         * modules/strsignal: New file.
81344         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81345         HAVE_DECL_STRSIGNAL.
81347 2008-01-13  Bruno Haible  <bruno@clisp.org>
81349         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81350         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81351         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81352         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81354 2008-01-13  Bruno Haible  <bruno@clisp.org>
81356         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81357         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81358         * lib/argp.h (__attribute__): Likewise.
81359         * lib/c-stack.c (__attribute__): Likewise.
81360         * lib/error.h (__attribute__): Likewise.
81361         * lib/fts.c (__attribute__): Likewise.
81362         * lib/openat.h (__attribute__): Likewise.
81363         * lib/stdio.in.h (__attribute__): Likewise.
81364         * lib/string.in.h (__attribute__): Likewise.
81365         * lib/utimens.c (__attribute__): Likewise.
81366         * lib/vasnprintf.h (__attribute__): Likewise.
81367         * lib/xalloc.h (__attribute__): Likewise.
81368         * lib/xprintf.h (__attribute__): Likewise.
81369         * lib/xstrtol.h (__attribute__): Likewise.
81370         * lib/xvasprintf.h (__attribute__): Likewise.
81372 2008-01-12  Bruno Haible  <bruno@clisp.org>
81374         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81375         * doc/glibc-headers/a.out.texi: New file.
81376         * doc/glibc-headers/aliases.texi: New file.
81377         * doc/glibc-headers/alloca.texi: New file.
81378         * doc/glibc-headers/ar.texi: New file.
81379         * doc/glibc-headers/argp.texi: New file.
81380         * doc/glibc-headers/argz.texi: New file.
81381         * doc/glibc-headers/byteswap.texi: New file.
81382         * doc/glibc-headers/crypt.texi: New file.
81383         * doc/glibc-headers/endian.texi: New file.
81384         * doc/glibc-headers/envz.texi: New file.
81385         * doc/glibc-headers/err.texi: New file.
81386         * doc/glibc-headers/error.texi: New file.
81387         * doc/glibc-headers/execinfo.texi: New file.
81388         * doc/glibc-headers/fpu_control.texi: New file.
81389         * doc/glibc-headers/fstab.texi: New file.
81390         * doc/glibc-headers/fts.texi: New file.
81391         * doc/glibc-headers/getopt.texi: New file.
81392         * doc/glibc-headers/ieee754.texi: New file.
81393         * doc/glibc-headers/ifaddrs.texi: New file.
81394         * doc/glibc-headers/libintl.texi: New file.
81395         * doc/glibc-headers/mcheck.texi: New file.
81396         * doc/glibc-headers/mntent.texi: New file.
81397         * doc/glibc-headers/obstack.texi: New file.
81398         * doc/glibc-headers/paths.texi: New file.
81399         * doc/glibc-headers/printf.texi: New file.
81400         * doc/glibc-headers/pty.texi: New file.
81401         * doc/glibc-headers/resolv.texi: New file.
81402         * doc/glibc-headers/shadow.texi: New file.
81403         * doc/glibc-headers/sysexits.texi: New file.
81404         * doc/glibc-headers/ttyent.texi: New file.
81406 2008-01-12  Jim Meyering  <meyering@redhat.com>
81408         announce-gen: emit Gnulib's git-based version string.
81409         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81410         New option --gnulib-version=V, where V is expected to be
81411         the output of running git describe in the gnulib directory.
81412         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81413         not useful, and plan to stop publishing an xdelta file with each
81414         coreutils release.
81416         * build-aux/announce-gen: Also check for lzma-compressed files.
81418 2008-01-11  Bruno Haible  <bruno@clisp.org>
81420         * tests/test-memmem.c (main): Increase maximum allowed time.
81421         * tests/test-strstr.c (main): Likewise.
81423 2008-01-11  Bruno Haible  <bruno@clisp.org>
81425         * doc/functions/memmem.texi: Add more precisions about platforms.
81426         * doc/functions/strstr.texi: Likewise.
81428 2008-01-10  Eric Blake  <ebb9@byu.net>
81430         * m4/strstr.m4: Delete cruft from copy-n-paste.
81431         Reported by Bruno Haible.
81433 2008-01-10  Bruno Haible  <bruno@clisp.org>
81435         Make c-strstr rely on strstr.
81436         * lib/c-strstr.c: Don't include str-kmp.h.
81437         (c_strstr): Define in terms of strstr.
81438         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81439         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81441 2008-01-10  Bruno Haible  <bruno@clisp.org>
81443         * doc/gnulib.texi (String Functions in C Locale): New section.
81444         * doc/c-ctype.texi: New file.
81445         * doc/c-strcase.texi: New file.
81446         * doc/c-strcaseeq.texi: New file.
81447         * doc/c-strcasestr.texi: New file.
81448         * doc/c-strstr.texi: New file.
81449         * doc/c-strtod.texi: New file.
81450         * doc/c-strtold.texi: New file.
81452 2008-01-10  Eric Blake  <ebb9@byu.net>
81454         * lib/relocatable.h: Fix a comment.
81456 2008-01-10  Eric Blake  <ebb9@byu.net>
81458         Share two-way algorithm.
81459         * lib/str-two-way.h: New file, merged from...
81460         * lib/memmem.c: ...here...
81461         * lib/strstr.c: ...and here.
81462         * modules/memmem (Files): Use it.
81463         * modules/strstr (Files): Likewise.
81465         Avoid quadratic strstr implementations.
81466         * lib/strstr.c: New file.
81467         * m4/strstr.m4: Likewise.
81468         * modules/strstr: Likewise.
81469         * modules/strstr-tests: Likewise.
81470         * tests/test-strstr.c: Likewise.
81471         * lib/string.in.h (rpl_strstr): Declare.
81472         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81474         * modules/string (Makefile.am): Likewise.
81475         * MODULES.html.sh (string handling): Mention new module.
81476         * doc/functions/strstr.texi (strstr): Document the bug.
81478 2008-01-10  Bruno Haible  <bruno@clisp.org>
81480         * lib/relocatable.h (relocate): State whether result is freshly
81481         allocated or not.
81482         * lib/relocatable.c (relocate): Return a freshly allocated string
81483         instead of a pointer to a privately held string.
81484         Reported by Sylvain Beucler <beuc@gnu.org>.
81486 2008-01-10  Colin Watson  <cjwatson@debian.org>
81488         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81489         s/S_ISNLK/S_ISLNK/.
81491 2008-01-09  Bruno Haible  <bruno@clisp.org>
81493         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81494         and other files.
81495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81496         if it's only a guess.
81497         * modules/memmem: Simplify by depending on memmem-simple.
81499 2008-01-09  Bruno Haible  <bruno@clisp.org>
81501         Work around OpenBSD 4.0 tdelete() bug.
81502         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81503         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81504         macros and don't redefine the enum values.
81505         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81506         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81507         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81509 2008-01-09  Bruno Haible  <bruno@clisp.org>
81511         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81512         (main): Don't perform the tests if setlocale did not install a UTF-8
81513         locale. Needed on OpenBSD 4.0.
81514         * modules/wcwidth-tests (Depends-on): Add localcharset.
81516 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81518         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81519         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81520         * NEWS: announce this.
81521         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81523 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81524         and Eric Blake  <ebb9@byu.net>
81526         Add memmem-simple module.
81527         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81528         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81529         * modules/memmem-simple: New file.
81530         * modules/memmem (Description): Tweak.
81531         * MODULES.html.sh (string handling): Mention new module.
81532         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81533         addressed by memmem-simple.
81534         * NEWS: Document the difference.
81536 2008-01-09  Eric Blake  <ebb9@byu.net>
81538         Give gcc some memmem optimization hints.
81539         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81540         (strcasestr): Declare as pure.
81541         * modules/memmem (Maintainer): Claim my implementation.
81543 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81545         Support AIX 6.1 and higher.
81546         * build-aux/config.libpath: Likewise.
81547         * build-aux/config.rpath: Likewise.
81549 2008-01-08  Jim Meyering  <meyering@redhat.com>
81550             Bruno Haible  <bruno@clisp.org>
81552         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81553         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81554         Reported by Peter Fales in
81555         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81557 2008-01-08  Bruno Haible  <bruno@clisp.org>
81559         * modules/unictype/category-of (Depends-on): Add
81560         unictype/category-none.
81561         * modules/unictype/category-and-tests (Depends-on): Add
81562         unictype/category-{L,N,Lu,Nd}.
81563         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81564         * modules/unictype/category-or-tests (Depends-on): Add
81565         unictype/category-{L,N}.
81566         * modules/unictype/category-name-tests (Depends-on): Add
81567         unictype/category-{Z,Nl}.
81568         Reported by Simon Josefsson.
81570 2008-01-08  Bruno Haible  <bruno@clisp.org>
81572         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81573         convention better.
81574         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81575         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81576         Reported by Peter Miller <millerp@canb.auug.org.au>.
81578 2008-01-08  Eric Blake  <ebb9@byu.net>
81580         Rewrite memmem to guarantee linear complexity without malloc.
81581         * lib/memmem.c (memmem): Use Two-Way rather than
81582         Knuth-Morris-Pratt, to allow O(1) space usage.
81583         (critical_factorization, two_way_short_needle)
81584         (two_way_long_needle): New functions.
81585         (knuth_morris_pratt): Delete.
81586         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81587         Add stdint.
81588         * tests/test-memmem.c (main): Add tests for periodic needle and
81589         sublinear performance.
81590         * doc/functions/memmem.texi (memmem): Document other deficiencies
81591         in cygwin and older glibc.
81593 2008-01-08  Bruno Haible  <bruno@clisp.org>
81595         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81596         augmentation.
81598 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81600         Add a configure time option: --disable-acl.
81601         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81602         AC_ARG_ENABLE(acl).
81604 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81606         * tests/test-localename.c: Don't include obsolete "setenv.h".
81608         * modules/localename-tests (Depends-on): Need unsetenv.
81610 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81612         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81614 2008-01-06  Colin Watson  <cjwatson@debian.org>
81616         * users.txt: Add man-db.
81618 2008-01-07  Bruno Haible  <bruno@clisp.org>
81620         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81621         previous section name.
81623 2008-01-07  Bruno Haible  <bruno@clisp.org>
81625         * lib/progname.c (set_program_name): Don't strip off a leading
81626         "lt-" prefix outside a .libs directory.
81627         Suggested by Paul Eggert.
81629 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81630             Bruno Haible  <bruno@clisp.org>
81632         Improve memory cleanup in 'relocatable' module.
81633         * lib/relocatable.h (compute_curr_prefix): Change return type to
81634         'char *'.
81635         * lib/relocatable.c (compute_curr_prefix): Change return type to
81636         'char *'. Free curr_installdir after use.
81637         (relocate): Free curr_prefix_better after use.
81638         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81640 2008-01-01  Bruno Haible  <bruno@clisp.org>
81642         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81643         failure on older glibc systems.
81644         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81646 2008-01-05  Eric Blake  <ebb9@byu.net>
81648         Avoid quadratic system memmem.
81649         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81650         Reported by Ralf Wildenhues.
81652         Fix memmem test for mingw.
81653         * modules/memmem-tests (configure.ac): Check for alarm.
81654         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81655         it.
81656         * doc/functions/memmem.texi: New file.
81657         * doc/gnulib.texi (Function Substitutes): Add memmem.
81658         Reported by Bruno Haible.
81660 2008-01-04  Bruno Haible  <bruno@clisp.org>
81662         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81663         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81664         gl_HEADER_STRING_H_DEFAULTS.
81666 2008-01-04  Eric Blake  <ebb9@byu.net>
81668         Shorten duration of memmem test.
81669         * tests/test-memmem.c (main): Use alarm to declare failure if test
81670         is taking too long.
81671         Reported by Ralf Wildenhues.
81673 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81675         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81676         string, needed by strerror.
81678 2008-01-03  Colin Watson  <cjwatson@debian.org>
81679             Bruno Haible  <bruno@clisp.org>
81681         * doc/gnulib-tool.texi (Localization): New section.
81683 2008-01-02  Bruno Haible  <bruno@clisp.org>
81685         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81686         variables to 'unsigned char *' type.
81687         Reported by Paul Eggert.
81689 2008-01-02  Jim Meyering  <jim@meyering.net>
81691         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81693 2007-12-31  Jim Meyering  <jim@meyering.net>
81695         Avoid use of private FTS type name.
81696         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81698 2007-12-30  Karl Berry  <karl@gnu.org>
81700         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81701         work around defect in Texinfo and/or the standalone Info browser.
81703 2007-12-30  Bruno Haible  <bruno@clisp.org>
81705         Unify 5 copies of the KMP code.
81706         * lib/str-kmp.h: New file.
81707         * lib/c-strcasestr.c: Include str-kmp.h.
81708         (knuth_morris_pratt): Remove function.
81709         (c_strcasestr): Update.
81710         * lib/c-strstr.c: Include str-kmp.h.
81711         (knuth_morris_pratt): Remove function.
81712         (c_strcasestr): Update.
81713         * lib/mbscasestr.c: Include str-kmp.h.
81714         (knuth_morris_pratt_unibyte): Remove function.
81715         * lib/mbsstr.c: Include str-kmp.h.
81716         (knuth_morris_pratt_unibyte): Remove function.
81717         * lib/strcasestr.c: Include str-kmp.h.
81718         (knuth_morris_pratt): Remove function.
81719         (strcasestr): Update.
81720         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81721         * modules/c-strstr (Files): Likewise.
81722         * modules/mbscasestr (Files): Likewise.
81723         * modules/mbsstr (Files): Likewise.
81724         * modules/strcasestr (Files): Likewise.
81725         Suggested by Paul Eggert.
81727 2007-12-30  Bruno Haible  <bruno@clisp.org>
81729         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81730         defined.
81732 2007-12-30  Bruno Haible  <bruno@clisp.org>
81734         * lib/xmalloca.h: Include xalloc.h.
81735         (xnmalloca): New macro.
81737 2007-12-30  Bruno Haible  <bruno@clisp.org>
81739         * lib/malloca.h (nmalloca): New macro.
81740         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81741         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81742         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81743         knuth_morris_pratt_multibyte): Likewise.
81744         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81745         knuth_morris_pratt_multibyte): Likewise.
81746         * lib/memmem.c (knuth_morris_pratt): Likewise.
81747         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81749 2007-12-25  Bruno Haible  <bruno@clisp.org>
81751         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81752         * lib/glob.c: Don't include openat.h.
81753         (link_exists2_p): Add back the code that deals with the
81754         !GLOB_ALTDIRFUNC case.
81755         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81756         let it do the filename concatenation.
81757         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81758         * modules/glob (Depends-on): Remove openat.
81760 2007-12-31  Bruno Haible  <bruno@clisp.org>
81762         * modules/dirfd (License): Change to LGPLv2+.
81763         Approved by Jim Meyering.
81765 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81767         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81768         when multiplying M by sizeof (size_t).
81770 2007-12-10  Martin Lambers  <marlam@marlam.de>
81772         Override getpagesize on mingw.
81773         * lib/getpagesize.c: New file.
81774         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81775         * modules/getpagesize (Files): Add lib/getpagesize.c.
81776         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81778         REPLACE_GETPAGESIZE.
81779         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81781 2007-12-25  Bruno Haible  <bruno@clisp.org>
81783         * modules/localcharset (Notice): New field.
81784         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81785         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81787 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81788             Bruno Haible  <bruno@clisp.org>
81790         Avoid using the syntax symbol() in formatted documentation.
81791         * MODULES.html.sh (func_module): When replacing symbol() with a
81792         hyperlink, remove the parentheses. Show an error if some remain.
81793         Recognize and render the '...' syntax.
81794         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81795         Rework. Add paragraph about GCC's inlining.
81796         * doc/alloca.texi: Likewise.
81797         * doc/error.texi: Remove parentheses from symbol reference.
81798         * doc/gnulib-intro.texi: Likewise.
81799         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81800         * modules/fnmatch (Description): Reword to say "the ... function".
81801         * modules/full-read (Description): Likewise.
81802         * modules/full-write (Description): Likewise.
81803         * modules/safe-read (Description): Likewise.
81804         * modules/safe-write (Description): Likewise.
81805         * modules/strchrnul (Description): Likewise.
81806         * modules/trim (Description): Likewise.
81807         * modules/error (Description): Remove parentheses from symbol
81808         references.
81809         * modules/verror (Description): Likewise.
81810         Reported by Karl Berry.
81812 2007-12-25  Bruno Haible  <bruno@clisp.org>
81814         Fixup after 2007-10-16 commit.
81815         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81817 2007-12-24  Bruno Haible  <bruno@clisp.org>
81819         Make --enable-relocatable work with DESTDIR.
81820         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81821         to compute installdir from destprog.
81822         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81823         also set the RELOC_DESTDIR variable.
81824         Reported by Левашев Иван <octagram@bluebottle.com>.
81826 2007-12-24  Bruno Haible  <bruno@clisp.org>
81828         Fix link error due to xalloc_die().
81829         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81830         of xreadlink.
81831         * lib/relocwrapper.c: Update comments.
81832         * build-aux/install-reloc: Remove xreadlink.c from file list.
81833         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81834         xreadlink.c.
81835         Reported by Левашев Иван <octagram@bluebottle.com>.
81837 2007-12-24  Bruno Haible  <bruno@clisp.org>
81839         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81840         * lib/setenv.h: Remove file.
81841         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81842         lib/setenv.h.
81843         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81844         (Depends-on): Add stdlib.
81845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81846         gl_FUNC_UNSETENV.
81847         (Include): Replace setenv.h with <stdlib.h>.
81848         * modules/unsetenv: New file.
81849         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81850         * lib/unsetenv.c: Include <stdlib.h> first.
81851         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81852         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81853         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81854         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81855         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81856         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81858         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81859         * doc/functions/unsetenv.texi: Update.
81860         * modules/xsetenv (Depends-on): Add unsetenv.
81861         * modules/getdate (Depends-on): Likewise.
81862         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81863         * lib/xsetenv.c: Don't include setenv.h.
81864         * lib/getdate.y: Likewise.
81865         * lib/relocwrapper.c: Likewise.
81866         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81867         (Depends-on): Add stdlib.
81868         * NEWS: Mention the changes.
81869         Reported by Левашев Иван <octagram@bluebottle.com>.
81871 2007-12-23  Bruno Haible  <bruno@clisp.org>
81873         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81874         indentation.
81876 2007-12-23  Bruno Haible  <bruno@clisp.org>
81878         * lib/c-strcasestr.c: Add more comments.
81879         * lib/c-strstr.c: Likewise.
81880         * lib/mbscasestr.c: Likewise.
81881         * lib/mbsstr.c: Likewise.
81882         * lib/strcasestr.c: Likewise.
81883         * lib/memmem.c: Likewise.
81885 2007-12-23  Bruno Haible  <bruno@clisp.org>
81887         * tests/test-memmem.c: Include <string.h> first.
81889 2007-12-22  Bruno Haible  <bruno@clisp.org>
81891         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81892         the contents of $testsbase.
81893         Reported by Ralf Wildenhues.
81895 2007-12-22  Bruno Haible  <bruno@clisp.org>
81897         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
81898         two variables local_ldadd_before, local_ldadd_last.
81900 2007-12-20  Eric Blake  <ebb9@byu.net>
81902         Work around circular library issue when cross-compiling.
81903         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
81904         that progname.o does not need to pull in rpl_memcmp.
81906 2007-12-19  Eric Blake  <ebb9@byu.net>
81908         Fix memmem to avoid O(n^2) worst-case complexity.
81909         * lib/memmem.c (knuth_morris_pratt): New function.
81910         (memmem): Use it if first few naive iterations fail.
81911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
81912         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
81913         * modules/memchr (License): Likewise.
81914         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
81915         malloca.
81916         * tests/test-memmem.c: Rewrite, borrowing ideas from
81917         test-mbsstr1.c; the old version wouldn't even compile!
81918         * modules/memmem-tests: New file.
81919         * lib/string.in.h (rpl_memmem): Add declaration.
81920         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
81921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
81922         REPLACE_MEMMEM.
81924 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
81926         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
81927         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
81928         before any system include files, and undef after them all.  This
81929         should fix a problem on VMS reported by John E. Malmberg in
81930         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
81932 2007-12-17  Eric Blake  <ebb9@byu.net>
81934         Revert addition of verify, for BSD/OS.
81935         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
81936         can't handle large files, for the sake of obsolete platforms.
81937         * modules/fseeko (Depends-on): Remove verify.
81938         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
81939         * doc/functions/ftello.texi (ftello): Likewise.
81940         * doc/functions/fgetpos.texi (fgetpos): Likewise.
81941         Reported by Larry Jones.
81943 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
81945         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
81946         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
81948 2007-12-17  Jim Meyering  <meyering@redhat.com>
81950         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
81951         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
81952         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
81953         * modules/getcwd (Depends-on): Add openat.
81954         Reported by Petr Salinger.
81956 2007-12-17  Bruno Haible  <bruno@clisp.org>
81958         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
81959         avoid a segmentation fault of the configure test on x86_64 systems.
81961 2007-12-15  Jim Meyering  <meyering@redhat.com>
81963         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
81965 2007-12-13  Eric Blake  <ebb9@byu.net>
81967         Another fseek test.
81968         * tests/test-fseek.c (main): Also test ungetc handling.
81969         * tests/test-fseeko.c (main): Likewise.
81970         * modules/fseeko (Depends-on): Add verify.
81971         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
81972         large.
81973         Reported by Larry Jones.
81975         Fix fseeko on mingw.
81976         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
81977         seek.
81979         Beef up fseek tests.
81980         * tests/test-fseek.c (main): Also test eof handling.
81981         * tests/test-fseeko.c (main): Likewise.
81982         Reported by Larry Jones.
81984 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
81986         Fix fseeko on BSD-based platforms.
81987         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
81988         successful seek.
81990 2007-12-12  Eric Blake  <ebb9@byu.net>
81992         Allow circular dependency of separate libtests.a
81993         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
81994         when use_libtests.
81996 2007-12-11  Eric Blake  <ebb9@byu.net>
81998         Fix bug with -0.0L in previous patch.
81999         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82000         * tests/test-isnan.c (main): Also test on zeroes.
82001         * tests/test-isnanf.c (main): Likewise.
82002         * tests/test-isnanl.h (main): Likewise.
82004         Detect pseudo-denormals on x86 even when cross-compiling.
82005         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82006         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82007         invalid bit patterns that happen to satisfy ==.
82009         Avoid link failures with separate libtests.a.
82010         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82011         last, to satisfy circular dependencies.
82013 2007-12-11  Eric Blake  <ebb9@byu.net>
82014         and Bruno Haible  <bruno@clisp.org>
82016         Fix OpenBSD 4.0 <float.h> handling of long double.
82017         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82018         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82019         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82021 2007-12-11  Jim Meyering  <meyering@redhat.com>
82023         * users.txt: Add libvirt.
82025         Support versions of autoconf prior to 2.59c.
82026         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82027         if it is not already defined.
82029 2007-12-09  Bruno Haible  <bruno@clisp.org>
82031         Let 'gnulib-tool --import' collect sources needed for the tests in
82032         tests/ rather than in lib/.
82033         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82034         argument. If true, add rules to generate libtests.a, and put libtests.a
82035         into $(LDADD). Consider source files in subdirectories and set
82036         uses_subdirs.
82037         (func_emit_initmacro_start, func_emit_initmacro_end,
82038         func_emit_initmacro_done): Pass all arguments explicitly.
82039         (func_import): Determine two module lists main_modules,
82040         testsrelated_modules. Determine use_libtests. Determine two variables
82041         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82042         instead of just sed_transform_lib_file. Determine two variables
82043         main_files and testsrelated_files. Compute 'files' as the union of
82044         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82045         func_add_or_update. In the generated gnulib-comp.m4, collect the
82046         object files for tests/ in different variables than those for lib/.
82047         Substitute LIBTESTS_LIBDEPS.
82048         (func_create_testdir): Combine the uses_subdirs results from
82049         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82051 2007-12-09  Bruno Haible  <bruno@clisp.org>
82053         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82054         the build-aux directory.
82056 2007-12-09  Bruno Haible  <bruno@clisp.org>
82058         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82059         introduced on 2006-09-09.
82061 2007-12-07  Jim Meyering  <meyering@redhat.com>
82063         Let these macros work also with autoconf-2.59.
82064         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82065         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82066         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82068 2007-12-06  Jim Meyering  <meyering@redhat.com>
82070         Avoid a configure-time syntax error in gl_FUNC_ACL.
82071         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82072         function in each branch, before testing the cache variable.
82074 2007-12-04  Eric Blake  <ebb9@byu.net>
82076         Make scripts executable.
82077         * build-aux/config.guess: Add execute permissions.
82078         * build-aux/config.sub: Likewise.
82079         * build-aux/gendocs.sh: Likewise.
82081         Fix frexp on mingw.
82082         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82083         cross-compiling.
82084         * doc/functions/frexp.texi (frexp): Document the bug.
82086         Make cygwin fseeko check more reliable.
82087         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82088         version numbers, rather than unrelated feature check.
82089         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82090         * doc/functions/ftello.texi (ftello): Likewise.
82091         Reported by Bruno Haible.
82093         * m4/strerror.m4: Bump version number.
82095 2007-12-03  Bruno Haible  <bruno@clisp.org>
82097         * doc/functions/mprotect.texi: Mention the mingw problem.
82099 2007-12-03  Eric Blake  <ebb9@byu.net>
82101         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82102         REPLACE_STRERROR is initialized before this macro.
82104 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82106         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82107         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82108         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82109         put -lsec in even for programs other than 'ls'.  This fixes a problem
82110         for gettext reported by Bruno Haible in
82111         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82112         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82113         Add support for Solaris 10.  This isn't efficient, but should get the
82114         job done for now.
82116 2007-12-03  James Youngman  <jay@gnu.org>
82118         * doc/regexprops-generic.texi: change "an close-group" to "a
82119         close-group" and "illegal" to "not allowed".
82121 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82123         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82124         pr_byname.h. Needed for the rare case when the maintainer has done
82125         "make maintainer-clean" in the source directory and then attempts a
82126         build outside the source directory.
82127         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82128         scripts_byname.h.
82130 2007-12-02  Martin Lambers  <marlam@marlam.de>
82131             Bruno Haible  <bruno@clisp.org>
82133         * lib/getpagesize.h: Remove file.
82134         * lib/unistd.in.h: Include declaration of getpagesize here.
82135         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82136         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82137         HAVE_SYS_PARAM_H.
82138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82139         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82140         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82141         (Depends-on): Add unistd.
82142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82143         (Include): Use <unistd.h> instead of getpagesize.h.
82144         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82145         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82146         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82147         gl_GETPAGESIZE invocation, already handled by module dependency.
82148         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82150 2007-12-02  Bruno Haible  <bruno@clisp.org>
82152         * modules/strings-tests: New file.
82153         * tests/test-strings.c: New file.
82155         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82156         * lib/strings.in.h: New file.
82157         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82158         * m4/strings_h.m4: New file.
82159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82160         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82161         * modules/strings: New file.
82162         * modules/string (Makefile.am): Update.
82163         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82164         Reported by Karl Berry.
82166 2007-12-01  Eric Blake  <ebb9@byu.net>
82168         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82169         accommodate fix in cygwin 1.5.25.
82171 2007-12-01  Jim Meyering  <meyering@redhat.com>
82173         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82174         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82175         that would inhibit utf8-optimization of a regexp containing line-
82176         or buffer-anchors, e.g., `^', `$'.
82178 2007-11-30  Bruno Haible  <bruno@clisp.org>
82180         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82181         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82182         glthread_recursive_lock_init.
82183         * lib/lock.c (glthread_recursive_lock_init)
82184         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82185         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82187 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82189         New function qset_acl, like set_acl but with syscall semantics.
82190         * lib/acl.h (qset_acl): New decl.
82191         * lib/acl.c (qset_acl): New function.
82192         (set_acl): Use new function.  Use more-consistent diagnostics.
82194 2007-11-28  Jim Meyering  <meyering@redhat.com>
82196         * modules/physmem (License): Change from GPL to LGPLv2+.
82198 2007-11-26  Bruno Haible  <bruno@clisp.org>
82200         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82201         'long double' type has excess precision.
82202         Reported by Jim Meyering in
82203         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82205 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82207         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82208         Sync from <http://gnu.org/licenses>.
82209         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82210         with license text from same location.
82211         * doc/maintain.texi, doc/standards.texi:  Sync from
82212         <http://savannah.gnu.org/projects/gnustandards>.
82214 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82215         and Jim Meyering  <meyering@redhat.com>
82217         Adjust getdate' grammar to accept a slightly more regular language.
82218         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82219         Before, the former was rejected.
82220         * lib/getdate.y (digits_to_date_time): New function, factored
82221         out of ...
82222         (number): ...here.  Just call digits_to_date_time.
82223         (hybrid): New non-terminal to handle an <unsigned number,
82224         signed relative offset> sequence consistently.
82226 2007-11-18  Jim Meyering  <meyering@redhat.com>
82228         Pull my changes from coreutils:
82229         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82230         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82231         use of $gnulib_tool_option_extras, so that it's separated from the
82232         preceding argument.
82234         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82235         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82236         parent destination directories before copying a file into place.
82238 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82240         bootstrap: work also with 4-argument variant of AC_INIT
82241         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82243 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82245         Port test-getaddrinfo to Solaris.
82246         Problem reported by Bruno Haible in
82247         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82248         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82249         explanation of setting 'hints'.
82250         Don't reject an implementation merely because it returns EAI_SERVICE.
82251         (EAI_SERVICE): Define to 0 if not defined.
82253 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82255         The license of gnu-make and posix-shell is now "GPLed build tool".
82256         * modules/gnu-make (License): Likewise.
82257         * modules/posix-shell (License): Likewise.
82259         New module posix-shell, for determining a POSIX shell
82260         or perhaps something that is close enough to a POSIX shell.
82261         * m4/posix-shell.m4: New file.
82262         * modules/posix-shell: New file.
82264         * MODULES.html.sh: Mention new module.
82266         New module gnu-make, for determining whether we're using GNU Make.
82267         * m4/gnu-make.m4: New file.
82268         * modules/gnu-make: New file.
82269         * MODULES.html.sh: Mention new module.
82271 2007-11-14  Jim Meyering  <meyering@redhat.com>
82273         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82274         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82275         use this macro to create a function _definition_.
82276         Remove useless "#undef ARGMATCH_DIE".
82278 2007-11-14  Bruno Haible  <bruno@clisp.org>
82280         * lib/config.charset: Update for OpenBSD 4.1.
82281         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82283 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82285         Document 64-bit #if problems in stdint.texi.
82286         * doc/headers/stdint.texi (stdint.h): Mention problems with
82287         64-bit-#if, and how to work around them.
82289         Don't insist on 'long long int' support in the preprocessor.  It
82290         breaks too many things.  For example, PRIdMAX still uses a 'long
82291         long int' format with the latest Sun compiler, even though
82292         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82293         preprocessor problem.  This causes the latest coreutils to dump
82294         core on Solaris 10 sparc with the Sun C compiler.
82295         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82296         the troublesome expressions at configure-time, not at #if-time.
82297         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82298         preprocessor.
82299         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82300         compile-time C checks, done at 'configure'-time.
82301         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82302         * modules/inttypes (Makefile): Substitute the new symbols that
82303         gl_INTTYPES_H now generates.
82304         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82306 2007-11-12  Bruno Haible  <bruno@clisp.org>
82308         Tests for Unicode character classification functions.
82310         * modules/unictype/bidicategory-byname-tests: New file.
82311         * modules/unictype/bidicategory-name-tests: New file.
82312         * modules/unictype/bidicategory-of-tests: New file.
82313         * modules/unictype/bidicategory-test-tests: New file.
82314         * modules/unictype/block-list-tests: New file.
82315         * modules/unictype/block-of-tests: New file.
82316         * modules/unictype/block-test-tests: New file.
82317         * modules/unictype/category-C-tests: New file.
82318         * modules/unictype/category-Cc-tests: New file.
82319         * modules/unictype/category-Cf-tests: New file.
82320         * modules/unictype/category-Cn-tests: New file.
82321         * modules/unictype/category-Co-tests: New file.
82322         * modules/unictype/category-Cs-tests: New file.
82323         * modules/unictype/category-L-tests: New file.
82324         * modules/unictype/category-Ll-tests: New file.
82325         * modules/unictype/category-Lm-tests: New file.
82326         * modules/unictype/category-Lo-tests: New file.
82327         * modules/unictype/category-Lt-tests: New file.
82328         * modules/unictype/category-Lu-tests: New file.
82329         * modules/unictype/category-M-tests: New file.
82330         * modules/unictype/category-Mc-tests: New file.
82331         * modules/unictype/category-Me-tests: New file.
82332         * modules/unictype/category-Mn-tests: New file.
82333         * modules/unictype/category-N-tests: New file.
82334         * modules/unictype/category-Nd-tests: New file.
82335         * modules/unictype/category-Nl-tests: New file.
82336         * modules/unictype/category-No-tests: New file.
82337         * modules/unictype/category-P-tests: New file.
82338         * modules/unictype/category-Pc-tests: New file.
82339         * modules/unictype/category-Pd-tests: New file.
82340         * modules/unictype/category-Pe-tests: New file.
82341         * modules/unictype/category-Pf-tests: New file.
82342         * modules/unictype/category-Pi-tests: New file.
82343         * modules/unictype/category-Po-tests: New file.
82344         * modules/unictype/category-Ps-tests: New file.
82345         * modules/unictype/category-S-tests: New file.
82346         * modules/unictype/category-Sc-tests: New file.
82347         * modules/unictype/category-Sk-tests: New file.
82348         * modules/unictype/category-Sm-tests: New file.
82349         * modules/unictype/category-So-tests: New file.
82350         * modules/unictype/category-Z-tests: New file.
82351         * modules/unictype/category-Zl-tests: New file.
82352         * modules/unictype/category-Zp-tests: New file.
82353         * modules/unictype/category-Zs-tests: New file.
82354         * modules/unictype/category-and-not-tests: New file.
82355         * modules/unictype/category-and-tests: New file.
82356         * modules/unictype/category-byname-tests: New file.
82357         * modules/unictype/category-name-tests: New file.
82358         * modules/unictype/category-none-tests: New file.
82359         * modules/unictype/category-of-tests: New file.
82360         * modules/unictype/category-or-tests: New file.
82361         * modules/unictype/category-test-withtable-tests: New file.
82362         * modules/unictype/combining-class-tests: New file.
82363         * modules/unictype/ctype-alnum-tests: New file.
82364         * modules/unictype/ctype-alpha-tests: New file.
82365         * modules/unictype/ctype-blank-tests: New file.
82366         * modules/unictype/ctype-cntrl-tests: New file.
82367         * modules/unictype/ctype-digit-tests: New file.
82368         * modules/unictype/ctype-graph-tests: New file.
82369         * modules/unictype/ctype-lower-tests: New file.
82370         * modules/unictype/ctype-print-tests: New file.
82371         * modules/unictype/ctype-punct-tests: New file.
82372         * modules/unictype/ctype-space-tests: New file.
82373         * modules/unictype/ctype-upper-tests: New file.
82374         * modules/unictype/ctype-xdigit-tests: New file.
82375         * modules/unictype/decimal-digit-tests: New file.
82376         * modules/unictype/digit-tests: New file.
82377         * modules/unictype/mirror-tests: New file.
82378         * modules/unictype/numeric-tests: New file.
82379         * modules/unictype/property-alphabetic-tests: New file.
82380         * modules/unictype/property-ascii-hex-digit-tests: New file.
82381         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82382         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82383         * modules/unictype/property-bidi-block-separator-tests: New file.
82384         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82385         * modules/unictype/property-bidi-common-separator-tests: New file.
82386         * modules/unictype/property-bidi-control-tests: New file.
82387         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82388         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82389         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82390         * modules/unictype/property-bidi-european-digit-tests: New file.
82391         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82392         * modules/unictype/property-bidi-left-to-right-tests: New file.
82393         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82394         * modules/unictype/property-bidi-other-neutral-tests: New file.
82395         * modules/unictype/property-bidi-pdf-tests: New file.
82396         * modules/unictype/property-bidi-segment-separator-tests: New file.
82397         * modules/unictype/property-bidi-whitespace-tests: New file.
82398         * modules/unictype/property-byname-tests: New file.
82399         * modules/unictype/property-combining-tests: New file.
82400         * modules/unictype/property-composite-tests: New file.
82401         * modules/unictype/property-currency-symbol-tests: New file.
82402         * modules/unictype/property-dash-tests: New file.
82403         * modules/unictype/property-decimal-digit-tests: New file.
82404         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82405         * modules/unictype/property-deprecated-tests: New file.
82406         * modules/unictype/property-diacritic-tests: New file.
82407         * modules/unictype/property-extender-tests: New file.
82408         * modules/unictype/property-format-control-tests: New file.
82409         * modules/unictype/property-grapheme-base-tests: New file.
82410         * modules/unictype/property-grapheme-extend-tests: New file.
82411         * modules/unictype/property-grapheme-link-tests: New file.
82412         * modules/unictype/property-hex-digit-tests: New file.
82413         * modules/unictype/property-hyphen-tests: New file.
82414         * modules/unictype/property-id-continue-tests: New file.
82415         * modules/unictype/property-id-start-tests: New file.
82416         * modules/unictype/property-ideographic-tests: New file.
82417         * modules/unictype/property-ids-binary-operator-tests: New file.
82418         * modules/unictype/property-ids-trinary-operator-tests: New file.
82419         * modules/unictype/property-ignorable-control-tests: New file.
82420         * modules/unictype/property-iso-control-tests: New file.
82421         * modules/unictype/property-join-control-tests: New file.
82422         * modules/unictype/property-left-of-pair-tests: New file.
82423         * modules/unictype/property-line-separator-tests: New file.
82424         * modules/unictype/property-logical-order-exception-tests: New file.
82425         * modules/unictype/property-lowercase-tests: New file.
82426         * modules/unictype/property-math-tests: New file.
82427         * modules/unictype/property-non-break-tests: New file.
82428         * modules/unictype/property-not-a-character-tests: New file.
82429         * modules/unictype/property-numeric-tests: New file.
82430         * modules/unictype/property-other-alphabetic-tests: New file.
82431         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82432         * modules/unictype/property-other-grapheme-extend-tests: New file.
82433         * modules/unictype/property-other-id-continue-tests: New file.
82434         * modules/unictype/property-other-id-start-tests: New file.
82435         * modules/unictype/property-other-lowercase-tests: New file.
82436         * modules/unictype/property-other-math-tests: New file.
82437         * modules/unictype/property-other-uppercase-tests: New file.
82438         * modules/unictype/property-paired-punctuation-tests: New file.
82439         * modules/unictype/property-paragraph-separator-tests: New file.
82440         * modules/unictype/property-pattern-syntax-tests: New file.
82441         * modules/unictype/property-pattern-white-space-tests: New file.
82442         * modules/unictype/property-private-use-tests: New file.
82443         * modules/unictype/property-punctuation-tests: New file.
82444         * modules/unictype/property-quotation-mark-tests: New file.
82445         * modules/unictype/property-radical-tests: New file.
82446         * modules/unictype/property-sentence-terminal-tests: New file.
82447         * modules/unictype/property-soft-dotted-tests: New file.
82448         * modules/unictype/property-space-tests: New file.
82449         * modules/unictype/property-terminal-punctuation-tests: New file.
82450         * modules/unictype/property-test-tests: New file.
82451         * modules/unictype/property-titlecase-tests: New file.
82452         * modules/unictype/property-unassigned-code-value-tests: New file.
82453         * modules/unictype/property-unified-ideograph-tests: New file.
82454         * modules/unictype/property-uppercase-tests: New file.
82455         * modules/unictype/property-variation-selector-tests: New file.
82456         * modules/unictype/property-white-space-tests: New file.
82457         * modules/unictype/property-xid-continue-tests: New file.
82458         * modules/unictype/property-xid-start-tests: New file.
82459         * modules/unictype/property-zero-width-tests: New file.
82460         * modules/unictype/scripts-tests: New file.
82461         * modules/unictype/syntax-c-ident-tests: New file.
82462         * modules/unictype/syntax-c-whitespace-tests: New file.
82463         * modules/unictype/syntax-java-ident-tests: New file.
82464         * modules/unictype/syntax-java-whitespace-tests: New file.
82465         * tests/unictype/test-bidi_byname.c: New file.
82466         * tests/unictype/test-bidi_name.c: New file.
82467         * tests/unictype/test-bidi_of.c: New file.
82468         * tests/unictype/test-bidi_test.c: New file.
82469         * tests/unictype/test-block_list.c: New file.
82470         * tests/unictype/test-block_of.c: New file.
82471         * tests/unictype/test-block_test.c: New file.
82472         * tests/unictype/test-categ_and.c: New file.
82473         * tests/unictype/test-categ_and_not.c: New file.
82474         * tests/unictype/test-categ_byname.c: New file.
82475         * tests/unictype/test-categ_name.c: New file.
82476         * tests/unictype/test-categ_none.c: New file.
82477         * tests/unictype/test-categ_of.c: New file.
82478         * tests/unictype/test-categ_or.c: New file.
82479         * tests/unictype/test-categ_test_withtable.c: New file.
82480         * tests/unictype/test-combining.c: New file.
82481         * tests/unictype/test-decdigit.c: New file.
82482         * tests/unictype/test-digit.c: New file.
82483         * tests/unictype/test-mirror.c: New file.
82484         * tests/unictype/test-numeric.c: New file.
82485         * tests/unictype/test-pr_byname.c: New file.
82486         * tests/unictype/test-pr_test.c: New file.
82487         * tests/unictype/test-predicate-part1.h: New file.
82488         * tests/unictype/test-predicate-part2.h: New file.
82489         * tests/unictype/test-scripts.c: New file.
82490         * tests/unictype/test-sy_c_ident.c: New file.
82491         * tests/unictype/test-sy_java_ident.c: New file.
82493         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82494         for Unicode 5.0.0.
82495         * tests/unictype/test-categ_Cc.c: Likewise.
82496         * tests/unictype/test-categ_Cf.c: Likewise.
82497         * tests/unictype/test-categ_Cn.c: Likewise.
82498         * tests/unictype/test-categ_Co.c: Likewise.
82499         * tests/unictype/test-categ_Cs.c: Likewise.
82500         * tests/unictype/test-categ_L.c: Likewise.
82501         * tests/unictype/test-categ_Ll.c: Likewise.
82502         * tests/unictype/test-categ_Lm.c: Likewise.
82503         * tests/unictype/test-categ_Lo.c: Likewise.
82504         * tests/unictype/test-categ_Lt.c: Likewise.
82505         * tests/unictype/test-categ_Lu.c: Likewise.
82506         * tests/unictype/test-categ_M.c: Likewise.
82507         * tests/unictype/test-categ_Mc.c: Likewise.
82508         * tests/unictype/test-categ_Me.c: Likewise.
82509         * tests/unictype/test-categ_Mn.c: Likewise.
82510         * tests/unictype/test-categ_N.c: Likewise.
82511         * tests/unictype/test-categ_Nd.c: Likewise.
82512         * tests/unictype/test-categ_Nl.c: Likewise.
82513         * tests/unictype/test-categ_No.c: Likewise.
82514         * tests/unictype/test-categ_P.c: Likewise.
82515         * tests/unictype/test-categ_Pc.c: Likewise.
82516         * tests/unictype/test-categ_Pd.c: Likewise.
82517         * tests/unictype/test-categ_Pe.c: Likewise.
82518         * tests/unictype/test-categ_Pf.c: Likewise.
82519         * tests/unictype/test-categ_Pi.c: Likewise.
82520         * tests/unictype/test-categ_Po.c: Likewise.
82521         * tests/unictype/test-categ_Ps.c: Likewise.
82522         * tests/unictype/test-categ_S.c: Likewise.
82523         * tests/unictype/test-categ_Sc.c: Likewise.
82524         * tests/unictype/test-categ_Sk.c: Likewise.
82525         * tests/unictype/test-categ_Sm.c: Likewise.
82526         * tests/unictype/test-categ_So.c: Likewise.
82527         * tests/unictype/test-categ_Z.c: Likewise.
82528         * tests/unictype/test-categ_Zl.c: Likewise.
82529         * tests/unictype/test-categ_Zp.c: Likewise.
82530         * tests/unictype/test-categ_Zs.c: Likewise.
82531         * tests/unictype/test-ctype_alnum.c: Likewise.
82532         * tests/unictype/test-ctype_alpha.c: Likewise.
82533         * tests/unictype/test-ctype_blank.c: Likewise.
82534         * tests/unictype/test-ctype_cntrl.c: Likewise.
82535         * tests/unictype/test-ctype_digit.c: Likewise.
82536         * tests/unictype/test-ctype_graph.c: Likewise.
82537         * tests/unictype/test-ctype_lower.c: Likewise.
82538         * tests/unictype/test-ctype_print.c: Likewise.
82539         * tests/unictype/test-ctype_punct.c: Likewise.
82540         * tests/unictype/test-ctype_space.c: Likewise.
82541         * tests/unictype/test-ctype_upper.c: Likewise.
82542         * tests/unictype/test-ctype_xdigit.c: Likewise.
82543         * tests/unictype/test-decdigit.h: Likewise.
82544         * tests/unictype/test-digit.h: Likewise.
82545         * tests/unictype/test-numeric.h: Likewise.
82546         * tests/unictype/test-pr_alphabetic.c: Likewise.
82547         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82548         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82549         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82550         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82551         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82552         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82553         * tests/unictype/test-pr_bidi_control.c: Likewise.
82554         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82555         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82556         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82557         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82558         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82559         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82560         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82561         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82562         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82563         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82564         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82565         * tests/unictype/test-pr_combining.c: Likewise.
82566         * tests/unictype/test-pr_composite.c: Likewise.
82567         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82568         * tests/unictype/test-pr_dash.c: Likewise.
82569         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82570         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82571         * tests/unictype/test-pr_deprecated.c: Likewise.
82572         * tests/unictype/test-pr_diacritic.c: Likewise.
82573         * tests/unictype/test-pr_extender.c: Likewise.
82574         * tests/unictype/test-pr_format_control.c: Likewise.
82575         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82576         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82577         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82578         * tests/unictype/test-pr_hex_digit.c: Likewise.
82579         * tests/unictype/test-pr_hyphen.c: Likewise.
82580         * tests/unictype/test-pr_id_continue.c: Likewise.
82581         * tests/unictype/test-pr_id_start.c: Likewise.
82582         * tests/unictype/test-pr_ideographic.c: Likewise.
82583         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82584         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82585         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82586         * tests/unictype/test-pr_iso_control.c: Likewise.
82587         * tests/unictype/test-pr_join_control.c: Likewise.
82588         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82589         * tests/unictype/test-pr_line_separator.c: Likewise.
82590         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82591         * tests/unictype/test-pr_lowercase.c: Likewise.
82592         * tests/unictype/test-pr_math.c: Likewise.
82593         * tests/unictype/test-pr_non_break.c: Likewise.
82594         * tests/unictype/test-pr_not_a_character.c: Likewise.
82595         * tests/unictype/test-pr_numeric.c: Likewise.
82596         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82597         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82598         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82599         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82600         * tests/unictype/test-pr_other_id_start.c: Likewise.
82601         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82602         * tests/unictype/test-pr_other_math.c: Likewise.
82603         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82604         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82605         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82606         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82607         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82608         * tests/unictype/test-pr_private_use.c: Likewise.
82609         * tests/unictype/test-pr_punctuation.c: Likewise.
82610         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82611         * tests/unictype/test-pr_radical.c: Likewise.
82612         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82613         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82614         * tests/unictype/test-pr_space.c: Likewise.
82615         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82616         * tests/unictype/test-pr_titlecase.c: Likewise.
82617         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82618         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82619         * tests/unictype/test-pr_uppercase.c: Likewise.
82620         * tests/unictype/test-pr_variation_selector.c: Likewise.
82621         * tests/unictype/test-pr_white_space.c: Likewise.
82622         * tests/unictype/test-pr_xid_continue.c: Likewise.
82623         * tests/unictype/test-pr_xid_start.c: Likewise.
82624         * tests/unictype/test-pr_zero_width.c: Likewise.
82625         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82626         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82628 2007-11-12  Bruno Haible  <bruno@clisp.org>
82630         Unicode character classification functions.
82631         * lib/unictype.h: New file.
82632         * modules/unictype/base: New file.
82633         * modules/unictype/category-L: New file.
82634         * modules/unictype/category-Lu: New file.
82635         * modules/unictype/category-Ll: New file.
82636         * modules/unictype/category-Lt: New file.
82637         * modules/unictype/category-Lm: New file.
82638         * modules/unictype/category-Lo: New file.
82639         * modules/unictype/category-M: New file.
82640         * modules/unictype/category-Mn: New file.
82641         * modules/unictype/category-Mc: New file.
82642         * modules/unictype/category-Me: New file.
82643         * modules/unictype/category-N: New file.
82644         * modules/unictype/category-Nd: New file.
82645         * modules/unictype/category-Nl: New file.
82646         * modules/unictype/category-No: New file.
82647         * modules/unictype/category-P: New file.
82648         * modules/unictype/category-Pc: New file.
82649         * modules/unictype/category-Pd: New file.
82650         * modules/unictype/category-Ps: New file.
82651         * modules/unictype/category-Pe: New file.
82652         * modules/unictype/category-Pi: New file.
82653         * modules/unictype/category-Pf: New file.
82654         * modules/unictype/category-Po: New file.
82655         * modules/unictype/category-S: New file.
82656         * modules/unictype/category-Sm: New file.
82657         * modules/unictype/category-Sc: New file.
82658         * modules/unictype/category-Sk: New file.
82659         * modules/unictype/category-So: New file.
82660         * modules/unictype/category-Z: New file.
82661         * modules/unictype/category-Zs: New file.
82662         * modules/unictype/category-Zl: New file.
82663         * modules/unictype/category-Zp: New file.
82664         * modules/unictype/category-C: New file.
82665         * modules/unictype/category-Cc: New file.
82666         * modules/unictype/category-Cf: New file.
82667         * modules/unictype/category-Cs: New file.
82668         * modules/unictype/category-Co: New file.
82669         * modules/unictype/category-Cn: New file.
82670         * modules/unictype/category-or: New file.
82671         * modules/unictype/category-of: New file.
82672         * modules/unictype/category-test: New file.
82673         * modules/unictype/category-test-withtable: New file.
82674         * modules/unictype/category-byname: New file.
82675         * modules/unictype/category-none: New file.
82676         * modules/unictype/category-and: New file.
82677         * modules/unictype/category-and-not: New file.
82678         * modules/unictype/category-name: New file.
82679         * modules/unictype/combining-class: New file.
82680         * modules/unictype/category-all: New file.
82681         * modules/unictype/bidicategory-all: New file.
82682         * modules/unictype/bidicategory-byname: New file.
82683         * modules/unictype/bidicategory-name: New file.
82684         * modules/unictype/bidicategory-of: New file.
82685         * modules/unictype/bidicategory-test: New file.
82686         * modules/unictype/decimal-digit: New file.
82687         * modules/unictype/digit: New file.
82688         * modules/unictype/numeric: New file.
82689         * modules/unictype/mirror: New file.
82690         * modules/unictype/property-white-space: New file.
82691         * modules/unictype/property-alphabetic: New file.
82692         * modules/unictype/property-other-alphabetic: New file.
82693         * modules/unictype/property-not-a-character: New file.
82694         * modules/unictype/property-default-ignorable-code-point: New file.
82695         * modules/unictype/property-other-default-ignorable-code-point: New
82696         file.
82697         * modules/unictype/property-deprecated: New file.
82698         * modules/unictype/property-logical-order-exception: New file.
82699         * modules/unictype/property-variation-selector: New file.
82700         * modules/unictype/property-private-use: New file.
82701         * modules/unictype/property-unassigned-code-value: New file.
82702         * modules/unictype/property-uppercase: New file.
82703         * modules/unictype/property-other-uppercase: New file.
82704         * modules/unictype/property-lowercase: New file.
82705         * modules/unictype/property-other-lowercase: New file.
82706         * modules/unictype/property-titlecase: New file.
82707         * modules/unictype/property-soft-dotted: New file.
82708         * modules/unictype/property-id-start: New file.
82709         * modules/unictype/property-other-id-start: New file.
82710         * modules/unictype/property-id-continue: New file.
82711         * modules/unictype/property-other-id-continue: New file.
82712         * modules/unictype/property-xid-start: New file.
82713         * modules/unictype/property-xid-continue: New file.
82714         * modules/unictype/property-pattern-white-space: New file.
82715         * modules/unictype/property-pattern-syntax: New file.
82716         * modules/unictype/property-join-control: New file.
82717         * modules/unictype/property-grapheme-base: New file.
82718         * modules/unictype/property-grapheme-extend: New file.
82719         * modules/unictype/property-other-grapheme-extend: New file.
82720         * modules/unictype/property-grapheme-link: New file.
82721         * modules/unictype/property-bidi-control: New file.
82722         * modules/unictype/property-bidi-left-to-right: New file.
82723         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82724         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82725         * modules/unictype/property-bidi-european-digit: New file.
82726         * modules/unictype/property-bidi-eur-num-separator: New file.
82727         * modules/unictype/property-bidi-eur-num-terminator: New file.
82728         * modules/unictype/property-bidi-arabic-digit: New file.
82729         * modules/unictype/property-bidi-common-separator: New file.
82730         * modules/unictype/property-bidi-block-separator: New file.
82731         * modules/unictype/property-bidi-segment-separator: New file.
82732         * modules/unictype/property-bidi-whitespace: New file.
82733         * modules/unictype/property-bidi-non-spacing-mark: New file.
82734         * modules/unictype/property-bidi-boundary-neutral: New file.
82735         * modules/unictype/property-bidi-pdf: New file.
82736         * modules/unictype/property-bidi-embedding-or-override: New file.
82737         * modules/unictype/property-bidi-other-neutral: New file.
82738         * modules/unictype/property-hex-digit: New file.
82739         * modules/unictype/property-ascii-hex-digit: New file.
82740         * modules/unictype/property-ideographic: New file.
82741         * modules/unictype/property-unified-ideograph: New file.
82742         * modules/unictype/property-radical: New file.
82743         * modules/unictype/property-ids-binary-operator: New file.
82744         * modules/unictype/property-ids-trinary-operator: New file.
82745         * modules/unictype/property-zero-width: New file.
82746         * modules/unictype/property-space: New file.
82747         * modules/unictype/property-non-break: New file.
82748         * modules/unictype/property-iso-control: New file.
82749         * modules/unictype/property-format-control: New file.
82750         * modules/unictype/property-dash: New file.
82751         * modules/unictype/property-hyphen: New file.
82752         * modules/unictype/property-punctuation: New file.
82753         * modules/unictype/property-line-separator: New file.
82754         * modules/unictype/property-paragraph-separator: New file.
82755         * modules/unictype/property-quotation-mark: New file.
82756         * modules/unictype/property-sentence-terminal: New file.
82757         * modules/unictype/property-terminal-punctuation: New file.
82758         * modules/unictype/property-currency-symbol: New file.
82759         * modules/unictype/property-math: New file.
82760         * modules/unictype/property-other-math: New file.
82761         * modules/unictype/property-paired-punctuation: New file.
82762         * modules/unictype/property-left-of-pair: New file.
82763         * modules/unictype/property-combining: New file.
82764         * modules/unictype/property-composite: New file.
82765         * modules/unictype/property-decimal-digit: New file.
82766         * modules/unictype/property-numeric: New file.
82767         * modules/unictype/property-diacritic: New file.
82768         * modules/unictype/property-extender: New file.
82769         * modules/unictype/property-ignorable-control: New file.
82770         * modules/unictype/property-test: New file.
82771         * modules/unictype/property-byname: New file.
82772         * modules/unictype/property-all: New file.
82773         * modules/unictype/scripts: New file.
82774         * modules/unictype/scripts-all: New file.
82775         * modules/unictype/block-of: New file.
82776         * modules/unictype/block-test: New file.
82777         * modules/unictype/block-list: New file.
82778         * modules/unictype/block-all: New file.
82779         * modules/unictype/syntax-c-whitespace: New file.
82780         * modules/unictype/syntax-java-whitespace: New file.
82781         * modules/unictype/syntax-c-ident: New file.
82782         * modules/unictype/syntax-java-ident: New file.
82783         * modules/unictype/ctype-alnum: New file.
82784         * modules/unictype/ctype-alpha: New file.
82785         * modules/unictype/ctype-cntrl: New file.
82786         * modules/unictype/ctype-digit: New file.
82787         * modules/unictype/ctype-graph: New file.
82788         * modules/unictype/ctype-lower: New file.
82789         * modules/unictype/ctype-print: New file.
82790         * modules/unictype/ctype-punct: New file.
82791         * modules/unictype/ctype-space: New file.
82792         * modules/unictype/ctype-upper: New file.
82793         * modules/unictype/ctype-xdigit: New file.
82794         * modules/unictype/ctype-blank: New file.
82795         * lib/unictype/bidi_byname.c: New file.
82796         * lib/unictype/bidi_name.c: New file.
82797         * lib/unictype/bidi_of.c: New file.
82798         * lib/unictype/bidi_test.c: New file.
82799         * lib/unictype/bitmap.h: New file.
82800         * lib/unictype/block_test.c: New file.
82801         * lib/unictype/blocks.c: New file.
82802         * lib/unictype/categ_C.c: New file.
82803         * lib/unictype/categ_Cc.c: New file.
82804         * lib/unictype/categ_Cf.c: New file.
82805         * lib/unictype/categ_Cn.c: New file.
82806         * lib/unictype/categ_Co.c: New file.
82807         * lib/unictype/categ_Cs.c: New file.
82808         * lib/unictype/categ_L.c: New file.
82809         * lib/unictype/categ_Ll.c: New file.
82810         * lib/unictype/categ_Lm.c: New file.
82811         * lib/unictype/categ_Lo.c: New file.
82812         * lib/unictype/categ_Lt.c: New file.
82813         * lib/unictype/categ_Lu.c: New file.
82814         * lib/unictype/categ_M.c: New file.
82815         * lib/unictype/categ_Mc.c: New file.
82816         * lib/unictype/categ_Me.c: New file.
82817         * lib/unictype/categ_Mn.c: New file.
82818         * lib/unictype/categ_N.c: New file.
82819         * lib/unictype/categ_Nd.c: New file.
82820         * lib/unictype/categ_Nl.c: New file.
82821         * lib/unictype/categ_No.c: New file.
82822         * lib/unictype/categ_P.c: New file.
82823         * lib/unictype/categ_Pc.c: New file.
82824         * lib/unictype/categ_Pd.c: New file.
82825         * lib/unictype/categ_Pe.c: New file.
82826         * lib/unictype/categ_Pf.c: New file.
82827         * lib/unictype/categ_Pi.c: New file.
82828         * lib/unictype/categ_Po.c: New file.
82829         * lib/unictype/categ_Ps.c: New file.
82830         * lib/unictype/categ_S.c: New file.
82831         * lib/unictype/categ_Sc.c: New file.
82832         * lib/unictype/categ_Sk.c: New file.
82833         * lib/unictype/categ_Sm.c: New file.
82834         * lib/unictype/categ_So.c: New file.
82835         * lib/unictype/categ_Z.c: New file.
82836         * lib/unictype/categ_Zl.c: New file.
82837         * lib/unictype/categ_Zp.c: New file.
82838         * lib/unictype/categ_Zs.c: New file.
82839         * lib/unictype/categ_and.c: New file.
82840         * lib/unictype/categ_and_not.c: New file.
82841         * lib/unictype/categ_byname.c: New file.
82842         * lib/unictype/categ_name.c: New file.
82843         * lib/unictype/categ_none.c: New file.
82844         * lib/unictype/categ_of.c: New file.
82845         * lib/unictype/categ_or.c: New file.
82846         * lib/unictype/categ_test.c: New file.
82847         * lib/unictype/combining.c: New file.
82848         * lib/unictype/ctype_alnum.c: New file.
82849         * lib/unictype/ctype_alpha.c: New file.
82850         * lib/unictype/ctype_blank.c: New file.
82851         * lib/unictype/ctype_cntrl.c: New file.
82852         * lib/unictype/ctype_digit.c: New file.
82853         * lib/unictype/ctype_graph.c: New file.
82854         * lib/unictype/ctype_lower.c: New file.
82855         * lib/unictype/ctype_print.c: New file.
82856         * lib/unictype/ctype_punct.c: New file.
82857         * lib/unictype/ctype_space.c: New file.
82858         * lib/unictype/ctype_upper.c: New file.
82859         * lib/unictype/ctype_xdigit.c: New file.
82860         * lib/unictype/decdigit.c: New file.
82861         * lib/unictype/digit.c: New file.
82862         * lib/unictype/identsyntaxmap.h: New file.
82863         * lib/unictype/mirror.c: New file.
82864         * lib/unictype/numeric.c: New file.
82865         * lib/unictype/pr_alphabetic.c: New file.
82866         * lib/unictype/pr_ascii_hex_digit.c: New file.
82867         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82868         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82869         * lib/unictype/pr_bidi_block_separator.c: New file.
82870         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82871         * lib/unictype/pr_bidi_common_separator.c: New file.
82872         * lib/unictype/pr_bidi_control.c: New file.
82873         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82874         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82875         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82876         * lib/unictype/pr_bidi_european_digit.c: New file.
82877         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82878         * lib/unictype/pr_bidi_left_to_right.c: New file.
82879         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82880         * lib/unictype/pr_bidi_other_neutral.c: New file.
82881         * lib/unictype/pr_bidi_pdf.c: New file.
82882         * lib/unictype/pr_bidi_segment_separator.c: New file.
82883         * lib/unictype/pr_bidi_whitespace.c: New file.
82884         * lib/unictype/pr_byname.c: New file.
82885         * lib/unictype/pr_byname.gperf: New file.
82886         * lib/unictype/pr_combining.c: New file.
82887         * lib/unictype/pr_composite.c: New file.
82888         * lib/unictype/pr_currency_symbol.c: New file.
82889         * lib/unictype/pr_dash.c: New file.
82890         * lib/unictype/pr_decimal_digit.c: New file.
82891         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82892         * lib/unictype/pr_deprecated.c: New file.
82893         * lib/unictype/pr_diacritic.c: New file.
82894         * lib/unictype/pr_extender.c: New file.
82895         * lib/unictype/pr_format_control.c: New file.
82896         * lib/unictype/pr_grapheme_base.c: New file.
82897         * lib/unictype/pr_grapheme_extend.c: New file.
82898         * lib/unictype/pr_grapheme_link.c: New file.
82899         * lib/unictype/pr_hex_digit.c: New file.
82900         * lib/unictype/pr_hyphen.c: New file.
82901         * lib/unictype/pr_id_continue.c: New file.
82902         * lib/unictype/pr_id_start.c: New file.
82903         * lib/unictype/pr_ideographic.c: New file.
82904         * lib/unictype/pr_ids_binary_operator.c: New file.
82905         * lib/unictype/pr_ids_trinary_operator.c: New file.
82906         * lib/unictype/pr_ignorable_control.c: New file.
82907         * lib/unictype/pr_iso_control.c: New file.
82908         * lib/unictype/pr_join_control.c: New file.
82909         * lib/unictype/pr_left_of_pair.c: New file.
82910         * lib/unictype/pr_line_separator.c: New file.
82911         * lib/unictype/pr_logical_order_exception.c: New file.
82912         * lib/unictype/pr_lowercase.c: New file.
82913         * lib/unictype/pr_math.c: New file.
82914         * lib/unictype/pr_non_break.c: New file.
82915         * lib/unictype/pr_not_a_character.c: New file.
82916         * lib/unictype/pr_numeric.c: New file.
82917         * lib/unictype/pr_other_alphabetic.c: New file.
82918         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
82919         * lib/unictype/pr_other_grapheme_extend.c: New file.
82920         * lib/unictype/pr_other_id_continue.c: New file.
82921         * lib/unictype/pr_other_id_start.c: New file.
82922         * lib/unictype/pr_other_lowercase.c: New file.
82923         * lib/unictype/pr_other_math.c: New file.
82924         * lib/unictype/pr_other_uppercase.c: New file.
82925         * lib/unictype/pr_paired_punctuation.c: New file.
82926         * lib/unictype/pr_paragraph_separator.c: New file.
82927         * lib/unictype/pr_pattern_syntax.c: New file.
82928         * lib/unictype/pr_pattern_white_space.c: New file.
82929         * lib/unictype/pr_private_use.c: New file.
82930         * lib/unictype/pr_punctuation.c: New file.
82931         * lib/unictype/pr_quotation_mark.c: New file.
82932         * lib/unictype/pr_radical.c: New file.
82933         * lib/unictype/pr_sentence_terminal.c: New file.
82934         * lib/unictype/pr_soft_dotted.c: New file.
82935         * lib/unictype/pr_space.c: New file.
82936         * lib/unictype/pr_terminal_punctuation.c: New file.
82937         * lib/unictype/pr_test.c: New file.
82938         * lib/unictype/pr_titlecase.c: New file.
82939         * lib/unictype/pr_unassigned_code_value.c: New file.
82940         * lib/unictype/pr_unified_ideograph.c: New file.
82941         * lib/unictype/pr_uppercase.c: New file.
82942         * lib/unictype/pr_variation_selector.c: New file.
82943         * lib/unictype/pr_white_space.c: New file.
82944         * lib/unictype/pr_xid_continue.c: New file.
82945         * lib/unictype/pr_xid_start.c: New file.
82946         * lib/unictype/pr_zero_width.c: New file.
82947         * lib/unictype/scripts.c: New file.
82948         * lib/unictype/sy_c_ident.c: New file.
82949         * lib/unictype/sy_c_whitespace.c: New file.
82950         * lib/unictype/sy_java_ident.c: New file.
82951         * lib/unictype/sy_java_whitespace.c: New file.
82953         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
82954         Unicode 5.0.0.
82955         * lib/unictype/blocks.h: Likewise.
82956         * lib/unictype/categ_C.h: Likewise.
82957         * lib/unictype/categ_Cc.h: Likewise.
82958         * lib/unictype/categ_Cf.h: Likewise.
82959         * lib/unictype/categ_Cn.h: Likewise.
82960         * lib/unictype/categ_Co.h: Likewise.
82961         * lib/unictype/categ_Cs.h: Likewise.
82962         * lib/unictype/categ_L.h: Likewise.
82963         * lib/unictype/categ_Ll.h: Likewise.
82964         * lib/unictype/categ_Lm.h: Likewise.
82965         * lib/unictype/categ_Lo.h: Likewise.
82966         * lib/unictype/categ_Lt.h: Likewise.
82967         * lib/unictype/categ_Lu.h: Likewise.
82968         * lib/unictype/categ_M.h: Likewise.
82969         * lib/unictype/categ_Mc.h: Likewise.
82970         * lib/unictype/categ_Me.h: Likewise.
82971         * lib/unictype/categ_Mn.h: Likewise.
82972         * lib/unictype/categ_N.h: Likewise.
82973         * lib/unictype/categ_Nd.h: Likewise.
82974         * lib/unictype/categ_Nl.h: Likewise.
82975         * lib/unictype/categ_No.h: Likewise.
82976         * lib/unictype/categ_P.h: Likewise.
82977         * lib/unictype/categ_Pc.h: Likewise.
82978         * lib/unictype/categ_Pd.h: Likewise.
82979         * lib/unictype/categ_Pe.h: Likewise.
82980         * lib/unictype/categ_Pf.h: Likewise.
82981         * lib/unictype/categ_Pi.h: Likewise.
82982         * lib/unictype/categ_Po.h: Likewise.
82983         * lib/unictype/categ_Ps.h: Likewise.
82984         * lib/unictype/categ_S.h: Likewise.
82985         * lib/unictype/categ_Sc.h: Likewise.
82986         * lib/unictype/categ_Sk.h: Likewise.
82987         * lib/unictype/categ_Sm.h: Likewise.
82988         * lib/unictype/categ_So.h: Likewise.
82989         * lib/unictype/categ_Z.h: Likewise.
82990         * lib/unictype/categ_Zl.h: Likewise.
82991         * lib/unictype/categ_Zp.h: Likewise.
82992         * lib/unictype/categ_Zs.h: Likewise.
82993         * lib/unictype/categ_of.h: Likewise.
82994         * lib/unictype/combining.h: Likewise.
82995         * lib/unictype/ctype_alnum.h: Likewise.
82996         * lib/unictype/ctype_alpha.h: Likewise.
82997         * lib/unictype/ctype_blank.h: Likewise.
82998         * lib/unictype/ctype_cntrl.h: Likewise.
82999         * lib/unictype/ctype_digit.h: Likewise.
83000         * lib/unictype/ctype_graph.h: Likewise.
83001         * lib/unictype/ctype_lower.h: Likewise.
83002         * lib/unictype/ctype_print.h: Likewise.
83003         * lib/unictype/ctype_punct.h: Likewise.
83004         * lib/unictype/ctype_space.h: Likewise.
83005         * lib/unictype/ctype_upper.h: Likewise.
83006         * lib/unictype/ctype_xdigit.h: Likewise.
83007         * lib/unictype/decdigit.h: Likewise.
83008         * lib/unictype/digit.h: Likewise.
83009         * lib/unictype/mirror.h: Likewise.
83010         * lib/unictype/numeric.h: Likewise.
83011         * lib/unictype/pr_alphabetic.h: Likewise.
83012         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83013         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83014         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83015         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83016         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83017         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83018         * lib/unictype/pr_bidi_control.h: Likewise.
83019         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83020         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83021         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83022         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83023         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83024         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83025         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83026         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83027         * lib/unictype/pr_bidi_pdf.h: Likewise.
83028         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83029         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83030         * lib/unictype/pr_combining.h: Likewise.
83031         * lib/unictype/pr_composite.h: Likewise.
83032         * lib/unictype/pr_currency_symbol.h: Likewise.
83033         * lib/unictype/pr_dash.h: Likewise.
83034         * lib/unictype/pr_decimal_digit.h: Likewise.
83035         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83036         * lib/unictype/pr_deprecated.h: Likewise.
83037         * lib/unictype/pr_diacritic.h: Likewise.
83038         * lib/unictype/pr_extender.h: Likewise.
83039         * lib/unictype/pr_format_control.h: Likewise.
83040         * lib/unictype/pr_grapheme_base.h: Likewise.
83041         * lib/unictype/pr_grapheme_extend.h: Likewise.
83042         * lib/unictype/pr_grapheme_link.h: Likewise.
83043         * lib/unictype/pr_hex_digit.h: Likewise.
83044         * lib/unictype/pr_hyphen.h: Likewise.
83045         * lib/unictype/pr_id_continue.h: Likewise.
83046         * lib/unictype/pr_id_start.h: Likewise.
83047         * lib/unictype/pr_ideographic.h: Likewise.
83048         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83049         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83050         * lib/unictype/pr_ignorable_control.h: Likewise.
83051         * lib/unictype/pr_iso_control.h: Likewise.
83052         * lib/unictype/pr_join_control.h: Likewise.
83053         * lib/unictype/pr_left_of_pair.h: Likewise.
83054         * lib/unictype/pr_line_separator.h: Likewise.
83055         * lib/unictype/pr_logical_order_exception.h: Likewise.
83056         * lib/unictype/pr_lowercase.h: Likewise.
83057         * lib/unictype/pr_math.h: Likewise.
83058         * lib/unictype/pr_non_break.h: Likewise.
83059         * lib/unictype/pr_not_a_character.h: Likewise.
83060         * lib/unictype/pr_numeric.h: Likewise.
83061         * lib/unictype/pr_other_alphabetic.h: Likewise.
83062         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83063         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83064         * lib/unictype/pr_other_id_continue.h: Likewise.
83065         * lib/unictype/pr_other_id_start.h: Likewise.
83066         * lib/unictype/pr_other_lowercase.h: Likewise.
83067         * lib/unictype/pr_other_math.h: Likewise.
83068         * lib/unictype/pr_other_uppercase.h: Likewise.
83069         * lib/unictype/pr_paired_punctuation.h: Likewise.
83070         * lib/unictype/pr_paragraph_separator.h: Likewise.
83071         * lib/unictype/pr_pattern_syntax.h: Likewise.
83072         * lib/unictype/pr_pattern_white_space.h: Likewise.
83073         * lib/unictype/pr_private_use.h: Likewise.
83074         * lib/unictype/pr_punctuation.h: Likewise.
83075         * lib/unictype/pr_quotation_mark.h: Likewise.
83076         * lib/unictype/pr_radical.h: Likewise.
83077         * lib/unictype/pr_sentence_terminal.h: Likewise.
83078         * lib/unictype/pr_soft_dotted.h: Likewise.
83079         * lib/unictype/pr_space.h: Likewise.
83080         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83081         * lib/unictype/pr_titlecase.h: Likewise.
83082         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83083         * lib/unictype/pr_unified_ideograph.h: Likewise.
83084         * lib/unictype/pr_uppercase.h: Likewise.
83085         * lib/unictype/pr_variation_selector.h: Likewise.
83086         * lib/unictype/pr_white_space.h: Likewise.
83087         * lib/unictype/pr_xid_continue.h: Likewise.
83088         * lib/unictype/pr_xid_start.h: Likewise.
83089         * lib/unictype/pr_zero_width.h: Likewise.
83090         * lib/unictype/scripts.h: Likewise.
83091         * lib/unictype/scripts_byname.gperf: Likewise.
83092         * lib/unictype/sy_c_ident.h: Likewise.
83093         * lib/unictype/sy_c_whitespace.h: Likewise.
83094         * lib/unictype/sy_java_ident.h: Likewise.
83095         * lib/unictype/sy_java_whitespace.h: Likewise.
83097         * lib/unictype/Makefile: New file.
83098         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83099         glibc.
83100         * lib/unictype/3level.h: New file, copied from glibc.
83101         * lib/unictype/3levelbit.h: New file.
83103 2007-11-11  Bruno Haible  <bruno@clisp.org>
83105         * modules/gperf: New file.
83106         * modules/iconv_open (Depends-on): Add it.
83107         (Makefile.am): Remove the GPERF definition.
83109 2007-11-11  Bruno Haible  <bruno@clisp.org>
83111         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83112         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83114 2007-11-11  Bruno Haible  <bruno@clisp.org>
83116         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83117         (usage): Remove function.
83119 2007-11-11  Bruno Haible  <bruno@clisp.org>
83121         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83122         gl_FUNC_CEILF_LIBS.
83123         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83124         gl_FUNC_CEIL_LIBS.
83125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83126         gl_FUNC_CEILL_LIBS.
83127         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83128         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83129         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83131 2007-11-11  Bruno Haible  <bruno@clisp.org>
83133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83134         roundf were declared but do not exist on functions.
83135         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83136         roundl were declared but do not exist on functions.
83137         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83138         HAVE_FLOORL_AND_CEILL, respectively.
83139         Needed for Sun C on Solaris 10.
83141 2007-11-11  Bruno Haible  <bruno@clisp.org>
83143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83144         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83145         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83146         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83147         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83148         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83149         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83150         HAVE_DECL_ROUNDF.
83151         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83152         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83154         of HAVE_DECL_ROUND*.
83155         * modules/math (Makefile.am): Update.
83157 2007-11-10  Bruno Haible  <bruno@clisp.org>
83159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83160         ptrdiff_t as m4/intl.m4.
83162 2007-11-10  Jim Meyering  <meyering@redhat.com>
83164         Avoid link failure for the argmatch test.
83165         * tests/test-argmatch.c (usage): Define function to avoid a link
83166         failure: argmatch_die requires a usage function.
83168 2007-11-09  Bruno Haible  <bruno@clisp.org>
83170         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83171         * doc/functions/vsnprintf.texi: Likewise.
83172         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83173         with a size argument < 2.
83175 2007-11-09  Bruno Haible  <bruno@clisp.org>
83177         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83178         buffer. Fixes an inefficiency introduced on 2007-11-03.
83180 2007-11-09  Bruno Haible  <bruno@clisp.org>
83182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83183         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83185 2007-11-08  Jim Meyering  <meyering@redhat.com>
83187         Change cache variable name prefix "jm_" to "gl_" everywhere.
83188         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83189         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83190         * m4/uptime.m4: s/gl_/jm_/
83192 2007-11-07  Bruno Haible  <bruno@clisp.org>
83194         Update to GNU gettext 0.17.
83195         * m4/intl.m4: Update to GNU gettext 0.17.
83196         * m4/po.m4: Likewise.
83197         * modules/gettext (Files): Remove m4/ulonglong.m4.
83198         (configure.ac): Require gettext infrastructure from version 0.17.
83200 2007-11-06  Bruno Haible  <bruno@clisp.org>
83202         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83203         symbolic values are not defined in a public header.
83204         * lib/freadable.c (freadable) [QNX]: Likewise.
83205         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83206         * lib/freading.c (freading) [QNX]: Likewise.
83207         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83208         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83209         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83210         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83211         Reported by Alain Magloire.
83213         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83215 2007-11-05  Bruno Haible  <bruno@clisp.org>
83217         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83218         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83219         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83220         Reported by Eric Blake.
83222 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83223             Bruno Haible  <bruno@clisp.org>
83225         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83226         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83227         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83228         (malloc): Undefine also before including <stdlib.h>.
83229         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83230         Needed on OSF/1 4.0.
83232 2007-11-05  Jim Meyering  <meyering@redhat.com>
83234         git-version-gen: sync from coreutils.
83235         * build-aux/git-version-gen: Add comments.
83236         Change the first '-' to '.' in the snapshot version string,
83237         e.g., 6.9-377-08144 -> 6.9.377-08144
83238         Remove first parameter.
83239         Don't declare a version "-dirty" merely because a time
83240         stamp has changed.
83242 2007-11-04  Bruno Haible  <bruno@clisp.org>
83244         * lib/lock.h: Protect all macro definitions containing an 'if'
83245         statement through a "do { ... } while (0)".
83246         * lib/tls.h: Likewise.
83248 2007-11-04  Bruno Haible  <bruno@clisp.org>
83250         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83252 2007-11-04  Bruno Haible  <bruno@clisp.org>
83254         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83255         * modules/fprintf-posix (Depends-on): Add nocrash.
83256         * modules/snprintf-posix (Depends-on): Likewise.
83257         * modules/sprintf-posix (Depends-on): Likewise.
83258         * modules/vasnprintf-posix (Depends-on): Likewise.
83259         * modules/vasprintf-posix (Depends-on): Likewise.
83260         * modules/vfprintf-posix (Depends-on): Likewise.
83261         * modules/vsnprintf-posix (Depends-on): Likewise.
83262         * modules/vsprintf-posix (Depends-on): Likewise.
83263         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83264         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83265         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83266         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83267         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83268         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83269         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83271 2007-11-04  Bruno Haible  <bruno@clisp.org>
83273         * modules/nocrash: New file.
83274         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83275         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83277 2007-11-04  Bruno Haible  <bruno@clisp.org>
83279         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83280         precision handling.
83281         * tests/test-vasprintf-posix.c (test_function): Likewise.
83282         * tests/test-snprintf-posix.h (test_function): Likewise.
83283         * tests/test-sprintf-posix.h (test_function): Likewise.
83285         Fix *printf behaviour for large precisions on mingw and BeOS.
83286         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83287         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83289         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83291         gl_PRINTF_PRECISION and test its result. Invoke
83292         gl_PREREQ_VASNPRINTF_PRECISION.
83293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83300         * doc/functions/fprintf.texi: Update.
83301         * doc/functions/printf.texi: Update.
83302         * doc/functions/snprintf.texi: Update.
83303         * doc/functions/sprintf.texi: Update.
83304         * doc/functions/vfprintf.texi: Update.
83305         * doc/functions/vprintf.texi: Update.
83306         * doc/functions/vsnprintf.texi: Update.
83307         * doc/functions/vsprintf.texi: Update.
83309 2007-11-04  Bruno Haible  <bruno@clisp.org>
83311         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83313 2007-11-04  Bruno Haible  <bruno@clisp.org>
83315         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83316         Reported by Sylvain Beucler <beuc@gnu.org>.
83318 2007-11-03  Bruno Haible  <bruno@clisp.org>
83320         * tests/test-fprintf-posix2.sh: New file.
83321         * tests/test-fprintf-posix2.c: New file.
83322         * modules/fprintf-posix-tests (Files): Add them.
83323         (TESTS): Add test-fprintf-posix2.sh.
83324         (configure.ac): Check for getrlimit and setrlimit.
83325         (check_PROGRAMS): Add test-fprintf-posix2.
83327         * tests/test-printf-posix2.sh: New file.
83328         * tests/test-printf-posix2.c: New file.
83329         * modules/printf-posix-tests (Files): Add them.
83330         (TESTS): Add test-printf-posix2.sh.
83331         (configure.ac): Check for getrlimit and setrlimit.
83332         (check_PROGRAMS): Add test-printf-posix2.
83334         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83335         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83336         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83337         (decode_double): New function, copied from decode_long_double.
83338         (scale10_round_decimal_decoded): New function, extracted from
83339         scale10_round_decimal_long_double.
83340         (scale10_round_decimal_long_double): Use it.
83341         (scale10_round_decimal_double): New function.
83342         (floorlog10): New function.
83343         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83345         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83346         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83347         gl_PRINTF_ENOMEM and test its result. Invoke
83348         gl_PREREQ_VASNPRINTF_ENOMEM.
83349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83350         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83352         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83356         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83357         * modules/snprintf-posix (Depends-on): Likewise.
83358         * modules/sprintf-posix (Depends-on): Likewise.
83359         * modules/vasnprintf-posix (Depends-on): Likewise.
83360         * modules/vasprintf-posix (Depends-on): Likewise.
83361         * modules/vfprintf-posix (Depends-on): Likewise.
83362         * modules/vsnprintf-posix (Depends-on): Likewise.
83363         * modules/vsprintf-posix (Depends-on): Likewise.
83364         * doc/functions/fprintf.texi: Update.
83365         * doc/functions/printf.texi: Update.
83366         * doc/functions/snprintf.texi: Update.
83367         * doc/functions/sprintf.texi: Update.
83368         * doc/functions/vfprintf.texi: Update.
83369         * doc/functions/vprintf.texi: Update.
83370         * doc/functions/vsnprintf.texi: Update.
83371         * doc/functions/vsprintf.texi: Update.
83373 2007-11-03  Bruno Haible  <bruno@clisp.org>
83375         * modules/frexp-nolibm-tests: New file.
83377         * modules/frexp-nolibm: New file.
83378         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83380 2007-11-03  Bruno Haible  <bruno@clisp.org>
83382         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83383         value is C99 compliant.
83384         Needed for OSF/1 5.1.
83386 2007-11-03  Bruno Haible  <bruno@clisp.org>
83388         Fix out-of-memory handling of vasnprintf.
83389         * lib/printf-parse.c: Include <errno.h>.
83390         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83391         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83392         is already set.
83394 2007-11-02  Eric Blake  <ebb9@byu.net>
83396         Fix tests on cygwin.
83397         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83399 2007-11-01  Bruno Haible  <bruno@clisp.org>
83401         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83402         warning.
83403         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83404         needed for POSIX compatibility.
83406 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83408         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83409         for compatibility with GNU.
83411 2007-11-01  Bruno Haible  <bruno@clisp.org>
83413         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83414         (putenv): Renamed from rpl_putenv. Change argument type from
83415         'const char *' to 'char *'.
83416         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83417         of defining putenv in config.h, just set REPLACE_PUTENV.
83418         * modules/putenv (Depends-on): Add stdlib.
83419         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83420         (Include): Use <stdlib.h>.
83421         * lib/stdlib.in.h (putenv): New declaration.
83422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83423         REPLACE_PUTENV.
83424         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83425         REPLACE_PUTENV.
83426         Needed for MacOS X 10.5.0.
83427         Reported by Peter O'Gorman <peter@pogma.com>.
83429 2007-11-01  Jim Meyering  <meyering@redhat.com>
83431         Treat an empty date string exactly like "0".
83432         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83433         if the remaining date string (to be parsed) is empty, use "0".
83434         Reported by Mischa Molhoek and discussed in this thread:
83435         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83437 2007-10-31  Bruno Haible  <bruno@clisp.org>
83439         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83440         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83441         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83442         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83443         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83444         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83446 2007-10-31  Bruno Haible  <bruno@clisp.org>
83448         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83449         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83450         (AC_TYPE_LONG_LONG_INT): Use it.
83451         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83452         it as well.
83453         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83454         to m4/longlong.m4.
83455         * modules/stdint (Files): Remove m4/ulonglong.m4.
83456         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83457         m4/ulonglong.m4.
83458         * modules/strtoumax (Files): Likewise.
83460 2007-10-30  Bruno Haible  <bruno@clisp.org>
83462         * modules/xvasprintf-posix: New file.
83463         Suggested by Eric Blake.
83465 2007-10-30  Bruno Haible  <bruno@clisp.org>
83467         * modules/xprintf-posix-tests: New file.
83468         * tests/test-xprintf-posix.sh: New file.
83469         * tests/test-xprintf-posix.c: New file.
83470         * tests/test-xfprintf-posix.c: New file.
83472         * modules/xprintf-posix: New file.
83474 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83476         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83477         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83478         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83480 2007-10-29  Bruno Haible  <bruno@clisp.org>
83482         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83483         contain the special marker '_cv_'.
83484         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83485         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83486         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83487         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83488         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83489         Reported by Ralf Wildenhues.
83491 2007-10-29  Bruno Haible  <bruno@clisp.org>
83493         * gnulib-tool (func_import): When --lgpl is not specified, set
83494         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83495         GPLv3.
83496         Reported by Simon Josefsson.
83498 2007-10-28  Bruno Haible  <bruno@clisp.org>
83500         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83501         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83502         HAVE_DECL_ISFINITE.
83503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83504         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83505         HAVE_DECL_ISFINITE.
83507 2007-10-28  Bruno Haible  <bruno@clisp.org>
83509         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83510         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83512 2007-10-28  Bruno Haible  <bruno@clisp.org>
83514         Fix link errors with Sun C 5.0 on Solaris 10.
83515         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83516         function is declared but not present in the compiler's libm.
83517         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83518         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83519         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83520         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83521         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83522         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83523         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83525         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83526         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83527         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83528         HAVE_DECL_FLOORL.
83530 2007-10-28  Bruno Haible  <bruno@clisp.org>
83532         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83533         gl_FUNC_FLOORL. Cache the result.
83534         (gl_FUNC_FLOORL): Use it.
83535         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83536         gl_FUNC_CEILL. Cache the result.
83537         (gl_FUNC_CEILL): Use it.
83539         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83540         gl_FUNC_FLOOR. Cache the result.
83541         (gl_FUNC_FLOOR): Use it.
83542         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83543         gl_FUNC_CEIL. Cache the result.
83544         (gl_FUNC_CEIL): Use it.
83546         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83547         gl_FUNC_FLOORF. Cache the result.
83548         (gl_FUNC_FLOORF): Use it.
83549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83550         gl_FUNC_CEILF. Cache the result.
83551         (gl_FUNC_CEILF): Use it.
83553 2007-10-28  Bruno Haible  <bruno@clisp.org>
83555         * gnulib-tool: Allow specifying the LGPL version number through
83556         --lgpl=2 or --lgpl=3.
83557         (func_usage): Document --lgpl with argument.
83558         Handle --lgpl=... arguments.
83559         (func_import): Recognize also gl_LGPL calls with an argument. When
83560         --lgpl=2 is used and the module's license is just LGPL, report an
83561         error. Set sed_transform_lib_file according to the lgpl variable. In
83562         the generated files, use --lgpl or gl_LGPL invocations with argument,
83563         if necessary.
83564         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83565         an LGPv2+ license.
83566         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83567         gl_LGPL macro.
83569 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83570             Bruno Haible  <bruno@clisp.org>
83572         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83573         (u16_uctomb_aux): Likewise.
83574         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83575         !HAVE_INLINE.
83576         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83578 2007-10-28  Bruno Haible  <bruno@clisp.org>
83580         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83581         Invoke AM_GETTEXT_OPTION if it exists.
83582         * modules/vasprintf: Likewise.
83583         * modules/verror: Likewise.
83584         * modules/xprintf: Likewise.
83585         * modules/xvasprintf: Likewise.
83587 2007-10-27  Ben Pfaff  <blp@gnu.org>
83589         * lib/math.in.h: Define isfinite macro and prototypes for
83590         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83591         implementations.
83592         * m4/math_h.m4: New substitutions for isfinite module.
83593         * lib/isfinite.c: New file.
83594         * m4/isfinite.m4: New file.
83595         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83596         * modules/isfinite: New file.
83597         * modules/isfinite-tests: New file.
83598         * tests/tests-isfinite.c: New file.
83599         * doc/functions/isfinite.texi: Mention isfinite module.
83600         * MODULES.html.sh: Mention new module.
83602 2007-10-27  Ben Pfaff  <blp@gnu.org>
83604         Ralf Wildenhues reported that Tru64 4.0D declares the round
83605         functions but does not have definitions.
83606         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83607         cannot be found in any library, set the output variable to
83608         "missing" instead of "".
83609         * m4/round.m4: Also use our substitute if we cannot find round in
83610         any library, even if it is declared.
83611         * m4/roundf.m4: Likewise for roundf.
83612         * m4/roundl.m4: Likewise for roundl.
83613         * lib/math.in.h: Undefine roundf, round, roundl before defining
83614         their replacements, to allow for hypothetical systems where these
83615         may be defined as macros but not available in libraries.
83617 2007-10-27  Bruno Haible  <bruno@clisp.org>
83619         * doc/gnulib.texi: Invoke @firstparagraphindent.
83620         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83621         changes in gnulib.
83622         (Source changes): New section.
83624 2007-10-26  Bruno Haible  <bruno@clisp.org>
83626         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83627         borrowed from autoconf.
83629 2007-10-26  Bruno Haible  <bruno@clisp.org>
83631         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83632         strerror returned the empty string. Needed on HP-UX 11.00.
83634 2007-10-24  Micah Cowan  <micah@cowan.name>
83636         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83637         * build-aux/bootstrap: Remove support for now-unnecessary option,
83638         --cvs-user, and envvars CVS_USER, CVS_RSH.
83640 2007-10-24  Jim Meyering  <meyering@redhat.com>
83642         Avoid diagnostics from sha1sum when there is no cached checksum.
83643         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83644         if the po.s1 file hasn't been created yet.
83646         * build-aux/bootstrap: Sync from coreutils:
83647         2007-10-24  Jim Meyering  <meyering@redhat.com>
83648         Get gnulib from the git repository, not from an obsolete cvs one.
83649         * build-aux/bootstrap: Suggestion from Micah Cowan.
83650         2007-10-04  Jim Meyering  <jim@meyering.net>
83651         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83652         (update_po_files): Work also when there are no .po files in po/.
83654 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83656         * README: Append ".git" to git and cg examples.
83657         Problem reported by Benoit Sigoure.
83659 2007-10-23  Micah Cowan  <micah@cowan.name>
83661         * users.txt: Add wget.
83663 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83665         Fix linking of some unistdio tests on FreeBSD.
83666         * modules/unistdio/u16-vsnprintf-tests
83667         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83668         * modules/unistdio/u16-vsprintf-tests
83669         (test_u16_vsnprintf1_LDADD): Likewise.
83670         * modules/unistdio/u32-vsnprintf-tests
83671         (test_u32_vsnprintf1_LDADD): Likewise.
83672         * modules/unistdio/u32-vsprintf-tests
83673         (test_u32_vsprintf1_LDADD): Likewise.
83674         * modules/unistdio/u8-vsnprintf-tests
83675         (test_u8_vsnprintf1_LDADD): Likewise.
83676         * modules/unistdio/u8-vsprintf-tests
83677         (test_u8_vsprintf1_LDADD): Likewise.
83678         * modules/unistdio/ulc-vsnprintf-tests
83679         (test_ulc_vsnprintf1_LDADD): Likewise.
83680         * modules/unistdio/ulc-vsprintf-tests
83681         (test_ulc_vsprintf1_LDADD): Likewise.
83683         Fix linking of some uniconv tests on FreeBSD.
83684         * modules/uniconv/u16-conv-from-enc-tests
83685         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83686         * modules/uniconv/u16-conv-to-enc-tests
83687         (test_u16_conv_to_enc_LDADD): Likewise.
83688         * modules/uniconv/u16-strconv-from-enc-tests
83689         (test_u16_strconv_from_enc_LDADD): Likewise.
83690         * modules/uniconv/u16-strconv-to-enc-tests
83691         (test_u16_strconv_to_enc_LDADD): Likewise.
83692         * modules/uniconv/u32-conv-from-enc-tests
83693         (test_u32_conv_from_enc_LDADD): Likewise.
83694         * modules/uniconv/u32-conv-to-enc-tests
83695         (test_u32_conv_to_enc_LDADD): Likewise.
83696         * modules/uniconv/u32-strconv-from-enc-tests
83697         (test_u32_strconv_from_enc_LDADD): Likewise.
83698         * modules/uniconv/u32-strconv-to-enc-tests
83699         (test_u32_strconv_to_enc_LDADD): Likewise.
83700         * modules/uniconv/u8-conv-from-enc-tests
83701         (test_u8_conv_from_enc_LDADD): Likewise.
83702         * modules/uniconv/u8-conv-to-enc-tests
83703         (test_u8_conv_to_enc_LDADD): Likewise.
83704         * modules/uniconv/u8-strconv-from-enc-tests
83705         (test_u8_strconv_from_enc_LDADD): Likewise.
83706         * modules/uniconv/u8-strconv-to-enc-tests
83707         (test_u8_strconv_to_enc_LDADD): Likewise.
83709 2007-10-22  Bruno Haible  <bruno@clisp.org>
83711         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83712         size.
83714 2007-10-22  Eric Blake  <ebb9@byu.net>
83716         Tweak x*printf documentation.
83717         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83718         variable name and comments.
83719         Suggested by Bruno Haible.
83721 2007-10-22  Bruno Haible  <bruno@clisp.org>
83723         * lib/acl.c (copy_acl): Fix file name in comment.
83725 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83727         Fix Tru64 problem with stdbool.h.
83728         * lib/stdbool.in.h (false, true):
83729         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83730         Don't declare as an enum in this situation; it runs afoul of Tru64.
83731         Problem reported by Steven M. Schweda in
83732         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83734 2007-10-22  Eric Blake  <ebb9@byu.net>
83736         Also wrap vf?printf.
83737         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83738         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83739         (xvprintf, xvfprintf): New functions.
83741 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83743         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83744         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83746         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83747         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83749 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83751         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83752         by Bruno Haible.
83754 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83756         * lib/getloadavg.c
83757         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83758         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83760         * tests/test-i-ring.c: Work for C89.
83762 2007-10-22  Bruno Haible  <bruno@clisp.org>
83764         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83765         -1u, in preprocessor expression, so that we don't test for the bug
83766         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83767         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83769 2007-10-22  Eric Blake  <ebb9@byu.net>
83771         * tests/test-yesno.sh: Silence stderr during test.
83773 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83775         * modules/crypto/gc-camellia: New file.
83777         * m4/gc-camellia.m4: New file.
83779         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83781         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83783 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83785         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83786         --help to stdout.  Reported by sms@antinode.org (Steven
83787         M. Schweda).
83789 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83791         * users.txt: Fix link to libksba.
83793 2007-10-21  Ben Pfaff  <blp@gnu.org>
83795         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83796         round.c roundf implementation that depends on floorf and ceilf to
83797         be tested unconditionally.
83799 2007-10-21  Ben Pfaff  <blp@gnu.org>
83801         * m4/check-libm-func.m4: Removed.
83802         * m4/check-math-lib.m4: New file.
83803         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83804         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83805         definition and lack of AC_LIBOBJ([roundf]).
83806         * m4/roundl.m4: Ditto, and similarly for roundl.
83807         * modules/round: Reference new m4 file.
83808         * modules/roundf: Ditto.
83809         * modules/roundl: Ditto.
83810         * tests/test-round2.c (main): Use ROUND instead of round.
83811         Bug report from Bruno Haible.
83813 2007-10-21  Bruno Haible  <bruno@clisp.org>
83815         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83816         context.
83818 2007-10-21  Bruno Haible  <bruno@clisp.org>
83820         * tests/test-wcwidth.c (main): Allow negative result for some control
83821         characters.
83823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83824         Needed on OSF/1 5.1.
83826 2007-10-21  Bruno Haible  <bruno@clisp.org>
83828         * tests/test-floorf1.c: Include isnanf.h.
83829         (main): Use isnanf() instead of isnan().
83830         * tests/test-ceilf1.c: Include isnanf.h.
83831         (main): Use isnanf() instead of isnan().
83832         * tests/test-truncf1.c: Include isnanf.h.
83833         (main): Use isnanf() instead of isnan().
83834         * tests/test-roundf1.c: Include isnanf.h.
83835         (main): Use isnanf() instead of isnan().
83837 2007-10-21  Eric Blake  <ebb9@byu.net>
83839         * users.txt: Update URL for m4.
83841 2007-10-21  Bruno Haible  <bruno@clisp.org>
83843         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83845 2007-10-21  Bruno Haible  <bruno@clisp.org>
83847         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83848         Git's management files if the CVS files are not present.
83850 2007-10-20  Bruno Haible  <bruno@clisp.org>
83852         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83853         gcc-3.4.x.
83855 2007-10-20  Ben Pfaff  <blp@gnu.org>
83857         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83858         implementations.
83859         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83860         * lib/round.c: New file.
83861         * lib/roundf.c: New file.
83862         * lib/roundl.c: New file.
83863         * m4/round.m4: New file.
83864         * m4/roundf.m4: New file.
83865         * m4/roundl.m4: New file.
83866         * m4/check-libm-func-m4: New file.
83867         * modules/math: Replace round, roundf, roundl related @VARS@ in
83868         math.in.h.
83869         * modules/round: New file.
83870         * modules/round-tests: New file.
83871         * modules/roundf: New file.
83872         * modules/roundf-tests: New file.
83873         * modules/roundl: New file.
83874         * modules/roundl-tests: New file.
83875         * tests/test-round1.c: New file.
83876         * tests/test-round2.c: New file.
83877         * tests/test-roundf1.c: New file.
83878         * tests/test-roundf2.c: New file.
83879         * tests/test-roundl.c: New file.
83880         * doc/functions/round.texi: Mention round module.
83881         * doc/functions/roundf.texi: Mention roundf module.
83882         * doc/functions/roundl.texi: Mention roundl module.
83883         * MODULES.html.sh: Mention new modules.
83884         Thanks to Bruno Haible for suggestions.
83886 2007-10-20  Jim Meyering  <meyering@redhat.com>
83888         * lib/xprintf.c: Include <config.h> unconditionally.
83890         Change xprintf's license to GPL.
83891         * modules/xprintf (License): s/LGPL/GPL/, since this module
83892         depends on modules (exit and exitfail) which are GPL.
83893         Suggestion from Bruno Haible.
83895         xprintf fixes.
83896         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
83897         Use a clearer diagnostic.
83898         Patch from Bruno Haible.
83900 2007-10-20  Bruno Haible  <bruno@clisp.org>
83902         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
83903         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
83904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83906 2007-10-20  Bruno Haible  <bruno@clisp.org>
83908         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
83909         precision in the comparison result > x - 1 or similar.
83910         * tests/test-ceilf2.c (correct_result_p): Likewise.
83911         * tests/test-truncf2.c (correct_result_p): Likewise.
83912         * tests/test-trunc2.c (correct_result_p): Likewise.
83913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83915 2007-10-20  Bruno Haible  <bruno@clisp.org>
83917         * modules/ceil: New file.
83918         * m4/ceil.m4: New file.
83919         * doc/functions/ceil.texi: Mention the 'ceil' module.
83921 2007-10-20  Bruno Haible  <bruno@clisp.org>
83923         * modules/floor: New file.
83924         * m4/floor.m4: New file.
83925         * doc/functions/floor.texi: Mention the 'floor' module.
83927 2007-10-20  Bruno Haible  <bruno@clisp.org>
83929         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
83930         of %a.
83931         * modules/floorf-tests (Depends-on): Likewise.
83932         * modules/truncf-tests (Depends-on): Likewise.
83933         * modules/trunc-tests (Depends-on): Likewise.
83934         Reported by Ben Pfaff.
83936 2007-10-19  Jim Meyering  <meyering@redhat.com>
83938         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
83939         Don't bother testing specific errno values.  Just test ferror.
83941         New module: xprintf
83942         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
83944 2007-10-19  Bruno Haible  <bruno@clisp.org>
83946         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
83947         syntax.
83948         * modules/javaexec (Makefile.am): Likewise.
83949         * modules/relocatable-prog (Makefile.am): Likewise.
83950         Suggested by Jim Meyering.
83952 2007-10-18  Bruno Haible  <bruno@clisp.org>
83954         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
83955         Reported by Jim Meyering.
83957 2007-10-18  Eric Blake  <ebb9@byu.net>
83959         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
83961 2007-10-18  Bruno Haible  <bruno@clisp.org>
83963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
83964         the format string into writable memory. Needed in Fortify conditions.
83966 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
83967             Bruno Haible  <bruno@clisp.org>
83969         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
83970         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
83971         * modules/trim (Depends-on): Add mbchar.
83972         (configure.ac): Add gl_FUNC_MBRTOWC.
83973         (Makefile.am): Augment lib_SOURCES.
83975 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83977         Modify glob.c to use fstatat and dirfd, to simplify it.
83978         Suggested by Eric Blake.
83979         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
83980         Don't include <stdbool.h>; not used.
83981         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
83982         (link_exists_p): Simplify implementation, since we can now assume
83983         dirfd and fstatat.
83984         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
83986 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83988         * gnulib-tool (func_get_dependencies): Fix sed script to
83989         match only tests.
83991 2007-10-17  Bruno Haible  <bruno@clisp.org>
83993         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
83994         allow locale names without encoding suffix.
83995         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83998 2007-10-16  Bruno Haible  <bruno@clisp.org>
84000         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84001         * lib/getgroups.c (getgroups): Likewise.
84002         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84004 2007-10-16  Bruno Haible  <bruno@clisp.org>
84006         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84007         * modules/malloc-posix (License): Likewise.
84008         * modules/realloc-posix (License): Likewise.
84009         * modules/calloc-posix (License): Likewise.
84010         * modules/intprops (License): Change from GPL to LGPL, with
84011         Paul Eggert's approval.
84013 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84015         Merge glibc changes into lib/glob.c.
84017         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84018         2007-10-15 04:59:03 UTC.  Here are the changes:
84020         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84022         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84024         * lib/glob.c: Add some branch prediction throughout.
84026         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84028         [BZ #5103]
84029         * lib/glob.c (glob): Recognize patterns starting \/.
84031         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84033         [BZ #3996]
84034         * lib/glob.c (attribute_hidden): Define if not defined.
84035         (glob): Unescape dirname, filename or username when needed and not
84036         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84037         is NULL.  Handle unescaped [ in pattern without closing ].
84038         Don't pass GLOB_CHECK down to recursive glob for directories.
84039         (__glob_pattern_type): New function.
84040         (__glob_pattern_p): Implement using __glob_pattern_type.
84041         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84042         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84043         Remove unreachable code.
84045         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84047         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84048         explain why there are no leaks.
84050         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84052         [BZ #3253]
84053         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84054         time, rather allocate increasingly bigger arrays of pointers, if
84055         possible with alloca, if too large with malloc.
84057 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84059         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84060         Problem reported by H.Merijn Brand in
84061         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84062         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84063         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84065 2007-10-15  Bruno Haible  <bruno@clisp.org>
84067         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84068         with explicit rpl_ prefix.
84069         * lib/fopen.c (fopen): Likewise.
84070         * lib/freopen.c (freopen): Likewise.
84071         * lib/iconv.c (iconv): Likewise.
84072         * lib/iconv_close.c (iconv_close): Likewise.
84074 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84076         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84078 2007-10-15  Bruno Haible  <bruno@clisp.org>
84080         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84081         <stddef.h> instead of <stdlib.h> since we only need NULL.
84082         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84084 2007-10-15  Bruno Haible  <bruno@clisp.org>
84086         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84087         Replace paragraph talking about LIBOBJS.
84088         Reported by Colin Watson <cjwatson@debian.org>.
84090 2007-10-15  Bruno Haible  <bruno@clisp.org>
84092         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84093         <stdlib.h> before using NULL.
84095 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84097         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84098         Reported by Albert Chin <china@thewrittenword.com>.
84100 2007-10-14  Bruno Haible  <bruno@clisp.org>
84102         * modules/iconv_open-utf-tests: New file.
84103         * tests/test-iconv-utf.c: New file.
84105         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84106         * modules/iconv_open-utf: New file.
84107         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84108         (iconv, iconv_close): New declarations.
84109         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84110         be defined.
84111         (iconv_open): Add special handling of conversion between UTF-8 and
84112         UTF-{16,32}{BE,LE}.
84113         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84114         * lib/iconv_close.c: New file.
84115         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84116         gl_FUNC_ICONV_OPEN.
84117         (gl_FUNC_ICONV_OPEN): Use it.
84118         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84119         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84120         and REPLACE_ICONV_UTF.
84121         * modules/iconv_open (Depends-on): Add c-strcase.
84122         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84123         ICONV_CONST.
84124         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84126 2007-10-13  Albert Chin  <china@thewrittenword.com>
84127             Bruno Haible  <bruno@clisp.org>
84129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84130         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84132 2007-10-13  Bruno Haible  <bruno@clisp.org>
84134         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84135         defined, use the ISO C99 inline semantics.
84136         * lib/argp.h (ARGP_EI): Likewise.
84138 2007-10-13  Bruno Haible  <bruno@clisp.org>
84140         Handle 'inline' change in gcc 4.3.0.
84141         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84142         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84143         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84144         argp_fmtstream_point): Disable 'extern' declaration if the function
84145         definition is going to be provided inline.
84146         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84147         semantics, not the ISO C99 inline semantics.
84148         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84149         'extern' declaration if the function definition is going to be provided
84150         inline.
84151         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84152         the GNU C inline semantics, not the ISO C99 inline semantics. With
84153         GCC 4.2, avoid a warning.
84155 2007-10-13  Bruno Haible  <bruno@clisp.org>
84157         * lib/freading.h (freading): Enable the use of __freading for
84158         glibc >= 2.7.
84159         * lib/freading.c (freading): Likewise.
84161 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84163         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84164         "warning: C99 inline functions are not supported; using GNU89".
84166 2007-10-12  Bruno Haible  <bruno@clisp.org>
84168         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84169         of 2.
84170         * tests/test-ceilf2.c: New file.
84171         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84173         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84174         * modules/ceilf-tests: Update.
84176 2007-10-12  Bruno Haible  <bruno@clisp.org>
84178         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84179         of 2.
84180         * tests/test-floorf2.c: New file.
84181         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84183         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84184         * modules/floorf-tests: Update.
84186 2007-10-12  Bruno Haible  <bruno@clisp.org>
84188         * tests/test-trunc2.c: New file.
84189         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84191         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84192         * modules/trunc-tests: Update.
84194 2007-10-12  Bruno Haible  <bruno@clisp.org>
84196         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84197         of 2.
84198         * tests/test-truncf2.c: New file.
84199         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84201         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84202         * modules/truncf-tests: Update.
84204 2007-10-11  Eric Blake  <ebb9@byu.net>
84206         Don't claim strerror is broken on Interix.
84207         * doc/functions/strerror.texi (strerror): Known broken systems are
84208         now Solaris 8, and not Interix.
84209         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84210         Interix on cross-compile.
84211         Reported by Martin Koeppe in
84212         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84214 2007-10-11  Bruno Haible  <bruno@clisp.org>
84216         * modules/i-ring-tests: New file.
84217         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84218         instead of assert.
84220 2007-10-11  Bruno Haible  <bruno@clisp.org>
84222         * modules/filenamecat-tests: New file.
84223         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84224         * lib/filenamecat.c: Remove test code.
84226 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84228         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84230         * lib/strerror.c: Include <string.h> always, to test interface,
84231         and to remove the need for the dummy.
84232         Include intprops.h to compute width instead of doing it ourselves
84233         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84234         (strerror): Define it to return NULL if there's no system strerror.
84235         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84236         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84237         ancient pre-strerror Unix systems well any more.  Saying "unknown
84238         system error" is enough.
84239         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84240         simpler strerror.c implementation.
84241         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84242         Simplify the tests to reflect the simpler strerror implementation.
84243         * modules/strerror (Depends-on): Add intprops.
84245 2007-10-09  Eric Blake  <ebb9@byu.net>
84247         Silence test-fpending.
84248         * modules/fpending-tests (Files): Add wrapper script.
84249         * tests/test-fpending.sh: New file.
84251 2007-10-09  Bruno Haible  <bruno@clisp.org>
84253         * MODULES.html.sh (func_module): Don't create a hyperlink for
84254         function names like 'printf_frexp'.
84255         (Misc): Add crc, memxor.
84256         (Characteristics of floating types): New section.
84257         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84258         isnanf-nolibm, signbit, trunc, truncf, truncl.
84259         (Enhancements for ISO C 99 functions): New subsection Input/output.
84260         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84261         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84262         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84263         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84264         (Enhancements for POSIX:2001 functions): Add chdir-long.
84265         (File system functions): Add areadlink, chdir-safer, read-file.
84266         Remove cycle-check.
84267         (File system as inode set): New section.
84268         (Date and time): Add gethrxtime.
84269         (Multithreading): Add openmp.
84270         (Internationalization functions): Add localename.
84271         (Unicode string functions): Add unistr/u*-mbsnlen.
84272         (Support for maintaining and releasing projects): Add git-version-gen.
84273         (Lone files): Remove directories.
84275 2007-10-08  Ben Pfaff  <blp@gnu.org>
84277         * lib/xmalloca.h: Fix typo in comment.
84279 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84281         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84282         when avoiding problems with integer overflow.  Use a portable test
84283         instead.
84285 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84287         * modules/dummy (License): Change to LGPLv2+.
84288         * modules/float (License): Likewise
84289         * modules/realloc (License): Likewise
84290         * modules/stdlib (License): Likewise
84292 2007-10-07  Bruno Haible  <bruno@clisp.org>
84294         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84295         * floor.c (TWO_MANT_DIG): Likewise.
84296         * ceil.c (TWO_MANT_DIG): Likewise.
84297         Reported by Ben Pfaff.
84299 2007-10-07  Bruno Haible  <bruno@clisp.org>
84301         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84302         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84303         * lib/frexp.c (FUNC): Likewise.
84304         * lib/printf-frexp.h (printf_frexp): Likewise.
84305         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84306         * lib/printf-frexp.c (FUNC): Likewise.
84307         Suggested by Jim Meyering.
84309 2007-10-07  Jim Meyering  <meyering@redhat.com>
84311         Make xnanosleep's integer overflow test more robust.
84312         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84313         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84315 2007-10-07  Bruno Haible  <bruno@clisp.org>
84317         * NEWS: Mention the license change.
84319         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84320         abbreviations in the modules files.
84322         Change copyright notice from GPLv2+ to GPLv3+.
84323         * README: Change copyright notice.
84324         * MODULES.html.sh: Likewise.
84325         * build-aux/bootstrap.conf: Likewise.
84326         * build-aux/config.libpath: Likewise.
84327         * build-aux/csharpcomp.sh.in: Likewise.
84328         * build-aux/csharpexec.sh.in: Likewise.
84329         * build-aux/install-reloc: Likewise.
84330         * build-aux/javacomp.sh.in: Likewise.
84331         * build-aux/javaexec.sh.in: Likewise.
84332         * build-aux/ldd.sh.in: Likewise.
84333         * build-aux/reloc-ldflags: Likewise.
84334         * build-aux/relocatable.sh.in: Likewise.
84335         * build-aux/x-to-1.in: Likewise.
84336         * check-module: Likewise.
84337         * config/srclistvars.sh: Likewise.
84338         * gnulib-tool: Likewise.
84339         * lib/acl-internal.h: Likewise.
84340         * lib/acl.c: Likewise.
84341         * lib/acl.h: Likewise.
84342         * lib/acl_entries.c: Likewise.
84343         * lib/areadlink-with-size.c: Likewise.
84344         * lib/areadlink.c: Likewise.
84345         * lib/areadlink.h: Likewise.
84346         * lib/argmatch.c: Likewise.
84347         * lib/argmatch.h: Likewise.
84348         * lib/argp-ba.c: Likewise.
84349         * lib/argp-eexst.c: Likewise.
84350         * lib/argp-fmtstream.c: Likewise.
84351         * lib/argp-fmtstream.h: Likewise.
84352         * lib/argp-fs-xinl.c: Likewise.
84353         * lib/argp-help.c: Likewise.
84354         * lib/argp-namefrob.h: Likewise.
84355         * lib/argp-parse.c: Likewise.
84356         * lib/argp-pin.c: Likewise.
84357         * lib/argp-pv.c: Likewise.
84358         * lib/argp-pvh.c: Likewise.
84359         * lib/argp-xinl.c: Likewise.
84360         * lib/argp.h: Likewise.
84361         * lib/at-func.c: Likewise.
84362         * lib/atanl.c: Likewise.
84363         * lib/backupfile.c: Likewise.
84364         * lib/backupfile.h: Likewise.
84365         * lib/basename.c: Likewise.
84366         * lib/binary-io.h: Likewise.
84367         * lib/byteswap.in.h: Likewise.
84368         * lib/c-stack.c: Likewise.
84369         * lib/c-stack.h: Likewise.
84370         * lib/c-strcasestr.c: Likewise.
84371         * lib/c-strcasestr.h: Likewise.
84372         * lib/c-strstr.c: Likewise.
84373         * lib/c-strstr.h: Likewise.
84374         * lib/c-strtod.c: Likewise.
84375         * lib/calloc.c: Likewise.
84376         * lib/canon-host.c: Likewise.
84377         * lib/canon-host.h: Likewise.
84378         * lib/canonicalize-lgpl.c: Likewise.
84379         * lib/canonicalize.c: Likewise.
84380         * lib/canonicalize.h: Likewise.
84381         * lib/ceil.c: Likewise.
84382         * lib/ceilf.c: Likewise.
84383         * lib/ceill.c: Likewise.
84384         * lib/chdir-long.c: Likewise.
84385         * lib/chdir-long.h: Likewise.
84386         * lib/chdir-safer.c: Likewise.
84387         * lib/chdir-safer.h: Likewise.
84388         * lib/chown.c: Likewise.
84389         * lib/classpath.c: Likewise.
84390         * lib/classpath.h: Likewise.
84391         * lib/clean-temp.c: Likewise.
84392         * lib/clean-temp.h: Likewise.
84393         * lib/cloexec.c: Likewise.
84394         * lib/close-stream.c: Likewise.
84395         * lib/closein.c: Likewise.
84396         * lib/closein.h: Likewise.
84397         * lib/closeout.c: Likewise.
84398         * lib/closeout.h: Likewise.
84399         * lib/concat-filename.c: Likewise.
84400         * lib/copy-file.c: Likewise.
84401         * lib/copy-file.h: Likewise.
84402         * lib/count-one-bits.h: Likewise.
84403         * lib/crc.c: Likewise.
84404         * lib/crc.h: Likewise.
84405         * lib/creat-safer.c: Likewise.
84406         * lib/csharpcomp.c: Likewise.
84407         * lib/csharpcomp.h: Likewise.
84408         * lib/csharpexec.c: Likewise.
84409         * lib/csharpexec.h: Likewise.
84410         * lib/cycle-check.c: Likewise.
84411         * lib/cycle-check.h: Likewise.
84412         * lib/diacrit.c: Likewise.
84413         * lib/diacrit.h: Likewise.
84414         * lib/diffseq.h: Likewise.
84415         * lib/dirchownmod.c: Likewise.
84416         * lib/dirent.in.h: Likewise.
84417         * lib/dirfd.c: Likewise.
84418         * lib/dirfd.h: Likewise.
84419         * lib/dirname.c: Likewise.
84420         * lib/dirname.h: Likewise.
84421         * lib/dummy.c: Likewise.
84422         * lib/dup-safer.c: Likewise.
84423         * lib/dup2.c: Likewise.
84424         * lib/eealloc.h: Likewise.
84425         * lib/error.c: Likewise.
84426         * lib/error.h: Likewise.
84427         * lib/euidaccess.c: Likewise.
84428         * lib/exclude.c: Likewise.
84429         * lib/exclude.h: Likewise.
84430         * lib/execute.c: Likewise.
84431         * lib/execute.h: Likewise.
84432         * lib/exitfail.c: Likewise.
84433         * lib/exitfail.h: Likewise.
84434         * lib/expl.c: Likewise.
84435         * lib/fatal-signal.c: Likewise.
84436         * lib/fatal-signal.h: Likewise.
84437         * lib/fbufmode.c: Likewise.
84438         * lib/fbufmode.h: Likewise.
84439         * lib/fchdir.c: Likewise.
84440         * lib/fchmodat.c: Likewise.
84441         * lib/fchownat.c: Likewise.
84442         * lib/fcntl--.h: Likewise.
84443         * lib/fcntl-safer.h: Likewise.
84444         * lib/fcntl.in.h: Likewise.
84445         * lib/fd-safer.c: Likewise.
84446         * lib/fflush.c: Likewise.
84447         * lib/file-has-acl.c: Likewise.
84448         * lib/file-set.c: Likewise.
84449         * lib/file-type.c: Likewise.
84450         * lib/file-type.h: Likewise.
84451         * lib/fileblocks.c: Likewise.
84452         * lib/filemode.c: Likewise.
84453         * lib/filemode.h: Likewise.
84454         * lib/filename.h: Likewise.
84455         * lib/filenamecat.c: Likewise.
84456         * lib/filenamecat.h: Likewise.
84457         * lib/findprog.c: Likewise.
84458         * lib/findprog.h: Likewise.
84459         * lib/float.in.h: Likewise.
84460         * lib/floor.c: Likewise.
84461         * lib/floorf.c: Likewise.
84462         * lib/floorl.c: Likewise.
84463         * lib/fopen-safer.c: Likewise.
84464         * lib/fopen.c: Likewise.
84465         * lib/fpending.c: Likewise.
84466         * lib/fpending.h: Likewise.
84467         * lib/fprintf.c: Likewise.
84468         * lib/fprintftime.h: Likewise.
84469         * lib/fpucw.h: Likewise.
84470         * lib/fpurge.c: Likewise.
84471         * lib/fpurge.h: Likewise.
84472         * lib/freadable.c: Likewise.
84473         * lib/freadable.h: Likewise.
84474         * lib/freadahead.c: Likewise.
84475         * lib/freadahead.h: Likewise.
84476         * lib/freading.c: Likewise.
84477         * lib/freading.h: Likewise.
84478         * lib/free.c: Likewise.
84479         * lib/freopen.c: Likewise.
84480         * lib/frexp.c: Likewise.
84481         * lib/frexpl.c: Likewise.
84482         * lib/fseek.c: Likewise.
84483         * lib/fseterr.c: Likewise.
84484         * lib/fseterr.h: Likewise.
84485         * lib/fstatat.c: Likewise.
84486         * lib/fstrcmp.c: Likewise.
84487         * lib/fstrcmp.h: Likewise.
84488         * lib/fsusage.c: Likewise.
84489         * lib/fsusage.h: Likewise.
84490         * lib/ftell.c: Likewise.
84491         * lib/ftello.c: Likewise.
84492         * lib/fts-cycle.c: Likewise.
84493         * lib/fts.c: Likewise.
84494         * lib/fts_.h: Likewise.
84495         * lib/full-read.c: Likewise.
84496         * lib/full-read.h: Likewise.
84497         * lib/full-write.c: Likewise.
84498         * lib/full-write.h: Likewise.
84499         * lib/fwritable.c: Likewise.
84500         * lib/fwritable.h: Likewise.
84501         * lib/fwriteerror.c: Likewise.
84502         * lib/fwriteerror.h: Likewise.
84503         * lib/fwriting.c: Likewise.
84504         * lib/fwriting.h: Likewise.
84505         * lib/gcd.c: Likewise.
84506         * lib/gcd.h: Likewise.
84507         * lib/getcwd.c: Likewise.
84508         * lib/getdate.h: Likewise.
84509         * lib/getdate.y: Likewise.
84510         * lib/getdomainname.c: Likewise.
84511         * lib/getdomainname.h: Likewise.
84512         * lib/getgroups.c: Likewise.
84513         * lib/gethostname.c: Likewise.
84514         * lib/gethrxtime.c: Likewise.
84515         * lib/gethrxtime.h: Likewise.
84516         * lib/getloadavg.c: Likewise.
84517         * lib/getndelim2.c: Likewise.
84518         * lib/getndelim2.h: Likewise.
84519         * lib/getnline.c: Likewise.
84520         * lib/getnline.h: Likewise.
84521         * lib/getopt.c: Likewise.
84522         * lib/getopt.in.h: Likewise.
84523         * lib/getopt1.c: Likewise.
84524         * lib/getopt_int.h: Likewise.
84525         * lib/getpagesize.h: Likewise.
84526         * lib/getsubopt.c: Likewise.
84527         * lib/gettime.c: Likewise.
84528         * lib/getugroups.c: Likewise.
84529         * lib/getugroups.h: Likewise.
84530         * lib/getusershell.c: Likewise.
84531         * lib/gl_anyavltree_list1.h: Likewise.
84532         * lib/gl_anyavltree_list2.h: Likewise.
84533         * lib/gl_anyhash_list1.h: Likewise.
84534         * lib/gl_anyhash_list2.h: Likewise.
84535         * lib/gl_anylinked_list1.h: Likewise.
84536         * lib/gl_anylinked_list2.h: Likewise.
84537         * lib/gl_anyrbtree_list1.h: Likewise.
84538         * lib/gl_anyrbtree_list2.h: Likewise.
84539         * lib/gl_anytree_list1.h: Likewise.
84540         * lib/gl_anytree_list2.h: Likewise.
84541         * lib/gl_anytree_oset.h: Likewise.
84542         * lib/gl_anytreehash_list1.h: Likewise.
84543         * lib/gl_anytreehash_list2.h: Likewise.
84544         * lib/gl_array_list.c: Likewise.
84545         * lib/gl_array_list.h: Likewise.
84546         * lib/gl_array_oset.c: Likewise.
84547         * lib/gl_array_oset.h: Likewise.
84548         * lib/gl_avltree_list.c: Likewise.
84549         * lib/gl_avltree_list.h: Likewise.
84550         * lib/gl_avltree_oset.c: Likewise.
84551         * lib/gl_avltree_oset.h: Likewise.
84552         * lib/gl_avltreehash_list.c: Likewise.
84553         * lib/gl_avltreehash_list.h: Likewise.
84554         * lib/gl_carray_list.c: Likewise.
84555         * lib/gl_carray_list.h: Likewise.
84556         * lib/gl_linked_list.c: Likewise.
84557         * lib/gl_linked_list.h: Likewise.
84558         * lib/gl_linkedhash_list.c: Likewise.
84559         * lib/gl_linkedhash_list.h: Likewise.
84560         * lib/gl_list.c: Likewise.
84561         * lib/gl_list.h: Likewise.
84562         * lib/gl_oset.c: Likewise.
84563         * lib/gl_oset.h: Likewise.
84564         * lib/gl_rbtree_list.c: Likewise.
84565         * lib/gl_rbtree_list.h: Likewise.
84566         * lib/gl_rbtree_oset.c: Likewise.
84567         * lib/gl_rbtree_oset.h: Likewise.
84568         * lib/gl_rbtreehash_list.c: Likewise.
84569         * lib/gl_rbtreehash_list.h: Likewise.
84570         * lib/gl_sublist.c: Likewise.
84571         * lib/gl_sublist.h: Likewise.
84572         * lib/group-member.c: Likewise.
84573         * lib/group-member.h: Likewise.
84574         * lib/hard-locale.c: Likewise.
84575         * lib/hard-locale.h: Likewise.
84576         * lib/hash-pjw.c: Likewise.
84577         * lib/hash-pjw.h: Likewise.
84578         * lib/hash-triple.c: Likewise.
84579         * lib/hash.c: Likewise.
84580         * lib/hash.h: Likewise.
84581         * lib/human.c: Likewise.
84582         * lib/human.h: Likewise.
84583         * lib/i-ring.c: Likewise.
84584         * lib/i-ring.h: Likewise.
84585         * lib/idcache.c: Likewise.
84586         * lib/imaxabs.c: Likewise.
84587         * lib/imaxdiv.c: Likewise.
84588         * lib/inet_pton.c: Likewise.
84589         * lib/inet_pton.h: Likewise.
84590         * lib/intprops.h: Likewise.
84591         * lib/inttostr.c: Likewise.
84592         * lib/inttostr.h: Likewise.
84593         * lib/inttypes.in.h: Likewise.
84594         * lib/isapipe.c: Likewise.
84595         * lib/isdir.c: Likewise.
84596         * lib/isnan.c: Likewise.
84597         * lib/isnan.h: Likewise.
84598         * lib/isnanf.c: Likewise.
84599         * lib/isnanf.h: Likewise.
84600         * lib/isnanl-nolibm.h: Likewise.
84601         * lib/isnanl.c: Likewise.
84602         * lib/isnanl.h: Likewise.
84603         * lib/javacomp.c: Likewise.
84604         * lib/javacomp.h: Likewise.
84605         * lib/javaexec.c: Likewise.
84606         * lib/javaexec.h: Likewise.
84607         * lib/javaversion.c: Likewise.
84608         * lib/javaversion.h: Likewise.
84609         * lib/javaversion.java: Likewise.
84610         * lib/lbrkprop.h: Likewise.
84611         * lib/lchmod.h: Likewise.
84612         * lib/lchown.c: Likewise.
84613         * lib/ldexpl.c: Likewise.
84614         * lib/linebreak.c: Likewise.
84615         * lib/linebreak.h: Likewise.
84616         * lib/linebuffer.c: Likewise.
84617         * lib/linebuffer.h: Likewise.
84618         * lib/locale.in.h: Likewise.
84619         * lib/logl.c: Likewise.
84620         * lib/long-options.c: Likewise.
84621         * lib/long-options.h: Likewise.
84622         * lib/lstat.c: Likewise.
84623         * lib/lstat.h: Likewise.
84624         * lib/math.in.h: Likewise.
84625         * lib/mbchar.c: Likewise.
84626         * lib/mbchar.h: Likewise.
84627         * lib/mbfile.h: Likewise.
84628         * lib/mbiter.h: Likewise.
84629         * lib/mbscasecmp.c: Likewise.
84630         * lib/mbscasestr.c: Likewise.
84631         * lib/mbschr.c: Likewise.
84632         * lib/mbscspn.c: Likewise.
84633         * lib/mbslen.c: Likewise.
84634         * lib/mbsncasecmp.c: Likewise.
84635         * lib/mbsnlen.c: Likewise.
84636         * lib/mbspbrk.c: Likewise.
84637         * lib/mbspcasecmp.c: Likewise.
84638         * lib/mbsrchr.c: Likewise.
84639         * lib/mbssep.c: Likewise.
84640         * lib/mbsspn.c: Likewise.
84641         * lib/mbsstr.c: Likewise.
84642         * lib/mbstok_r.c: Likewise.
84643         * lib/mbswidth.c: Likewise.
84644         * lib/mbswidth.h: Likewise.
84645         * lib/mbuiter.h: Likewise.
84646         * lib/memcasecmp.c: Likewise.
84647         * lib/memcasecmp.h: Likewise.
84648         * lib/memchr.c: Likewise.
84649         * lib/memcmp.c: Likewise.
84650         * lib/memcoll.c: Likewise.
84651         * lib/memcoll.h: Likewise.
84652         * lib/memcpy.c: Likewise.
84653         * lib/memrchr.c: Likewise.
84654         * lib/mkancesdirs.c: Likewise.
84655         * lib/mkdir-p.c: Likewise.
84656         * lib/mkdir-p.h: Likewise.
84657         * lib/mkdir.c: Likewise.
84658         * lib/mkdirat.c: Likewise.
84659         * lib/mkdtemp.c: Likewise.
84660         * lib/mkstemp-safer.c: Likewise.
84661         * lib/mkstemp.c: Likewise.
84662         * lib/modechange.c: Likewise.
84663         * lib/modechange.h: Likewise.
84664         * lib/mountlist.c: Likewise.
84665         * lib/mountlist.h: Likewise.
84666         * lib/mpsort.c: Likewise.
84667         * lib/nanosleep.c: Likewise.
84668         * lib/obstack.c: Likewise.
84669         * lib/obstack.h: Likewise.
84670         * lib/open-safer.c: Likewise.
84671         * lib/open.c: Likewise.
84672         * lib/openat-die.c: Likewise.
84673         * lib/openat-priv.h: Likewise.
84674         * lib/openat-proc.c: Likewise.
84675         * lib/openat.c: Likewise.
84676         * lib/openat.h: Likewise.
84677         * lib/pagealign_alloc.c: Likewise.
84678         * lib/pagealign_alloc.h: Likewise.
84679         * lib/physmem.c: Likewise.
84680         * lib/physmem.h: Likewise.
84681         * lib/pipe-safer.c: Likewise.
84682         * lib/pipe.c: Likewise.
84683         * lib/pipe.h: Likewise.
84684         * lib/posixtm.c: Likewise.
84685         * lib/posixtm.h: Likewise.
84686         * lib/posixver.c: Likewise.
84687         * lib/printf-frexp.c: Likewise.
84688         * lib/printf-frexp.h: Likewise.
84689         * lib/printf-frexpl.c: Likewise.
84690         * lib/printf-frexpl.h: Likewise.
84691         * lib/printf.c: Likewise.
84692         * lib/progname.c: Likewise.
84693         * lib/progname.h: Likewise.
84694         * lib/progreloc.c: Likewise.
84695         * lib/putenv.c: Likewise.
84696         * lib/quote.c: Likewise.
84697         * lib/quote.h: Likewise.
84698         * lib/quotearg.c: Likewise.
84699         * lib/quotearg.h: Likewise.
84700         * lib/raise.c: Likewise.
84701         * lib/readline.c: Likewise.
84702         * lib/readline.h: Likewise.
84703         * lib/readlink.c: Likewise.
84704         * lib/readtokens.c: Likewise.
84705         * lib/readtokens.h: Likewise.
84706         * lib/readtokens0.c: Likewise.
84707         * lib/readtokens0.h: Likewise.
84708         * lib/readutmp.c: Likewise.
84709         * lib/readutmp.h: Likewise.
84710         * lib/realloc.c: Likewise.
84711         * lib/relocwrapper.c: Likewise.
84712         * lib/rename-dest-slash.c: Likewise.
84713         * lib/rename.c: Likewise.
84714         * lib/rmdir.c: Likewise.
84715         * lib/rpmatch.c: Likewise.
84716         * lib/safe-read.c: Likewise.
84717         * lib/safe-read.h: Likewise.
84718         * lib/safe-write.c: Likewise.
84719         * lib/safe-write.h: Likewise.
84720         * lib/same-inode.h: Likewise.
84721         * lib/same.c: Likewise.
84722         * lib/same.h: Likewise.
84723         * lib/save-cwd.c: Likewise.
84724         * lib/save-cwd.h: Likewise.
84725         * lib/savedir.c: Likewise.
84726         * lib/savedir.h: Likewise.
84727         * lib/savewd.c: Likewise.
84728         * lib/savewd.h: Likewise.
84729         * lib/search.in.h: Likewise.
84730         * lib/setenv.c: Likewise.
84731         * lib/setenv.h: Likewise.
84732         * lib/settime.c: Likewise.
84733         * lib/sh-quote.c: Likewise.
84734         * lib/sh-quote.h: Likewise.
84735         * lib/sig2str.c: Likewise.
84736         * lib/sig2str.h: Likewise.
84737         * lib/signal.in.h: Likewise.
84738         * lib/signbitd.c: Likewise.
84739         * lib/signbitf.c: Likewise.
84740         * lib/signbitl.c: Likewise.
84741         * lib/sigprocmask.c: Likewise.
84742         * lib/sincosl.c: Likewise.
84743         * lib/sleep.c: Likewise.
84744         * lib/sprintf.c: Likewise.
84745         * lib/sqrtl.c: Likewise.
84746         * lib/stat-time.h: Likewise.
84747         * lib/stdio--.h: Likewise.
84748         * lib/stdio-safer.h: Likewise.
84749         * lib/stdlib--.h: Likewise.
84750         * lib/stdlib-safer.h: Likewise.
84751         * lib/stdlib.in.h: Likewise.
84752         * lib/stpcpy.c: Likewise.
84753         * lib/stpncpy.c: Likewise.
84754         * lib/strchrnul.c: Likewise.
84755         * lib/strcspn.c: Likewise.
84756         * lib/strerror.c: Likewise.
84757         * lib/strftime.c: Likewise.
84758         * lib/strftime.h: Likewise.
84759         * lib/striconveh.c: Likewise.
84760         * lib/striconveh.h: Likewise.
84761         * lib/striconveha.c: Likewise.
84762         * lib/striconveha.h: Likewise.
84763         * lib/stripslash.c: Likewise.
84764         * lib/strnlen1.c: Likewise.
84765         * lib/strnlen1.h: Likewise.
84766         * lib/strtod.c: Likewise.
84767         * lib/strtoimax.c: Likewise.
84768         * lib/strtok_r.c: Likewise.
84769         * lib/strtol.c: Likewise.
84770         * lib/strtoll.c: Likewise.
84771         * lib/strtoul.c: Likewise.
84772         * lib/strtoull.c: Likewise.
84773         * lib/sysexits.in.h: Likewise.
84774         * lib/tempname.c: Likewise.
84775         * lib/tempname.h: Likewise.
84776         * lib/timespec.h: Likewise.
84777         * lib/tls.c: Likewise.
84778         * lib/tls.h: Likewise.
84779         * lib/tmpdir.c: Likewise.
84780         * lib/tmpdir.h: Likewise.
84781         * lib/tmpfile-safer.c: Likewise.
84782         * lib/tmpfile.c: Likewise.
84783         * lib/trigl.c: Likewise.
84784         * lib/trigl.h: Likewise.
84785         * lib/trim.c: Likewise.
84786         * lib/trim.h: Likewise.
84787         * lib/trunc.c: Likewise.
84788         * lib/truncf.c: Likewise.
84789         * lib/truncl.c: Likewise.
84790         * lib/tsearch.c: Likewise.
84791         * lib/unicodeio.c: Likewise.
84792         * lib/unicodeio.h: Likewise.
84793         * lib/unistd--.h: Likewise.
84794         * lib/unistd-safer.h: Likewise.
84795         * lib/unistdio/ulc-fprintf.c: Likewise.
84796         * lib/unistdio/ulc-vfprintf.c: Likewise.
84797         * lib/unlinkdir.c: Likewise.
84798         * lib/unlinkdir.h: Likewise.
84799         * lib/unlocked-io.h: Likewise.
84800         * lib/unsetenv.c: Likewise.
84801         * lib/userspec.c: Likewise.
84802         * lib/utime.c: Likewise.
84803         * lib/utimecmp.c: Likewise.
84804         * lib/utimecmp.h: Likewise.
84805         * lib/utimens.c: Likewise.
84806         * lib/verify.h: Likewise.
84807         * lib/verror.c: Likewise.
84808         * lib/verror.h: Likewise.
84809         * lib/version-etc-fsf.c: Likewise.
84810         * lib/version-etc.c: Likewise.
84811         * lib/version-etc.h: Likewise.
84812         * lib/vfprintf.c: Likewise.
84813         * lib/vprintf.c: Likewise.
84814         * lib/vsprintf.c: Likewise.
84815         * lib/w32spawn.h: Likewise.
84816         * lib/wait-process.c: Likewise.
84817         * lib/wait-process.h: Likewise.
84818         * lib/wcwidth.c: Likewise.
84819         * lib/write-any-file.c: Likewise.
84820         * lib/xalloc-die.c: Likewise.
84821         * lib/xalloc.h: Likewise.
84822         * lib/xasprintf.c: Likewise.
84823         * lib/xgetcwd.c: Likewise.
84824         * lib/xgetcwd.h: Likewise.
84825         * lib/xgetdomainname.c: Likewise.
84826         * lib/xgetdomainname.h: Likewise.
84827         * lib/xgethostname.c: Likewise.
84828         * lib/xmalloc.c: Likewise.
84829         * lib/xmalloca.c: Likewise.
84830         * lib/xmalloca.h: Likewise.
84831         * lib/xmemcoll.c: Likewise.
84832         * lib/xnanosleep.c: Likewise.
84833         * lib/xreadlink.c: Likewise.
84834         * lib/xreadlink.h: Likewise.
84835         * lib/xsetenv.c: Likewise.
84836         * lib/xsetenv.h: Likewise.
84837         * lib/xstriconv.c: Likewise.
84838         * lib/xstriconv.h: Likewise.
84839         * lib/xstrndup.c: Likewise.
84840         * lib/xstrndup.h: Likewise.
84841         * lib/xstrtod.c: Likewise.
84842         * lib/xstrtod.h: Likewise.
84843         * lib/xstrtol-error.c: Likewise.
84844         * lib/xstrtol.c: Likewise.
84845         * lib/xstrtol.h: Likewise.
84846         * lib/xtime.h: Likewise.
84847         * lib/xvasprintf.c: Likewise.
84848         * lib/xvasprintf.h: Likewise.
84849         * lib/yesno.c: Likewise.
84850         * lib/yesno.h: Likewise.
84851         * posix-modules: Likewise.
84852         * tests/test-alloca-opt.c: Likewise.
84853         * tests/test-arcfour.c: Likewise.
84854         * tests/test-arctwo.c: Likewise.
84855         * tests/test-argmatch.c: Likewise.
84856         * tests/test-argp-2.sh: Likewise.
84857         * tests/test-argp.c: Likewise.
84858         * tests/test-arpa_inet.c: Likewise.
84859         * tests/test-array_list.c: Likewise.
84860         * tests/test-array_oset.c: Likewise.
84861         * tests/test-atexit.c: Likewise.
84862         * tests/test-avltree_list.c: Likewise.
84863         * tests/test-avltree_oset.c: Likewise.
84864         * tests/test-avltreehash_list.c: Likewise.
84865         * tests/test-base64.c: Likewise.
84866         * tests/test-binary-io.c: Likewise.
84867         * tests/test-byteswap.c: Likewise.
84868         * tests/test-c-ctype.c: Likewise.
84869         * tests/test-c-strcasecmp.c: Likewise.
84870         * tests/test-c-strcasestr.c: Likewise.
84871         * tests/test-c-strncasecmp.c: Likewise.
84872         * tests/test-c-strstr.c: Likewise.
84873         * tests/test-canonicalize-lgpl.c: Likewise.
84874         * tests/test-canonicalize.c: Likewise.
84875         * tests/test-carray_list.c: Likewise.
84876         * tests/test-ceilf.c: Likewise.
84877         * tests/test-ceill.c: Likewise.
84878         * tests/test-count-one-bits.c: Likewise.
84879         * tests/test-crc.c: Likewise.
84880         * tests/test-dirname.c: Likewise.
84881         * tests/test-fbufmode.c: Likewise.
84882         * tests/test-fcntl.c: Likewise.
84883         * tests/test-fflush.c: Likewise.
84884         * tests/test-floorf.c: Likewise.
84885         * tests/test-floorl.c: Likewise.
84886         * tests/test-fopen.c: Likewise.
84887         * tests/test-fprintf-posix.c: Likewise.
84888         * tests/test-fprintf-posix.h: Likewise.
84889         * tests/test-fpurge.c: Likewise.
84890         * tests/test-freadable.c: Likewise.
84891         * tests/test-freadahead.c: Likewise.
84892         * tests/test-freading.c: Likewise.
84893         * tests/test-freopen.c: Likewise.
84894         * tests/test-frexp.c: Likewise.
84895         * tests/test-frexpl.c: Likewise.
84896         * tests/test-fseek.c: Likewise.
84897         * tests/test-fseeko.c: Likewise.
84898         * tests/test-fseterr.c: Likewise.
84899         * tests/test-fstrcmp.c: Likewise.
84900         * tests/test-ftell.c: Likewise.
84901         * tests/test-ftello.c: Likewise.
84902         * tests/test-fwritable.c: Likewise.
84903         * tests/test-fwriting.c: Likewise.
84904         * tests/test-getaddrinfo.c: Likewise.
84905         * tests/test-getpass.c: Likewise.
84906         * tests/test-gettimeofday.c: Likewise.
84907         * tests/test-hmac-md5.c: Likewise.
84908         * tests/test-hmac-sha1.c: Likewise.
84909         * tests/test-iconv.c: Likewise.
84910         * tests/test-iconvme.c: Likewise.
84911         * tests/test-inttypes.c: Likewise.
84912         * tests/test-isnan.c: Likewise.
84913         * tests/test-isnanf.c: Likewise.
84914         * tests/test-isnanl-nolibm.c: Likewise.
84915         * tests/test-isnanl.c: Likewise.
84916         * tests/test-isnanl.h: Likewise.
84917         * tests/test-ldexpl.c: Likewise.
84918         * tests/test-linked_list.c: Likewise.
84919         * tests/test-linkedhash_list.c: Likewise.
84920         * tests/test-locale.c: Likewise.
84921         * tests/test-localename.c: Likewise.
84922         * tests/test-lock.c: Likewise.
84923         * tests/test-lseek.c: Likewise.
84924         * tests/test-malloca.c: Likewise.
84925         * tests/test-math.c: Likewise.
84926         * tests/test-mbscasecmp.c: Likewise.
84927         * tests/test-mbscasestr1.c: Likewise.
84928         * tests/test-mbscasestr2.c: Likewise.
84929         * tests/test-mbscasestr3.c: Likewise.
84930         * tests/test-mbscasestr4.c: Likewise.
84931         * tests/test-mbschr.c: Likewise.
84932         * tests/test-mbscspn.c: Likewise.
84933         * tests/test-mbsncasecmp.c: Likewise.
84934         * tests/test-mbspbrk.c: Likewise.
84935         * tests/test-mbspcasecmp.c: Likewise.
84936         * tests/test-mbsrchr.c: Likewise.
84937         * tests/test-mbsspn.c: Likewise.
84938         * tests/test-mbsstr1.c: Likewise.
84939         * tests/test-mbsstr2.c: Likewise.
84940         * tests/test-mbsstr3.c: Likewise.
84941         * tests/test-md5.c: Likewise.
84942         * tests/test-memmem.c: Likewise.
84943         * tests/test-netinet_in.c: Likewise.
84944         * tests/test-open.c: Likewise.
84945         * tests/test-printf-frexp.c: Likewise.
84946         * tests/test-printf-frexpl.c: Likewise.
84947         * tests/test-printf-posix.c: Likewise.
84948         * tests/test-printf-posix.h: Likewise.
84949         * tests/test-rbtree_list.c: Likewise.
84950         * tests/test-rbtree_oset.c: Likewise.
84951         * tests/test-rbtreehash_list.c: Likewise.
84952         * tests/test-read-file.c: Likewise.
84953         * tests/test-rijndael.c: Likewise.
84954         * tests/test-search.c: Likewise.
84955         * tests/test-signbit.c: Likewise.
84956         * tests/test-sleep.c: Likewise.
84957         * tests/test-snprintf-posix.c: Likewise.
84958         * tests/test-snprintf-posix.h: Likewise.
84959         * tests/test-snprintf.c: Likewise.
84960         * tests/test-sprintf-posix.c: Likewise.
84961         * tests/test-sprintf-posix.h: Likewise.
84962         * tests/test-stat-time.c: Likewise.
84963         * tests/test-stdbool.c: Likewise.
84964         * tests/test-stdint.c: Likewise.
84965         * tests/test-stdio.c: Likewise.
84966         * tests/test-stdlib.c: Likewise.
84967         * tests/test-stpncpy.c: Likewise.
84968         * tests/test-strcasestr.c: Likewise.
84969         * tests/test-striconv.c: Likewise.
84970         * tests/test-striconveh.c: Likewise.
84971         * tests/test-striconveha.c: Likewise.
84972         * tests/test-string.c: Likewise.
84973         * tests/test-sys_select.c: Likewise.
84974         * tests/test-sys_socket.c: Likewise.
84975         * tests/test-sys_stat.c: Likewise.
84976         * tests/test-sys_time.c: Likewise.
84977         * tests/test-sysexits.c: Likewise.
84978         * tests/test-time.c: Likewise.
84979         * tests/test-tls.c: Likewise.
84980         * tests/test-trunc.c: Likewise.
84981         * tests/test-truncf.c: Likewise.
84982         * tests/test-truncl.c: Likewise.
84983         * tests/test-unistd.c: Likewise.
84984         * tests/test-vasnprintf-posix.c: Likewise.
84985         * tests/test-vasnprintf-posix2.c: Likewise.
84986         * tests/test-vasnprintf.c: Likewise.
84987         * tests/test-vasprintf-posix.c: Likewise.
84988         * tests/test-vasprintf.c: Likewise.
84989         * tests/test-verify.c: Likewise.
84990         * tests/test-vfprintf-posix.c: Likewise.
84991         * tests/test-vprintf-posix.c: Likewise.
84992         * tests/test-vsnprintf-posix.c: Likewise.
84993         * tests/test-vsnprintf.c: Likewise.
84994         * tests/test-vsprintf-posix.c: Likewise.
84995         * tests/test-wchar.c: Likewise.
84996         * tests/test-wctype.c: Likewise.
84997         * tests/test-wcwidth.c: Likewise.
84998         * tests/test-xstrtol.c: Likewise.
84999         * tests/test-xvasprintf.c: Likewise.
85000         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85001         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85002         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85003         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85004         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85005         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85006         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85007         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85009         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85010         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85011         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85012         * tests/uniname/test-uninames.c: Likewise.
85013         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85014         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85015         * tests/unistdio/test-u16-printf1.h: Likewise.
85016         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85017         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85018         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85019         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85020         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85021         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85022         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85023         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85024         * tests/unistdio/test-u32-printf1.h: Likewise.
85025         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85026         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85027         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85028         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85029         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85030         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85031         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85032         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85033         * tests/unistdio/test-u8-printf1.h: Likewise.
85034         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85035         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85036         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85037         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85038         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85039         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85040         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85041         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85042         * tests/unistdio/test-ulc-printf1.h: Likewise.
85043         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85044         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85045         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85046         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85047         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85048         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85049         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85050         * tests/uniwidth/test-u16-width.c: Likewise.
85051         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85052         * tests/uniwidth/test-u32-width.c: Likewise.
85053         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85054         * tests/uniwidth/test-u8-width.c: Likewise.
85055         * tests/uniwidth/test-uc_width.c: Likewise.
85056         * config/srclist-update: Likewise.
85057         (fixlicense): Update to GPLv3+.
85059         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85060         * tests/test-tsearch.c: Change copyright notice.
85062         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85063         * lib/c-strcaseeq.h: Change copyright notice.
85064         * lib/streq.h: Likewise.
85065         * lib/uniconv.h: Likewise.
85066         * lib/uniconv/u-conv-from-enc.h: Likewise.
85067         * lib/uniconv/u-conv-to-enc.h: Likewise.
85068         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85069         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85070         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85071         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85072         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85073         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85074         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85075         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85076         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85077         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85078         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85079         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85080         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85081         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85082         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85083         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85084         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85085         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85086         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85087         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85088         * lib/uniname.h: Likewise.
85089         * lib/uniname/uniname.c: Likewise.
85090         * lib/unistdio.h: Likewise.
85091         * lib/unistdio/u-asnprintf.h: Likewise.
85092         * lib/unistdio/u-asprintf.h: Likewise.
85093         * lib/unistdio/u-printf-args.c: Likewise.
85094         * lib/unistdio/u-printf-args.h: Likewise.
85095         * lib/unistdio/u-printf-parse.h: Likewise.
85096         * lib/unistdio/u-snprintf.h: Likewise.
85097         * lib/unistdio/u-sprintf.h: Likewise.
85098         * lib/unistdio/u-vasprintf.h: Likewise.
85099         * lib/unistdio/u-vsnprintf.h: Likewise.
85100         * lib/unistdio/u-vsprintf.h: Likewise.
85101         * lib/unistdio/u16-asnprintf.c: Likewise.
85102         * lib/unistdio/u16-asprintf.c: Likewise.
85103         * lib/unistdio/u16-printf-parse.c: Likewise.
85104         * lib/unistdio/u16-snprintf.c: Likewise.
85105         * lib/unistdio/u16-sprintf.c: Likewise.
85106         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85107         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85108         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85109         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85110         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85111         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85112         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85113         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85114         * lib/unistdio/u16-vasnprintf.c: Likewise.
85115         * lib/unistdio/u16-vasprintf.c: Likewise.
85116         * lib/unistdio/u16-vsnprintf.c: Likewise.
85117         * lib/unistdio/u16-vsprintf.c: Likewise.
85118         * lib/unistdio/u32-asnprintf.c: Likewise.
85119         * lib/unistdio/u32-asprintf.c: Likewise.
85120         * lib/unistdio/u32-printf-parse.c: Likewise.
85121         * lib/unistdio/u32-snprintf.c: Likewise.
85122         * lib/unistdio/u32-sprintf.c: Likewise.
85123         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85124         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85125         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85126         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85127         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85128         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85129         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85130         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85131         * lib/unistdio/u32-vasnprintf.c: Likewise.
85132         * lib/unistdio/u32-vasprintf.c: Likewise.
85133         * lib/unistdio/u32-vsnprintf.c: Likewise.
85134         * lib/unistdio/u32-vsprintf.c: Likewise.
85135         * lib/unistdio/u8-asnprintf.c: Likewise.
85136         * lib/unistdio/u8-asprintf.c: Likewise.
85137         * lib/unistdio/u8-printf-parse.c: Likewise.
85138         * lib/unistdio/u8-snprintf.c: Likewise.
85139         * lib/unistdio/u8-sprintf.c: Likewise.
85140         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85141         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85142         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85143         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85144         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85145         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85146         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85147         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85148         * lib/unistdio/u8-vasnprintf.c: Likewise.
85149         * lib/unistdio/u8-vasprintf.c: Likewise.
85150         * lib/unistdio/u8-vsnprintf.c: Likewise.
85151         * lib/unistdio/u8-vsprintf.c: Likewise.
85152         * lib/unistdio/ulc-asnprintf.c: Likewise.
85153         * lib/unistdio/ulc-asprintf.c: Likewise.
85154         * lib/unistdio/ulc-printf-parse.c: Likewise.
85155         * lib/unistdio/ulc-snprintf.c: Likewise.
85156         * lib/unistdio/ulc-sprintf.c: Likewise.
85157         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85158         * lib/unistdio/ulc-vasprintf.c: Likewise.
85159         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85160         * lib/unistdio/ulc-vsprintf.c: Likewise.
85161         * lib/unistr.h: Likewise.
85162         * lib/unistr/u-cpy-alloc.h: Likewise.
85163         * lib/unistr/u-cpy.h: Likewise.
85164         * lib/unistr/u-endswith.h: Likewise.
85165         * lib/unistr/u-move.h: Likewise.
85166         * lib/unistr/u-set.h: Likewise.
85167         * lib/unistr/u-startswith.h: Likewise.
85168         * lib/unistr/u-stpcpy.h: Likewise.
85169         * lib/unistr/u-stpncpy.h: Likewise.
85170         * lib/unistr/u-strcat.h: Likewise.
85171         * lib/unistr/u-strcpy.h: Likewise.
85172         * lib/unistr/u-strcspn.h: Likewise.
85173         * lib/unistr/u-strdup.h: Likewise.
85174         * lib/unistr/u-strlen.h: Likewise.
85175         * lib/unistr/u-strncat.h: Likewise.
85176         * lib/unistr/u-strncpy.h: Likewise.
85177         * lib/unistr/u-strnlen.h: Likewise.
85178         * lib/unistr/u-strpbrk.h: Likewise.
85179         * lib/unistr/u-strspn.h: Likewise.
85180         * lib/unistr/u-strstr.h: Likewise.
85181         * lib/unistr/u-strtok.h: Likewise.
85182         * lib/unistr/u16-check.c: Likewise.
85183         * lib/unistr/u16-chr.c: Likewise.
85184         * lib/unistr/u16-cmp.c: Likewise.
85185         * lib/unistr/u16-cpy-alloc.c: Likewise.
85186         * lib/unistr/u16-cpy.c: Likewise.
85187         * lib/unistr/u16-endswith.c: Likewise.
85188         * lib/unistr/u16-mblen.c: Likewise.
85189         * lib/unistr/u16-mbsnlen.c: Likewise.
85190         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85191         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85192         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85193         * lib/unistr/u16-mbtouc.c: Likewise.
85194         * lib/unistr/u16-mbtoucr.c: Likewise.
85195         * lib/unistr/u16-move.c: Likewise.
85196         * lib/unistr/u16-next.c: Likewise.
85197         * lib/unistr/u16-prev.c: Likewise.
85198         * lib/unistr/u16-set.c: Likewise.
85199         * lib/unistr/u16-startswith.c: Likewise.
85200         * lib/unistr/u16-stpcpy.c: Likewise.
85201         * lib/unistr/u16-stpncpy.c: Likewise.
85202         * lib/unistr/u16-strcat.c: Likewise.
85203         * lib/unistr/u16-strchr.c: Likewise.
85204         * lib/unistr/u16-strcmp.c: Likewise.
85205         * lib/unistr/u16-strcpy.c: Likewise.
85206         * lib/unistr/u16-strcspn.c: Likewise.
85207         * lib/unistr/u16-strdup.c: Likewise.
85208         * lib/unistr/u16-strlen.c: Likewise.
85209         * lib/unistr/u16-strmblen.c: Likewise.
85210         * lib/unistr/u16-strmbtouc.c: Likewise.
85211         * lib/unistr/u16-strncat.c: Likewise.
85212         * lib/unistr/u16-strncmp.c: Likewise.
85213         * lib/unistr/u16-strncpy.c: Likewise.
85214         * lib/unistr/u16-strnlen.c: Likewise.
85215         * lib/unistr/u16-strpbrk.c: Likewise.
85216         * lib/unistr/u16-strrchr.c: Likewise.
85217         * lib/unistr/u16-strspn.c: Likewise.
85218         * lib/unistr/u16-strstr.c: Likewise.
85219         * lib/unistr/u16-strtok.c: Likewise.
85220         * lib/unistr/u16-to-u32.c: Likewise.
85221         * lib/unistr/u16-to-u8.c: Likewise.
85222         * lib/unistr/u16-uctomb-aux.c: Likewise.
85223         * lib/unistr/u16-uctomb.c: Likewise.
85224         * lib/unistr/u32-check.c: Likewise.
85225         * lib/unistr/u32-chr.c: Likewise.
85226         * lib/unistr/u32-cmp.c: Likewise.
85227         * lib/unistr/u32-cpy-alloc.c: Likewise.
85228         * lib/unistr/u32-cpy.c: Likewise.
85229         * lib/unistr/u32-endswith.c: Likewise.
85230         * lib/unistr/u32-mblen.c: Likewise.
85231         * lib/unistr/u32-mbsnlen.c: Likewise.
85232         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85233         * lib/unistr/u32-mbtouc.c: Likewise.
85234         * lib/unistr/u32-mbtoucr.c: Likewise.
85235         * lib/unistr/u32-move.c: Likewise.
85236         * lib/unistr/u32-next.c: Likewise.
85237         * lib/unistr/u32-prev.c: Likewise.
85238         * lib/unistr/u32-set.c: Likewise.
85239         * lib/unistr/u32-startswith.c: Likewise.
85240         * lib/unistr/u32-stpcpy.c: Likewise.
85241         * lib/unistr/u32-stpncpy.c: Likewise.
85242         * lib/unistr/u32-strcat.c: Likewise.
85243         * lib/unistr/u32-strchr.c: Likewise.
85244         * lib/unistr/u32-strcmp.c: Likewise.
85245         * lib/unistr/u32-strcpy.c: Likewise.
85246         * lib/unistr/u32-strcspn.c: Likewise.
85247         * lib/unistr/u32-strdup.c: Likewise.
85248         * lib/unistr/u32-strlen.c: Likewise.
85249         * lib/unistr/u32-strmblen.c: Likewise.
85250         * lib/unistr/u32-strmbtouc.c: Likewise.
85251         * lib/unistr/u32-strncat.c: Likewise.
85252         * lib/unistr/u32-strncmp.c: Likewise.
85253         * lib/unistr/u32-strncpy.c: Likewise.
85254         * lib/unistr/u32-strnlen.c: Likewise.
85255         * lib/unistr/u32-strpbrk.c: Likewise.
85256         * lib/unistr/u32-strrchr.c: Likewise.
85257         * lib/unistr/u32-strspn.c: Likewise.
85258         * lib/unistr/u32-strstr.c: Likewise.
85259         * lib/unistr/u32-strtok.c: Likewise.
85260         * lib/unistr/u32-to-u16.c: Likewise.
85261         * lib/unistr/u32-to-u8.c: Likewise.
85262         * lib/unistr/u32-uctomb.c: Likewise.
85263         * lib/unistr/u8-check.c: Likewise.
85264         * lib/unistr/u8-chr.c: Likewise.
85265         * lib/unistr/u8-cmp.c: Likewise.
85266         * lib/unistr/u8-cpy-alloc.c: Likewise.
85267         * lib/unistr/u8-cpy.c: Likewise.
85268         * lib/unistr/u8-endswith.c: Likewise.
85269         * lib/unistr/u8-mblen.c: Likewise.
85270         * lib/unistr/u8-mbsnlen.c: Likewise.
85271         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85272         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85273         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85274         * lib/unistr/u8-mbtouc.c: Likewise.
85275         * lib/unistr/u8-mbtoucr.c: Likewise.
85276         * lib/unistr/u8-move.c: Likewise.
85277         * lib/unistr/u8-next.c: Likewise.
85278         * lib/unistr/u8-prev.c: Likewise.
85279         * lib/unistr/u8-set.c: Likewise.
85280         * lib/unistr/u8-startswith.c: Likewise.
85281         * lib/unistr/u8-stpcpy.c: Likewise.
85282         * lib/unistr/u8-stpncpy.c: Likewise.
85283         * lib/unistr/u8-strcat.c: Likewise.
85284         * lib/unistr/u8-strchr.c: Likewise.
85285         * lib/unistr/u8-strcmp.c: Likewise.
85286         * lib/unistr/u8-strcpy.c: Likewise.
85287         * lib/unistr/u8-strcspn.c: Likewise.
85288         * lib/unistr/u8-strdup.c: Likewise.
85289         * lib/unistr/u8-strlen.c: Likewise.
85290         * lib/unistr/u8-strmblen.c: Likewise.
85291         * lib/unistr/u8-strmbtouc.c: Likewise.
85292         * lib/unistr/u8-strncat.c: Likewise.
85293         * lib/unistr/u8-strncmp.c: Likewise.
85294         * lib/unistr/u8-strncpy.c: Likewise.
85295         * lib/unistr/u8-strnlen.c: Likewise.
85296         * lib/unistr/u8-strpbrk.c: Likewise.
85297         * lib/unistr/u8-strrchr.c: Likewise.
85298         * lib/unistr/u8-strspn.c: Likewise.
85299         * lib/unistr/u8-strstr.c: Likewise.
85300         * lib/unistr/u8-strtok.c: Likewise.
85301         * lib/unistr/u8-to-u16.c: Likewise.
85302         * lib/unistr/u8-to-u32.c: Likewise.
85303         * lib/unistr/u8-uctomb-aux.c: Likewise.
85304         * lib/unistr/u8-uctomb.c: Likewise.
85305         * lib/unitypes.h: Likewise.
85306         * lib/uniwidth.h: Likewise.
85307         * lib/uniwidth/cjk.h: Likewise.
85308         * lib/uniwidth/u16-strwidth.c: Likewise.
85309         * lib/uniwidth/u16-width.c: Likewise.
85310         * lib/uniwidth/u32-strwidth.c: Likewise.
85311         * lib/uniwidth/u32-width.c: Likewise.
85312         * lib/uniwidth/u8-strwidth.c: Likewise.
85313         * lib/uniwidth/u8-width.c: Likewise.
85314         * lib/uniwidth/width.c: Likewise.
85316 2007-10-07  Bruno Haible  <bruno@clisp.org>
85318         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85319         The file is still under LGPL (see modules/inttypes).
85321 2007-10-06  Bruno Haible  <bruno@clisp.org>
85323         * modules/trunc (Dependencies): Add 'extensions'.
85324         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85325         Reported by Ben Pfaff <blp@gnu.org>.
85327 2007-10-06  Bruno Haible  <bruno@clisp.org>
85329         * modules/freopen-tests: New file.
85330         * tests/test-freopen.c: New file.
85332         * modules/fopen-tests: New file.
85333         * tests/test-fopen.c: New file.
85335         * modules/fopen: New file.
85336         * lib/fopen.c: New file.
85337         * m4/fopen.m4: New file.
85338         * modules/freopen: New file.
85339         * lib/freopen.c: New file.
85340         * m4/freopen.m4: New file.
85341         * lib/stdio.in.h (fopen, freopen): New declarations.
85342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85343         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85344         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85345         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85346         * doc/functions/fopen.texi: Mention the 'fopen' module.
85347         * doc/functions/freopen.texi: Mention the 'freopen' module.
85349 2007-10-06  Bruno Haible  <bruno@clisp.org>
85351         * modules/open-tests: New file.
85352         * tests/test-open.c: New file.
85354         * modules/open: New file.
85355         * lib/open.c: New file.
85356         * m4/open.m4: New file.
85357         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85358         lib/open.c does.
85359         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85360         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85361         macros.
85362         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85363         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85364         REPLACE_OPEN.
85365         * doc/functions/open.texi: Mention the 'open' module.
85367 2007-10-04  Bruno Haible  <bruno@clisp.org>
85369         * modules/ceill-tests: New file.
85370         * tests/test-ceill.c: New file.
85372         * modules/ceill: New file.
85373         * lib/ceill.c: Replace entire file.
85374         * m4/ceill.m4: New file.
85375         * lib/math.in.h (ceill): Replace declaration.
85376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85377         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85378         * doc/functions/ceill.texi: Mention the 'ceill' module.
85379         * modules/mathl (Files): Remove lib/ceill.c.
85380         (Depends-on): Add ceill.
85382 2007-10-04  Bruno Haible  <bruno@clisp.org>
85384         * modules/ceilf-tests: New file.
85385         * tests/test-ceilf.c: New file.
85387         * modules/ceilf: New file.
85388         * lib/ceil.c: New file.
85389         * lib/ceilf.c: New file.
85390         * m4/ceilf.m4: New file.
85391         * lib/math.in.h (ceilf): New declaration.
85392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85393         HAVE_DECL_CEILF.
85394         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85395         HAVE_DECL_CEILF.
85396         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85398 2007-10-04  Bruno Haible  <bruno@clisp.org>
85400         * modules/floorl-tests: New file.
85401         * tests/test-floorl.c: New file.
85403         * modules/floorl: New file.
85404         * lib/floorl.c: Replace entire file.
85405         * m4/floorl.m4: New file.
85406         * lib/math.in.h (floorl): Replace declaration.
85407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85408         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85409         * doc/functions/floorl.texi: Mention the 'floorl' module.
85410         * modules/mathl (Files): Remove lib/floorl.c.
85411         (Depends-on): Add floorl.
85413 2007-10-04  Bruno Haible  <bruno@clisp.org>
85415         * modules/floorf-tests: New file.
85416         * tests/test-floorf.c: New file.
85418         * modules/floorf: New file.
85419         * lib/floor.c: New file.
85420         * lib/floorf.c: New file.
85421         * m4/floorf.m4: New file.
85422         * lib/math.in.h (floorf): New declaration.
85423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85424         HAVE_DECL_FLOORF.
85425         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85426         HAVE_DECL_FLOORF.
85427         * doc/functions/floorf.texi: Mention the 'floorf' module.
85429 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85430             Bruno Haible  <bruno@clisp.org>
85432         Advertise for the Git server instead of the CVS server.
85433         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85434         repository instead of the CVS one.
85435         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85436         about all VCS systems generically.
85437         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85439 2007-10-04  Bruno Haible  <bruno@clisp.org>
85441         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85442         means.
85443         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85445 2007-10-04  Bruno Haible  <bruno@clisp.org>
85447         * modules/truncl-tests: New file.
85448         * tests/test-truncl.c: New file.
85450         * modules/truncl: New file.
85451         * lib/truncl.c: New file.
85452         * m4/truncl.m4: New file.
85453         * lib/math.in.h (truncl): New declaration.
85454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85455         HAVE_DECL_TRUNCL.
85456         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85457         HAVE_DECL_TRUNCL.
85458         * doc/functions/truncl.texi: Mention the 'truncl' module.
85460 2007-10-04  Bruno Haible  <bruno@clisp.org>
85462         * modules/truncf-tests: New file.
85463         * tests/test-truncf.c: New file.
85465         * modules/truncf: New file.
85466         * lib/trunc.c: Make paramerizable through USE_* macros.
85467         * lib/truncf.c: New file.
85468         * m4/truncf.m4: New file.
85469         * lib/math.in.h (truncf): New declaration.
85470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85471         HAVE_DECL_TRUNCF.
85472         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85473         HAVE_DECL_TRUNCF.
85474         * doc/functions/truncf.texi: Mention the 'truncf' module.
85476 2007-10-03  Bruno Haible  <bruno@clisp.org>
85478         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85479         augmentation also for tests modules.
85480         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85481         * modules/atexit-tests (Makefile.am): Likewise.
85482         * modules/binary-io-tests (Makefile.am): Likewise.
85483         * modules/c-strcase-tests (Makefile.am): Likewise.
85484         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85485         * modules/canonicalize-tests (Makefile.am): Likewise.
85486         * modules/closein-tests (Makefile.am): Likewise.
85487         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85488         * modules/freadahead-tests (Makefile.am): Likewise.
85489         * modules/fseek-tests (Makefile.am): Likewise.
85490         * modules/fseeko-tests (Makefile.am): Likewise.
85491         * modules/ftell-tests (Makefile.am): Likewise.
85492         * modules/ftello-tests (Makefile.am): Likewise.
85493         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85494         * modules/isnanl-tests (Makefile.am): Likewise.
85495         * modules/lseek-tests (Makefile.am): Likewise.
85496         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85497         * modules/mbscasestr-tests (Makefile.am): Likewise.
85498         * modules/mbschr-tests (Makefile.am): Likewise.
85499         * modules/mbscspn-tests (Makefile.am): Likewise.
85500         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85501         * modules/mbspbrk-tests (Makefile.am): Likewise.
85502         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85503         * modules/mbsrchr-tests (Makefile.am): Likewise.
85504         * modules/mbsspn-tests (Makefile.am): Likewise.
85505         * modules/mbsstr-tests (Makefile.am): Likewise.
85506         * modules/printf-posix-tests (Makefile.am): Likewise.
85507         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85508         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85509         * modules/tsearch-tests (Makefile.am): Likewise.
85510         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85511         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85512         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85513         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85514         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85515         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85516         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85517         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85518         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85519         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85520         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85521         * modules/xstrtol-tests (Makefile.am): Likewise.
85522         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85523         * modules/yesno-tests (Makefile.am): Likewise.
85525 2007-10-03  Bruno Haible  <bruno@clisp.org>
85527         * modules/trunc-tests: New file.
85528         * tests/test-trunc.c: New file.
85530         * modules/trunc: New file.
85531         * lib/trunc.c: New file.
85532         * m4/trunc.m4: New file.
85533         * lib/math.in.h (trunc): New declaration.
85534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85535         HAVE_DECL_TRUNC.
85536         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85537         HAVE_DECL_TRUNC.
85538         * doc/functions/trunc.texi: Mention the 'trunc' module.
85540 2007-10-03  Bruno Haible  <bruno@clisp.org>
85542         * tests/test-fpending.c: New file, mostly copied
85543         from coreutils/lib/t-fpending.c.
85544         * modules/fpending-tests: New file.
85546 2007-10-03  Bruno Haible  <bruno@clisp.org>
85548         Port the stdio extensions to QNX (untested).
85549         * lib/fseterr.c (fseterr): Add support for QNX.
85550         * lib/fbufmode.c (fbufmode): Likewise.
85551         * lib/freadable.c (freadable): Likewise.
85552         * lib/fwritable.c (fwritable): Likewise.
85553         * lib/freading.c (freading): Likewise.
85554         * lib/fwriting.c (fwriting): Likewise.
85555         * lib/freadahead.c (freadahed): Likewise.
85556         * lib/fpurge.c (fpurge): Likewise.
85557         * lib/fseeko.c (rpl_fseeko): Likewise.
85559 2007-10-03  Bruno Haible  <bruno@clisp.org>
85560             Jim Meyering  <jim@meyering.net>
85561             Eric Blake  <ebb9@byu.net>
85563         * doc/relocatable.texi: Use @command instead of @program.
85565 2007-10-02  Jim Meyering  <jim@meyering.net>
85567         Perform one more "_.h" -> ".in.h" substitution.
85568         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85569         instead of unistd_.h here, too.
85571 2007-10-01  Bruno Haible  <bruno@clisp.org>
85573         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85574         Needed for the alloca-opt module.
85576 2007-09-30  Bruno Haible  <bruno@clisp.org>
85578         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85579         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85580         alloca_.h.
85581         * lib/argz.in.h: Renamed from lib/argz_.h.
85582         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85583         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85584         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85585         byteswap_.h.
85586         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85587         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85588         dirent_.h.
85589         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85590         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85591         fcntl_.h.
85592         * lib/float.in.h: Renamed from lib/float_.h.
85593         * modules/float (Files, Makefile.am): Use float.in.h instead of
85594         float_.h.
85595         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85596         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85597         fnmatch_.h.
85598         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85599         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85600         getopt_.h.
85601         * lib/glob.in.h: Renamed from lib/glob_.h.
85602         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85603         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85604         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85605         iconv_.h.
85606         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85607         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85608         inttypes_.h.
85609         * lib/locale.in.h: Renamed from lib/locale_.h.
85610         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85611         locale_.h.
85612         * lib/math.in.h: Renamed from lib/math_.h.
85613         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85614         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85615         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85616         of netinet_in_.h. Add dependency.
85617         * lib/poll.in.h: Renamed from lib/poll_.h.
85618         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85619         * lib/search.in.h: Renamed from lib/search_.h.
85620         * modules/search (Files, Makefile.am): Use search.in.h instead of
85621         search_.h.
85622         * lib/signal.in.h: Renamed from lib/signal_.h.
85623         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85624         _signal.h.
85625         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85626         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85627         stdbool_.h.
85628         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85629         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85630         stdint_.h.
85631         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85632         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85633         stdio_.h.
85634         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85635         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85636         stdlib_.h.
85637         * lib/string.in.h: Renamed from lib/string_.h.
85638         * modules/string (Files, Makefile.am): Use string.in.h instead of
85639         string_.h.
85640         * doc/gnulib-tool.texi (Initial import): Update.
85641         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85642         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85643         of sys_select_.h. Add dependency.
85644         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85645         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85646         of sys_socket_.h.
85647         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85648         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85649         sys_stat_.h.
85650         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85651         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85652         sys_time_.h.
85653         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85654         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85655         sysexits_.h.
85656         * lib/time.in.h: Renamed from lib/time_.h.
85657         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85658         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85659         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85660         unistd_.h.
85661         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85662         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85663         wchar_.h.
85664         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85665         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85666         wctype_.h.
85667         * build-aux/bootstrap (slurp): Update.
85668         * lib/.cppi-disable: Update.
85670 2007-09-30  Bruno Haible  <bruno@clisp.org>
85672         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85673         Needed on BeOS.
85675 2007-09-30  Bruno Haible  <bruno@clisp.org>
85677         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85679 2007-09-29  Bruno Haible  <bruno@clisp.org>
85681         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85683 2007-09-29  Bruno Haible  <bruno@clisp.org>
85685         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85686         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85687         * build-aux/install-reloc: Compile also areadlink.c.
85688         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85690 2007-09-29  Bruno Haible  <bruno@clisp.org>
85692         * gnulib-tool (func_emit_initmacro_done): Indentation.
85694 2007-09-29  Bruno Haible  <bruno@clisp.org>
85696         * README: Add CVS checkout update instructions.
85697         Info from Bob Proulx <bob@proulx.com>.
85699 2007-09-28  Eric Blake  <ebb9@byu.net>
85701         Provide move-if-change.
85702         * build-aux/move-if-change: New file, based on best practice
85703         rather than any canonical upstream location.
85705 2007-09-28  Jim Meyering  <jim@meyering.net>
85707         Fix canonicalize loop-detection corner case.
85708         Do not attempt to stat the symlink values stored via seen_triple.
85709         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85710         on linux-2.6.18, (but not 2.6.22).
85711         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85712         triple_compare.  The former compares dev,ino,filename, while the latter
85713         would actually stat dirname(filename) when dev and ino were equal.
85714         * lib/hash-triple.c: Install <string.h>.
85715         (STREQ): Define.
85716         (triple_compare_ino_str): New function.
85717         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85719 2007-09-28  Eric Blake  <ebb9@byu.net>
85721         Enforce that AC_REPLACE_FUNCS files exist.
85722         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85723         override check for typos.
85725         Fix test-closein on Solaris 10.
85726         * tests/test-closein.c (main): Don't assume stdin can be inherited
85727         closed on all systems.
85728         * tests/test-closein.sh: Likewise.
85729         Reported by Piotr Tarnowski.
85731 2007-09-28  Jim Meyering  <jim@meyering.net>
85733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85735 2007-09-27  Jim Meyering  <jim@meyering.net>
85737         canonicalize: Avoid a false-positive cycle failure.
85738         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85739         Sort.  Remove cycle-check.
85740         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85741         not cycle-check.h.
85742         (seen_triple): New function.
85743         (canonicalize_filename_mode): Use it instead of cycle-check.
85744         * tests/test-canonicalize.c: Add a test for this bug.
85745         * tests/test-canonicalize.sh: Set up and run the test.
85747         New module, file-set, from coreutils.
85748         * modules/file-set: Define it.
85749         * lib/file-set.c, lib/file-set.h: Implement.
85751         New module, hash-triple, from coreutils.
85752         * modules/hash-triple: Define it.
85753         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85755 2007-09-25  Eric Blake  <ebb9@byu.net>
85757         Fix strerror on Interix.
85758         * lib/string_.h (strerror): Declare replacement.
85759         * doc/functions/strerror.texi (strerror): Document the Interix
85760         shortcoming.
85761         * modules/string (Makefile.am): Support new hooks.
85762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85763         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85764         gl_FUNC_STRERROR_SEPARATE.
85765         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85766         * lib/strerror.c (rpl_strerror): Provide replacement.
85767         * modules/strerror (Depends-on): Add string.
85768         (configure.ac): Detect use of module.
85769         * tests/test-strerror.c: New file.
85770         * modules/strerror-tests: New test module.
85771         * modules/argp (Depends-on): Add strerror.
85772         * modules/error (Depends-on): Likewise.
85773         Reported by Martin Koeppe.
85775 2007-09-24  Bruno Haible  <bruno@clisp.org>
85777         * README: Update git instructions.
85779 2007-09-24  Eric Blake  <ebb9@byu.net>
85781         Revert fpending breakage from 2007-09-08.
85782         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85783         __fpending.c.
85785 2007-09-24  Jim Meyering  <jim@meyering.net>
85787         filenamecat.c: Add a test.
85788         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85789         showing how the function works when DIR is the empty string.
85791 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85793         * tests/test-canonicalize.sh: Turn on executable bit.
85795 2007-09-19  Eric Blake  <ebb9@byu.net>
85797         * README: Update CVS instructions.
85799 2007-09-18  Bruno Haible  <bruno@clisp.org>
85801         * modules/areadlink: New file.
85802         * lib/areadlink.h (areadlink): New declaration.
85803         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85805 2007-09-17  Jim Meyering  <jim@meyering.net>
85807         * lib/savewd.c (ESTALE) [!defined]: Define.
85808         Reported to be required on Interix by Martin Koeppe.
85810 2007-09-17  Bruno Haible  <bruno@clisp.org>
85812         * gnulib-tool (func_version): Use $version.
85814 2007-09-16  Bruno Haible  <bruno@clisp.org>
85816         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85817         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85818         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85819         Reported by Greg Schafer <gschafer@zip.com.au>.
85821 2007-09-15  Bruno Haible  <bruno@clisp.org>
85823         * gnulib-tool (sed): Try a little harder to make bash understand the
85824         alias.
85825         Reported by Bruce Korb <bruce.korb@gmail.com>.
85827 2007-09-13  Eric Blake  <ebb9@byu.net>
85829         * ChangeLog: Remove conflict markers.
85831 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85833         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85834         Reported by Bruno Haible <bruno@clisp.org>.
85836 2007-09-12  Bruno Haible  <bruno@clisp.org>
85838         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85839         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85840         is not defined.
85842 2007-09-12  Eric Blake  <ebb9@byu.net>
85844         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85845         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85846         Autoconf definition.
85847         * modules/euidaccess (Depends-on): Add extensions, for
85848         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85849         * modules/fnmatch (Depends-on): Likewise.
85850         * modules/getaddrinfo (Depends-on): Likewise.
85851         * modules/getdelim (Depends-on): Likewise.
85852         * modules/getline (Depends-on): Likewise.
85853         * modules/getsubopt (Depends-on): Likewise.
85854         * modules/gettext (Depends-on): Likewise.
85855         * modules/group-member (Depends-on): Likewise.
85856         * modules/mbchar (Depends-on): Likewise.
85857         * modules/memmem (Depends-on): Likewise.
85858         * modules/mempcpy (Depends-on): Likewise.
85859         * modules/memrchr (Depends-on): Likewise.
85860         * modules/pagealign_alloc (Depends-on): Likewise.
85861         * modules/readutmp (Depends-on): Likewise.
85862         * modules/stpcpy (Depends-on): Likewise.
85863         * modules/stpncpy (Depends-on): Likewise.
85864         * modules/strchrnul (Depends-on): Likewise.
85865         * modules/strndup (Depends-on): Likewise.
85866         * modules/strsep (Depends-on): Likewise.
85867         * modules/strverscmp (Depends-on): Likewise.
85868         * modules/vasprintf (Depends-on): Likewise.
85869         * modules/wcwidth (Depends-on): Likewise.
85870         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85871         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85872         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85873         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85874         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85875         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85876         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85877         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85878         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85879         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85881         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85882         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85883         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85884         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85885         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85886         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85887         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85889         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85891         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85892         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85893         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
85894         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
85895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85896         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
85897         so that lock.m4 can be used in gettext without extensions module.
85899 2007-09-11  Bruno Haible  <bruno@clisp.org>
85901         * m4/isc-posix.m4: Remove file.
85902         Suggested by Eric Blake.
85904 2007-09-11  Eric Blake  <ebb9@byu.net>
85906         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
85908 2007-09-10  Bruno Haible  <bruno@clisp.org>
85910         * posix-modules: Fix typo in error message.
85911         Reported by Matt <mkraai@beckman.com>.
85913 2007-09-09  Bruno Haible  <bruno@clisp.org>
85915         * doc/functions/getdelim.texi: Update list of platforms lacking the
85916         function.
85917         * doc/functions/getline.texi: Likewise.
85919 2007-09-09  Jim Meyering  <jim@meyering.net>
85921         * lib/hash.c (hash_initialize): Detect calloc failure.
85922         Reported by Bruno Haible.
85924 2007-09-09  Bruno Haible  <bruno@clisp.org>
85926         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
85927         malloc or realloc fails.
85929 2007-09-09  Bruno Haible  <bruno@clisp.org>
85931         * modules/getcwd (Depends-on): Add malloc-posix.
85932         * modules/glob (Depends-on): Likewise.
85933         * modules/putenv (Depends-on): Likewise.
85934         * modules/strdup (Depends-on): Likewise.
85935         * modules/getdelim (Depends-on): Add realloc-posix.
85936         * modules/read-file (Depends-on): Likewise.
85938 2007-09-09  Bruno Haible  <bruno@clisp.org>
85940         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
85941         (gl_FUNC_MALLOC_POSIX): Require it.
85942         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
85943         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
85944         * modules/realloc (Files): Add m4/malloc.m4.
85945         * modules/calloc (Files): Likewise.
85947 2007-09-09  Bruno Haible  <bruno@clisp.org>
85949         * modules/malloc-posix: New file.
85950         * modules/malloc (Depends-on): Add malloc-posix.
85951         * lib/malloc.c: Include errno.h.
85952         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
85953         and a POSIX-compatible malloc into a single function. Set ENOMEM
85954         when returning NULL.
85955         * m4/malloc.m4: New file.
85956         * doc/functions/malloc.texi: Mention the malloc-posix module.
85957         * lib/stdlib_.h (malloc): New declaration.
85958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85959         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
85960         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
85961         and HAVE_MALLOC_POSIX.
85963 2007-09-09  Bruno Haible  <bruno@clisp.org>
85965         * modules/realloc-posix: New file.
85966         * modules/realloc (Depends-on): Add realloc-posix.
85967         * lib/realloc.c: Include errno.h.
85968         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
85969         and a POSIX-compatible realloc into a single function. Set ENOMEM
85970         when returning NULL.
85971         * m4/realloc.m4: New file.
85972         * doc/functions/realloc.texi: Mention the realloc-posix module.
85973         * lib/stdlib_.h (realloc): New declaration.
85974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85975         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
85976         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
85977         and HAVE_REALLOC_POSIX.
85979 2007-09-09  Bruno Haible  <bruno@clisp.org>
85981         * modules/calloc-posix: New file.
85982         * modules/calloc (Depends-on): Add calloc-posix.
85983         * lib/calloc.c: Include errno.h.
85984         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
85985         and a POSIX-compatible calloc into a single function. Set ENOMEM
85986         when returning NULL.
85987         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
85988         * doc/functions/calloc.texi: Mention the calloc-posix module.
85989         * lib/stdlib_.h (calloc): New declaration.
85990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85991         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
85992         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
85993         and HAVE_CALLOC_POSIX.
85995 2007-09-09  Bruno Haible  <bruno@clisp.org>
85997         Allow for modules to show an arbitrary notice.
85998         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
85999         * gnulib-tool: New option --extract-notice.
86000         (func_usage): Document it.
86001         (sed_extract_prog): Update.
86002         (func_get_notice): New function.
86003         (func_modules_notice): New function.
86004         (func_import, func_create_testdir): Invoke it.
86005         Suggested by Jim Meyering.
86007 2007-09-09  Bruno Haible  <bruno@clisp.org>
86009         * gnulib-tool: New options --verbose, --quiet.
86010         (func_usage): Document them.
86011         (verbose): New variable.
86012         (func_execute_command): New function.
86013         (func_import): Don't show the module list and the file list if
86014         $verbose < 0.
86015         (func_create_testdir): Likewise. Use func_execute_command.
86016         (func_create_megatestdir): Use func_execute_command.
86018 2007-09-08  Bruno Haible  <bruno@clisp.org>
86020         * gnulib-tool (func_import): Prefer rsync over wget when available,
86021         for fetching the PO files.
86023 2007-09-08  Bruno Haible  <bruno@clisp.org>
86025         * posix-modules: New file. Portions copied from gnulib-tool.
86026         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86028 2007-09-08  Jim Meyering  <jim@meyering.net>
86030         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86031         * lib/fpending.h: Rename from __fpending.h.
86032         * lib/fpending.c: Rename from __fpending.c.
86033         Include "fpending.h", not "__fpending.h".
86034         * lib/__fpending.h, lib/__fpending.c: Remove files.
86035         * modules/fpending (Files): Reflect new file names.
86036         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86038 2007-09-08  Bruno Haible  <bruno@clisp.org>
86040         * m4/inttypes-h.m4: Remove stub file.
86042 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86044         * doc/headers/stdint.texi: Discuss #include_next issue.
86046 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86048         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86050 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86052         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86053         in variable name.
86055 2007-09-03  Jim Meyering  <jim@meyering.net>
86057         New module: git-version-gen.
86058         * modules/git-version-gen: New file.
86060         Import changes from coreutils for bootstrap script.
86062         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86064         bootstrap: uses rsync to download the .po files
86065         * build-aux/bootstrap (po_download_command_format): New global.
86066         (download_po_files): Use rsync.
86067         (update_po_files): Don't remove .po files after download,
86068         so future rsync runs can take advantage of the copies.
86070         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86072         Solve the unnecessary-.po-file-regeneration problem once and for all.
86073         * build-aux/bootstrap (download_po_files): New function, renamed from
86074         get_translations.  Now, downloads, but doesn't update LINGUAS.
86075         (update_po_files): New function.
86077         bootstrap: Ignore more.
86078         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86079         uniwidth to e.g., lib/.gitignore.
86080         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86082         * build-aux/bootstrap: New setting: vc_ignore.
86083         (insert_sorted_if_absent): Create $file if absent.
86084         Adapt to new, possibly empty, list: $vc_ignore.
86086         bootstrap: generate more ignorable names
86087         * build-aux/bootstrap (slurp): When generating ignorable names,
86088         also map .sin to .sed, .gperf to .c, and .y to .c.
86090 2007-09-03  Jim Meyering  <jim@meyering.net>
86092         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86093         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86095 2007-09-02  Bruno Haible  <bruno@clisp.org>
86097         Fix mis-recognition of 'mcs' on QNX 6.
86098         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86099         output contains the string "Mono".
86100         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86101         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86103 2007-09-01  Bruno Haible  <bruno@clisp.org>
86105         Fix collision between uniwidth/* and linebreak modules.
86106         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86107         u32_width): Remove declarations.
86108         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86109         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86110         streq3, streq2, streq1, streq0): Remove functions.
86111         (STREQ): Remove macro.
86112         (is_cjk_encoding): Remove function.
86113         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86114         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86115         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86116         * NEWS: Document the change.
86118 2007-09-01  Bruno Haible  <bruno@clisp.org>
86120         * lib/streq.h: Add double-inclusion guard.
86122 2007-09-01  Karl Berry  <karl@gnu.org>
86124         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86126 2007-08-28  Jim Meyering  <jim@meyering.net>
86128         Rename mreadlink_with_size to areadlink_with_size.
86129         * NEWS: Document the change.
86130         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86131         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86132         * lib/mreadlink.h: Rename this to...
86133         * lib/areadlink.h: ...this.
86134         * modules/mreadlink-with-size: Rename this to...
86135         * modules/areadlink-with-size: ...this.
86136         * lib/canonicalize.c: Reflect the renaming.
86137         * modules/canonicalize: Likewise.
86139 2007-08-26  Bruno Haible  <bruno@clisp.org>
86141         * gnulib-tool (func_import): When deciding which files to remove,
86142         consider also dangling symbolic links.
86143         Reported by Eric Blake.
86145 2007-08-26  Bruno Haible  <bruno@clisp.org>
86147         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86149 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86151         * lib/readline.c: Don't include getline.h, the prototype is now
86152         found in stdio.h.
86154 2007-08-23  Jim Meyering  <jim@meyering.net>
86156         Getdelim touchup.
86157         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86158         around the funlockfile call, since funlockfile never sets errno.
86159         Don't set errno upon failed realloc.
86161 2007-08-22  Eric Blake  <ebb9@byu.net>
86163         Getline touchups.
86164         * lib/getdelim.c (getdelim): Revert regression that required *n to
86165         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86167         getdelim, rather than whether implementation is missing.
86168         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86169         * lib/stdio_.h (getline): Also declare if replacement is
86170         required.
86171         * doc/functions/getdelim.texi: New file.
86172         * doc/functions/getline.texi: Likewise.
86173         * doc/gnulib.texi (Function Substitutes): Add new files.
86174         Reported by Bruno Haible.
86176 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86178         * users.txt: Add Guile.
86180 2007-08-22  Eric Blake  <ebb9@byu.net>
86182         * tests/test-getdelim.c (main): Use remove, not unlink.
86183         * tests/test-getline.c (main): Likewise.
86185         Move getline and getdelim into stdio.h, per POSIX 200x.
86186         * modules/getline (Files): Remove getline.h.
86187         (Depends-on): Add stdio.
86188         (configure.ac): Add module indicator.
86189         * modules/getdelim (Files): Remove getdelim.h.
86190         (Depends-on): Add stdio.
86191         (configure.ac): Add module indicator.
86192         * modules/stdio (Makefile.am): Work with new indicators.
86193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86194         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86196         * lib/getdelim.h: Delete.
86197         * lib/getline.h: Delete.
86198         * lib/stdio_.h (getdelim, getline): Declare.
86199         * modules/getdelim-tests: New module.
86200         * modules/getline-tests: Likewise.
86201         * tests/test-getdelim.c: New file.
86202         * tests/test-getline.c: Likewise.
86203         * NEWS: Document the change.
86204         * lib/getline.c: Update choice of header.
86205         * lib/csharpcomp.c: Likewise.
86206         * lib/getpass.c: Likewise.
86207         * lib/javacomp.c: Likewise.
86208         * lib/javaversion.c: Likewise.
86209         * lib/yesno.c: Likewise.
86210         * lib/getdelim.c: Likewise.
86211         (getdelim): Set errno on failure, and avoid memory leak.
86213 2007-08-19  Bruno Haible  <bruno@clisp.org>
86215         * modules/closein (Depends-on): Add freadahead.
86216         * lib/closein.c: Include freadahead.h.
86217         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86218         is zero.
86220 2007-08-19  Bruno Haible  <bruno@clisp.org>
86222         * modules/freadahead-tests: New file.
86223         * tests/test-freadahead.sh: New file.
86224         * tests/test-freadahead.c: New file.
86226         * modules/freadahead: New file.
86227         * lib/freadahead.h: New file.
86228         * lib/freadahead.c: New file.
86229         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86230         fbufmode, fpurge, freadable, fwritable.
86232 2007-08-19  Eric Blake  <ebb9@byu.net>
86234         Test yesno in combination with closein.
86235         * lib/yesno.c (yesno): Document use of stdin.
86236         * modules/yesno-tests (Files): New module.
86237         * tests/test-yesno.c (main): New file.
86238         * tests/test-yesno.sh: Likewise.
86240 2007-08-19  Bruno Haible  <bruno@clisp.org>
86242         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86243         * lib/fseeko.c (rpl_fseeko): Likewise.
86244         * lib/fseterr.c (fseterr): Likewise.
86246 2007-08-19  Bruno Haible  <bruno@clisp.org>
86248         * tests/test-lseek.c (main): Disable a test for BeOS.
86249         * doc/functions/lseek.texi: Document the BeOS bug.
86251 2007-08-19  Bruno Haible  <bruno@clisp.org>
86252             Eric Blake  <ebb9@byu.net>
86254         * lib/lseek.c: Include <sys/stat.h>.
86255         (rpl_lseek): Add workaround code also for Unix platforms.
86256         Needed for BeOS.
86257         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86258         * doc/functions/lseek.texi: Document BeOS definiency.
86260 2007-08-18  Bruno Haible  <bruno@clisp.org>
86262         * modules/fstrcmp-tests: New file.
86263         * tests/test-fstrcmp.c: New file.
86265 2007-08-18  Bruno Haible  <bruno@clisp.org>
86267         * modules/fstrcmp: New file, from GNU gettext with modifications.
86268         * lib/fstrcmp.h: New file, from GNU gettext.
86269         * lib/fstrcmp.c: New file, from GNU gettext.
86270         * MODULES.html.sh (String handling): Add fstrcmp.
86272 2007-08-18  Bruno Haible  <bruno@clisp.org>
86274         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86275         'bool'.
86276         (diag, compareseq): Remove const from the ctxt argument.
86277         (USE_HEURISTIC): Undefine at the end.
86279 2007-08-18  Jim Meyering  <jim@meyering.net>
86281         New file: lib/idcache.h
86282         * NEWS: Mention the addition.
86283         * modules/idcache (Files): Add lib/idcache.h
86284         * lib/idcache.c: Include "idcache.h".
86285         Don't include <sys/types.h>.
86286         Add a FIXME comment.
86287         Move file-scoped "static" declarations to the top.
86288         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86290 2007-08-17  Bruno Haible  <bruno@clisp.org>
86291         and Paul Eggert  <eggert@cs.ucla.edu>
86293         * MODULES.html.sh: Add diffseq.
86294         * modules/diffseq: New file.
86295         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86296         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86298 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86300         Import changes from coreutils for bootstrap script.
86302         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86304         * build-aux/bootstrap (slurp): Work even in environments where
86305         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86306         current code does not slurp files whose names start with ".", and
86307         this looks like it might be a troublesome area.
86309         2007-07-11  Jim Meyering  <jim@meyering.net>
86311         If there's a GPL vN copyright comment, require that N == 3.
86313         2007-07-08  Jim Meyering  <jim@meyering.net>
86315         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86316         * build-aux/bootstrap (mam_template): Move definition out of loop.
86318         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86320         * build-aux/bootstrap (symlink_to_dir): Rename function from
86321         symlink_to_gnulib.  Add a directory parameter.  Update all
86322         callers.
86323         (cp_mark_as_generated): Also check for -- and link to -- files in
86324         gl/.
86326         2007-07-08  Jim Meyering  <jim@meyering.net>
86328         Adapt to deeper hierarchy in gnulib.
86329         * build-aux/bootstrap (symlink_to_dir): If the destination
86330         directory doesn't exist, create it. This is required at least for
86331         "lib/uniwidth/cjk.h".
86333         2007-05-15  Jim Meyering  <jim@meyering.net>
86335         * build-aux/bootstrap: Now that generated Makefile.am files
86336         are no longer under version control, they must be created at
86337         bootstrap time.
86339 2007-08-14  Ben Pfaff  <blp@gnu.org>
86341         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86343 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86345         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86346         given the changes below.
86347         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86348         even on hosts that have padding bits beyond the supported 64.
86350 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86352         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86353         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86354         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86355         depends on it.
86356         (xstrtol_error): Remove.
86357         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86358         but with a different signature.
86359         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86360         * lib/xstrtol-error.c: Include exitfail.h.
86361         (xstrtol_fatal): New function, with a different signature from the
86362         old xstrtol_error, so that the caller need not worry about passing
86363         in an exit status, or about storage management of the option argument.
86364         (xstrtol_error): Now a static function.  Redo signature to
86365         implement xstrtol_fatal.  Output the correct number of hyphens in
86366         front of the option so that the caller need not worry about
86367         storage management.
86368         (N_): New macro.
86369         (_): Remove; not used now.
86370         * modules/xstrtol: Depend on getopt.
86371         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86372         of old STRTOL_FATAL_ERROR macro.
86373         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86374         of test program.
86375         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86376         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86378 2007-08-08  Eric Blake  <ebb9@byu.net>
86380         * lib/xstrtol-error.c: Add missing include.
86382         Move xstrtol messages into gnulib domain, when --pobase is used.
86383         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86384         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86385         * modules/xstrtol (Files): Distribute new file.
86386         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86387         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86388         * tests/test-xstrtol.c: ...into new file.
86389         * tests/test-xstrtoul.c: Also test xstrtoul.
86390         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86391         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86392         * tests/test-xstrtol.sh: Drive the tests.
86393         * tests/test-xstrtoimax.sh: Likewise.
86394         * tests/test-xstrtoumax.sh: Likewise.
86395         * modules/xstrtol-tests: New module.
86396         * modules/xstrtoimax-tests: Likewise.
86397         * modules/xstrtoumax-tests: Likewise.
86399 2007-08-08  Jim Meyering  <jim@meyering.net>
86401         New function: mfile_name_concat.
86402         * lib/filenamecat.c (mfile_name_concat): New function, just like
86403         file_name_concat, but return NULL upon failure rather than exiting
86404         with a diagnostic.
86405         * lib/filenamecat.h: Declare it.
86407 2007-08-07  Bruno Haible  <bruno@clisp.org>
86409         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86410         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86411         warning from gcc.
86412         Reported by Eric Blake.
86414 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86416         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86417         * modules/crypto/arcfour (License): Likewise.
86418         * modules/crypto/des-tests (License): Likewise.
86419         * modules/crypto/gc-arctwo-tests (License): Likewise.
86420         * modules/crypto/gc-des-tests (License): Likewise.
86421         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86422         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86423         * modules/crypto/gc-md2-tests (License): Likewise.
86424         * modules/crypto/gc-md4-tests (License): Likewise.
86425         * modules/crypto/gc-md5-tests (License): Likewise.
86426         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86427         * modules/crypto/gc-rijndael-tests (License): Likewise.
86428         * modules/crypto/gc-sha1-tests (License): Likewise.
86429         * modules/crypto/gc-tests (License): Likewise.
86430         * modules/crypto/hmac-md5 (License): Likewise.
86431         * modules/crypto/hmac-sha1 (License): Likewise.
86432         * modules/crypto/md2-tests (License): Likewise.
86433         * modules/crypto/md4-tests (License): Likewise.
86434         * modules/crypto/md5 (License): Likewise.
86435         * modules/crypto/rijndael (License): Likewise.
86436         * modules/crypto/sha1 (License): Likewise.
86437         * modules/memxor (License): Likewise.
86439 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86440         and Bruno Haible  <bruno@clisp.org>
86442         * NEWS: Describe interface changes to human, xstrtol.
86443         * lib/human.h: Include <xstrtol.h>.
86444         (human_options): Return enum strtol_error, not int.  Remove
86445         bool arg; take int * instead.
86446         * lib/human.c: Don't include "gettext.h".
86447         (_): Remove; no longer used.
86448         Don't include <xstrtol.h>, since human.h does it.
86449         (human_options): Adjust to abovementioned interface changes.
86450         Do not report error to stderr; that's now the caller's
86451         responsibility.
86452         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86453         interface change.
86454         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86455         Str, Argument_type_string.  All uses changed.  Put " argument"
86456         in diagnostics to make them clearer.  Change wording of suffix
86457         message for clarity.
86458         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86459         Argument_type_string.
86460         (STRTOL_FATAL_WARN): Remove; no longer used.
86461         * modules/human (Depends-on): Remove gettext-h.
86463 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86465         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86467 2007-07-31  Bruno Haible  <bruno@clisp.org>
86469         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86470         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86471         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86473 2007-07-31  Bruno Haible  <bruno@clisp.org>
86475         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86476         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86478 2007-07-30  Bruno Haible  <bruno@clisp.org>
86480         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86481         * modules/c-ctype (License): Likewise.
86482         * modules/c-strcase (License): Likewise.
86483         * modules/check-version (License): Likewise.
86484         * modules/iconv (License): Likewise.
86485         * modules/iconv_open (License): Likewise.
86486         * modules/read-file (License): Likewise.
86487         * modules/striconv (License): Likewise.
86488         * modules/strverscmp (License): Likewise.
86489         * modules/vasprintf (License): Likewise.
86490         * modules/crypto/des (License): Likewise.
86491         * modules/crypto/gc (License): Likewise.
86492         * modules/crypto/gc-arcfour (License): Likewise.
86493         * modules/crypto/gc-arctwo (License): Likewise.
86494         * modules/crypto/gc-des (License): Likewise.
86495         * modules/crypto/gc-hmac-md5 (License): Likewise.
86496         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86497         * modules/crypto/gc-md2 (License): Likewise.
86498         * modules/crypto/gc-md4 (License): Likewise.
86499         * modules/crypto/gc-md5 (License): Likewise.
86500         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86501         * modules/crypto/gc-random (License): Likewise.
86502         * modules/crypto/gc-rijndael (License): Likewise.
86503         * modules/crypto/gc-sha1 (License): Likewise.
86504         * modules/crypto/md2 (License): Likewise.
86505         * modules/crypto/md4 (License): Likewise.
86507 2007-07-30  Jim Meyering  <jim@meyering.net>
86509         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86510         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86511         it has valid stat data.  This bug would cause du not to count the
86512         sizes of inaccessible directories.
86513         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86514         in <http://bugzilla.redhat.com/250077>.
86516 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86517             Bruno Haible  <bruno@clisp.org>
86519         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86520         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86521         #include_next, gives a diagnostic about it, but reports no error in
86522         the exit code.
86523         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86525 2007-07-24  Ben Pfaff  <blp@gnu.org>
86527         Improve name: "count-one-bits" is better than "popcount".
86528         * MODULES.html.sh: Update name.
86529         * lib/popcount.h: Renamed lib/count-one-bits.h.
86530         (popcount): Renamed count_one_bits.
86531         (popcountl): Renamed count_one_bits_l.
86532         (popcountll): Renamed count_one_bits_ll.
86533         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86534         * modules/popcount: Renamed module/count-one-bits.
86535         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86536         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86538 2007-07-23  Ben Pfaff  <blp@gnu.org>
86540         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86541         better code generation, and add U to large constants to avoid
86542         warnings, in non-GCC case.
86543         Suggested by Bruno Haible.
86545 2007-07-23  Ben Pfaff  <blp@gnu.org>
86547         * lib/popcount.h: Use verify_true instead of if...abort.
86548         * modules/popcount: Depend on verify module.
86549         Suggested by Jim Meyering.
86551 2007-07-23  Bruno Haible  <bruno@clisp.org>
86553         * gnulib-tool (func_import): Create a .cvsignore file also when the
86554         directory is not yet in CVS but the toplevel directory is. When
86555         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86556         Reported by Karl Berry.
86558 2007-07-22  Ben Pfaff  <blp@gnu.org>
86560         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86561         case.
86562         Suggested by Eric Blake.
86564 2007-07-22  Ben Pfaff  <blp@gnu.org>
86566         New module: popcount.
86567         * MODULES.html.sh: Add popcount.
86568         * modules/popcount: New file.
86569         * modules/popcount-tests: New file.
86570         * tests/test-popcount.c: New file.
86571         * lib/popcount.h: New file.
86572         * m4/popcount.m4: New file.
86574 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86576         * build-aux/announce-gen: Update to GPLv3.
86578         * build-aux/config.guess: Update from config.
86580 2007-07-21  Bruno Haible  <bruno@clisp.org>
86582         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86583         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86585 2007-07-20  Jim Meyering  <jim@meyering.net>
86587         * check-module: Diagnose a self-dependency.
86589 2007-07-19  Bruno Haible  <bruno@clisp.org>
86591         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86592         empty.
86593         Reported by Eric Blake.
86595 2007-07-18  Bruno Haible  <bruno@clisp.org>
86597         * gnulib-tool: New options --po-base, --po-domain.
86598         (func_usage): Document them.
86599         (pobase, po_domain): New variables.
86600         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86601         DEFAULT_TEXT_DOMAIN.
86602         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86603         (func_import): Consider pobase and po_domain. Create a po/ directory.
86604         (func_create_testdir): Set pobase and po_domain to empty.
86605         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86606         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86608 2007-07-18  Bruno Haible  <bruno@clisp.org>
86610         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86611         EXTRA_DIST augmentation for files in build-aux/.
86613 2007-07-16  Bruno Haible  <bruno@clisp.org>
86615         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86616         * modules/getdelim (License): Likewise.
86618 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86620         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86621         * modules/d-type (License): Likewise.
86622         * modules/extensions (License): Likewise.
86623         * modules/fnmatch (License): Likewise.
86624         * modules/fseeko (License): Likewise.
86625         * modules/getaddrinfo (License): Likewise.
86626         * modules/getline (License): Likewise.
86627         * modules/getlogin_r (License): Likewise.
86628         * modules/getpass (License): Likewise.
86629         * modules/gettimeofday (License): Likewise.
86630         * modules/glob (License): Likewise.
86631         * modules/inet_ntop (License): Likewise.
86632         * modules/malloc (License): Likewise.
86633         * modules/malloca (License): Likewise.
86634         * modules/memmem (License): Likewise.
86635         * modules/mempcpy (License): Likewise.
86636         * modules/memset (License): Likewise.
86637         * modules/minmax (License): Likewise.
86638         * modules/mktime (License): Likewise.
86639         * modules/netinet_in (License): Likewise.
86640         * modules/pathmax (License): Likewise.
86641         * modules/poll (License): Likewise.
86642         * modules/regex (License): Likewise.
86643         * modules/snprintf (License): Likewise.
86644         * modules/stdbool (License): Likewise.
86645         * modules/stdint (License): Likewise.
86646         * modules/stdio (License): Likewise.
86647         * modules/strcase (License): Likewise.
86648         * modules/strcasestr (License): Likewise.
86649         * modules/strdup (License): Likewise.
86650         * modules/string (License): Likewise.
86651         * modules/strndup (License): Likewise.
86652         * modules/strnlen (License): Likewise.
86653         * modules/strpbrk (License): Likewise.
86654         * modules/strptime (License): Likewise.
86655         * modules/strsep (License): Likewise.
86656         * modules/sys_select (License): Likewise.
86657         * modules/sys_socket (License): Likewise.
86658         * modules/sys_stat (License): Likewise.
86659         * modules/sys_time (License): Likewise.
86660         * modules/time (License): Likewise.
86661         * modules/time_r (License): Likewise.
86662         * modules/timegm (License): Likewise.
86663         * modules/unistd (License): Likewise.
86664         * modules/vsnprintf (License): Likewise.
86665         * modules/wctype (License): Likewise.
86667 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86669         * modules/argz (License): LGPLv2+.
86671 2007-07-15  Karl Berry  <karl@gnu.org>
86673         * doc/gnulib.texi: revise node structure per new fdl.texi.
86675 2007-07-14  Bruno Haible  <bruno@clisp.org>
86677         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86678         the output file.
86679         * lib/uniname/uninames.h: Regenerated.
86681 2007-07-14  Karl Berry  <karl@gnu.org>
86683         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86684         omitting sectioning and index commands.
86686 2007-07-13  Bruno Haible  <bruno@clisp.org>
86688         New gnulib-tool option --more-symlinks.
86689         * gnulib-tool (func_usage): Document --more-symlinks.
86690         (do_copyrights): New variable.
86691         Recognize option --more-symlinks.
86692         (func_import): Don't add a copyright notice transform to
86693         sed_transform_lib_file if do_copyrights is empty.
86695 2007-07-13  Bruno Haible  <bruno@clisp.org>
86697         * lib/vasnprintf.c (decimal_point_char): Define also if
86698         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86699         && !NEED_PRINTF_DIRECTIVE_A.
86700         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86701         Gary V. Vaughan <gary@gnu.org>.
86703 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86705         * lib/inttypes_.h: Undo previous change, since it was fixed
86706         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86708 2007-07-13  Bruno Haible  <bruno@clisp.org>
86710         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86711         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86713 2007-07-13  Jim Meyering  <jim@meyering.net>
86715         df: Don't fail for Tru64's "file-on-file mount".
86716         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86717         so we fall through and use statfs instead.  Details here:
86718         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86719         Reported by Albert Chin.
86721 2007-07-13  Bruno Haible  <bruno@clisp.org>
86723         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86724         * modules/configmake (License): Likewise.
86725         * modules/gettext (License): Likewise.
86726         * modules/gettext-h (License): Likewise.
86727         * modules/include_next (License): Likewise.
86728         * modules/link-warning (License): Likewise.
86729         * modules/localcharset (License): Likewise.
86730         * modules/localename (License): Likewise.
86731         * modules/lock (License): Likewise.
86732         * modules/relocatable-lib-lgpl (License): Likewise.
86733         * modules/size_max (License): Likewise.
86734         * modules/vasnprintf (License): Likewise.
86735         * modules/wchar (License): Likewise.
86736         * modules/xsize (License): Likewise.
86738 2007-07-13  Bruno Haible  <bruno@clisp.org>
86740         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86741         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86743 2007-07-12  Bruno Haible  <bruno@clisp.org>
86745         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86746         in the modules files.
86748 2007-07-11  Karl Berry  <karl@gnu.org>
86750         * MODULES.html.sh (func_module): use
86751          sed -e '\|^'"${includefile}"'$|d'
86752          instead of /.../d, to avoid errors on $includefile's containing /.
86754 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86756         * gnulib-tool (func_import): Avoid duplication of --avoid
86757         statements
86758         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86759         names to `_' in variable names.
86761 2007-07-10  Eric Blake  <ebb9@byu.net>
86763         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86764         * NEWS: Document this change.
86766 2007-07-08  Bruno Haible  <bruno@clisp.org>
86768         Update to Unicode 5.0.
86769         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86770         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86771         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86772         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86773         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86774         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86775         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86776         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86777         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86778         U+10A3F, U+1D242..U+1D244.
86779         (nonspacing_table_ind): Update.
86780         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86781         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86783 2007-07-08  Bruno Haible  <bruno@clisp.org>
86785         Update to Unicode 5.0.
86786         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86787         code transform. Extend the name index field of unicode_name_to_code and
86788         unicode_code_to_name from 16 to 24 bits.
86789         * lib/uniname/uniname.c (unicode_character_name,
86790         unicode_name_character): Add the range 0x12xxx to the code transform.
86791         * lib/uniname/uninames.h: Regenerated.
86792         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86794 2007-07-07  Bruno Haible  <bruno@clisp.org>
86796         * modules/wcwidth-tests: New file.
86797         * tests/test-wcwidth.c: New file.
86799         Work around MacOS X wcwidth() bug.
86800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86801         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86802         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86803         original wcwidth in non-UTF-8 locales.
86804         * modules/wcwidth (Depends-on): Add localcharset, streq,
86805         uniwidth/width.
86806         * doc/functions/wcwidth.texi: Update.
86808 2007-07-07  Bruno Haible  <bruno@clisp.org>
86810         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86811         (wcwidth): New declaration.
86812         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86813         macros.
86814         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86815         here. Prepare for creating <wchar.h> unconditionally.
86816         * modules/wchar (Depends-on): Add link-warning.
86817         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86818         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86819         * lib/wcwidth.h: Remove file.
86820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86821         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86822         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86823         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86824         (Include): Replace wcwidth.h with <wchar.h>.
86825         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86826         * lib/mbchar.h: Don't include wcwidth.h.
86827         * lib/mbswidth.c: Likewise.
86828         * NEWS: Mention the change.
86830 2007-07-07  Bruno Haible  <bruno@clisp.org>
86832         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86833         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86834         definition with an external declaration.
86835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86836         defined as a function. Remove AC_C_INLINE requirement.
86837         * modules/wcwidth (Files): Add lib/wcwidth.c.
86838         (Makefile.am): Remove redundant statement.
86840 2007-07-07  Bruno Haible  <bruno@clisp.org>
86842         * MODULES.html.sh (Unicode string functions): Add the new modules.
86844         * tests/uniwidth/test-u32-strwidth.c: New file.
86845         * modules/uniwidth/u32-strwidth-tests: New file.
86847         * lib/uniwidth/u32-strwidth.c: New file.
86848         * modules/uniwidth/u32-strwidth: New file.
86850         * tests/uniwidth/test-u16-strwidth.c: New file.
86851         * modules/uniwidth/u16-strwidth-tests: New file.
86853         * lib/uniwidth/u16-strwidth.c: New file.
86854         * modules/uniwidth/u16-strwidth: New file.
86856         * tests/uniwidth/test-u8-strwidth.c: New file.
86857         * modules/uniwidth/u8-strwidth-tests: New file.
86859         * lib/uniwidth/u8-strwidth.c: New file.
86860         * modules/uniwidth/u8-strwidth: New file.
86862         * tests/uniwidth/test-u32-width.c: New file.
86863         * modules/uniwidth/u32-width-tests: New file.
86865         * lib/uniwidth/u32-width.c: New file.
86866         * modules/uniwidth/u32-width: New file.
86868         * tests/uniwidth/test-u16-width.c: New file.
86869         * modules/uniwidth/u16-width-tests: New file.
86871         * lib/uniwidth/u16-width.c: New file.
86872         * modules/uniwidth/u16-width: New file.
86874         * tests/uniwidth/test-u8-width.c: New file.
86875         * modules/uniwidth/u8-width-tests: New file.
86877         * lib/uniwidth/u8-width.c: New file.
86878         * modules/uniwidth/u8-width: New file.
86880         * tests/uniwidth/test-uc_width.c: New file.
86881         * modules/uniwidth/width-tests: New file.
86883         * lib/uniwidth/width.c: New file, from GNU libiconv.
86884         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86885         * modules/uniwidth/width: New file.
86887         * lib/uniwidth.h: New file, from GNU libiconv.
86888         * modules/uniwidth/base: New file.
86890 2007-07-07  Bruno Haible  <bruno@clisp.org>
86892         * lib/uniname.h: New file, from GNU gettext.
86893         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
86894         * lib/uniname/uninames.h: New file, from GNU gettext.
86895         * lib/uniname/uniname.c: New file, from GNU gettext.
86896         * tests/uniname/test-uninames.sh: New file.
86897         * tests/uniname/test-uninames.c: New file, from GNU gettext.
86898         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
86899         * modules/uniname/base: New file.
86900         * modules/uniname/uniname: New file.
86901         * modules/uniname/uniname-tests: New file.
86902         * MODULES.html.sh (Unicode string functions): Add the new modules.
86904 2007-07-06  Bruno Haible  <bruno@clisp.org>
86906         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
86908 2007-07-06  Bruno Haible  <bruno@clisp.org>
86910         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
86911         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
86912         includes <cygwin/sys_time.h> which includes <sys/select.h> which
86913         include <sys/time.h>.
86914         Reported by Eric Blake.
86916 2007-07-06  Eric Blake  <ebb9@byu.net>
86918         Fix testing canonicalize on cygwin.
86919         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86920         Revert patch from 2007-06-19.
86921         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
86922         canonicalize module is also in use.
86923         * tests/test-canonicalize.c: New file.
86924         * tests/test-canonicalize.sh: Likewise.
86925         * modules/canonicalize-tests: Likewise.
86927 2007-07-06  Jim Meyering  <jim@meyering.net>
86929         * lib/getugroups.c (getugroups): Detect getgrent failure.
86930         Adjust comment to reflect reality: this function may return -1.
86932 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
86934         * build-aux/bootstrap (TP_URL,get_translations): Update to use
86935         the new TP address.
86936         (usage): Fix typo
86937         (gnulib_mk): New variable.
86939 2007-07-05  Jim Meyering  <jim@meyering.net>
86941         Don't let endgrent clobber errno, no matter how improbable.
86942         * lib/getugroups.c (getugroups): Save and restore errno around
86943         endgrent call.
86945         Close the group DB even when failing with 2^31 or more members.
86946         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
86948 2007-07-04  Jim Meyering  <jim@meyering.net>
86950         * lib/getugroups.h: New file.
86951         * lib/getugroups.c: Include "getugroups.h".
86952         Remove uses of "register" keyword.
86953         Move local variable, "cp", down into scope where used.
86954         Give "username" parameter the "const" attribute.
86955         * modules/getugroups (Files): Add lib/getugroups.h
86957 2007-07-04  Karl Berry  <karl@gnu.org>
86959         * MODULES.html.sh (func_all_modules): Complete rename of
86960         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
86962 2007-07-02  Bruno Haible  <bruno@clisp.org>
86964         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
86965         mode, when inttypes.h comes from gnulib.
86966         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86968 2007-07-02  Simon Josefsson  <simon@josefsson.org>
86970         * NEWS: Mention lgpl module name change.
86972         * modules/lgpl-2.1: Renamed from lgpl.
86974         * NEWS: Mention gpl module name change.
86976         * modules/gpl-3.0: New file, based on gpl-2.0.
86978         * modules/gpl-2.0: Renamed from gpl.
86980         * modules/gpl: Fix filename, doc/gpl.texi is now found at
86981         doc/gpl-2.0.texi.
86983 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
86985         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
86986         #define __STDC_LIMIT_MACROS temporarily while including
86987         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
86988         Problem reported by Joel E. Denny in
86989         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
86991 2007-07-01  Bruno Haible  <bruno@clisp.org>
86993         * lib/unistdio.h: New file.
86994         * lib/unistdio/u-asnprintf.h: New file.
86995         * lib/unistdio/u-asprintf.h: New file.
86996         * lib/unistdio/u-printf-args.c: New file.
86997         * lib/unistdio/u-printf-args.h: New file.
86998         * lib/unistdio/u-printf-parse.h: New file.
86999         * lib/unistdio/u-snprintf.h: New file.
87000         * lib/unistdio/u-sprintf.h: New file.
87001         * lib/unistdio/u-vasprintf.h: New file.
87002         * lib/unistdio/u-vsnprintf.h: New file.
87003         * lib/unistdio/u-vsprintf.h: New file.
87004         * lib/unistdio/ulc-asnprintf.c: New file.
87005         * lib/unistdio/ulc-asprintf.c: New file.
87006         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87007         * lib/unistdio/ulc-printf-parse.c: New file.
87008         * lib/unistdio/ulc-snprintf.c: New file.
87009         * lib/unistdio/ulc-sprintf.c: New file.
87010         * lib/unistdio/ulc-vasnprintf.c: New file.
87011         * lib/unistdio/ulc-vasprintf.c: New file.
87012         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87013         * lib/unistdio/ulc-vsnprintf.c: New file.
87014         * lib/unistdio/ulc-vsprintf.c: New file.
87015         * lib/unistdio/u8-asnprintf.c: New file.
87016         * lib/unistdio/u8-asprintf.c: New file.
87017         * lib/unistdio/u8-printf-parse.c: New file.
87018         * lib/unistdio/u8-snprintf.c: New file.
87019         * lib/unistdio/u8-sprintf.c: New file.
87020         * lib/unistdio/u8-vasnprintf.c: New file.
87021         * lib/unistdio/u8-vasprintf.c: New file.
87022         * lib/unistdio/u8-vsnprintf.c: New file.
87023         * lib/unistdio/u8-vsprintf.c: New file.
87024         * lib/unistdio/u8-u8-asnprintf.c: New file.
87025         * lib/unistdio/u8-u8-asprintf.c: New file.
87026         * lib/unistdio/u8-u8-snprintf.c: New file.
87027         * lib/unistdio/u8-u8-sprintf.c: New file.
87028         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87029         * lib/unistdio/u8-u8-vasprintf.c: New file.
87030         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87031         * lib/unistdio/u8-u8-vsprintf.c: New file.
87032         * lib/unistdio/u16-asnprintf.c: New file.
87033         * lib/unistdio/u16-asprintf.c: New file.
87034         * lib/unistdio/u16-printf-parse.c: New file.
87035         * lib/unistdio/u16-snprintf.c: New file.
87036         * lib/unistdio/u16-sprintf.c: New file.
87037         * lib/unistdio/u16-vasnprintf.c: New file.
87038         * lib/unistdio/u16-vasprintf.c: New file.
87039         * lib/unistdio/u16-vsnprintf.c: New file.
87040         * lib/unistdio/u16-vsprintf.c: New file.
87041         * lib/unistdio/u16-u16-asnprintf.c: New file.
87042         * lib/unistdio/u16-u16-asprintf.c: New file.
87043         * lib/unistdio/u16-u16-snprintf.c: New file.
87044         * lib/unistdio/u16-u16-sprintf.c: New file.
87045         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87046         * lib/unistdio/u16-u16-vasprintf.c: New file.
87047         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87048         * lib/unistdio/u16-u16-vsprintf.c: New file.
87049         * lib/unistdio/u32-asnprintf.c: New file.
87050         * lib/unistdio/u32-asprintf.c: New file.
87051         * lib/unistdio/u32-printf-parse.c: New file.
87052         * lib/unistdio/u32-snprintf.c: New file.
87053         * lib/unistdio/u32-sprintf.c: New file.
87054         * lib/unistdio/u32-vasnprintf.c: New file.
87055         * lib/unistdio/u32-vasprintf.c: New file.
87056         * lib/unistdio/u32-vsnprintf.c: New file.
87057         * lib/unistdio/u32-vsprintf.c: New file.
87058         * lib/unistdio/u32-u32-asnprintf.c: New file.
87059         * lib/unistdio/u32-u32-asprintf.c: New file.
87060         * lib/unistdio/u32-u32-snprintf.c: New file.
87061         * lib/unistdio/u32-u32-sprintf.c: New file.
87062         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87063         * lib/unistdio/u32-u32-vasprintf.c: New file.
87064         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87065         * lib/unistdio/u32-u32-vsprintf.c: New file.
87066         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87067         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87068         * tests/unistdio/test-ulc-printf1.h: New file.
87069         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87070         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87071         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87072         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87073         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87074         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87075         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87076         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87077         * tests/unistdio/test-u8-asnprintf1.c: New file.
87078         * tests/unistdio/test-u8-asnprintf1.h: New file.
87079         * tests/unistdio/test-u8-printf1.h: New file.
87080         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87081         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87082         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87083         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87084         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87085         * tests/unistdio/test-u8-vasprintf1.c: New file.
87086         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87087         * tests/unistdio/test-u8-vsprintf1.c: New file.
87088         * tests/unistdio/test-u16-asnprintf1.c: New file.
87089         * tests/unistdio/test-u16-asnprintf1.h: New file.
87090         * tests/unistdio/test-u16-printf1.h: New file.
87091         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87092         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87093         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87094         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87095         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87096         * tests/unistdio/test-u16-vasprintf1.c: New file.
87097         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87098         * tests/unistdio/test-u16-vsprintf1.c: New file.
87099         * tests/unistdio/test-u32-asnprintf1.c: New file.
87100         * tests/unistdio/test-u32-asnprintf1.h: New file.
87101         * tests/unistdio/test-u32-printf1.h: New file.
87102         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87103         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87104         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87105         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87106         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87107         * tests/unistdio/test-u32-vasprintf1.c: New file.
87108         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87109         * tests/unistdio/test-u32-vsprintf1.c: New file.
87110         * modules/unistdio/base: New file.
87111         * modules/unistdio/u-printf-args: New file.
87112         * modules/unistdio/ulc-asnprintf: New file.
87113         * modules/unistdio/ulc-asprintf: New file.
87114         * modules/unistdio/ulc-fprintf: New file.
87115         * modules/unistdio/ulc-printf-parse: New file.
87116         * modules/unistdio/ulc-snprintf: New file.
87117         * modules/unistdio/ulc-sprintf: New file.
87118         * modules/unistdio/ulc-vasnprintf: New file.
87119         * modules/unistdio/ulc-vasprintf: New file.
87120         * modules/unistdio/ulc-vfprintf: New file.
87121         * modules/unistdio/ulc-vsnprintf: New file.
87122         * modules/unistdio/ulc-vsprintf: New file.
87123         * modules/unistdio/u8-asnprintf: New file.
87124         * modules/unistdio/u8-asprintf: New file.
87125         * modules/unistdio/u8-printf-parse: New file.
87126         * modules/unistdio/u8-snprintf: New file.
87127         * modules/unistdio/u8-sprintf: New file.
87128         * modules/unistdio/u8-vasnprintf: New file.
87129         * modules/unistdio/u8-vasprintf: New file.
87130         * modules/unistdio/u8-vsnprintf: New file.
87131         * modules/unistdio/u8-vsprintf: New file.
87132         * modules/unistdio/u8-u8-asnprintf: New file.
87133         * modules/unistdio/u8-u8-asprintf: New file.
87134         * modules/unistdio/u8-u8-snprintf: New file.
87135         * modules/unistdio/u8-u8-sprintf: New file.
87136         * modules/unistdio/u8-u8-vasnprintf: New file.
87137         * modules/unistdio/u8-u8-vasprintf: New file.
87138         * modules/unistdio/u8-u8-vsnprintf: New file.
87139         * modules/unistdio/u8-u8-vsprintf: New file.
87140         * modules/unistdio/u16-asnprintf: New file.
87141         * modules/unistdio/u16-asprintf: New file.
87142         * modules/unistdio/u16-printf-parse: New file.
87143         * modules/unistdio/u16-snprintf: New file.
87144         * modules/unistdio/u16-sprintf: New file.
87145         * modules/unistdio/u16-vasnprintf: New file.
87146         * modules/unistdio/u16-vasprintf: New file.
87147         * modules/unistdio/u16-vsnprintf: New file.
87148         * modules/unistdio/u16-vsprintf: New file.
87149         * modules/unistdio/u16-u16-asnprintf: New file.
87150         * modules/unistdio/u16-u16-asprintf: New file.
87151         * modules/unistdio/u16-u16-snprintf: New file.
87152         * modules/unistdio/u16-u16-sprintf: New file.
87153         * modules/unistdio/u16-u16-vasnprintf: New file.
87154         * modules/unistdio/u16-u16-vasprintf: New file.
87155         * modules/unistdio/u16-u16-vsnprintf: New file.
87156         * modules/unistdio/u16-u16-vsprintf: New file.
87157         * modules/unistdio/u32-asnprintf: New file.
87158         * modules/unistdio/u32-asprintf: New file.
87159         * modules/unistdio/u32-printf-parse: New file.
87160         * modules/unistdio/u32-snprintf: New file.
87161         * modules/unistdio/u32-sprintf: New file.
87162         * modules/unistdio/u32-vasnprintf: New file.
87163         * modules/unistdio/u32-vasprintf: New file.
87164         * modules/unistdio/u32-vsnprintf: New file.
87165         * modules/unistdio/u32-vsprintf: New file.
87166         * modules/unistdio/u32-u32-asnprintf: New file.
87167         * modules/unistdio/u32-u32-asprintf: New file.
87168         * modules/unistdio/u32-u32-snprintf: New file.
87169         * modules/unistdio/u32-u32-sprintf: New file.
87170         * modules/unistdio/u32-u32-vasnprintf: New file.
87171         * modules/unistdio/u32-u32-vasprintf: New file.
87172         * modules/unistdio/u32-u32-vsnprintf: New file.
87173         * modules/unistdio/u32-u32-vsprintf: New file.
87174         * modules/unistdio/ulc-asnprintf-tests: New file.
87175         * modules/unistdio/ulc-vasnprintf-tests: New file.
87176         * modules/unistdio/ulc-vasprintf-tests: New file.
87177         * modules/unistdio/ulc-vsnprintf-tests: New file.
87178         * modules/unistdio/ulc-vsprintf-tests: New file.
87179         * modules/unistdio/u8-asnprintf-tests: New file.
87180         * modules/unistdio/u8-vasnprintf-tests: New file.
87181         * modules/unistdio/u8-vasprintf-tests: New file.
87182         * modules/unistdio/u8-vsnprintf-tests: New file.
87183         * modules/unistdio/u8-vsprintf-tests: New file.
87184         * modules/unistdio/u16-asnprintf-tests: New file.
87185         * modules/unistdio/u16-vasnprintf-tests: New file.
87186         * modules/unistdio/u16-vasprintf-tests: New file.
87187         * modules/unistdio/u16-vsnprintf-tests: New file.
87188         * modules/unistdio/u16-vsprintf-tests: New file.
87189         * modules/unistdio/u32-asnprintf-tests: New file.
87190         * modules/unistdio/u32-vasnprintf-tests: New file.
87191         * modules/unistdio/u32-vasprintf-tests: New file.
87192         * modules/unistdio/u32-vsnprintf-tests: New file.
87193         * modules/unistdio/u32-vsprintf-tests: New file.
87194         * MODULES.html.sh (Unicode string functions): Add the new modules.
87196 2007-07-01  Bruno Haible  <bruno@clisp.org>
87198         * lib/sprintf.c (sprintf): Limit the available length estimation,
87199         to avoid address wraparound.
87200         * lib/vsprintf.c (vsprintf): Likewise.
87201         * modules/sprintf-posix (Dependencies): Add stdint.
87202         * modules/vsprintf-posix (Dependencies): Likewise.
87204 2007-07-01  Bruno Haible  <bruno@clisp.org>
87206         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87207         Windows PATH as well. Conservative double-quoting. Comments.
87209 2007-07-01  Bruno Haible  <bruno@clisp.org>
87210             Eric Blake  <ebb9@byu.net>
87211             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87213         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87214         empty components in $PATH, denoting '.'.
87216 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87218         * gnulib-tool: Fix indentation.
87219         (func_create_megatestdir): Likewise.
87220         Report by Bruno Haible.
87222 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87224         Sync from Automake.
87225         * build-aux/gnupload: Fix shell portability issues with for loops.
87226         Report by Karl Berry.
87228 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87230         * build-aux/maint.mk (POURL): Use translationproject.org.
87232 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87233             Bruno Haible  <bruno@clisp.org>
87235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87236         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87237         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87238         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87239         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87241 2007-06-27  Bruno Haible  <bruno@clisp.org>
87243         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87244         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87246 2007-06-26  Karl Berry  <karl@gnu.org>
87248         * MODULES.html.sh: remove xreadlink-with-size.
87250 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87252         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87253         method that I hope also handles the double-include problem noted
87254         by Bruno Haible in
87255         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87257 2007-06-23  Bruno Haible  <bruno@clisp.org>
87259         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87260         Don't let the 'mostlyclean' target fail if the last subdirectory could
87261         not be removed.
87262         Reported by Karl Berry.
87264 2007-06-23  Bruno Haible  <bruno@clisp.org>
87266         * gnulib-tool (echo): Add a speedier workaround for ksh.
87267         * tests/test-echo.sh: Likewise.
87269 2007-06-23  Bruno Haible  <bruno@clisp.org>
87271         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87272         * tests/test-echo.sh: Likewise.
87274 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87276         * gnulib-tool (IFS): Initialize early, so we don't set it to
87277         empty later.
87278         (self_abspathname): Rewrite algorithm to set it, reindent.
87279         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87280         (func_create_megatestdir): Merge some sed scripts.
87282 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87284         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87285         exposed by Sun Studio 11 cc on Solaris 8.
87287 2007-06-22  Bruno Haible  <bruno@clisp.org>
87289         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87290         backslashes.
87291         * tests/test-echo.sh: New file.
87293 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87295         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87296         simplify `sed_replace_build_aux' scripts, they are portable but
87297         echoing them with `echo' is not.
87298         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87300 2007-06-21  Karl Berry  <karl@gnu.org>
87302         * config/srclist.txt: guess we can't handle the licenses via
87303         srclist at the moment.
87305 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87307         * MODULES.html.sh: Add include_next.
87308         * modules/include_next: New file.
87310 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87313         INCLUDE_NEXT.
87314         (gl_CHECK_NEXT_HEADERS): New macro.
87315         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87316         the obsolescent gl_ABSOLUTE_HEADER.
87317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87318         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87319         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87320         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87321         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87322         * m4/math_h.m4 (gl_MATH_H): Likewise.
87323         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87324         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87325         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87326         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87327         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87328         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87329         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87332         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87334         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87335         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87336         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87337         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87338         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87339         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87340         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87341         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87342         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87343         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87344         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87345         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87346         * lib/float_.h: Likewise.
87347         * lib/inttypes_.h: Likewise.
87348         * lib/math_.h: Likewise.
87349         * lib/search_.h: Likewise.
87350         * lib/signal_.h: Likewise.
87351         * lib/stdint_.h: Likewise.
87352         * lib/stdio_.h: Likewise.
87353         * lib/stdlib_.h: Likewise.
87354         * lib/string_.h: Likewise.
87355         * lib/sys_stat_.h: Likewise.
87356         * lib/sys_time_.h: Likewise.
87357         * lib/time_.h: Likewise.
87358         * lib/unistd_.h: Likewise.
87359         * lib/wchar_.h: Likewise.
87360         * lib/wctype_.h: Likewise.
87361         * lib/dirent_.h: Likewise.
87362         * lib/iconv_.h: Likewise.
87363         * lib/locale_.h: Likewise.
87364         * lib/netinet_in_.h: Likewise.
87365         * lib/sys_select_.h: Likewise.
87366         * lib/sys_socket_.h: Likewise.
87367         * lib/sysexits_.h: Likewise.
87368         * modules/fcntl (Depends-on): Depend on include_next, not
87369         absolute_header.
87370         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87371         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87372         * modules/fchdir: Likewise.
87373         * modules/float: Likewise.
87374         * modules/iconv_open: Likewise.
87375         * modules/inttypes: Likewise.
87376         * modules/locale: Likewise.
87377         * modules/math: Likewise.
87378         * modules/netinet_in: Likewise.
87379         * modules/search: Likewise.
87380         * modules/signal: Likewise.
87381         * modules/stdint: Likewise.
87382         * modules/stdio: Likewise.
87383         * modules/stdlib: Likewise.
87384         * modules/string: Likewise.
87385         * modules/sys_select: Likewise.
87386         * modules/sys_socket: Likewise.
87387         * modules/sys_stat: Likewise.
87388         * modules/sys_time: Likewise.
87389         * modules/sysexits: Likewise.
87390         * modules/time: Likewise.
87391         * modules/unistd: Likewise.
87392         * modules/wchar: Likewise.
87393         * modules/wctype: Likewise.
87394         * modules/sys_stat: Change maintainer to "all".
87395         * modules/unistd: Likewise.
87397 2007-06-20  Karl Berry  <karl@gnu.org>
87399         * config/srclist.txt: track www changes in license files.
87401 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87403         * build-aux/bootstrap: Remove stray dot.
87404         Make sure build_aux settings are honored when linking
87405         gnulib_extra_files.
87407 2007-06-19  Eric Blake  <ebb9@byu.net>
87409         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87410         Allow compilation on cygwin.
87412 2007-06-19  Jim Meyering  <jim@meyering.net>
87414         xreadlink-with-size: Remove module.  No longer used.
87415         Ex-callers now use xreadlink or mreadlink-with-size.
87416         * modules/xreadlink-with-size: Remove module.
87417         * lib/xreadlink-with-size.c: Remove file.
87418         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87419         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87420         just before the function definition *is* accurate.
87422         Eliminate one way canonicalize_filename_mode could exit.
87423         * lib/canonicalize.c (canonicalize_filename_mode):
87424         Use mreadlink_with_size, not xreadlink_with_size.
87426 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87428         Detect porting problems to FreeBSD/arm, which has time_t wider than
87429         long int.  Original problem reported for GNU diff by Xin Li in
87430         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87431         * modules/getdate (Depends-on): Add intprops, verify.
87432         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87433         is an integer type no wider than long int.
87435 2007-06-18  Jim Meyering  <jim@meyering.net>
87437         New module: mreadlink-with-size.
87438         * MODULES.html.sh: Add mreadlink-with-size.
87439         * modules/mreadlink-with-size: New module
87440         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87441         not xreadlink-with-size.
87442         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87444 2007-06-16  Bruno Haible  <bruno@clisp.org>
87446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87447         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87448         Reported by Gary V. Vaughan <gary@gnu.org>.
87450 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87452         Revamp lchown so that it lives in unistd.h where it belongs.
87453         * lib/lchown.h: Remove.
87454         * lib/dirchownmod.c: Don't include lib/lchown.h.
87455         * lib/fchownat.c: Likewise.
87456         * lib/openat.c: Likewise.
87457         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87458         does not follow symlinks.
87459         (EOPNOTSUPP): Define if not defined.
87460         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87461         is defined to 0.
87462         (lchown): New decl.
87463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87464         Do not check for lchown decl.
87465         Set REPLACE_LCHOWN.
87466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87467         REPLACE_LCHOWN.
87468         * modules/chown: Make it clear it follows symlinks.
87469         * modules/lchown: Make it clear it doesn't follow symlinks.
87470         (Files): Remove lib/lchown.h
87471         (Depends-on): Add unistd.
87472         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87473         (Include): Include <unistd.h>, not "lchown.h".
87474         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87475         REPLACE_LCHOWN.
87477 2007-06-15  Jim Meyering  <jim@meyering.net>
87479         Change license (GPL to LGPL) of fsusage and dependents.
87480         * modules/fsusage (License): Change to LGPL.
87481         * modules/full-read (License): Likewise.
87482         * modules/full-write (License): Likewise.
87483         * modules/safe-read (License): Likewise.
87484         * modules/safe-write (License): Likewise.
87486 2007-06-14  Ben Pfaff  <blp@gnu.org>
87488         Missing part of allocsa -> malloca transition.
87489         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87490         gl_MALLOCA.
87492 2007-06-12  Bruno Haible  <bruno@clisp.org>
87494         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87495         to ia64, x86_64, i386.
87496         Reported by Eric Blake.
87498 2007-06-12  Bruno Haible  <bruno@clisp.org>
87500         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87501         cross-compiling to x86_64.
87503 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87506         glitch reported by Ralf Wildenhues in
87507         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87509         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87510         Vin Shelton.
87512 2007-06-11  Bruno Haible  <bruno@clisp.org>
87514         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87515         replacement string.
87516         Reported by Eric Blake.
87518 2007-06-10  Bruno Haible  <bruno@clisp.org>
87520         Prepare vasnprintf code for use with Unicode strings.
87521         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87522         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87523         TYPE_U32_STRING.
87524         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87525         a_u32_string variants.
87526         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87527         * lib/printf-args.c: Don't include config.h and the specification
87528         header if PRINTF_FETCHARGS is already defined.
87529         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87530         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87531         TYPE_U16_STRING, TYPE_U32_STRING.
87532         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87533         u16_directive, u16_directives, u32_directive, u32_directives): New
87534         types.
87535         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87536         New declarations.
87537         * lib/printf-parse.c: Don't include config.h and the specification
87538         header if PRINTF_PARSE is already defined. Eliminate the set of
87539         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87540         them now. Include c-ctype.h.
87541         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87542         directive and CHAR_T_ONLY_ASCII.
87543         * lib/vasnprintf.c: Don't include config.h and the specification header
87544         if VASNPRINTF is already defined.
87545         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87546         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87547         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87548         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87549         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87550         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87551         code accordingly.
87552         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87553         pad_ourselves also in this case, with the 'c' and 's' directives, and
87554         with a different notion of "width".
87555         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87557 2007-06-10  Bruno Haible  <bruno@clisp.org>
87559         * modules/unistr/u32-mbsnlen: New file.
87560         * lib/unistr/u32-mbsnlen.c: New file.
87562         * modules/unistr/u16-mbsnlen: New file.
87563         * lib/unistr/u16-mbsnlen.c: New file.
87565         * modules/unistr/u8-mbsnlen: New file.
87566         * lib/unistr/u8-mbsnlen.c: New file.
87568         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87569         declarations.
87571 2007-06-10  Bruno Haible  <bruno@clisp.org>
87573         * lib/string_.h (mbsnlen): New declaration.
87574         * lib/mbsnlen.c: New file.
87575         * m4/mbsnlen.m4: New file.
87576         * modules/mbsnlen: New file.
87577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87578         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87579         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87581 2007-06-10  Bruno Haible  <bruno@clisp.org>
87583         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87585 2007-06-10  Bruno Haible  <bruno@clisp.org>
87587         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87588         * lib/mbuiter.h: Likewise.
87590 2007-06-10  Bruno Haible  <bruno@clisp.org>
87592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87593         declaration.
87595 2007-06-10  Karl Berry  <karl@gnu.org>
87597         * config/srclist.txt: remove gettext entries, Bruno prefers
87598         to update individually.
87600 2007-06-10  Bruno Haible  <bruno@clisp.org>
87602         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87603         'maxlen'. Ensure only length + width bytes are allocated, not
87604         length + 1 + width.
87606 2007-06-09  Bruno Haible  <bruno@clisp.org>
87608         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87609         (CHAR_T): Remove macro.
87610         (VASNPRINTF): Update.
87612 2007-06-09  Bruno Haible  <bruno@clisp.org>
87614         * MODULES.html.sh (Unicode string functions): Add the new modules.
87616         * modules/uniconv/u32-conv-to-enc: New file.
87617         * lib/uniconv/u32-conv-to-enc.c: New file.
87618         * modules/uniconv/u32-conv-to-enc-tests: New file.
87619         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87621         * modules/uniconv/u16-conv-to-enc: New file.
87622         * lib/uniconv/u16-conv-to-enc.c: New file.
87623         * lib/uniconv/u-conv-to-enc.h: New file.
87624         * modules/uniconv/u16-conv-to-enc-tests: New file.
87625         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87627         * modules/uniconv/u8-conv-to-enc: New file.
87628         * lib/uniconv/u8-conv-to-enc.c: New file.
87629         * modules/uniconv/u8-conv-to-enc-tests: New file.
87630         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87632         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87633         u32_conv_to_encoding): New declarations.
87635 2007-06-09  Bruno Haible  <bruno@clisp.org>
87637         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87639 2007-06-09  Bruno Haible  <bruno@clisp.org>
87641         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87642         * modules/malloca: Renamed from modules/allocsa, updated.
87643         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87644         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87645         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87646         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87647         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87648         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87649         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87650         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87651         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87652         * modules/c-strcasestr (Depends-on): Update.
87653         * lib/c-strcasestr.c: Update.
87654         * modules/c-strstr (Depends-on): Update.
87655         * lib/c-strstr.c: Update.
87656         * modules/canonicalize-lgpl (Depends-on): Update.
87657         * lib/canonicalize-lgpl.c: Update.
87658         * modules/clean-temp (Depends-on): Update.
87659         * lib/clean-temp.c: Update.
87660         * modules/csharpcomp (Depends-on): Update.
87661         * lib/csharpcomp.c: Update.
87662         * modules/csharpexec (Depends-on): Update.
87663         * lib/csharpexec.c: Update.
87664         * modules/javacomp (Depends-on): Update.
87665         * lib/javacomp.c: Update.
87666         * modules/javaexec (Depends-on): Update.
87667         * lib/javaexec.c: Update.
87668         * modules/mbscasestr (Depends-on): Update.
87669         * lib/mbscasestr.c: Update.
87670         * modules/mbsstr (Depends-on): Update.
87671         * lib/mbsstr.c: Update.
87672         * modules/setenv (Depends-on): Update.
87673         * lib/setenv.c: Update.
87674         * modules/strcasestr (Depends-on): Update.
87675         * lib/strcasestr.c: Update.
87676         * modules/striconveha (Depends-on): Update.
87677         * lib/striconveha.c: Update.
87678         * modules/relocatable-prog-wrapper (Files): Update.
87679         * lib/relocwrapper.c: Update.
87680         * build-aux/install-reloc: Update.
87681         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87683 2007-06-08  Bruno Haible  <bruno@clisp.org>
87685         Port to uClibc.
87686         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87687         * lib/fpurge.c (fpurge): Likewise.
87688         * lib/freading.c (freading): Likewise.
87689         * lib/fseeko.c (rpl_fseeko): Likewise.
87690         * lib/fseterr.c (fseterr): Likewise.
87691         * lib/fwriting.c (fwriting): Likewise.
87692         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87694 2007-06-08  Bruno Haible  <bruno@clisp.org>
87696         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87697         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87698         * modules/gettext (Files): Add m4/intlmacosx.m4.
87700 2007-06-07  Bruno Haible  <bruno@clisp.org>
87702         * modules/localename-tests: New file.
87703         * tests/test-localename.c: New file.
87705         New module 'localename'.
87706         * lib/localename.h: New file.
87707         * lib/localename.c: New file, from GNU gettext.
87708         * m4/localename.m4: New file.
87709         * modules/localename: New file.
87711 2007-06-07  Bruno Haible  <bruno@clisp.org>
87713         Work around the lack of <wchar.h> on some builds of uClibc.
87714         * doc/headers/wchar.texi: Update.
87715         * lib/wchar_.h: Include <wchar.h> only if it exists.
87716         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87717         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87718         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87719         doesn't exist.
87720         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87721         * modules/mbfile (Depends-on): Add wchar.
87722         * modules/mbiter (Depends-on): Likewise.
87723         * modules/mbuiter (Depends-on): Likewise.
87724         Reported by Simon Josefsson.
87726 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87728         Work around problem reported by Steven M. Schweda in
87729         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87730         Tru64 5.1B with the Compaq compiler environment installed declares
87731         an 'isblank' function but does not define it in the C library.
87732         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87733         * lib/regex_internal.h (isblank): Likewise.
87734         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87735         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87737 2007-06-05  Bruno Haible  <bruno@clisp.org>
87739         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87740         ia64.
87741         * modules/printf-safe: New file.
87742         * modules/fprintf-posix (Depends-on): Add printf-safe.
87743         * modules/printf-posix (Depends-on): Likewise.
87744         * modules/snprintf-posix (Depends-on): Likewise.
87745         * modules/sprintf-posix (Depends-on): Likewise.
87746         * modules/vasnprintf-posix (Depends-on): Likewise.
87747         * modules/vasprintf-posix (Depends-on): Likewise.
87748         * modules/vfprintf-posix (Depends-on): Likewise.
87749         * modules/vprintf-posix (Depends-on): Likewise.
87750         * modules/vsnprintf-posix (Depends-on): Likewise.
87751         * modules/vsprintf-posix (Depends-on): Likewise.
87752         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87753         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87754         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87755         "no" on i386, x86_64, ia64.
87756         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87757         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87758         on i386, x86_64, ia64.
87759         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87760         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87761         on i386, x86_64, ia64.
87762         * tests/test-vasnprintf-posix.c: Include float.h.
87763         (LDBL80_WORDS): New macro.
87764         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87765         on i386, x86_64, ia64.
87766         * tests/test-vasprintf-posix.c: Include float.h.
87767         (LDBL80_WORDS): New macro.
87768         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87769         on i386, x86_64, ia64.
87770         * tests/test-snprintf-posix.c: Include float.h.
87771         * tests/test-sprintf-posix.c: Likewise.
87772         * tests/test-vsnprintf-posix.c: Likewise.
87773         * tests/test-vsprintf-posix.c: Likewise.
87775 2007-06-05  Bruno Haible  <bruno@clisp.org>
87777         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87778         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87779         non-IEEE numbers on i386, x86_64, ia64.
87780         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87781         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87782         * tests/test-isnanl.h: Include float.h.
87783         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87785 2007-06-05  Bruno Haible  <bruno@clisp.org>
87787         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87788         also the %a / %A. Handle the %a / %A code before this extra handling.
87790 2007-06-05  Bruno Haible  <bruno@clisp.org>
87792         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87793         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87795 2007-06-05  Bruno Haible  <bruno@clisp.org>
87797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87798         typo in variable name.
87800 2007-06-05  Eric Blake  <ebb9@byu.net>
87802         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87803         Reported by Simon Josefsson.
87805 2007-06-04  Bruno Haible  <bruno@clisp.org>
87807         Avoid test failures on some PowerPC platforms.
87808         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87809         Define differently for PowerPC.
87810         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87811         Reported by Gary V. Vaughan <gary@gnu.org>.
87813 2007-06-02  Bruno Haible  <bruno@clisp.org>
87815         Fix test-stdint failure on FreeBSD/ia64.
87816         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87817         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87818         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87819         * doc/headers/stdint.texi: Update.
87821 2007-06-01  Bruno Haible  <bruno@clisp.org>
87823         * tests/test-binary-io.c (main): Pass a third argument to open().
87824         Reported by Gary V. Vaughan <gary@gnu.org>.
87826 2007-06-01  Bruno Haible  <bruno@clisp.org>
87828         * doc/functions/frexpl.texi: Update for mingw.
87830 2007-06-01  Bruno Haible  <bruno@clisp.org>
87832         * tests/test-lseek.c (main): Disable test of errno for invalid third
87833         argument.
87834         * doc/functions/lseek.texi: Update.
87835         Reported by Gary V. Vaughan <gary@gnu.org>.
87837 2007-05-28  Bruno Haible  <bruno@clisp.org>
87839         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87841 2007-05-31  Eric Blake  <ebb9@byu.net>
87843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87844         cross compiling.
87846 2007-05-30  Eric Blake  <ebb9@byu.net>
87847         and Bruno Haible  <bruno@clisp.org>
87849         Work around mingw test failures exposed by m4-1.4.9b.
87850         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87851         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87852         moment.
87854 2007-05-30  Bruno Haible  <bruno@clisp.org>
87856         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87857         assuming that they are closed. Needed on HP-UX 11.
87859 2007-05-29  Bruno Haible  <bruno@clisp.org>
87861         Fix a problem with #include_next.
87862         * lib/dirent_.h: Split the double-inclusion guard.
87863         * lib/fcntl_.h: Likewise.
87864         * lib/float_.h: Likewise.
87865         * lib/iconv_.h: Likewise.
87866         * lib/inttypes_.h: Likewise.
87867         * lib/locale_.h: Likewise.
87868         * lib/math_.h: Likewise.
87869         * lib/netinet_in_.h: Likewise.
87870         * lib/search_.h: Likewise.
87871         * lib/signal_.h: Likewise.
87872         * lib/stdint_.h: Likewise.
87873         * lib/stdio_.h: Likewise.
87874         * lib/stdlib_.h: Likewise.
87875         * lib/string_.h: Likewise.
87876         * lib/sys_select_.h: Likewise.
87877         * lib/sys_socket_.h: Likewise.
87878         * lib/sys_stat_.h: Likewise.
87879         * lib/sys_time_.h: Likewise.
87880         * lib/sysexits_.h: Likewise.
87881         * lib/time_.h: Likewise.
87882         * lib/unistd_.h: Likewise.
87883         * lib/wchar_.h: Likewise.
87884         * lib/wctype_.h: Likewise.
87886 2007-05-29  Bruno Haible  <bruno@clisp.org>
87888         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87889         for the moment.
87891 2007-05-29  Bruno Haible  <bruno@clisp.org>
87893         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
87894         invocation.
87895         Reported by Eric Blake.
87897 2007-05-29  Bruno Haible  <bruno@clisp.org>
87899         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
87900         compiling case.
87902 2007-05-29  Eric Blake  <ebb9@byu.net>
87903             Bruno Haible  <bruno@clisp.org>
87905         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
87906         cross compiles.
87908 2007-05-28  Eric Blake  <ebb9@byu.net>
87910         * modules/closein-tests (test_closein_LDADD): Support test on
87911         cygwin with libtool.
87913 2007-05-28  Bruno Haible  <bruno@clisp.org>
87915         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
87916         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
87917         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
87918         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
87919         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
87920         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
87921         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
87922         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
87923         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
87925 2007-05-28  Eric Blake  <ebb9@byu.net>
87927         Unconditionally include <config.h> in unit tests.
87928         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
87929         * tests/test-allocsa.c, tests/test-arcfour.c,
87930         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
87931         tests/test-array_list.c, tests/test-array_oset.c,
87932         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
87933         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
87934         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
87935         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
87936         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
87937         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
87938         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
87939         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
87940         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
87941         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
87942         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
87943         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
87944         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
87945         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
87946         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
87947         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
87948         test-md5.c, test-memmem.c, test-printf-posix.c,
87949         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
87950         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
87951         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
87952         test-strcasestr.c, test-striconv.c, test-striconveh.c,
87953         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
87954         test-vasnprintf-posix2.c, test-vasnprintf.c,
87955         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
87956         test-vfprintf-posix.c, test-vprintf-posix.c,
87957         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
87958         test-xvasprintf.c: Likewise.
87960 2007-05-28  Bruno Haible  <bruno@clisp.org>
87962         * gnulib-tool (func_import): Remember the --with-tests command-line
87963         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
87964         Reported by Eric Blake.
87966 2007-05-28  Bruno Haible  <bruno@clisp.org>
87968         * modules/ftell-tests: New file.
87969         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
87970         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
87972         * lib/ftell.c: New file.
87973         * modules/ftell: New file.
87974         * m4/ftell.m4: New file.
87975         * doc/functions/ftell.texi: Update.
87976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
87977         REPLACE_FTELL.
87978         * lib/stdio_.h (rpl_ftell): New declaration.
87979         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
87980         REPLACE_FTELL.
87982 2007-05-28  Eric Blake  <ebb9@byu.net>
87984         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
87986 2007-05-28  Bruno Haible  <bruno@clisp.org>
87988         * modules/fseek-tests: New file.
87989         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
87990         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
87992         * lib/fseek.c: New file.
87993         * modules/fseek: New file.
87994         * m4/fseek.m4: New file.
87995         * doc/functions/fseek.texi: Update.
87996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
87997         REPLACE_FSEEK.
87998         * lib/stdio_.h (rpl_fseek): New declaration.
87999         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88000         REPLACE_FSEEK.
88002 2007-05-28  Bruno Haible  <bruno@clisp.org>
88004         * lib/stdio_.h (fflush): More comments.
88006 2007-05-28  Bruno Haible  <bruno@clisp.org>
88008         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88009         runtime test.
88011 2007-05-28  Eric Blake  <ebb9@byu.net>
88013         Improve lseek module.
88014         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88015         * lib/unistd_.h (lseek): Scale back link warning message.
88016         * tests/test-lseek.c: Beef up test.
88017         * tests/test-lseek.sh: Exercise more facets of lseek.
88018         Reported by Bruno Haible.
88020 2007-05-28  Bruno Haible  <bruno@clisp.org>
88022         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88023         to define.
88025 2007-05-27  Bruno Haible  <bruno@clisp.org>
88027         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88029 2007-05-27  Bruno Haible  <bruno@clisp.org>
88031         * modules/openmp: New file.
88032         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88033         Noah Misch.
88035 2007-05-26  Bruno Haible  <bruno@clisp.org>
88037         * modules/chdir-long (Depends-on): Add fchdir.
88038         * modules/chdir-safer (Depends-on): Likewise.
88039         * modules/fts (Depends-on): Likewise.
88040         * modules/fts-lgpl (Depends-on): Likewise.
88041         * modules/openat (Depends-on): Likewise.
88042         * modules/savewd (Depends-on): Likewise.
88044 2007-05-24  Eric Blake  <ebb9@byu.net>
88046         Fix lseek on mingw.
88047         * modules/lseek: New module.
88048         * m4/lseek.m4: New file.
88049         * lib/lseek.c: New file.
88050         * modules/lseek-tests: New file.
88051         * tests/test-lseek.c: New file.
88052         * tests/test-lseek.sh: New file.
88053         * MODULES.html.sh: Document lseek module.
88054         * modules/fflush (Depends-on): Add lseek, fseeko.
88055         * modules/fseeko (Depends-on): Likewise.
88056         * modules/ftello (Depends-on): Likewise.
88057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88058         broken.
88059         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88060         broken.
88061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88062         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88063         * lib/ftello.c (rpl_ftello): Likewise.
88064         * tests/test-fseeko.c (main): Test this.
88065         * tests/test-fseeko.sh: Likewise.
88066         * tests/test-ftello.c (main): Likewise.
88067         * tests/test-ftello.sh: Likewise.
88068         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88069         implies replacing fseek.
88070         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88071         HAVE_FTELLO.
88072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88073         * modules/unistd (Makefile.am): Likewise.
88074         * lib/unistd_.h (lseek): Declare a replacement.
88075         * doc/functions/lseek.texi (lseek): Document this fix.
88076         * doc/functions/fseek.texi (fseek): Likewise.
88077         * doc/functions/ftell.texi (ftell): Likewise.
88079 2007-05-24  Bruno Haible  <bruno@clisp.org>
88081         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88082         in the printed representation of a NaN.
88083         * tests/test-vasprintf-posix.c (test_function): Likewise.
88084         * tests/test-snprintf-posix.h (test_function): Likewise.
88085         * tests/test-sprintf-posix.h (test_function): Likewise.
88086         Reported by Eric Blake.
88088 2007-05-23  Eric Blake  <ebb9@byu.net>
88090         Fix fseeko/ftello on cygwin 1.5.24.
88091         * doc/functions/fseeko.texi (fseeko): Document the fix.
88092         * doc/functions/ftello.texi (ftello): Document the fix.
88093         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88094         * doc/functions/stdout.text (stdout): New file.
88095         * doc/functions/stderr.text (stderr): New file.
88096         * doc/gnulib.texi (Function Substitutes): Use new files.
88097         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88098         prior to 1.7.0.
88099         * tests/test-ftello.c (main): Likewise for ftello.
88100         * tests/test-fseeko.sh: New file.
88101         * tests/test-ftello.sh: New file.
88102         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88103         with seekable stdin.
88104         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88106         (gl_REPLACE_FSEEKO): New macro.
88107         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88108         * modules/fseeko (Files): Distribute fseeko.c.
88109         * modules/ftello (Files): Distribute ftello.c.
88110         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88111         mode.
88112         * lib/ftello.c (rpl_ftello): New file.
88113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88114         fseeko, ftello.
88115         (gl_STDIN_LARGE_OFFSET): New macro.
88116         * modules/stdio (Makefile.am): Perform the replacement.
88117         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88119 2007-05-23  Bruno Haible  <bruno@clisp.org>
88121         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88122         GNULIB_POSIXCHECK is defined.
88124 2007-05-21  Bruno Haible  <bruno@clisp.org>
88126         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88127         Check also the output for NaN arguments. When cross-compiling, guess
88128         no on IRIX.
88129         * lib/vasnprintf.c: Update comments.
88130         * tests/test-vasnprintf-posix.c (strisnan): New function.
88131         (test_function): Use it.
88132         * tests/test-vasprintf-posix.c (strisnan): New function.
88133         (test_function): Use it.
88134         * tests/test-snprintf-posix.h (strisnan): New function.
88135         (test_function): Use it.
88136         * tests/test-sprintf-posix.h (strisnan): New function.
88137         (test_function): Use it.
88138         Reported by Eric Blake.
88140 2007-05-20  Bruno Haible  <bruno@clisp.org>
88142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88143         numbers that fails on BeOS.
88144         * doc/functions/frexpl.texi: Update.
88146 2007-05-20  Jim Meyering  <jim@meyering.net>
88148         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88149         forced upon us by glibc-2.6.
88151 2007-05-20  Bruno Haible  <bruno@clisp.org>
88153         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88154         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88155         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88156         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88157         NEED_PRINTF_INFINITE.
88158         (is_infinitel): New function.
88159         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88161         gl_PREREQ_VASNPRINTF_INFINITE.
88162         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88164         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88165         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88166         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88167         gl_PREREQ_VASNPRINTF_INFINITE.
88168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88175         * doc/functions/fprintf.texi: Update.
88176         * doc/functions/printf.texi: Update.
88177         * doc/functions/snprintf.texi: Update.
88178         * doc/functions/sprintf.texi: Update.
88179         * doc/functions/vfprintf.texi: Update.
88180         * doc/functions/vprintf.texi: Update.
88181         * doc/functions/vsnprintf.texi: Update.
88182         * doc/functions/vsprintf.texi: Update.
88184 2007-05-20  Bruno Haible  <bruno@clisp.org>
88186         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88187         was not found in libc.
88188         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88190 2007-05-20  Bruno Haible  <bruno@clisp.org>
88192         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88193         printed as "-nan" instead of "nan".
88194         * tests/test-vasprintf-posix.c (test_function): Likewise.
88195         * tests/test-snprintf-posix.h (test_function): Likewise.
88196         * tests/test-sprintf-posix.h (test_function): Likewise.
88197         Needed for HP-UX 11.
88199 2007-05-20  Jim Meyering  <jim@meyering.net>
88201         Fix buggy test for the fchownat-deref bug.
88202         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88203         symlink required for the run-test.  Without it, this test would
88204         always declare that fchownat doesn't work, and client code would
88205         unnecessarily use the replacement function with fixed libc.
88206         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88207         Reported by Greg Schafer.
88209 2007-05-19  Bruno Haible  <bruno@clisp.org>
88211         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88212         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88213         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88214         Needed for IRIX 6.5 and Solaris 2.5.1.
88216 2007-05-19  Bruno Haible  <bruno@clisp.org>
88218         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88219         (test_function): Skip tests involving -0.0 on platforms where
88220         -0.0 = 0.0.
88221         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88222         (test_function): Skip tests involving -0.0 on platforms where
88223         -0.0 = 0.0.
88224         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88225         (test_function): Skip tests involving -0.0 on platforms where
88226         -0.0 = 0.0.
88227         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88228         (test_function): Skip tests involving -0.0 on platforms where
88229         -0.0 = 0.0.
88230         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88231         tests.
88232         * tests/test-printf-posix.h (test_function): Likewise.
88233         * tests/test-printf-posix.output: Remove all -0.0 related results.
88234         Needed for IRIX 6.5.
88236 2007-05-19  Bruno Haible  <bruno@clisp.org>
88238         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88239         printed as "nan0x7fffffff" instead of "nan".
88240         * tests/test-vasprintf-posix.c (test_function): Likewise.
88241         * tests/test-snprintf-posix.h (test_function): Likewise.
88242         * tests/test-sprintf-posix.h (test_function): Likewise.
88243         * tests/test-fprintf-posix.h (NaN): Remove macro.
88244         (test_function): Remove all NaN related tests.
88245         * tests/test-printf-posix.h (NaN): Remove macro.
88246         (test_function): Remove all NaN related tests.
88247         * tests/test-printf-posix.output: Remove all NaN related results.
88248         Needed for IRIX 6.5.
88250 2007-05-19  Bruno Haible  <bruno@clisp.org>
88252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88255 2007-05-19  Bruno Haible  <bruno@clisp.org>
88257         * lib/float_.h: New file.
88258         * m4/float_h.m4: New file.
88259         * modules/float: New file.
88260         * modules/isnanl (Dependencies): Add float.
88261         * modules/isnanl-nolibm (Dependencies): Likewise.
88262         * modules/mathl (Dependencies): Likewise.
88263         * modules/printf-frexpl (Dependencies): Likewise.
88264         * modules/signbit (Dependencies): Likewise.
88265         * modules/vasnprintf (Dependencies): Likewise.
88266         * doc/headers/float.texi: Update.
88268 2007-05-19  Jim Meyering  <jim@meyering.net>
88270         * lib/utimens.c (gl_futimens): Rename from futimens,
88271         now that glibc-2.6 declares futimens.
88272         * lib/utimens.h: Likewise.
88274 2007-05-19  Bruno Haible  <bruno@clisp.org>
88276         Avoid test failures on mingw.
88277         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88278         * tests/test-printf-posix.sh: Likewise.
88279         * tests/test-vfprintf-posix.sh: Likewise.
88280         * tests/test-vprintf-posix.sh: Likewise.
88282 2007-05-19  Bruno Haible  <bruno@clisp.org>
88284         Fix *printf result for NaN, Inf, -0.0 on mingw.
88285         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88286         * lib/vasnprintf.c: Include math.h and isnan.h.
88287         (is_infinite_or_zero): New function.
88288         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88289         values in the %f, %F, %e, %E, %g, %G directives.
88290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88292         gl_PRINTF_INFINITE and test its result. Invoke
88293         gl_PREREQ_VASNPRINTF_INFINITE.
88294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88301         * doc/functions/fprintf.texi: Update.
88302         * doc/functions/printf.texi: Update.
88303         * doc/functions/snprintf.texi: Update.
88304         * doc/functions/sprintf.texi: Update.
88305         * doc/functions/vfprintf.texi: Update.
88306         * doc/functions/vprintf.texi: Update.
88307         * doc/functions/vsnprintf.texi: Update.
88308         * doc/functions/vsprintf.texi: Update.
88310 2007-05-19  Bruno Haible  <bruno@clisp.org>
88312         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88313         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88314         Instead of multiplying with 10^k, set extra_zeroes to k.
88315         (scale10_round_long_double): Remove function.
88317 2007-05-18  Bruno Haible  <bruno@clisp.org>
88319         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88320         introduced on 2007-05-06.
88322 2007-05-18  Bruno Haible  <bruno@clisp.org>
88324         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88325         %g directives.
88326         * tests/test-vasprintf-posix.c (test_function): Likewise.
88327         * tests/test-snprintf-posix.h (test_function): Likewise.
88328         * tests/test-sprintf-posix.h (test_function): Likewise.
88330 2007-05-18  Bruno Haible  <bruno@clisp.org>
88332         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88333         (strmatch): New function.
88334         (test_function): Test the %f directive on numbers of various exponents.
88335         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88336         (strmatch): New function.
88337         (test_function): Test the %f directive on numbers of various exponents.
88338         * tests/test-snprintf-posix.h (strmatch): New function.
88339         (test_function): Test the %f directive on numbers of various exponents.
88340         * tests/test-sprintf-posix.h (strmatch): New function.
88341         (test_function): Test the %f directive on numbers of various exponents.
88342         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88343         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88344         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88345         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88347 2007-05-18  Bruno Haible  <bruno@clisp.org>
88349         Add support for 'long double' number output.
88350         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88351         * lib/vasnprintf.c: Include math.h and float+.h.
88352         (mp_limb_t): New type.
88353         (GMP_LIMB_BITS): New macro.
88354         (mp_twolimb_t): New type.
88355         (GMP_TWOLIMB_BITS): New macro.
88356         (mpn_t): New type.
88357         (multiply, divide, convert_to_decimal, decode_long_double,
88358         scale10_round_long_double, scale10_round_decimal_long_double,
88359         floorlog10l): New functions.
88360         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88361         for the %f, %F, %e, %E, %g, %G directives.
88362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88364         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88365         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88373         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88374         * modules/snprintf-posix (Depends-on): Likewise.
88375         * modules/sprintf-posix (Depends-on): Likewise.
88376         * modules/vasnprintf-posix (Depends-on): Likewise.
88377         * modules/vasprintf-posix (Depends-on): Likewise.
88378         * modules/vfprintf-posix (Depends-on): Likewise.
88379         * modules/vsnprintf-posix (Depends-on): Likewise.
88380         * modules/vsprintf-posix (Depends-on): Likewise.
88381         * modules/vasnprintf (Files): Add lib/float+.h.
88382         * doc/functions/fprintf.texi: Update.
88383         * doc/functions/printf.texi: Update.
88384         * doc/functions/snprintf.texi: Update.
88385         * doc/functions/sprintf.texi: Update.
88386         * doc/functions/vfprintf.texi: Update.
88387         * doc/functions/vprintf.texi: Update.
88388         * doc/functions/vsnprintf.texi: Update.
88389         * doc/functions/vsprintf.texi: Update.
88391 2007-05-18  Bruno Haible  <bruno@clisp.org>
88393         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88395 2007-05-18  Bruno Haible  <bruno@clisp.org>
88397         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88398         for printing 64-bit integers. Needed for mingw.
88400 2007-05-18  Bruno Haible  <bruno@clisp.org>
88402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88403         gl_FUNC_FREXPL_WORKS.
88404         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88406 2007-05-18  Bruno Haible  <bruno@clisp.org>
88408         * modules/frexpl-nolibm-tests: New file.
88410         * modules/frexpl-nolibm: New file.
88411         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88413 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88415         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88416         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88417         GCC 4.2, which otherwise issues a lot of warnings.
88418         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88419         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88420         Likewise.
88421         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88422         * modules/iconv_open (iconv.h): Likewise.
88423         * modules/locale (locale.h): Likewise.
88424         * modules/netinet_in (netinet/in.h): Likewise.
88425         * modules/sys_select (sys_select.h): Likewise.
88426         * modules/sys_socket (sys/socket.h): Likewise.
88427         * modules/sys_stat (sys/stat.h): Likewise.
88428         * modules/sysexits (sysexits.h): Likewise.
88429         * modules/unistd (unistd.h): Likewise.
88431 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88433         * modules/closein-tests (Makefile.am): Distribute
88434         `test-closein.sh'.
88436 2007-05-17  Bruno Haible  <bruno@clisp.org>
88438         * tests/test-printf-posix.output: Renamed from
88439         tests/test-fprintf-posix.out.
88440         * modules/fprintf-posix-tests: Update.
88441         * modules/printf-posix-tests: Update.
88442         * modules/vfprintf-posix-tests: Update.
88443         * modules/vprintf-posix-tests: Update.
88444         * tests/test-fprintf-posix.sh: Update.
88445         * tests/test-printf-posix.sh: Update.
88446         * tests/test-vfprintf-posix.sh: Update.
88447         * tests/test-vprintf-posix.sh: Update.
88448         Reported by Ralf Wildenhues.
88450 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88452         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88453         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88454         GCC 4.2, which otherwise issues a lot of warnings.
88455         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88456         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88457         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88458         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88459         it should no longer be needed.
88460         * lib/string_.h: Likewise.
88461         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88462         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88463         * modules/inttypes (inttypes.h): Likewise.
88464         * modules/math (math.h): Likewise.
88465         * modules/search (search.h): Likewise.
88466         * modules/signal (signal.h): Likewise.
88467         * modules/stdint (stdint.h): Likewise.
88468         * modules/stdio (stdio.h): Likewise.
88469         * modules/stdlib (stdlib.h): Likewise.
88470         * modules/string (string.h): Likewise.
88471         * modules/sys_time (sys/time.h): Likewise.
88472         * modules/time (time.h): Likewise.
88473         * modules/wchar (wchar.h): Likewise.
88474         * modules/wctype (wtype.h): Likewise.
88476 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88478         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88480 2007-05-13  Bruno Haible  <bruno@clisp.org>
88482         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88483         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88484         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88485         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88486         (gl_PREREQ_STRTOK_R): Don't require it here.
88488 2007-05-13  Bruno Haible  <bruno@clisp.org>
88490         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88491         when used in C++ mode.
88493 2007-05-12  Bruno Haible  <bruno@clisp.org>
88495         * lib/linebuffer.h: Tweak doc.
88496         * lib/linebuffer.c: Likewise.
88498 2007-05-12  James Youngman  <jay@gnu.org>
88500         * lib/linebuffer.c (readlinebuffer_delim): New function,
88501         like readlinebuffer, but use a caller-specified delimiter.
88502         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88503         as the delimiter.
88504         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88506 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88508         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88509         * modules/openat (Files): Remove openat-die.c.
88510         (Depends-on): Add openat-die.
88511         * modules/openat-die: New module.
88513 2007-05-06  Bruno Haible  <bruno@clisp.org>
88515         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88516         Update with info about Cygwin.
88517         * doc/functions/fprintf.texi: Update.
88518         * doc/functions/printf.texi: Update.
88519         * doc/functions/snprintf.texi: Update.
88520         * doc/functions/sprintf.texi: Update.
88521         * doc/functions/vfprintf.texi: Update.
88522         * doc/functions/vprintf.texi: Update.
88523         * doc/functions/vsnprintf.texi: Update.
88524         * doc/functions/vsprintf.texi: Update.
88525         Reported by Eric Blake.
88527 2007-05-06  Bruno Haible  <bruno@clisp.org>
88529         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88530         padding ourselves for the floating-point directives.
88531         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88534         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88535         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88543         * tests/test-snprintf-posix.h (test_function): Also check the width
88544         and some flags in the %f directive.
88545         * tests/test-sprintf-posix.h (test_function): Likewise.
88546         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88547         * tests/test-vasprintf-posix.c (test_function): Likewise.
88548         * doc/functions/fprintf.texi: Update.
88549         * doc/functions/printf.texi: Update.
88550         * doc/functions/snprintf.texi: Update.
88551         * doc/functions/sprintf.texi: Update.
88552         * doc/functions/vfprintf.texi: Update.
88553         * doc/functions/vprintf.texi: Update.
88554         * doc/functions/vsnprintf.texi: Update.
88555         * doc/functions/vsprintf.texi: Update.
88557 2007-05-06  Bruno Haible  <bruno@clisp.org>
88559         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88560         pass the ' flag character to sprintf or snprintf.
88561         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88564         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88565         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88568         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88569         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88571         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88572         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88573         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88574         flag.
88575         * tests/test-sprintf-posix.h (test_function): Likewise.
88576         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88577         * tests/test-vasprintf-posix.c (test_function): Likewise.
88578         * doc/functions/fprintf.texi: Update.
88579         * doc/functions/printf.texi: Update.
88580         * doc/functions/snprintf.texi: Update.
88581         * doc/functions/sprintf.texi: Update.
88582         * doc/functions/vfprintf.texi: Update.
88583         * doc/functions/vprintf.texi: Update.
88584         * doc/functions/vsnprintf.texi: Update.
88585         * doc/functions/vsprintf.texi: Update.
88587 2007-05-01  Bruno Haible  <bruno@clisp.org>
88589         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88591 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88593         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88594         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88596 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88598         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88599         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88600         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88602 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88604         * lib/argp-help.c (struct hol_entry): New member `ord'.
88605         (HOL_ENTRY_PTRCMP): Use ord for comparison
88606         (hol_sort): Initialize ord.
88608 2007-05-01  Bruno Haible  <bruno@clisp.org>
88610         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88611         Reported by Eric Blake.
88612         * doc/gnulib.texi (Function Substitutes): Update.
88614 2007-05-01  Bruno Haible  <bruno@clisp.org>
88616         * doc/functions.texi: Remove file, now redundant through
88617         doc/functions/*.texi.
88619 2007-05-01  Bruno Haible  <bruno@clisp.org>
88621         * modules/argp (Depends-on): Add sleep.
88623 2007-05-01  Bruno Haible  <bruno@clisp.org>
88625         * modules/sleep-tests: New file.
88626         * tests/test-sleep.c: New file.
88628         * modules/sleep: New file.
88629         * lib/sleep.c: New file.
88630         * m4/sleep.m4: New file.
88631         * lib/unistd_.h (sleep): New declaration.
88632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88633         HAVE_SLEEP.
88634         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88635         * doc/functions/sleep.texi: Document the sleep module.
88637 2007-05-01  Bruno Haible  <bruno@clisp.org>
88639         * lib/sigprocmask.h: Remove file.
88640         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88641         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88642         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88643         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88644         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88645         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88646         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88647         HAVE_SIGSET_T as a shell variable.
88648         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88649         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88650         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88651         (Depends-on): Add signal. Remove verify.
88652         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88653         (Include): Mention <signal.h> instead of sigprocmask.h.
88654         * NEWS: Mention the change.
88655         * lib/fatal-signal.c: Don't include sigprocmask.h.
88657 2007-05-01  Bruno Haible  <bruno@clisp.org>
88659         * modules/signal: New file.
88660         * lib/signal_.h: New file.
88661         * m4/signal_h.m4: New file.
88663 2007-05-01  Bruno Haible  <bruno@clisp.org>
88665         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88666         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88667         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88668         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88670 2007-05-01  Bruno Haible  <bruno@clisp.org>
88672         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88673         configure time.
88674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88675         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88676         * modules/sys_stat (Makefile.am): Substitute their values into
88677         sys/stat.h.
88679 2007-05-01  Bruno Haible  <bruno@clisp.org>
88681         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88682         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88683         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88685 2007-05-01  Bruno Haible  <bruno@clisp.org>
88687         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88688         'assert' module here.
88690 2007-05-01  Bruno Haible  <bruno@clisp.org>
88692         * doc/functions/*.texi: New files.
88693         * doc/functions/google-ranking.txt: New file.
88694         * doc/gnulib.texi (Function Substitutes): New chapter.
88695         (ctime, inet_ntoa): Remove sections.
88696         * doc/ctime.texi: Remove file.
88697         * doc/inet_ntoa.texi: Remove file.
88698         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88699         dependencies.
88700         (%.info): New rule, specifying a --reference-limit.
88702 2007-05-01  Bruno Haible  <bruno@clisp.org>
88704         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88706 2007-05-01  Bruno Haible  <bruno@clisp.org>
88708         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88709         the portability of 'mkdir' to mingw systems.
88711 2007-05-01  Bruno Haible  <bruno@clisp.org>
88713         * doc/headers/google-ranking.txt: New file.
88715 2007-04-30  Eric Blake  <ebb9@byu.net>
88717         Prefer fseeko to fseek.
88718         * modules/getpass (Depends-on): Add fseeko.
88719         * lib/getpass.c (getpass): Use fseeko, not fseek.
88721 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88723         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88724         assumes the sorting is stable, while most qsort implementations
88725         are not.  Use argument addresses to ensure they never compare as
88726         equal.
88728         * tests/test-argp-2.sh (usage-indent test): Fix output
88729         (func_compare): Restore diff options
88730         * tests/test-argp.c: Restore #include "progname.h"
88732 2007-04-29  Bruno Haible  <bruno@clisp.org>
88734         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88736         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88738         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88739         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88740         (TESTS, check_PROGRAMS): Add test-snprintf.
88741         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88742         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88743         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88744         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88745         assertions that fail on HP-UX, OSF/1, or IRIX.
88746         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88748 2007-04-29  Bruno Haible  <bruno@clisp.org>
88750         * MODULES.html.sh (posix_functions): Remove 'contents'.
88752 2007-04-29  Karl Berry  <karl@gnu.org>
88754         * config/srclist.txt (gendocs_template_min): new entry.
88756 2007-04-29  Bruno Haible  <bruno@clisp.org>
88758         Work around fpurge bug on BSD systems.
88759         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88760         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88761         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88762         fpurge to rpl_fpurge if the system already has this function.
88763         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88764         the case where the system already has this function. Correct invariants
88765         on BSD systems.
88766         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88767         BSD systems.
88769 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88771         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88772         proposed by Sven Verdoolaege.
88774         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88775         options.
88776         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88777         (usage and help tests): Update
88779 2007-04-29  Bruno Haible  <bruno@clisp.org>
88781         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88782         Print more information in case of failure. Disable a test on BeOS.
88784 2007-04-29  Bruno Haible  <bruno@clisp.org>
88786         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88787         This helps debugging on systems on which no gdb is available.
88789 2007-04-29  Bruno Haible  <bruno@clisp.org>
88791         * lib/freading.h: Improve comments.
88792         * lib/fwriting.h: Likewise.
88793         * tests/test-freading.c (main): Don't check freading immediately after
88794         repositioning. Needed for glibc.
88796 2007-04-29  Bruno Haible  <bruno@clisp.org>
88798         * lib/freading.c (freading): Trivial simplification.
88800 2007-04-28  Bruno Haible  <bruno@clisp.org>
88802         * tests/test-fwriting.c (main): Also test the interaction between
88803         fflush and fwriting.
88804         * modules/fwriting-tests (Depends-on): Add fflush.
88806         * tests/test-freading.c (main): Also test the interaction between
88807         fflush and freading.
88808         * modules/freading-tests (Depends-on): Add fflush.
88810 2007-04-28  Bruno Haible  <bruno@clisp.org>
88812         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88813         fseeko and ftello.
88814         Suggested by Eric Blake.
88816 2007-04-28  Jim Meyering  <jim@meyering.net>
88818         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88819         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88820         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88822 2007-04-27  Eric Blake  <ebb9@byu.net>
88824         * doc/headers/assert.texi (assert.h): Document assert module use.
88826 2007-04-27  Bruno Haible  <bruno@clisp.org>
88828         * doc/headers/*.texi: New files.
88829         * doc/gnulib.texi (Header File Substitutes): New chapter.
88830         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88831         dependencies.
88832         (standards.info ,standards.html, standards.dvi): Update dependencies.
88833         (mostlyclean, clean): New targets.
88835 2007-04-27  Bruno Haible  <bruno@clisp.org>
88837         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88838         * modules/sysexits (Files, Makefile.am): Update.
88840         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88841         * modules/sys_socket (Files, Makefile.am): Update.
88843         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88844         * modules/sys_stat (Files, Makefile.am): Update.
88846 2007-04-27  Eric Blake  <ebb9@byu.net>
88848         * lib/freading.h: Improve comments.
88849         * lib/fwriting.h: Likewise.
88850         * lib/fflush.c: Likewise.
88852         Fix closein for mingw.
88853         * modules/closein-tests: Add tests for closein.
88854         * tests/test-closein.c: New file.
88855         * tests/test-closein.sh: Likewise.
88856         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88857         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88859 2007-04-27  Bruno Haible  <bruno@clisp.org>
88861         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88862         version is < 6.
88863         * lib/math_.h [__DECC]: Likewise.
88864         * lib/stdio_.h [__DECC]: Likewise.
88865         * lib/stdlib_.h [__DECC]: Likewise.
88866         * lib/string_.h [__DECC]: Likewise.
88867         * lib/time_.h [__DECC]: Likewise.
88868         * lib/wchar_.h [__DECC]: Likewise.
88869         * lib/wctype_.h [__DECC]: Likewise.
88871 2007-04-27  Bruno Haible  <bruno@clisp.org>
88873         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88875 2007-04-27  Bruno Haible  <bruno@clisp.org>
88877         * lib/fflush.c: Add comments.
88878         * modules/fpurge-tests (Depends-on): Add fflush.
88879         * modules/freadable-tests (Depends-on): Likewise.
88880         * modules/fwritable-tests (Depends-on): Likewise.
88882 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88884         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88885         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88886         Report by Bruno Haible <bruno@clisp.org>.
88888 2007-04-26  Eric Blake  <ebb9@byu.net>
88890         Fix fflush on mingw.
88891         * modules/fflush (Depends-on): Add freading.
88892         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88893         but unread data.
88895 2007-04-26  Eric Blake  <ebb9@byu.net>
88896         and Bruno Haible  <bruno@clisp.org>
88898         Implement freading and fwriting.
88899         * lib/freading.c: New file.
88900         * lib/freading.h: Likewise.
88901         * m4/freading.m4: Likewise.
88902         * modules/freading: Likewise.
88903         * modules/freading-tests: Likewise.
88904         * tests/test-freading.c: Likewise.
88905         * lib/fwriting.c: New file.
88906         * lib/fwriting.h: Likewise.
88907         * m4/fwriting.m4: Likewise.
88908         * modules/fwriting: Likewise.
88909         * modules/fwriting-tests: Likewise.
88910         * tests/test-fwriting.c: Likewise.
88911         * MODULES.html.sh (File stream based Input/Output): Mention them.
88913 2007-04-26  Bruno Haible  <bruno@clisp.org>
88915         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
88916         'long' when we assume it.
88917         Suggested by Eric Blake.
88919 2007-04-26  Bruno Haible  <bruno@clisp.org>
88921         Ensure fseeko, ftello are declared on glibc systems.
88922         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
88923         * modules/fseeko (configure.ac-early): Likewise.
88924         * modules/ftello (configure.ac-early): Likewise.
88925         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
88926         AC_FUNC_FSEEKO for this.
88927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
88928         (gl_CHECK_FSEEKO): Remove macro.
88930 2007-04-26  Bruno Haible  <bruno@clisp.org>
88932         * tests/test-fflush.c (main): Also check the ftell result after
88933         fflush and fseek/fseeko.
88934         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
88935         file descriptor position cache in the stream.
88936         * lib/fseeko.c (rpl_fseeko): Likewise.
88938 2007-04-26  Bruno Haible  <bruno@clisp.org>
88940         * modules/fflush-tests (Depends-on): Add fseeko.
88942 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
88943             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88945         * lib/argz_.h: ensure error_t definition is obtained in same
88946         mechanism system argz.h would have.
88947         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
88948         argz facilities are known bad.  Err on the side of caution if
88949         cross-compiling.
88951 2007-04-25  Eric Blake  <ebb9@byu.net>
88953         * lib/fpurge.c (includes): Use stdlib.h for free.
88954         * tests/test-fflush.c (main): Also test fflush-fseeko.
88956 2007-04-25  Bruno Haible  <bruno@clisp.org>
88958         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
88959         * lib/fseeko.c: New file.
88960         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
88961         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
88962         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
88963         gl_FUNC_FSEEKO.
88964         (gl_FUNC_FSEEKO): Invoke it.
88965         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
88966         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
88967         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
88969 2007-04-25  Bruno Haible  <bruno@clisp.org>
88971         * modules/fflush (Depends-on): Add ftello.
88973 2007-04-25  Bruno Haible  <bruno@clisp.org>
88975         * modules/ftello-tests: New file.
88976         * tests/test-ftello.c: New file.
88978         * modules/ftello: New file.
88979         * m4/ftello.m4: New file.
88980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
88981         HAVE_FTELLO.
88982         * lib/stdio_.h (ftello): New declaration.
88983         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
88984         HAVE_FTELLO.
88986 2007-04-25  Bruno Haible  <bruno@clisp.org>
88988         * modules/fseeko-tests: New file.
88989         * tests/test-fseeko.c: New file.
88991         * modules/fseeko: New file.
88992         * m4/fseeko.m4: New file.
88993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
88994         HAVE_FSEEKO.
88995         * lib/stdio_.h (fseeko): New declaration.
88996         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
88997         HAVE_FSEEKO.
88999 2007-04-25  Bruno Haible  <bruno@clisp.org>
89001         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89003 2007-04-25  Bruno Haible  <bruno@clisp.org>
89005         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89006         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89007         * tests/test-unistd.c: Likewise.
89008         * tests/test-fcntl.c: Likewise.
89010 2007-04-23  Eric Blake  <ebb9@byu.net>
89012         * lib/fflush.c: Fix missing include.
89013         Reported by Bruno Haible.
89015 2007-04-23  Bruno Haible  <bruno@clisp.org>
89017         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89018         Reported by Eric Blake.
89020 2007-04-23  Bruno Haible  <bruno@clisp.org>
89022         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89024 2007-04-23  Bruno Haible  <bruno@clisp.org>
89026         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89028 2007-04-23  Bruno Haible  <bruno@clisp.org>
89030         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89031         Needed on HP-UX 11.
89033 2007-04-16  Eric Blake  <ebb9@byu.net>
89035         Make fflush rely on fpurge.
89036         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89037         open coding all variants.
89038         * modules/fflush (Depends-on): Add fpurge and unistd.
89039         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89040         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89042         Fix --with-tests compilation on cygwin.
89043         * modules/argmatch-tests (Makefile.am): List gnulib library first
89044         in LDADD.
89045         * modules/argp-tests (Makefile.am): Likewise.
89046         * modules/array-list-tests (Makefile.am): Likewise.
89047         * modules/array-oset-tests (Makefile.am): Likewise.
89048         * modules/avltree-list-tests (Makefile.am): Likewise.
89049         * modules/avltree-oset-tests (Makefile.am): Likewise.
89050         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89051         * modules/carray-list-tests (Makefile.am): Likewise.
89052         * modules/dirname-tests (Makefile.am): Likewise.
89053         * modules/frexp-tests (Makefile.am): Likewise.
89054         * modules/isnanl-tests (Makefile.am): Likewise.
89055         * modules/linked-list-tests (Makefile.am): Likewise.
89056         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89057         * modules/lock-tests (Makefile.am): Likewise.
89058         * modules/rbtree-list-tests (Makefile.am): Likewise.
89059         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89060         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89061         * modules/tls-tests (Makefile.am): Likewise.
89062         * modules/tsearch-tests (Makefile.am): Likewise.
89063         * modules/xvasprintf-tests (Makefile.am): Likewise.
89065         Fix fpurge for cygwin.
89066         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89067         value.
89068         * modules/fpurge-tests (Depends-on): Clean up trash.
89070 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89072         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89074         * m4/autobuild.m4: Re-indent.
89076 2007-04-13  Bruno Haible  <bruno@clisp.org>
89078         * modules/fpurge-tests: New file.
89079         * tests/test-fpurge.c: New file.
89081         * modules/fpurge: New file.
89082         * lib/fpurge.h: New file.
89083         * lib/fpurge.c: New file.
89084         * m4/fpurge.m4: New file.
89086 2007-04-13  Bruno Haible  <bruno@clisp.org>
89088         * modules/fbufmode-tests: New file.
89089         * tests/test-fbufmode.c: New file.
89091         * modules/fbufmode: New file.
89092         * lib/fbufmode.h: New file.
89093         * lib/fbufmode.c: New file.
89094         * m4/fbufmode.m4: New file.
89096 2007-04-13  Bruno Haible  <bruno@clisp.org>
89098         * modules/fwritable-tests: New file.
89099         * tests/test-fwritable.c: New file.
89101         * modules/fwritable: New file.
89102         * lib/fwritable.h: New file.
89103         * lib/fwritable.c: New file.
89104         * m4/fwritable.m4: New file.
89106 2007-04-13  Bruno Haible  <bruno@clisp.org>
89108         * modules/freadable-tests: New file.
89109         * tests/test-freadable.c: New file.
89111         * modules/freadable: New file.
89112         * lib/freadable.h: New file.
89113         * lib/freadable.c: New file.
89114         * m4/freadable.m4: New file.
89116 2007-04-13  Bruno Haible  <bruno@clisp.org>
89118         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89119         MOSTLYCLEANFILES.
89121 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89123         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89124         gzip bootstrap.conf to avoid dragging in i18n machinery.
89125         (gnulib_tool_option): Use it.
89127 2007-04-13  Bruno Haible  <bruno@clisp.org>
89129         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89130         %F directives.
89131         * tests/test-vasprintf-posix.c (test_function): Likewise.
89132         * tests/test-snprintf-posix.h (test_function): Likewise.
89133         * tests/test-sprintf-posix.h (test_function): Likewise.
89134         * tests/test-fprintf-posix.h (test_function): Likewise.
89135         * tests/test-printf-posix.h (test_function): Likewise.
89136         * tests/test-fprintf-posix.out: Likewise.
89138 2007-04-13  Bruno Haible  <bruno@clisp.org>
89140         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89141         * modules/tls-tests (configure.ac): Likewise.
89142         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89144 2007-04-13  Bruno Haible  <bruno@clisp.org>
89146         * lib/tls.c (glthread_tls_get): Fix return type.
89147         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89149 2007-04-12  Eric Blake  <ebb9@byu.net>
89151         * modules/gettime (Depends-on): Remove gettime.
89152         Reported by Dmitry V. Levin.
89154 2007-04-12  Bruno Haible  <bruno@clisp.org>
89156         * modules/fflush (Include): Mention <stdio.h>.
89157         * modules/strtoimax (Include): Mention <inttypes.h>.
89158         * modules/strtoumax (Include): Likewise.
89160 2007-04-12  Eric Blake  <ebb9@byu.net>
89162         * .cvsignore: New file.
89163         * .gitignore: Likewise.
89165 2007-04-12  Bruno Haible  <bruno@clisp.org>
89167         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89168         not before, since $(LDADD) often contains libgnu.a.
89169         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89170         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89171         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89172         Needed on Cygwin.
89174 2007-04-12  Eric Blake  <ebb9@byu.net>
89176         Work around glibc's failure to flush stdin on fclose.
89177         * lib/closein.c (close_stdin): Flush stdin before closing.
89179         Work around glibc's failure to reset seekable stdin on exit.
89180         * modules/closein: New module.
89181         * lib/closein.c: New file.
89182         * lib/closein.h: Likewise.
89183         * m4/closein.m4: Likewise.
89184         * MODULES.html.sh (File stream based Input/Output): Document it.
89186 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89188         * gnulib-tool: Rename generated 'autobuild' script to
89189         'do-autobuild' in --create-megatestdir output.
89191         * doc/gnulib.texi (Build robot for gnulib): Fix.
89193 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89195         * modules/sysexits (Depends-on): Add absolute-header.
89197 2007-04-12  Eric Blake  <ebb9@byu.net>
89199         No need to preserve errno on success.
89200         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89201         Reported by Bruno Haible.
89203 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89205         * MODULES.html.sh (Support for maintaining and releasing
89206         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89208 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89210         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89214         * modules/autobuild: New module.
89216         * m4/autobuild.m4: New file.
89218 2007-04-11  Bruno Haible  <bruno@clisp.org>
89220         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89221         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89230         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89248         Reported by Eric Blake.
89250 2007-04-11  Bruno Haible  <bruno@clisp.org>
89252         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89254 2007-04-10  Bruno Haible  <bruno@clisp.org>
89256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89257         for NaN and Infinity. Needed on FreeBSD 6.1.
89258         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89259         regarding results for "%010a" of Infinity and NaN.
89260         * tests/test-vasprintf-posix.c (test_function): Likewise.
89261         * tests/test-snprintf-posix.h (test_function): Likewise.
89262         * tests/test-sprintf-posix.h (test_function): Likewise.
89263         * tests/test-fprintf-posix.h (test_function): Likewise.
89264         * tests/test-printf-posix.h (test_function): Likewise.
89265         * tests/test-fprintf-posix.out: Likewise.
89267 2007-04-10  Bruno Haible  <bruno@clisp.org>
89269         * modules/locale-tests: New file.
89270         * tests/test-locale.c: New file.
89272         * modules/locale: New file.
89273         * lib/locale_.h: New file.
89274         * m4/locale_h.m4: New file.
89276 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89277             Bruno Haible  <bruno@clisp.org>
89279         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89280         be determined, test for availability of the copysignf, copysign,
89281         copysignl functions.
89282         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89283         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89284         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89286 2007-04-09  Eric Blake  <ebb9@byu.net>
89288         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89289         * modules/stdio (Makefile.am): Support fflush.
89290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89291         * modules/fflush: New file.
89292         * lib/fflush.c: Likewise.
89293         * m4/fflush.m4: Likewise.
89294         * modules/fflush-tests: New test.
89295         * tests/test-fflush.c: Likewise.
89296         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89298 2007-04-06  Bruno Haible  <bruno@clisp.org>
89300         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89301         (VASNPRINTF): Use signbit for faster determination whether to print a
89302         minus sign.
89303         * modules/vasnprintf (Files): Remove lib/float+.h.
89304         * modules/fprintf-posix (Depends-on): Add signbit.
89305         * modules/snprintf-posix (Depends-on): Likewise.
89306         * modules/sprintf-posix (Depends-on): Likewise.
89307         * modules/vasnprintf-posix (Depends-on): Likewise.
89308         * modules/vasprintf-posix (Depends-on): Likewise.
89309         * modules/vfprintf-posix (Depends-on): Likewise.
89310         * modules/vsnprintf-posix (Depends-on): Likewise.
89311         * modules/vsprintf-posix (Depends-on): Likewise.
89313 2007-04-06  Bruno Haible  <bruno@clisp.org>
89315         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89316         * tests/test-frexpl.c (main): Likewise.
89317         * tests/test-ldexpl.c (main): Likewise.
89318         * modules/frexp-tests (Depends-on): Add signbit.
89319         * modules/frexpl-tests (Depdends-on): Likewise.
89320         * modules/ldexpl-tests (Depdends-on): Likewise.
89322 2007-04-06  Bruno Haible  <bruno@clisp.org>
89324         * modules/signbit-tests: New file.
89325         * tests/test-signbit.c: New file.
89327         * modules/signbit: New file.
89328         * lib/signbitf.c: New file.
89329         * lib/signbitd.c: New file.
89330         * lib/signbitl.c: New file.
89331         * m4/signbit.m4: New file.
89332         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89333         (signbit): New macro.
89334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89335         REPLACE_SIGNBIT.
89336         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89337         REPLACE_FREXPL into math.h.
89339 2007-04-06  Bruno Haible  <bruno@clisp.org>
89341         * modules/isnanf-nolibm-tests: New file.
89342         * tests/test-isnanf.c: New file.
89344         * modules/isnanf-nolibm: New file.
89345         * lib/isnanf.h: New file.
89346         * lib/isnanf.c: New file.
89347         * lib/isnan.c: Consider the USE_FLOAT macro.
89348         * m4/isnanf.m4: New file.
89350 2007-04-06  Bruno Haible  <bruno@clisp.org>
89352         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89353         (Link): New section.
89355         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89357 2007-04-06  Bruno Haible  <bruno@clisp.org>
89359         Assume the 'long double' type.
89360         * m4/longdouble.m4: Remove file.
89361         * config/srclist.txt: Don't mention longdouble.m4.
89362         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89363         * lib/float+.h: Likewise.
89364         * lib/frexp.c: Likewise.
89365         * lib/printf-args.h: Likewise.
89366         * lib/printf-args.c: Likewise.
89367         * lib/printf-frexp.c: Likewise.
89368         * lib/printf-parse.c: Likewise.
89369         * lib/vasnprintf.c: Likewise.
89370         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89371         * m4/intl.m4: Likewise.
89372         * m4/isnanl.m4: Likewise.
89373         * m4/printf.m4: Likewise.
89374         * m4/printf-frexpl.m4: Likewise.
89375         * m4/vasnprintf.m4: Likewise.
89376         * modules/allocsa (Files): Remove m4/longdouble.m4.
89377         * modules/gettext (Files): Likewise.
89378         * modules/relocatable-prog-wrapper (Files): Likewise.
89379         * modules/vasnprintf (Files): Likewise.
89380         * modules/isnanl (Files): Likewise.
89381         (Include): Simplify.
89382         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89383         (Include): Simplify.
89384         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89385         (Include): Simplify.
89386         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89387         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89388         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89389         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89390         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89392         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89393         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89394         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89395         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89396         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89398         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89399         * tests/test-isnanl.c: Likewise.
89400         * tests/test-snprintf-posix.h: Likewise.
89401         * tests/test-sprintf-posix.h: Likewise.
89402         * tests/test-vasnprintf-posix.c: Likewise.
89403         * tests/test-vasnprintf-posix2.c: Likewise.
89404         * tests/test-vasprintf-posix.c: Likewise.
89406 2007-04-06  Bruno Haible  <bruno@clisp.org>
89408         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89409         * lib/math_.h [__DECC]: Include the overridden include file through
89410         #include_next, outside the double-inclusion guard.
89411         * lib/stdio_.h [__DECC]: Likewise.
89412         * lib/stdlib_.h [__DECC]: Likewise.
89413         * lib/string_.h [__DECC]: Likewise.
89414         * lib/time_.h [__DECC]: Likewise.
89415         * lib/wchar_.h [__DECC]: Likewise.
89416         * lib/wctype_.h [__DECC]: Likewise.
89417         * lib/inttypes_.h [__DECC]: Likewise.
89418         Reported by Albert Chin <china@thewrittenword.com> in
89419         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89421 2007-04-04  Eric Blake  <ebb9@byu.net>
89423         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89424         1.5.x.
89426 2007-04-04  Bruno Haible  <bruno@clisp.org>
89428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89429         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89431 2007-04-04  Bruno Haible  <bruno@clisp.org>
89433         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89434         results for "%010a" of Infinity and NaN.
89435         * tests/test-vasprintf-posix.c (test_function): Likewise.
89436         * tests/test-snprintf-posix.h (test_function): Likewise.
89437         * tests/test-sprintf-posix.h (test_function): Likewise.
89438         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89439         * tests/test-printf-posix.h (test_function): Likewise.
89440         * tests/test-fprintf-posix.out: Update.
89441         Needed for FreeBSD 6.1.
89443 2007-04-04  Bruno Haible  <bruno@clisp.org>
89445         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89446         directly used by the gnulib modules nor by gnulib-tool.
89448 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89450         * DEPENDENCIES: Give overall description of version dependency
89451         desirability.  Use more-typical names for apps.
89452         Add shell, coreutils, diffutils, grep, tar, gzip.
89454 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89456         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89458 2007-04-04  Karl Berry  <karl@gnu.org>
89460         * MODULES.html.sh (func_module): missing '.
89462 2007-04-03  Bruno Haible  <bruno@clisp.org>
89464         * modules/argmatch-tests (Makefile.am): New variable
89465         test_argmatch_LDADD.
89466         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89467         * modules/array-list-tests (Makefile.am): New variable
89468         test_array_list_LDADD.
89469         * modules/array-oset-tests (Makefile.am): New variable
89470         test_array_oset_LDADD.
89471         * modules/avltree-list-tests (Makefile.am): New variable
89472         test_avltree_list_LDADD.
89473         * modules/avltree-oset-tests (Makefile.am): New variable
89474         test_avltree_oset_LDADD.
89475         * modules/avltreehash-list-tests (Makefile.am): New variable
89476         test_avltreehash_list_LDADD.
89477         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89478         test_canonicalize_lgpl_LDADD.
89479         * modules/carray-list-tests (Makefile.am): New variable
89480         test_carray_list_LDADD.
89481         * modules/dirname-tests (Makefile.am): New variable
89482         test_dirname_LDADD.
89483         * modules/linked-list-tests (Makefile.am): New variable
89484         test_linked_list_LDADD.
89485         * modules/linkedhash-list-tests (Makefile.am): New variable
89486         test_linkedhash_list_LDADD.
89487         * modules/rbtree-list-tests (Makefile.am): New variable
89488         test_rbtree_list_LDADD.
89489         * modules/rbtree-oset-tests (Makefile.am): New variable
89490         test_rbtree_oset_LDADD.
89491         * modules/rbtreehash-list-tests (Makefile.am): New variable
89492         test_rbtreehash_list_LDADD.
89493         * modules/xvasprintf-tests (Makefile.am): New variable
89494         test_xvasprintf_LDADD.
89495         Reported by Eric Blake.
89497 2007-04-03  Eric Blake  <ebb9@byu.net>
89499         * DEPENDENCIES: Weaken m4 requirements.
89501 2007-04-03  Bruno Haible  <bruno@clisp.org>
89503         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89504         * modules/isnanl-tests (configure.ac): Likewise.
89506 2007-04-03  Ben Pfaff  <blp@gnu.org>
89508         * modules/iconv_open: Add $(srcdir)/ to source directory
89509         references in Makefile fragments that call gperf, to fix VPATH
89510         builds.
89512 2007-04-03  Bruno Haible  <bruno@clisp.org>
89514         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89515         * lib/ldexpl.c: Undo last change.
89517 2007-04-03  Bruno Haible  <bruno@clisp.org>
89519         * modules/printf-frexpl (Depends-on): Undo last change.
89520         (Files): Add m4/ldexpl.m4.
89522 2007-04-03  Bruno Haible  <bruno@clisp.org>
89524         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89525         * modules/isnanl (Link): New section.
89527         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89528         * modules/frexp (Link): New section.
89530         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89531         * modules/frexpl (Link): New section.
89533         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89534         * modules/ldexpl (Link): New section.
89536 2007-04-03  Bruno Haible  <bruno@clisp.org>
89538         * modules/TEMPLATE-EXTENDED: New file.
89539         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89541 2007-04-03  Bruno Haible  <bruno@clisp.org>
89543         * DEPENDENCIES: New file.
89544         Suggested by Simon Josefsson.
89546 2007-04-03  Bruno Haible  <bruno@clisp.org>
89548         * doc/gnulib.texi: Escape @.
89550 2007-04-03  James Youngman  <jay@gnu.org>
89551         and Paul Eggert  <eggert@cs.ucla.edu>
89553         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89554         birthtime on all systems that have birthtime, not just those which
89555         use st_birthtimensec rather than st_birthtim.  Putting zero in
89556         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89557         that the birth time is not available for files on an NFS mount.
89559 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89561         * modules/memxor: Move back from crypto/, suggested by Bruno.
89562         * modules/crypto/hmac-sha1: Fix memxor dependency.
89564         * modules/crypto/gc: Moved from ../.
89566 2007-04-02  Eric Blake  <ebb9@byu.net>
89568         * lib/ldexpl.c (includes): Avoid libm.
89570         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89572 2007-04-02  Bruno Haible  <bruno@clisp.org>
89574         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89575         on IRIX.
89577 2007-04-02  Bruno Haible  <bruno@clisp.org>
89579         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89580         x86 or x86_64 platforms running MacOS X.
89581         Reported by Ryan Schmidt <@ryandesign.com>.
89583 2007-04-02  Bruno Haible  <bruno@clisp.org>
89585         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89586         i386.
89588 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89590         * modules/crypto/arcfour: Moved from ../.
89591         * modules/crypto/arcfour-tests: Moved from ../.
89592         * modules/crypto/arctwo: Moved from ../.
89593         * modules/crypto/arctwo-tests: Moved from ../.
89594         * modules/crypto/des: Moved from ../.
89595         * modules/crypto/des-tests: Moved from ../.
89596         * modules/crypto/gc-arcfour: Moved from ../.
89597         * modules/crypto/gc-arcfour-tests: Moved from ../.
89598         * modules/crypto/gc-arctwo: Moved from ../.
89599         * modules/crypto/gc-arctwo-tests: Moved from ../.
89600         * modules/crypto/gc-des: Moved from ../.
89601         * modules/crypto/gc-des-tests: Moved from ../.
89602         * modules/crypto/gc-hmac-md5: Moved from ../.
89603         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89604         * modules/crypto/gc-hmac-sha1: Moved from ../.
89605         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89606         * modules/crypto/gc-md2: Moved from ../.
89607         * modules/crypto/gc-md2-tests: Moved from ../.
89608         * modules/crypto/gc-md4: Moved from ../.
89609         * modules/crypto/gc-md4-tests: Moved from ../.
89610         * modules/crypto/gc-md5: Moved from ../.
89611         * modules/crypto/gc-md5-tests: Moved from ../.
89612         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89613         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89614         * modules/crypto/gc-random: Moved from ../.
89615         * modules/crypto/gc-rijndael: Moved from ../.
89616         * modules/crypto/gc-rijndael-tests: Moved from ../.
89617         * modules/crypto/gc-sha1: Moved from ../.
89618         * modules/crypto/gc-sha1-tests: Moved from ../.
89619         * modules/crypto/gc-tests: Moved from ../.
89620         * modules/crypto/hmac-md5: Moved from ../.
89621         * modules/crypto/hmac-md5-tests: Moved from ../.
89622         * modules/crypto/hmac-sha1: Moved from ../.
89623         * modules/crypto/hmac-sha1-tests: Moved from ../.
89624         * modules/crypto/md2: Moved from ../.
89625         * modules/crypto/md2-tests: Moved from ../.
89626         * modules/crypto/md4: Moved from ../.
89627         * modules/crypto/md4-tests: Moved from ../.
89628         * modules/crypto/md5: Moved from ../.
89629         * modules/crypto/md5-tests: Moved from ../.
89630         * modules/crypto/memxor: Moved from ../.
89631         * modules/crypto/rijndael: Moved from ../.
89632         * modules/crypto/rijndael-tests: Moved from ../.
89633         * modules/crypto/sha1: Moved from ../.
89635 2007-03-30  James Youngman  <jay@gnu.org>
89637         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89638         rename() to change the ctime of a file (because ctime is unaffected
89639         by rename on jfs2 on AIX 5.1).
89640         (main): Start by doing cleanup, in case a previous run failed leaving
89641         test files behind.
89643 2007-03-31  Bruno Haible  <bruno@clisp.org>
89645         Support old proprietary implementations of iconv.
89646         * modules/iconv_open: New file.
89647         * lib/iconv_.h: New file.
89648         * m4/iconv_h.m4: New file.
89649         * lib/iconv_open.c: New file.
89650         * lib/iconv_open-aix.gperf: New file.
89651         * lib/iconv_open-hpux.gperf: New file.
89652         * lib/iconv_open-irix.gperf: New file.
89653         * lib/iconv_open-osf.gperf: New file.
89654         * m4/iconv_open.m4: New file.
89655         * modules/linebreak (Depends-on): Add iconv_open.
89656         * modules/striconv (Depends-on): Likewise.
89657         * modules/striconveh (Depends-on): Likewise.
89658         * modules/unicodeio (Depends-on): Likewise.
89659         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89660         (iconv_t)(-1).
89661         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89662         conversion if cd is (iconv_t)(-1).
89663         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89664         is not possible.
89666 2007-03-31  Bruno Haible  <bruno@clisp.org>
89668         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89669         work on Solaris either. Protect also second use of "autodetect_jp".
89671 2007-03-31  Bruno Haible  <bruno@clisp.org>
89673         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89674         the function is not present.
89676 2007-03-31  Bruno Haible  <bruno@clisp.org>
89678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89679         the function is not present.
89681 2007-03-31  Bruno Haible  <bruno@clisp.org>
89683         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89684         a bug in HP-UX iconv_open().
89686 2007-03-31  Bruno Haible  <bruno@clisp.org>
89688         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89689         (Mathematics <math.h>): New section, add fpieee.
89690         (Input/output <stdio.h>): Add fseterr.
89691         (Mathematics <math.h>): New section, add printf-frexp.
89692         (Container data structures): Add sublist.
89693         (Core language properties): Add fpucw, inline.
89694         (Functions for greatest-width integer types <inttypes.h>): Add
89695         imaxabs, imaxdiv, inttypes.
89696         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89697         isnanl-nolibm, ldexp.
89698         (Mathematics <math.h>): New section, add printf-frexpl.
89699         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89700         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89701         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89702         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89703         (Unicode string functions): Add unistr/u*-mbtoucr.
89704         (Java): Add javacomp-script, javaexec-script.
89705         (C#): Add csharpcomp-script, csharpexec-script.
89706         (Support for building libraries and executables): Add havelib,
89707         relocatable-*.
89708         (Support for maintaining and releasing projects): Renamed from
89709         'Support for maintaining and release projects'. Add announce-gen.
89711 2007-03-31  Bruno Haible  <bruno@clisp.org>
89713         * README: Talk primarily about git.
89714         (git and CVS): Renamed from CVS.
89715         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89716         gnulib is available through git.
89717         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89719 2007-03-30  Bruno Haible  <bruno@clisp.org>
89721         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89722         * lib/poll_.h: Likewise.
89723         * lib/stat_.h: Likewise.
89724         * lib/sys_time_.h: Likewise.
89725         * lib/sysexit_.h: Likewise.
89726         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89727         * lib/stdbool_.h: Likewise.
89728         * lib/byteswap_.h: Add double-inclusion guard.
89730 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89732         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89734 2007-03-30  Karl Berry  <karl@gnu.org>
89736         * config/srclist-update: double space after USA in the license
89737         substitution, since that's how it's usually (?) written.
89739 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89741         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89742         reported by Bruno Haible.
89744 2007-03-29  Bruno Haible  <bruno@clisp.org>
89746         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89747         a bug in AIX iconv().
89749 2007-03-29  Bruno Haible  <bruno@clisp.org>
89751         * modules/ldexpl-tests: New file.
89752         * tests/test-ldexpl.c: New file.
89754 2007-03-29  Bruno Haible  <bruno@clisp.org>
89756         * lib/ldexpl.c: Include fpucw.h.
89757         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89758         multiplication.
89759         * modules/ldexpl (Depends-on): Add fpucw.
89761 2007-03-29  Bruno Haible  <bruno@clisp.org>
89763         * modules/ldexpl: New file.
89764         * m4/ldexpl.m4: New file.
89765         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89766         set.
89767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89768         REPLACE_LDEXPL.
89769         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89770         REPLACE_LDEXPL.
89771         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89772         gl_FUNC_LDEXPL_WORKS.
89773         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89774         * modules/mathl (Files): Remove lib/ldexpl.c.
89775         (Depends-on): Add ldexpl.
89777 2007-03-29  Bruno Haible  <bruno@clisp.org>
89779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89781 2007-03-29  Bruno Haible  <bruno@clisp.org>
89783         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89784         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89785         and possibly also HP-UX.
89786         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89787         work on AIX, IRIX, HP-UX, OSF/1.
89788         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89789         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89790         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89791         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89792         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89793         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89795 2007-03-29  Bruno Haible  <bruno@clisp.org>
89797         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89799 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89801         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89802         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89804 2007-03-29  Eric Blake  <ebb9@byu.net>
89806         * lib/acl-internal.h: Remove redundant include.
89807         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89808         Cygwin when a file is locked.
89810 2007-03-29  Bruno Haible  <bruno@clisp.org>
89812         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89813         file.
89814         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89816 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89818         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89819         try to remove a parent directory if the child couldn't be removed
89820         (except for the first rmdir, which could fail because the child
89821         doesn't exist).  Problem reported by Jeff Blaine in
89822         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89824 2007-03-28  Bruno Haible  <bruno@clisp.org>
89826         * lib/striconveh.c (utf8conv_carefully): New function.
89827         (mem_cd_iconveh_internal): Invoke it.
89829 2007-03-28  Bruno Haible  <bruno@clisp.org>
89831         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89832         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89833         input.
89834         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89835         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89836         unistr/u8-uctomb.
89838 2007-03-28  Bruno Haible  <bruno@clisp.org>
89840         * modules/unistr/u8-mbtoucr: New file.
89841         * lib/unistr/u8-mbtoucr.c: New file.
89842         * modules/unistr/u16-mbtoucr: New file.
89843         * lib/unistr/u16-mbtoucr.c: New file.
89844         * modules/unistr/u16-mbtoucr: New file.
89845         * lib/unistr/u16-mbtoucr.c: New file.
89846         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89848 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89849             Bruno Haible  <bruno@clisp.org>
89851         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89852         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89853         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89855         * m4/stdio_h.m4: Add stubs for vasprintf too.
89857         * modules/stdio: Support vasprintf in sed command.
89859         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89860         vasprintf.h.  Add stdio module indicator.
89862         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89863         vasprintf.h.
89865         * lib/vasprintf.h: File removed.
89867         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89868         * lib/vasprintf.c: Ditto.
89869         * lib/xvasprintf.c: Ditto.
89870         * tests/test-vasprintf-posix.c: Ditto.
89871         * tests/test-vasprintf.c: Ditto.
89873 2007-03-27  Bruno Haible  <bruno@clisp.org>
89875         Make vasnprintf multithread-safe.
89876         * lib/vasnprintf.c (decimal_point_char): New function.
89877         (VASNPRINTF): Use it.
89878         Suggested by Simon Josefsson.
89880 2007-03-27  Eric Blake  <ebb9@byu.net>
89882         Support sub-second birthtime on cygwin.
89883         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89884         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89885         (get_stat_birthtime): Also work with st_birthtim.
89887 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89889         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89890         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89891         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89892         (get_stat_birthtime_ns): Simplify compile-time tests.
89893         (get_stat_birthtime): Change the API to look like
89894         get_stat_mtime etc., except return a negative tv_nsec on error.
89895         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
89896         Don't check for "spare" fields.
89897         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
89898         or for struct stat.st_birthtime, as these tests aren't used.
89899         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
89901 2007-03-27  Bruno Haible  <bruno@clisp.org>
89903         * lib/stat-time.h: Include <sys/stat.h>.
89905 2007-03-27  James Youngman  <jay@gnu.org>
89907         * lib/stat-time.h (get_stat_birthtime): New function for
89908           retrieving st_birthtime as provided by UFS2 (hence *BSD).
89909         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
89910           and its variants.
89911         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
89912         * modules/stat-time-test: New file.
89913         * tests/test-stat-time.c: New test, devised by Bruno Haible.
89915 2007-03-26  Bruno Haible  <bruno@clisp.org>
89917         Better support of signalling NaNs.
89918         * lib/atanl.c: Include isnanl.h.
89919         (atanl): Perform test for NaN at the beginning of the function and
89920         through a call to isnanl.
89921         * lib/cosl.c: Include isnanl.h.
89922         (cosl): Perform test for NaN at the beginning of the function and
89923         through a call to isnanl.
89924         * lib/ldexpl.c: Include isnanl.h.
89925         (ldexpl): Perform test for NaN through a call to isnanl.
89926         * lib/logl.c: Include isnanl.h.
89927         (logl): Perform test for NaN at the beginning of the function and
89928         through a call to isnanl.
89929         * lib/sinl.c: Include isnanl.h.
89930         (sinl): Perform test for NaN at the beginning of the function and
89931         through a call to isnanl.
89932         * lib/sqrtl.c: Include isnanl.h.
89933         (sqrtl): Perform test for NaN at the beginning of the function and
89934         through a call to isnanl.
89935         * lib/tanl.c: Include isnanl.h.
89936         (tanl): Perform test for NaN at the beginning of the function and
89937         through a call to isnanl.
89938         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
89939         * modules/mathl (Depends-on): Add isnanl.
89941 2007-03-26  Eric Blake  <ebb9@byu.net>
89943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
89944         regression in logic sense of previous patch.
89946 2007-03-26  Bruno Haible  <bruno@clisp.org>
89948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
89949         unportable shell command "if ! ...".
89950         Reported by Ralf Wildenhues.
89952 2007-03-25  Bruno Haible  <bruno@clisp.org>
89954         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
89955         <sysexits.h> file, and only add EX_CONFIG.
89956         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
89957         absolute file name and whether it is sufficient. Substitute also
89958         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
89959         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
89960         ABSOLUTE_SYSEXITS_H into sysexits.h.
89962 2007-03-25  Bruno Haible  <bruno@clisp.org>
89964         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
89965         hints is NULL.
89967 2007-03-25  Bruno Haible  <bruno@clisp.org>
89969         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
89970         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
89972 2007-03-25  Bruno Haible  <bruno@clisp.org>
89974         * lib/vasnprintf.c: Include langinfo.h.
89975         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
89976         multithread-safe.
89977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
89978         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
89979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89980         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
89985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89986         Reported by Simon Josefsson.
89988 2007-03-25  Bruno Haible  <bruno@clisp.org>
89990         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
89991         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
89992         * modules/vasnprintf (Depends-on): Add stdint.
89994 2007-03-25  Bruno Haible  <bruno@clisp.org>
89996         * modules/fpieee: New file.
89997         * m4/fpieee.m4: New file.
89998         * modules/isnan-nolibm (Depends-on): Add fpieee.
89999         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90000         * modules/isnanl (Depends-on): Add fpieee.
90002 2007-03-25  Bruno Haible  <bruno@clisp.org>
90004         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90006 2007-03-25  Bruno Haible  <bruno@clisp.org>
90008         Avoid test failures on IRIX 6.5.
90009         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90010         (main): Use it.
90011         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90012         macros.
90013         (main): Use them.
90015 2007-03-25  Bruno Haible  <bruno@clisp.org>
90017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90018         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90019         exists but doesn't work.
90020         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90021         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90023         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90024         math.h.
90026 2007-03-25  Bruno Haible  <bruno@clisp.org>
90028         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90029         returns inf. Needed on IRIX 6.5.
90031 2007-03-25  Bruno Haible  <bruno@clisp.org>
90033         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90034         (main): Use isnanl instead of x != x idiom.
90035         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90037         * tests/test-frexp.c: Include isnan.h.
90038         (main): Use isnan instead of x != x idiom.
90039         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90041 2007-03-25  Bruno Haible  <bruno@clisp.org>
90043         * tests/test-frexp.c (NaN): New function/macro.
90044         (main): Use it instead of 0.0 / 0.0.
90045         * tests/test-isnan.c (NaN): New function/macro.
90046         (main): Use it instead of 0.0 / 0.0.
90047         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90048         (test_function): Use it instead of 0.0 / 0.0.
90049         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90050         (test_function): Use it instead of 0.0 / 0.0.
90051         * tests/test-snprintf-posix.h (NaN): New function/macro.
90052         (test_function): Use it instead of 0.0 / 0.0.
90053         * tests/test-sprintf-posix.h (NaN): New function/macro.
90054         (test_function): Use it instead of 0.0 / 0.0.
90055         * tests/test-fprintf-posix.h (NaN): New function/macro.
90056         (test_function): Use it instead of 0.0 / 0.0.
90057         * tests/test-printf-posix.h (NaN): New function/macro.
90058         (test_function): Use it instead of 0.0 / 0.0.
90060         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90062 2007-03-25  Bruno Haible  <bruno@clisp.org>
90064         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90066 2007-03-25  Bruno Haible  <bruno@clisp.org>
90068         * lib/regexec.c (merge_state_with_log): Make static.
90070 2007-03-25  Bruno Haible  <bruno@clisp.org>
90072         * lib/trigl.c (kernel_rem_pio2): Make static.
90074 2007-03-25  Bruno Haible  <bruno@clisp.org>
90076         * lib/sincosl.c (sincosl_table): Make static.
90078 2007-03-25  Bruno Haible  <bruno@clisp.org>
90080         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90081         if the compiler does not support C99.
90083 2007-03-25  Bruno Haible  <bruno@clisp.org>
90085         * modules/time (Makefile.am): Ensure all rule action lines start with a
90086         tab.
90088 2007-03-24  Bruno Haible  <bruno@clisp.org>
90090         * modules/tsearch-tests: New file.
90091         * tests/test-tsearch.sh: New file.
90092         * tests/test-tsearch.c: New file, mostly copied from glibc.
90094         * modules/search-tests: New file.
90095         * tests/test-search.c: New file.
90097         * modules/search: New file.
90098         * lib/search_.h: New file, incorporating lib/tsearch.h.
90099         * m4/search_h.m4: New file.
90100         * lib/tsearch.h: Remove file.
90101         * lib/tsearch.c: Include search.h instead of tsearch.h.
90102         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90103         HAVE_TSEARCH.
90104         * modules/tsearch (Files): Remove lib/tsearch.h.
90105         (Depends-on): Add search.
90106         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90107         (Include): Change tsearch.h into search.h.
90109 2007-03-24  Bruno Haible  <bruno@clisp.org>
90111         * modules/fpucw: New file.
90112         * lib/fpucw.h: New file.
90113         * lib/frexp.c: Include fpucw.h.
90114         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90115         (FUNC): Use them.
90116         * lib/printf-frexp.c: Include fpucw.h.
90117         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90118         (FUNC): Use them.
90119         * lib/vasnprintf.c: Include fpucw.h.
90120         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90121         'long double' calculations.
90122         * tests/test-frexpl.c: Include fpucw.h.
90123         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90124         * tests/test-printf-frexpl.c: Include fpucw.h.
90125         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90126         * modules/frexpl (Depends-on): Add fpucw.
90127         * modules/printf-frexpl (Depends-on): Likewise.
90128         * modules/fprintf-posix (Depends-on): Likewise.
90129         * modules/snprintf-posix (Depends-on): Likewise.
90130         * modules/sprintf-posix (Depends-on): Likewise.
90131         * modules/vasnprintf-posix (Depends-on): Likewise.
90132         * modules/vasprintf-posix (Depends-on): Likewise.
90133         * modules/vfprintf-posix (Depends-on): Likewise.
90134         * modules/vsnprintf-posix (Depends-on): Likewise.
90135         * modules/vsprintf-posix (Depends-on): Likewise.
90136         * modules/frexpl-tests (Depends-on): Likewise.
90137         * modules/printf-frexpl-tests (Depends-on): Likewise.
90139 2007-03-24  Bruno Haible  <bruno@clisp.org>
90141         * lib/float+.h: New file.
90142         * lib/isnan.c: Include float+.h.
90143         (SIZE): New macro.
90144         (FUNC): Compare only SIZE bytes of the value.
90145         * lib/vasnprintf.c: Include float+.h.
90146         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90147         SIZEOF_LDBL or SIZEOF_DBL bytes.
90148         * modules/isnan-nolibm (Files): Add lib/float+.h.
90149         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90150         * modules/isnanl (Files): Add lib/float+.h.
90151         * modules/vasnprintf (Files): Add lib/float+.h.
90153 2007-03-24  Bruno Haible  <bruno@clisp.org>
90155         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90156         include isnanl-nolibm.h.
90158 2007-03-24  Bruno Haible  <bruno@clisp.org>
90160         * tests/test-read-file.c (main): Don't produce spurious output for
90161         expected situations. Make the test fail if it encountered unexpected
90162         results.
90164 2007-03-24  Bruno Haible  <bruno@clisp.org>
90166         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90167         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90169 2007-03-24  Bruno Haible  <bruno@clisp.org>
90171         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90173 2007-03-24  Bruno Haible  <bruno@clisp.org>
90175         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90176         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90178         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90179         * modules/utf8-ucs4: Turn into a symbolic link to module
90180         unistr/u8-mbtouc.
90182         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90183         utf8-ucs4-unsafe.
90184         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90185         unistr/u8-mbtouc-unsafe.
90187         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90188         * modules/utf16-ucs4: Turn into a symbolic link to module
90189         unistr/u16-mbtouc.
90191         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90192         utf16-ucs4-unsafe.
90193         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90194         unistr/u16-mbtouc-unsafe.
90196         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90197         * modules/ucs4-utf8: Turn into a symbolic link to module
90198         unistr/u8-ubtomb.
90200         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90201         * modules/ucs4-utf16: Turn into a symbolic link to module
90202         unistr/u16-ubtomb.
90204 2007-03-24  Bruno Haible  <bruno@clisp.org>
90206         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90207         Enable the function only if HAVE_INLINE.
90208         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90209         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90210         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90211         Enable the function only if HAVE_INLINE.
90212         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90213         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90214         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90215         Enable the function only if HAVE_INLINE.
90216         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90217         Enable the function only if HAVE_INLINE.
90218         * modules/utf8-ucs4: Update.
90219         * modules/utf8-ucs4-unsafe: Update.
90220         * modules/utf16-ucs4: Update.
90221         * modules/utf16-ucs4-unsafe: Update.
90222         * modules/ucs4-utf8: Update.
90223         * modules/ucs4-utf16: Update.
90225 2007-03-24  Bruno Haible  <bruno@clisp.org>
90227         * lib/utf8-ucs4.h: Remove file.
90228         * lib/utf8-ucs4-unsafe.h: Remove file.
90229         * lib/utf16-ucs4.h: Remove file.
90230         * lib/utf16-ucs4-unsafe.h: Remove file.
90231         * lib/ucs4-utf8.h: Remove file.
90232         * lib/ucs4-utf16.h: Remove file.
90233         * lib/unistr.h: Include their previous contents.
90234         * m4/utf-ucs4.m4: Remove file.
90235         * m4/ucs4-utf.m4: Remove file.
90236         * modules/utf8-ucs4 (Files): Remove lib/utf8-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/utf8-ucs4-unsafe (Files): Remove lib/utf8-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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90247         (Depends-on): Add unistr/base.
90248         (configure.ac): Remove gl_UTF_UCS4.
90249         (Makefile.am): Update.
90250         (Include): Change to unistr.h.
90251         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90252         (Depends-on): Add unistr/base.
90253         (configure.ac): Remove gl_UTF_UCS4.
90254         (Makefile.am): Update.
90255         (Include): Change to unistr.h.
90256         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90257         (Depends-on): Add unistr/base.
90258         (configure.ac): Remove gl_UCS4_UTF.
90259         (Makefile.am): Update.
90260         (Include): Change to unistr.h.
90261         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90262         (Depends-on): Add unistr/base.
90263         (configure.ac): Remove gl_UCS4_UTF.
90264         (Makefile.am): Update.
90265         (Include): Change to unistr.h.
90266         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90267         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90268         utf8-ucs4-unsafe.h.
90269         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90270         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90271         utf16-ucs4-unsafe.h.
90272         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90273         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90274         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90275         * lib/unistr/u8-strchr.c: Likewise.
90276         * lib/unistr/u8-strrchr.c: Likewise.
90277         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90278         * lib/unistr/u16-strchr.c: Likewise.
90279         * lib/unistr/u16-strrchr.c: Likewise.
90280         * lib/striconveh.c: Update.
90281         * lib/linebreak.c: Update.
90283 2007-03-24  Bruno Haible  <bruno@clisp.org>
90285         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90286         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90288 2007-03-22  Bruno Haible  <bruno@clisp.org>
90290         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90292 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90294         * MODULES.html.sh (File system functions): New module write-any-file.
90295         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90296         * m4/write-any-file.m4: New files.
90298 2007-03-23  Eric Blake  <ebb9@byu.net>
90300         * gnulib-tool: Rearrange space-tab sequences, since some editors
90301         like to eat them.
90303 2007-03-23  Eric Blake  <ebb9@byu.net>
90305         * lib/version-etc.c (version_etc_va): Update license wording to
90306         be more concise.  Recommended by Richard Stallman.
90308 2007-03-22  Bruno Haible  <bruno@clisp.org>
90310         * lib/poll.c (MSG_PEEK): New fallback definition.
90312 2007-03-22  Bruno Haible  <bruno@clisp.org>
90314         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90315         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90316         (main): Update.
90317         Fixes a compilation error on BeOS.
90319 2007-03-22  Bruno Haible  <bruno@clisp.org>
90321         * modules/frexpl-tests: New file.
90322         * tests/test-frexpl.c: New file.
90324         * modules/frexpl: New file.
90325         * m4/frexpl.m4: New file.
90326         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90327         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90329         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90330         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90331         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90333 2007-03-22  Bruno Haible  <bruno@clisp.org>
90335         * lib/frexpl.c: Share code with lib/frexp.c.
90336         * modules/mathl (Files): Add lib/frexp.c.
90337         (Depends-on): Add isnanl-nolibm.
90339 2007-03-22  Bruno Haible  <bruno@clisp.org>
90341         * modules/printf-frexp (Files): Add m4/frexp.m4.
90342         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90343         only if the found frexp function actually works.
90345 2007-03-22  Bruno Haible  <bruno@clisp.org>
90347         * lib/frexp.c: Remove older implementation that uses divisions.
90349 2007-03-21  Bruno Haible  <bruno@clisp.org>
90351         * modules/frexp-tests: New file.
90352         * tests/test-frexp.c: New file.
90354         * modules/frexp: New file.
90355         * lib/frexp.c: New file.
90356         * m4/frexp.m4: New file.
90357         * lib/math_.h (frexp): New declaration.
90358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90359         REPLACE_FREXP.
90360         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90362 2007-03-21  Bruno Haible  <bruno@clisp.org>
90364         * modules/isnanl-tests: New file.
90365         * tests/test-isnanl.c: New file.
90367         * modules/isnanl: New file.
90368         * lib/isnanl.h: New file.
90369         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90370         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90371         gl_FUNC_ISNANL_WORKS.
90372         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90373         New macros.
90375 2007-03-21  Bruno Haible  <bruno@clisp.org>
90377         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90378         lib/isnanl.h.
90379         (Include): Update.
90380         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90381         * lib/vasnprintf.c: Update.
90382         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90383         tests/test-isnanl.h, remove tests/test-isnanl.c.
90384         (Makefile.am): Update.
90385         * tests/test-isnanl-nolibm.c: New file.
90386         * tests/test-isnanl.h: New file.
90387         * tests/test-isnanl.c: Remove file.
90389 2007-03-21  Jim Meyering  <jim@meyering.net>
90391         When trying to open ".", treat ESTALE like EACCES.
90392         * lib/savewd.c (savewd_save): Resort to forking not just upon
90393         failure with EACCES, but also when errno is ESTALE.
90395 2007-03-20  Bruno Haible  <bruno@clisp.org>
90397         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90398         Needed on AIX 5.1. Reported by Matthew Woehlke.
90400 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90402         Suggestions by Bruno Haible:
90403         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90404         our own.
90405         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90406         * modules/acl (Depends-on): Add gettext.
90408 2007-03-19  Bruno Haible  <bruno@clisp.org>
90410         * modules/iconvme: Remove file.
90411         * lib/iconvme.h: Remove file.
90412         * lib/iconvme.c: Remove file.
90413         * m4/iconvme.m4: Remove file.
90415 2007-03-19  Bruno Haible  <bruno@clisp.org>
90417         * doc/relocatable-maint.texi: Break long shell script line.
90418         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90420 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90422         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90423         handle file_has_acl.
90424         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90425         * lib/acl.c: Move header inclusions and related macro defns into
90426         lib/acl-internal.h.
90427         (S_ISLNK): Remove defn, since that's now done for us.
90428         (file_has_acl): Move to lib/file-has-acl.c.
90429         Call acl_trivial if available.  This is the crucial part of the fix.
90430         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90431         shared within the library.  Rewrite a bit, partly to make it compatible
90432         with the GNU coding style.
90433         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90434         Remove unnecessary double-quotes.
90435         Don't test for acl_to_text; the build will catch that.
90436         Replace acl_entries if it doesn't exist and it is needed.
90437         Check for -lsec and acl_trivial (as used on Solaris 10).
90438         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90439         lib/file-has-acl.c.
90440         (Depends-on): Add sys_stat, for S_ISLNK.
90442 2007-03-19  Ben Pfaff  <blp@gnu.org>
90444         * doc/gnulib.texi: Fix typos.
90445         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90447 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90449         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90450         If size is zero here, buf must be zero.
90452 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90454         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90455         <bruno@clisp.org>.
90457 2007-03-18  Bruno Haible  <bruno@clisp.org>
90459         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90460         Suggested by Eric Blake.
90462 2007-03-18  Ben Pfaff  <blp@gnu.org>
90464         * doc/relocatable.texi: Recommend using as prefix a directory
90465         that does not exist and will never be created.  Based on
90466         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90467         and others.
90469 2007-03-17  Bruno Haible  <bruno@clisp.org>
90471         * lib/fchownat.c: Include lchown.h.
90473 2007-03-17  Bruno Haible  <bruno@clisp.org>
90475         Fix endless loop when the given allocated size was > INT_MAX.
90476         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90477         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90478         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90479         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90480         * lib/sprintf.c (sprintf): Likewise.
90482 2007-03-17  Bruno Haible  <bruno@clisp.org>
90484         * tests/test-argp-2.sh (func_compare): Output a context diff.
90486 2007-03-17  Bruno Haible  <bruno@clisp.org>
90488         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90489         locale's decimal-point character.
90491 2007-03-17  Bruno Haible  <bruno@clisp.org>
90493         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90494         before comparing it. Needed because on some platforms (e.g. x86) a
90495         'long double' occupies less bytes than sizeof (long double).
90497 2007-03-17  Bruno Haible  <bruno@clisp.org>
90499         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90500         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90501         * tests/test-getaddrinfo.c (simple): Likewise.
90502         * tests/test-read-file.c (main): Likewise.
90504 2007-03-17  Bruno Haible  <bruno@clisp.org>
90506         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90508 2007-03-17  Bruno Haible  <bruno@clisp.org>
90510         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90511         unused variable.
90513 2007-03-17  Bruno Haible  <bruno@clisp.org>
90515         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90516         * tests/test-c-strncasecmp.c: Likewise.
90518 2007-03-17  Bruno Haible  <bruno@clisp.org>
90520         * modules/stdlib (Depends-on): Add unistd.
90521         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90522         Needed for MacOS X 10.3.
90524 2007-03-17  Bruno Haible  <bruno@clisp.org>
90526         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90528 2007-03-17  Bruno Haible  <bruno@clisp.org>
90530         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90532 2007-03-17  Bruno Haible  <bruno@clisp.org>
90534         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90535         to reflect files copied from gnulib (with or without modifications).
90536         Suggested by Jim Meyering.
90538 2007-03-17  Eric Blake  <ebb9@byu.net>
90540         * NEWS: Document stdlib change from 2007-02-18.
90542 2007-03-17  Jim Meyering  <jim@meyering.net>
90544         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90545         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90546         someone uses a name containing shell meta-characters.
90547         Reported by Alfred M. Szmidt.
90549         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90551 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90553         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90554         and copy gettext configuration files only if configure.ac contains
90555         a use of AM_GNU_GETTEXT_VERSION.
90557 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90559         * build-aux/bootstrap (gnulib_name): New variable.
90560         (gnulib_tool_options): Use it.
90562 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90564         * tests/test-des.c: Use new namespace.
90566 2007-03-15  Bruno Haible  <bruno@clisp.org>
90568         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90569         Reported by James Youngman <jay@gnu.org>.
90571 2007-03-15  Bruno Haible  <bruno@clisp.org>
90573         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90574         declared prototype. Needed with cc on OSF/1 5.1.
90576 2007-03-15  Bruno Haible  <bruno@clisp.org>
90578         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90579         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90580         (struct gl_list_implementation): Add dispose_fn argument to the
90581         'create_empty', 'create' methods.
90582         (struct gl_list_impl_base): Add field 'dispose_fn'.
90583         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90584         argument.
90585         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90586         dispose_fn argument.
90587         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90588         dispose_fn on the dropped values.
90589         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90590         dispose_fn argument.
90591         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90592         dropped values.
90593         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90594         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90595         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90596         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90597         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90598         argument.
90599         (gl_tree_list_free): Call dispose_fn on the dropped values.
90600         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90601         the dropped values.
90602         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90603         Add dispose_fn argument.
90604         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90605         Call dispose_fn on the dropped values.
90606         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90607         Add dispose_fn argument.
90608         (gl_sublist_create): Initialize the 'dispose_fn' field.
90609         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90610         * tests/test-array_list.c (main): Update.
90611         * tests/test-carray_list.c (main): Update.
90612         * tests/test-avltree_list.c (main): Update.
90613         * tests/test-rbtree_list.c (main): Update.
90614         * tests/test-avltreehash_list.c (main): Update.
90615         * tests/test-rbtreehash_list.c (main): Update.
90616         * tests/test-linked_list.c (main): Update.
90617         * tests/test-linkedhash_list.c (main): Update.
90618         * tests/test-array_oset.c (main): Update.
90620 2007-03-15  Bruno Haible  <bruno@clisp.org>
90622         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90623         (gl_oset_create_empty): Add dispose_fn argument.
90624         (struct gl_oset_implementation): Add dispose_fn argument to
90625         'create_empty' method.
90626         (struct gl_oset_impl_base): Add dispose_fn field.
90627         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90628         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90629         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90630         values.
90631         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90632         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90633         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90634         dropped value.
90635         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90636         dropped value.
90637         * tests/test-array_oset.c (main): Update.
90638         * tests/test-avltree_oset.c (main): Update.
90639         * tests/test-rbtree_oset.c (main): Update.
90640         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90642 2007-03-13  Bruno Haible  <bruno@clisp.org>
90644         * tests/test-stdbool.c (i): Update after last patch.
90646 2007-03-12  Bruno Haible  <bruno@clisp.org>
90648         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90649         the iswprint macro. Needed on Solaris 2.5.1.
90651 2007-03-12  Bruno Haible  <bruno@clisp.org>
90653         * tests/test-printf-frexp.c (main): Declare x as volatile.
90655 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90657         * doc/gnulib.texi (Build robot for gnulib): New section.
90659 2007-03-12  Jim Meyering  <jim@meyering.net>
90661         * build-aux/bootstrap: New file.
90662         * build-aux/bootstrap.conf: New file, from coreutils.
90664 2007-03-11  Bruno Haible  <bruno@clisp.org>
90666         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90668 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90670         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90671         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90672         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90674 2007-03-11  Bruno Haible  <bruno@clisp.org>
90676         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90677         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90679 2007-03-11  Bruno Haible  <bruno@clisp.org>
90681         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90682         formula. Needed for SunPRO C 5.0.
90684 2007-03-11  Bruno Haible  <bruno@clisp.org>
90686         * modules/long-options (Depends-on): Add getopt.
90688 2007-03-11  Bruno Haible  <bruno@clisp.org>
90690         * modules/modechange (Depends-on): Add stdbool.
90692 2007-03-11  Bruno Haible  <bruno@clisp.org>
90694         * modules/i-ring (Depends-on): Add stdbool.
90696 2007-03-11  Bruno Haible  <bruno@clisp.org>
90698         * modules/gc-des (Depends-on): Add stdbool.
90700 2007-03-11  Bruno Haible  <bruno@clisp.org>
90702         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90704 2007-03-11  Bruno Haible  <bruno@clisp.org>
90706         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90708 2007-03-11  Bruno Haible  <bruno@clisp.org>
90710         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90712 2007-03-11  Bruno Haible  <bruno@clisp.org>
90714         * lib/vasnprintf.c (sprintf): Undefine.
90716 2007-03-11  Bruno Haible  <bruno@clisp.org>
90718         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90719         initializers in SunPRO C and Compaq C compilers.
90721 2007-03-11  Bruno Haible  <bruno@clisp.org>
90723         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90724         decrementing code ANSI C compliant.
90726 2007-03-11  Bruno Haible  <bruno@clisp.org>
90728         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90729         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90731 2007-03-11  Bruno Haible  <bruno@clisp.org>
90733         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90734         <stdbool.h> substitute doesn't pass.
90736 2007-03-11  Bruno Haible  <bruno@clisp.org>
90738         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90740 2007-03-11  Bruno Haible  <bruno@clisp.org>
90742         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90743         script, for submission to autobuild.josefsson.org.
90745 2007-03-10  Bruno Haible  <bruno@clisp.org>
90747         * modules/canonicalize-lgpl-tests: New file.
90748         * tests/test-canonicalize-lgpl.sh: New file.
90749         * tests/test-canonicalize-lgpl.c: New file.
90751         * modules/c-strcase-tests: New file.
90752         * tests/test-c-strcase.sh: New file.
90753         * tests/test-c-strcasecmp.c: New file.
90754         * tests/test-c-strncasecmp.c: New file.
90756         * modules/atexit-tests: New file.
90757         * tests/test-atexit.sh: New file.
90758         * tests/test-atexit.c: New file.
90760 2007-03-10  Bruno Haible  <bruno@clisp.org>
90762         * tests/test-binary-io.sh: Use temporary filenames that are not so
90763         likely to clash with those of other tests (in a parallel make).
90764         * tests/test-binary-io.c: Likewise.
90766 2007-03-10  Bruno Haible  <bruno@clisp.org>
90768         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90769         fallback; use #error instead.
90770         Suggested by Simon Josefsson.
90772 2007-03-10  Bruno Haible  <bruno@clisp.org>
90774         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90775         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90776         first and the last.
90778 2007-03-10  Bruno Haible  <bruno@clisp.org>
90780         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90782 2007-03-10  Bruno Haible  <bruno@clisp.org>
90784         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90785         "make distcheck".
90786         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90787         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90788         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90790 2007-03-10  Bruno Haible  <bruno@clisp.org>
90792         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90793         variable.
90794         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90795         variable.
90797 2007-03-09  Eric Blake  <ebb9@byu.net>
90798         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90800         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90801         types are not being provided by gnulib.
90802         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90803         types are supported.
90805 2007-03-10  Bruno Haible  <bruno@clisp.org>
90807         * lib/stdio_.h (__attribute__): New macro.
90808         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90809         vsprintf): Specify __attribute__ __format__ for GCC.
90810         Suggested by Eric Blake.
90812 2007-03-09  Bruno Haible  <bruno@clisp.org>
90814         * modules/printf-posix-tests: New file.
90815         * tests/test-printf-posix.sh: New file.
90816         * tests/test-printf-posix.c: New file.
90818         * modules/printf-posix: New file.
90819         * lib/printf.c: New file.
90820         * m4/printf-posix-rpl.m4: New file.
90821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90822         REPLACE_PRINTF.
90823         * lib/stdio_.h (printf): New declaration.
90824         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90825         ____strfmon____): New macros.
90826         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90827         REPLACE_PRINTF.
90829 2007-03-09  Bruno Haible  <bruno@clisp.org>
90831         * tests/test-vasnprintf-posix2.sh: New file.
90832         * tests/test-vasnprintf-posix2.c: New file.
90833         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90834         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90835         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90837         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90838         a locale dependent decimal point, rather than always '.'.
90840 2007-03-09  Eric Blake  <ebb9@byu.net>
90842         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90843         spite of platforms like Tandem/NSK that define it to -1.
90845 2007-03-08  Bruno Haible  <bruno@clisp.org>
90847         * modules/vprintf-posix-tests: New file.
90848         * tests/test-vprintf-posix.sh: New file.
90849         * tests/test-vprintf-posix.c: New file.
90850         * tests/test-printf-posix.h: New file.
90852         * modules/vprintf-posix: New file.
90853         * lib/vprintf.c: New file.
90854         * m4/vprintf-posix.m4: New file.
90855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90856         REPLACE_VPRINTF.
90857         * lib/stdio_.h (vprintf): New declaration.
90858         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90859         REPLACE_VPRINTF.
90861 2007-03-08  Bruno Haible  <bruno@clisp.org>
90863         * modules/fprintf-posix-tests: New file.
90864         * tests/test-fprintf-posix.sh: New file.
90865         * tests/test-fprintf-posix.c: New file.
90867         * modules/fprintf-posix: New file.
90868         * lib/fprintf.c: New file.
90869         * m4/fprintf-posix.m4: New file.
90870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90871         REPLACE_FPRINTF.
90872         * lib/stdio_.h (fprintf): New declaration.
90873         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90874         REPLACE_FPRINTF.
90876 2007-03-08  Bruno Haible  <bruno@clisp.org>
90878         * modules/vfprintf-posix-tests: New file.
90879         * tests/test-vfprintf-posix.sh: New file.
90880         * tests/test-vfprintf-posix.c: New file.
90881         * tests/test-fprintf-posix.h: New file.
90882         * tests/test-fprintf-posix.out: New file.
90884         * modules/vfprintf-posix: New file.
90885         * lib/vfprintf.c: New file.
90886         * m4/vfprintf-posix.m4: New file.
90887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90888         REPLACE_VFPRINTF.
90889         * lib/stdio_.h (vfprintf): New declaration.
90890         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90891         REPLACE_VFPRINTF.
90893 2007-03-08  Bruno Haible  <bruno@clisp.org>
90895         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
90897 2007-03-08  Bruno Haible  <bruno@clisp.org>
90899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
90900         instead of 'expr' invocations.
90901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90906         Suggested by Paul Eggert.
90908 2007-03-08  Bruno Haible  <bruno@clisp.org>
90910         * modules/fseterr-tests: New file.
90911         * tests/test-fseterr.c: New file.
90913         * modules/fseterr: New file.
90914         * lib/fseterr.h: New file.
90915         * lib/fseterr.c: New file.
90917 2007-03-08  Bruno Haible  <bruno@clisp.org>
90919         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
90920         * lib/getopt_.h: Likewise.
90921         * lib/mbswidth.h: Likewise.
90922         * lib/setenv.h: Likewise.
90923         * lib/vasnprintf.h: Likewise.
90924         * lib/vasprintf.h: Likewise.
90925         * lib/verror.h: Likewise.
90926         * lib/xsetenv.h: Likewise.
90927         * lib/xvasprintf.h: Likewise.
90929 2007-03-08  Jim Meyering  <jim@meyering.net>
90931         * users.txt: Add parted.
90933         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
90935 2007-03-07  Bruno Haible  <bruno@clisp.org>
90937         * m4/printf.m4: Make the shell script snippets copy&pastable.
90939 2007-03-02  Bruno Haible  <bruno@clisp.org>
90941         * lib/netinet_in_.h: New file.
90942         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
90943         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
90944         * modules/netinet_in (Files): Add lib/netinet_in_.h.
90945         (Depends-on): Add absolute-header.
90946         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
90947         into netinet/in.h.
90949 2007-03-03  Bruno Haible  <bruno@clisp.org>
90951         * lib/sys_select_.h: New file.
90952         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
90953         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
90954         * modules/sys_select (Files): Add lib/sys_select_.h.
90955         (Depends-on): Add absolute-header.
90956         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
90957         into sys/select.h.
90959 2007-03-02  Bruno Haible  <bruno@clisp.org>
90961         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
90962         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
90963         values.
90964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90965         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
90966         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
90967         * modules/sys_socket (Depends-on): Add absolute-header.
90968         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
90969         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
90970         (Include): Remove requirement of inclusion of <sys/types.h>.
90972 2007-03-02  Bruno Haible  <bruno@clisp.org>
90974         * lib/byteswap_.h (bswap_32): Fix formula.
90976 2007-03-06  Bruno Haible  <bruno@clisp.org>
90978         * modules/sprintf-posix-tests: New file.
90979         * tests/test-sprintf-posix.c: New file.
90981         * modules/sprintf-posix: New file.
90982         * lib/sprintf.c: New file.
90983         * m4/sprintf-posix.m4: New file.
90984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
90985         REPLACE_SPRINTF.
90986         * lib/stdio_.h (sprintf): New declaration.
90987         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
90988         REPLACE_SPRINTF.
90990 2007-03-06  Bruno Haible  <bruno@clisp.org>
90992         * modules/vsprintf-posix-tests: New file.
90993         * tests/test-vsprintf-posix.c: New file.
90994         * tests/test-sprintf-posix.h: New file.
90996         * modules/vsprintf-posix: New file.
90997         * lib/vsprintf.c: New file.
90998         * m4/vsprintf-posix.m4: New file.
90999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91000         REPLACE_VSPRINTF.
91001         * lib/stdio_.h (vsprintf): New declaration.
91002         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91003         REPLACE_VSPRINTF.
91005 2007-03-06  Bruno Haible  <bruno@clisp.org>
91007         * modules/vsnprintf (Depend-on): Remove minmax.
91009 2007-03-06  Bruno Haible  <bruno@clisp.org>
91011         * modules/snprintf-posix-tests: New file.
91012         * tests/test-snprintf-posix.c: New file.
91014         * modules/snprintf-posix: New file.
91015         * m4/snprintf-posix.m4: New file.
91016         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91017         gl_FUNC_SNPRINTF.
91018         (gl_FUNC_SNPRINTF): Invoke it.
91019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91020         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91021         is set.
91022         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91024 2007-03-06  Bruno Haible  <bruno@clisp.org>
91026         * modules/vsnprintf-posix-tests: New file.
91027         * tests/test-vsnprintf-posix.c: New file.
91028         * tests/test-snprintf-posix.h: New file.
91030         * modules/vsnprintf-posix: New file.
91031         * m4/vsnprintf-posix.m4: New file.
91032         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91033         gl_FUNC_VSNPRINTF.
91034         (gl_FUNC_VSNPRINTF): Invoke it.
91035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91036         * lib/stdio_.h (vsnprintf): Define as a replacement if
91037         REPLACE_VSNPRINTF is set.
91038         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91040 2007-03-06  Bruno Haible  <bruno@clisp.org>
91042         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91045 2007-03-06  Bruno Haible  <bruno@clisp.org>
91047         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91048         (asinl): Declare also if HAVE_DECL_ASINL is set.
91049         (atanl): Declare also if HAVE_DECL_ATANL is set.
91050         (ceill): Declare also if HAVE_DECL_CEILL is set.
91051         (cosl): Declare also if HAVE_DECL_COSL is set.
91052         (expl): Declare also if HAVE_DECL_EXPL is set.
91053         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91054         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91055         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91056         (logl): Declare also if HAVE_DECL_LOGL is set.
91057         (sinl): Declare also if HAVE_DECL_SINL is set.
91058         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91059         (tanl): Declare also if HAVE_DECL_TANL is set.
91060         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91062         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91063         declaration of frexpl, ldexpl.
91064         * modules/printf-frexpl (Depends-on): Add math.
91065         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91067 2007-03-05  Bruno Haible  <bruno@clisp.org>
91069         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91070         frexpl and ldexpl are declared.
91071         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91073 2007-03-05  Bruno Haible  <bruno@clisp.org>
91075         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91076         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91078 2007-03-05  Bruno Haible  <bruno@clisp.org>
91080         * lib/stdio_.h: Include <stddef.h>.
91082 2007-03-05  Bruno Haible  <bruno@clisp.org>
91084         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91086 2007-03-05  Bruno Haible  <bruno@clisp.org>
91088         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91089         NetBSD 4, from Ralf Wildenhues.
91091 2007-03-04  Bruno Haible  <bruno@clisp.org>
91093         * lib/vasprintf.h: Update #if logic for the case when the functions
91094         exist but are overridden.
91096 2007-03-04  Bruno Haible  <bruno@clisp.org>
91098         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91099         implementations: glibc-2.4 and MacOS X 10.3.
91100         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91101         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91102         * tests/test-vasprintf-posix.c (test_function): Likewise.
91104 2007-03-04  Bruno Haible  <bruno@clisp.org>
91106         * modules/vasprintf-posix-tests: New file.
91107         * tests/test-vasprintf-posix.c: New file.
91109         * modules/vasprintf-posix: New file.
91110         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91111         defined.
91112         * m4/vasprintf-posix.m4: New file.
91113         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91114         gl_FUNC_VASPRINTF.
91115         (gl_FUNC_VASPRINTF): Invoke it.
91116         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91117         here.
91118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91120 2007-03-04  Bruno Haible  <bruno@clisp.org>
91122         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91123         REPLACE_GETTIMEOFDAY.
91124         * modules/sys_time (Makefile.am): Likewise.
91125         * m4/sys_time_h.m4: Likewise.
91126         * m4/gettimeofday.m4: Likewise.
91128 2007-03-04  Bruno Haible  <bruno@clisp.org>
91130         * modules/vasnprintf-posix-tests: New file.
91131         * tests/test-vasnprintf-posix.c: New file.
91133         * modules/vasnprintf-posix: New file.
91134         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91135         printf-frexpl.h.
91136         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91137         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91138         REPLACE_VASNPRINTF is defined.
91139         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91140         gl_FUNC_VASNPRINTF.
91141         (gl_FUNC_VASNPRINTF): Invoke it.
91142         * m4/vasnprintf-posix.m4: New file.
91143         * m4/printf.m4: New file.
91145 2007-03-04  Bruno Haible  <bruno@clisp.org>
91147         Compile progreloc.c only if --enable-relocatable is specified.
91148         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91149         if --enable-relocatable was specified.
91150         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91151         lib_SOURCES.
91153 2007-03-04  Jim Meyering  <jim@meyering.net>
91155         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91156         Use it consistently, rather than enumerating errno constants.
91158 2007-03-04  Bruno Haible  <bruno@clisp.org>
91160         * modules/xvasprintf-tests: New file.
91161         * tests/test-xvasprintf.c: New file.
91163         * modules/vasprintf-tests: New file.
91164         * tests/test-vasprintf.c: New file.
91166         * modules/vasnprintf-tests: New file.
91167         * tests/test-vasnprintf.c: New file.
91169         * modules/vsnprintf-tests: New file.
91170         * tests/test-vsnprintf.c: New file.
91172         * modules/snprintf-tests: New file.
91173         * tests/test-snprintf.c: New file.
91175 2007-03-04  Bruno Haible  <bruno@clisp.org>
91177         Compile relocatable.c only if --enable-relocatable is specified.
91178         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91179         gl_RELOCATABLE_LIBRARY.
91180         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91181         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91182         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91183         gl_RELOCATABLE_LIBRARY.
91184         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91185         (Makefile.am): Remove lib_SOURCES.
91186         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91187         gl_RELOCATABLE_LIBRARY.
91188         (Makefile.am): Remove lib_SOURCES.
91189         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91190         always.
91191         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91192         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91194 2007-03-04  Bruno Haible  <bruno@clisp.org>
91196         * modules/argmatch-tests: New file.
91197         * tests/test-argmatch.c: New file.
91199         * tests/test-allocsa.c (main): Halve the number of loop runs.
91201         * modules/alloca-opt-tests: New file.
91202         * tests/test-alloca-opt.c: New file.
91204 2007-03-04  Jim Meyering  <jim@meyering.net>
91206         Work around difference between Linux ACLs and Solaris 10 ZFS.
91207         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91208         for EINVAL.
91210 2007-03-03  Bruno Haible  <bruno@clisp.org>
91212         * modules/relocatable-prog (Depends-on): Add back progreloc's
91213         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91215 2007-03-03  Bruno Haible  <bruno@clisp.org>
91217         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91218         * modules/relocatable-lib: New file.
91220 2007-03-03  Bruno Haible  <bruno@clisp.org>
91222         * modules/relocatable-prog: Renamed from modules/relocatable.
91223         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91225 2007-03-03  Bruno Haible  <bruno@clisp.org>
91227         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91228         m4/relocatable-lib.m4.
91229         (Depends-on): Remove 'relocatable'.
91230         (configure.ac): Add gl_RELOCATABLE_NOP.
91232 2007-03-03  Bruno Haible  <bruno@clisp.org>
91234         * modules/relocatable-prog-wrapper: New file.
91235         * modules/relocatable (Depends-on): Add it. Remove all other
91236         dependencies except progname.
91237         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91239         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91240         (gl_FUNC_STRERROR): Nop.
91241         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91243         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91244         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91246         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91247         (gl_FUNC_READLINK): Update.
91249         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91251 2007-03-03  Bruno Haible  <bruno@clisp.org>
91253         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91254         * modules/xreadlink (Depends-on): Add unistd.
91255         * modules/xreadlink-with-size (Depends-on): Likewise.
91257 2007-03-03  Bruno Haible  <bruno@clisp.org>
91259         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91260         extracted from gt_FUNC_SETENV.
91261         (gt_FUNC_SETENV): Remove macro.
91262         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91263         remove gt_FUNC_SETENV.
91265 2007-03-03  Bruno Haible  <bruno@clisp.org>
91267         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91268         ENABLE_RELOCATABLE here.
91269         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91271 2007-03-03  Bruno Haible  <bruno@clisp.org>
91273         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91274         * tests/test-rbtreehash_list.c: Include progname.h.
91275         (main): Call set_program_name.
91277         * modules/rbtree-oset-tests (Depends-on): Add progname.
91278         * tests/test-rbtree_oset.c: Include progname.h.
91279         (main): Call set_program_name.
91281         * modules/rbtree-list-tests (Depends-on): Add progname.
91282         * tests/test-rbtree_list.c: Include progname.h.
91283         (main): Call set_program_name.
91285         * modules/linked-list-tests (Depends-on): Add progname.
91286         * tests/test-linked_list.c: Include progname.h.
91287         (main): Call set_program_name.
91289 2007-03-03  Bruno Haible  <bruno@clisp.org>
91291         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91292         All uses of __restrict changed to _Restrict_.
91293         * lib/glob_.h (__restrict): Remove macro.
91295 2007-03-02  Bruno Haible  <bruno@clisp.org>
91297         * modules/gettext (configure.ac): Require gettext infrastructure
91298         from version 0.16.1.
91300 2007-03-02  Bruno Haible  <bruno@clisp.org>
91302         * modules/linkedhash-list-tests (Depends-on): Add progname.
91303         * tests/test-linkedhash_list.c: Include progname.h.
91304         (main): Call set_program_name.
91306         * modules/carray-list-tests (Depends-on): Add progname.
91307         * tests/test-carray_list.c: Include progname.h.
91308         (main): Call set_program_name.
91310         * modules/avltreehash-list-tests (Depends-on): Add progname.
91311         * tests/test-avltreehash_list.c: Include progname.h.
91312         (main): Call set_program_name.
91314         * modules/avltree-oset-tests (Depends-on): Add progname.
91315         * tests/test-avltree_oset.c: Include progname.h.
91316         (main): Call set_program_name.
91318         * modules/avltree-list-tests (Depends-on): Add progname.
91319         * tests/test-avltree_list.c: Include progname.h.
91320         (main): Call set_program_name.
91322         * modules/array-oset-tests (Depends-on): Add progname.
91323         * tests/test-array_oset.c: Include progname.h.
91324         (main): Call set_program_name.
91326         * modules/array-list-tests (Depends-on): Add progname.
91327         * tests/test-array_list.c: Include progname.h.
91328         (main): Call set_program_name.
91330         * modules/argp-tests (Depends-on): Add progname.
91331         * tests/test-argp.c: Include argp.h first. Include progname.h.
91332         (main): Call set_program_name.
91334 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91336         * doc/gnulib-tool.texi (Initial import): Reword description of
91337         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91338         limited effect even if defined after the first system include.
91340 2007-03-01  Bruno Haible  <bruno@clisp.org>
91342         * build-aux/config.libpath: Update to libtool-1.5.22.
91343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91345 2007-03-01  Bruno Haible  <bruno@clisp.org>
91347         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91348         foo_CFLAGS.
91349         Reported by Ralf Wildenhues.
91351 2007-03-01  Bruno Haible  <bruno@clisp.org>
91353         * build-aux/install-reloc: Remove object files left over by some
91354         compilers.
91355         Reported by Ralf Wildenhues.
91357 2007-03-01  Bruno Haible  <bruno@clisp.org>
91359         * build-aux/install-reloc: Break long lines.
91361 2007-03-01  Bruno Haible  <bruno@clisp.org>
91363         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91364         Reported by Ralf Wildenhues.
91366 2007-03-01  Bruno Haible  <bruno@clisp.org>
91368         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91369         include ordering constraints.
91371 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91373         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91374         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91375         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91376         as another example.
91377         * lib/time_.h: Fix misspelling.
91378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91379         Require gl_HEADER_TIME_H_DEFAULTS.
91380         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91381         * m4/time_r.m4 (gl_TIME_R): Likewise.
91382         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91384 2007-03-01  Bruno Haible  <bruno@clisp.org>
91386         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91387         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91389 2007-03-01  Jim Meyering  <jim@meyering.net>
91391         * modules/xreadlink (Maintainer): Add my name.
91392         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91394 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91395             Bruno Haible  <bruno@clisp.org>
91397         * build-aux/install-reloc: Compile also c-ctype.c.
91398         * build-aux/relocatable.sh.in: New file.
91399         * doc/relocatable.texi: New file.
91400         * doc/relocatable-maint.texi: New file.
91401         * doc/gnulib.texi: Include relocatable-maint.texi.
91402         * lib/progreloc.c: Include unistd.h unconditionally.
91403         * lib/relocwrapper.c: Include unistd.h unconditionally.
91404         Include c-ctype.h.
91405         (add_dotbin): Use c_tolower.
91406         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91407         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91408         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91409         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91410         to m4/relocatable-lib.m4.
91411         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91412         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91413         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91414         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91415         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91416         * modules/relocatable: New file.
91417         * modules/relocatable-lib: New file.
91418         * modules/relocatable-script: New file.
91420 2007-02-28  Bruno Haible  <bruno@clisp.org>
91422         Import --enable-relocatable infrastructure.
91423         * build-aux/config.libpath: New file, from GNU gettext.
91424         * build-aux/install-reloc: New file, from GNU gettext.
91425         * build-aux/reloc-ldflags: New file, from GNU gettext.
91426         * lib/relocatable.h: New file, from GNU gettext.
91427         * lib/relocatable.c: New file, from GNU gettext.
91428         * lib/relocwrapper.c: New file, from GNU gettext.
91429         * m4/relocatable.m4: New file, from GNU gettext.
91431 2007-02-28  Bruno Haible  <bruno@clisp.org>
91433         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91435         * modules/xreadlink: New file, from GNU gettext with modifications.
91436         * lib/xreadlink.c: New file, from GNU gettext.
91437         * lib/xreadlink.h: Add comments.
91438         (xreadlink): New declaration.
91440         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91441         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91442         lib/xreadlink-with-size.c.
91443         (configure.ac): Remove gl_XREADLINK invocation.
91444         (Makefile.am): Augment lib_SOURCES.
91445         * m4/xreadlink.m4: Remove file.
91446         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91447         (xreadlink_with_size): Renamed from xreadink.
91448         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91449         * modules/canonicalize (Depends-on): Replace xreadlink with
91450         xreadlink-with-size.
91451         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91453 2007-02-25  Jim Meyering  <jim@meyering.net>
91455         * build-aux/announce-gen: When complaining about excess arguments,
91456         list them.
91458 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91460         * README: Document signed integer overflow situation more
91461         accurately.
91463 2007-02-25  Bruno Haible  <bruno@clisp.org>
91465         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91466         'a' or 'A' conversion.
91468 2007-02-25  Bruno Haible  <bruno@clisp.org>
91470         * modules/filename: Renamed from modules/pathname.
91471         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91472         lib/concatpath.c with lib/concat-filename.c.
91473         (Makefile.am): Update.
91474         (Include): Replace pathname.h with filename.h.
91475         * lib/filename.h: Renamed from lib/pathname.h.
91476         (concatenated_filename): Renamed from concatenated_pathname.
91477         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91478         (concatenated_filename): Renamed from concatenated_pathname.
91479         * lib/findprog.c: Include filename.h instead of pathname.h.
91480         (find_in_path): Update.
91481         * lib/javacomp.c: Include filename.h instead of pathname.h.
91482         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91483         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91484         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91485         is_oldgcj_14_13_usable, is_javac_usable): Update.
91486         * lib/javaexec.c: Include filename.h instead of pathname.h.
91487         (execute_java_class): Update.
91488         * modules/findprog: Update.
91489         * modules/javacomp: Update.
91490         * modules/javaexec: Update.
91491         * MODULES.html.sh (File system functions): Add 'filename', remove
91492         'pathname'.
91494 2007-02-25  Bruno Haible  <bruno@clisp.org>
91496         * modules/printf-frexpl-tests: New file.
91497         * tests/test-printf-frexpl.c: New file.
91499         * modules/printf-frexpl: New file.
91500         * lib/printf-frexpl.h: New file.
91501         * lib/printf-frexpl.c: New file.
91502         * m4/printf-frexpl.m4: New file.
91504 2007-02-25  Bruno Haible  <bruno@clisp.org>
91506         * modules/printf-frexp-tests: New file.
91507         * tests/test-printf-frexp.c: New file.
91509         * modules/printf-frexp: New file.
91510         * lib/printf-frexp.h: New file.
91511         * lib/printf-frexp.c: New file.
91512         * m4/printf-frexp.m4: New file.
91514 2007-02-25  Bruno Haible  <bruno@clisp.org>
91516         Assume automake >= 1.10 for the tests.
91517         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91518         * modules/arctwo-tests: Likewise.
91519         * modules/argp-tests: Likewise.
91520         * modules/avltree-list-tests: Likewise.
91521         * modules/avltree-oset-tests: Likewise.
91522         * modules/avltreehash-list-tests: Likewise.
91523         * modules/carray-list-tests: Likewise.
91524         * modules/crc-tests: Likewise.
91525         * modules/des-tests: Likewise.
91526         * modules/gc-arcfour-tests: Likewise.
91527         * modules/gc-arctwo-tests: Likewise.
91528         * modules/gc-des-tests: Likewise.
91529         * modules/gc-hmac-md5-tests: Likewise.
91530         * modules/gc-hmac-sha1-tests: Likewise.
91531         * modules/gc-md2-tests: Likewise.
91532         * modules/gc-md4-tests: Likewise.
91533         * modules/gc-md5-tests: Likewise.
91534         * modules/gc-pbkdf2-sha1-tests: Likewise.
91535         * modules/gc-rijndael-tests: Likewise.
91536         * modules/gc-sha1-tests: Likewise.
91537         * modules/gc-tests: Likewise.
91538         * modules/getaddrinfo-tests: Likewise.
91539         * modules/hmac-md5-tests: Likewise.
91540         * modules/hmac-sha1-tests: Likewise.
91541         * modules/linked-list-tests: Likewise.
91542         * modules/linkedhash-list-tests: Likewise.
91543         * modules/lock-tests: Likewise.
91544         * modules/md2-tests: Likewise.
91545         * modules/md4-tests: Likewise.
91546         * modules/md5-tests: Likewise.
91547         * modules/rbtree-list-tests: Likewise.
91548         * modules/rbtree-oset-tests: Likewise.
91549         * modules/rbtreehash-list-tests: Likewise.
91550         * modules/read-file-tests: Likewise.
91551         * modules/rijndael-tests: Likewise.
91552         * modules/stdint-tests: Likewise.
91553         * modules/tls-tests: Likewise.
91555 2007-02-24  Bruno Haible  <bruno@clisp.org>
91557         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91558         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91559         function; instead check whether isnan with a double argument links.
91560         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91561         function; instead check whether isnan with a 'long double' argument
91562         links.
91563         Reported by Eric Blake <ebb9@byu.net>.
91565 2007-02-24  Bruno Haible  <bruno@clisp.org>
91567         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91568         defined.
91569         * lib/isnanl.c: Remove all code. Just include isnan.c.
91570         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91572 2007-02-25  Jim Meyering  <jim@meyering.net>
91574         Avoid conflicting types for 'unsetenv' on FreeBSD.
91575         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91576         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91577         in stdlib.h.
91579 2007-02-24  Bruno Haible  <bruno@clisp.org>
91581         * modules/isnanl-nolibm-tests: New file.
91582         * tests/test-isnanl.c: New file.
91584         * modules/isnanl-nolibm: New file.
91585         * lib/isnanl.h: New file.
91586         * lib/isnanl.c: New file.
91587         * m4/isnanl.m4: New file.
91589 2007-02-24  Bruno Haible  <bruno@clisp.org>
91591         * modules/isnan-nolibm-tests: New file.
91592         * tests/test-isnan.c: New file.
91594         * modules/isnan-nolibm: New file.
91595         * lib/isnan.h: New file.
91596         * lib/isnan.c: New file.
91597         * m4/isnan.m4: New file.
91599 2007-02-24  Bruno Haible  <bruno@clisp.org>
91601         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91602         assume that an exponent fits in 20 bits.
91604 2007-02-24  Jim Meyering  <jim@meyering.net>
91606         * m4/regex.m4: Update the description of the configure-time option,
91607         --without-included-regex, to state accurately what the defaults are,
91608         and perhaps to give people an idea why using this option is risky.
91610 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91613         loops on small arguments.  This attempts to avoid the problem
91614         Bruno Haible reported for AIX 4.3.2 in
91615         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91617 2007-02-23  Bruno Haible  <bruno@clisp.org>
91619         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91620         Needed for help2man.
91622 2007-02-23  Karl Berry  <karl@gnu.org>
91624         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91625         exists, foo.h should be cvs-ignored, not committed.
91627 2007-02-23  Eric Blake  <ebb9@byu.net>
91629         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91630         * lib/stat-time.h (includes): Likewise.
91631         * lib/utimecmp.c (includes): Likewise.
91632         * lib/utimens.h (includes): Likewise.
91633         * lib/getdate.y (includes): Also include "timespec.h" for use
91634         internal to the module.
91635         * modules/utimens (Depends-on): Revert yesterday's patch.
91636         * modules/nanosleep (Depends-on): Add missing dependency.
91638 2007-02-22  Bruno Haible  <bruno@clisp.org>
91640         * lib/glob.c: Don't include getlogin_r.h.
91642 2007-02-22  Jim Meyering  <jim@meyering.net>
91644         * modules/utimens (Depends-on): Add timespec, required for
91645         utimens.h's inclusion of timespec.h.
91647 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91649         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91650         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91651         Schwab in
91652         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91653         I'll try to think of a better way to fix the Solaris problem.
91655         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91656         like glibc; on Solaris 10, it fails with errno == EINVAL.
91657         POSIX says the behavior is unspecified if the first argument is NULL,
91658         so play it safe and never pass NULL to the system getcwd.
91660 2007-02-21  Jim Meyering  <jim@meyering.net>
91662         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91663         of gettimeofday.  It would conflict with the one now always
91664         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91665         an IRIX 6.5 build failure.
91667 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91669         Minor fixups to port to Solaris 10 with Sun C 5.8.
91670         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91671         * modules/getcwd (Depends-on): Add dirfd.
91672         * lib/putenv.c (putenv): #undef it.
91673         (rpl_putenv): New decl.
91674         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91676 2007-02-20  Bruno Haible  <bruno@clisp.org>
91678         * modules/stdio-tests: New file.
91679         * tests/test-stdio.c: New file.
91681         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91682         (Depends-on): Add stdio.
91683         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91684         (Include): Use <stdio.h> instead of vsnprintf.h.
91685         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91686         HAVE_DECL_VSNPRINTF.
91687         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91689         * modules/snprintf (Files): Remove lib/snprintf.h.
91690         (Depends-on): Add stdio.
91691         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91692         (Include): Use <stdio.h> instead of snprintf.h.
91693         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91694         HAVE_DECL_SNPRINTF.
91695         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91696         * lib/getaddrinfo.c: Likewise.
91698         * modules/stdio: New file.
91699         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91700         * lib/snprintf.h: Remove file.
91701         * lib/vsnprintf.h: Remove file.
91702         * lib/.cppi-disable: Remove snprintf.h.
91703         * m4/stdio_h.m4: New file.
91704         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91706 2007-02-20  Jim Meyering  <jim@meyering.net>
91708         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91709         used by e.g., mingw.  From Bruno Haible.
91711 2007-02-19  Bruno Haible  <bruno@clisp.org>
91713         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91714         warnings.
91715         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91717 2007-02-19  Bruno Haible  <bruno@clisp.org>
91719         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91720         from mingw users.
91722 2007-02-19  Bruno Haible  <bruno@clisp.org>
91724         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91725         warnings.
91726         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91728 2007-02-19  Jim Meyering  <jim@meyering.net>
91730         Don't use FD after a successful "fdopendir (fd)".
91731         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91732         Reset it by calling dirfd on the just-obtained DIR*.
91734         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91735         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91737 2007-02-18  Bruno Haible  <bruno@clisp.org>
91739         * lib/readlink.c: Include <unistd.h>.
91740         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91741         HAVE_READLINK.
91742         * modules/readlink (Depends-on): Add unistd.
91743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91744         (Include): Add <unistd.h>.
91746         * lib/getlogin_r.h: Remove file.
91747         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91748         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91749         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91750         HAVE_DECL_GETLOGIN_R.
91751         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91752         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91753         (Include): Use <unistd.h> instead of getlogin_r.h.
91755         * lib/getcwd.h: Remove file.
91756         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91757         * lib/xgetcwd.c: Likewise.
91758         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91759         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91760         * modules/getcwd (Files): Remove lib/getcwd.h.
91761         (Depends-on): Add unistd.
91762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91763         (Include): Use <unistd.h> instad of getcwd.h.
91765         * lib/ftruncate.c: Include <unistd.h> first.
91766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91767         Set HAVE_FTRUNCATE.
91768         * modules/ftruncate (Depends-on): Add unistd.
91769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91771         * lib/fchdir.c: Include <unistd.h> first.
91772         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91774         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91775         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91776         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91778         * lib/dup2.c: Include <unistd.h> first.
91779         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91780         HAVE_DUP2.
91781         * modules/dup2 (Depends-on): Add unistd.
91782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91784         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91785         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91786         REPLACE_CHOWN. Don't define chown as a macro here.
91787         * modules/chown (Depends-on): Add unistd.
91788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91790         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91791         Add definition for GL_LINK_WARNING.
91792         (chown, dup2): New declarations.
91793         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91794         link warning.
91795         (ftruncate): New declaration.
91796         (getcwd): New declaration, taken from old getcwd.h.
91797         (getlogin_r): New declaration, taken from old getlogin_r.h.
91798         (readlink): New declaration.
91799         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91800         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91801         (gl_PREREQ_UNISTD): Remove macro.
91802         (gl_UNISTD_MODULE_INDICATOR): New macro.
91803         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91804         many new variables. Don't set UNISTD_H.
91805         * modules/unistd (Description): Change.
91806         (Depends-on): Add link-warning.
91807         (configure.ac): Update.
91808         (Makefile.am): Create unistd.h always. Substitute many new variables
91809         into it.
91811 2007-02-18  Bruno Haible  <bruno@clisp.org>
91813         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91814         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91815         HAVE_GETSUBOPT.
91816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91817         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91818         * lib/getsubopt.h: Remove file.
91819         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91820         (Depends-on): Add stdlib.
91821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91822         (Includes): Use <stdlib.h> instead of getsubopt.h.
91823         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91824         Set HAVE_GETSUBOPT.
91825         * lib/getsubopt.c: Don't include getsubopt.h.
91827 2007-02-18  Bruno Haible  <bruno@clisp.org>
91829         * modules/fchdir (Depends-on): Add dup2.
91831 2007-02-18  Bruno Haible  <bruno@clisp.org>
91833         * lib/stdlib_.h: Handle glibc's special invocation convention
91834         specially.
91836 2007-02-18  Bruno Haible  <bruno@clisp.org>
91838         * modules/stdlib-tests: New file.
91839         * tests/test-stdlib.c: New file.
91841         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91842         (Depends-on): Add stdlib.
91843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91844         (Includes): Use <stdlib.h> instead of mkstemp.h.
91845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91846         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91847         * lib/mkstemp.c: Don't include mkstemp.h.
91848         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91849         * lib/stdlib--.h: Don't include mkstemp.h.
91851         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91852         (Depends-on): Add stdlib.
91853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91854         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91855         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91856         HAVE_MKDTEMP.
91857         * lib/mkdtemp.c: Don't include mkdtemp.h.
91858         * lib/clean-temp.c: Don't include mkdtemp.h.
91860         * modules/exit (Files): Remove lib/exit.h.
91861         (Depends-on): Add stdlib.
91862         (Makefile.am): Remove lib_SOURCES.
91863         (Include): Use <stdlib.h> instead of exit.h.
91864         * lib/argmatch.c: Don't include exit.h.
91865         * lib/execute.c: Likewise.
91866         * lib/pagealign_alloc.c: Likewise.
91867         * lib/pipe.c: Likewise.
91868         * lib/wait-process.c: Likewise.
91869         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91870         * lib/exitfail.c: Likewise.
91871         * lib/savewd.c: Likewise.
91872         * lib/xsetenv.c: Likewise.
91874         * modules/stdlib: New file.
91875         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91876         and extra comments about mkstemp().
91877         * lib/exit.h: Remove file.
91878         * lib/mkdtemp.h: Remove file.
91879         * lib/mkstemp.h: Remove file.
91880         * m4/stdlib_h.m4: New file.
91881         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91883 2007-02-18  Bruno Haible  <bruno@clisp.org>
91885         * modules/math-tests: New file.
91886         * tests/test-math.c: New file.
91888         * modules/math: New file.
91889         * modules/mathl (Files): Remove lib/mathl.h.
91890         (Depends-on): Add math.
91891         (Makefile.am): Don't mention mathl.h.
91892         (Include): Use <math.h> instead of mathl.h.
91893         * lib/math_.h: New file.
91894         * lib/mathl.h: Remove file.
91895         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
91896         mathl.h.
91897         * lib/asinl.c: Likewise.
91898         * lib/atanl.c: Likewise.
91899         * lib/ceill.c: Likewise.
91900         * lib/cosl.c: Likewise.
91901         * lib/expl.c: Likewise.
91902         * lib/floorl.c: Likewise.
91903         * lib/frexpl.c: Likewise.
91904         * lib/ldexpl.c: Likewise.
91905         * lib/logl.c: Likewise.
91906         * lib/sincosl.c: Likewise.
91907         * lib/sinl.c: Likewise.
91908         * lib/sqrtl.c: Likewise.
91909         * lib/tanl.c: Likewise.
91910         * lib/trigl.c: Likewise.
91911         * m4/math_h.m4: New file.
91912         * MODULES.html.sh (Mathematics): Add math.
91914 2007-02-17  Bruno Haible  <bruno@clisp.org>
91916         * modules/wctype-tests: New file.
91917         * tests/test-wctype.c: New file.
91919         * modules/wchar-tests: New file.
91920         * tests/test-wchar.c: New file.
91922         * modules/unistd-tests: New file.
91923         * tests/test-unistd.c: New file.
91925         * modules/time-tests: New file.
91926         * tests/test-time.c: New file.
91928         * modules/sysexits-tests: New file.
91929         * tests/test-sysexits.c: New file.
91931         * modules/sys_time-tests: New file.
91932         * tests/test-sys_time.c: New file.
91934         * modules/sys_stat-tests: New file.
91935         * tests/test-sys_stat.c: New file.
91937         * modules/sys_socket-tests: New file.
91938         * tests/test-sys_socket.c: New file.
91940         * modules/sys_select-tests: New file.
91941         * tests/test-sys_select.c: New file.
91943         * modules/string-tests: New file.
91944         * tests/test-string.c: New file.
91946         * modules/stdbool-tests: New file.
91947         * tests/test-stdbool.c: New file.
91949         * modules/netinet_in-tests: New file.
91950         * tests/test-netinet_in.c: New file.
91952         * modules/inttypes-tests: New file.
91953         * tests/test-inttypes.c: New file.
91955         * modules/fcntl-tests: New file.
91956         * tests/test-fcntl.c: New file.
91958         * modules/byteswap-tests: New file.
91959         * tests/test-byteswap.c: New file.
91961         * modules/arpa_inet-tests: New file.
91962         * tests/test-arpa_inet.c: New file.
91964 2007-02-17  Bruno Haible  <bruno@clisp.org>
91966         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
91967         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
91968         if the corresponding module is not enabled. Emit link warnings if
91969         the function is used nevertheless.
91970         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
91971         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
91972         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91973         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
91974         * modules/inttypes (Depends-on): Add link-warning.
91975         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91976         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
91977         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
91978         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
91979         * modules/imaxdiv (configure.ac): Likewise.
91980         * modules/strtoimax (configure.ac): Likewise.
91981         * modules/strtoumax (configure.ac): Likewise.
91983 2007-02-17  Bruno Haible  <bruno@clisp.org>
91985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
91986         gl_STRING_MODULE_INDICATOR_DEFAULTS.
91987         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
91988         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
91990 2007-02-17  Bruno Haible  <bruno@clisp.org>
91992         * modules/link-warning: New file.
91993         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
91994         * lib/string_.h (GL_LINK_WARNING): Remove definition.
91995         * modules/string (Depends-on): Add link-warning.
91996         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91997         string.h.
91998         * MODULES.html.sh (Support for building libraries and executables): Add
91999         link-warning.
92001 2007-02-17  Bruno Haible  <bruno@clisp.org>
92003         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92004         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92005         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92006         long lines.
92008 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92009             Bruno Haible  <bruno@clisp.org>
92011         * modules/tmpfile: New file.
92012         * lib/tmpfile.c: New file.
92013         * m4/tmpfile.m4: New file.
92014         * MODULES.html.sh (func_all_modules): New section "Input/output".
92016 2007-02-15  Bruno Haible  <bruno@clisp.org>
92018         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92019         (supports_delete_on_close): New function.
92020         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92022 2007-02-14  Bruno Haible  <bruno@clisp.org>
92024         * modules/mbspcasecmp-tests: New file.
92025         * tests/test-mbspcasecmp.sh: New file.
92026         * tests/test-mbspcasecmp.c: New file.
92028         New module mbspcasecmp.
92029         * modules/mbspcasecmp: New file.
92030         * lib/mbspcasecmp.c: New file.
92031         * lib/string_.h (strncasecmp): Change warning message.
92032         (mbspcasecmp): New declaration.
92033         * m4/mbspcasecmp.m4: New file.
92034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92035         GNULIB_MBSPCASECMP.
92036         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92037         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92039 2007-02-14  Bruno Haible  <bruno@clisp.org>
92041         * modules/mbsncasecmp-tests: New file.
92042         * tests/test-mbsncasecmp.sh: New file.
92043         * tests/test-mbsncasecmp.c: New file.
92045         New module mbsncasecmp.
92046         * modules/mbsncasecmp: New file.
92047         * lib/mbsncasecmp.c: New file.
92048         * lib/string_.h (mbsncasecmp): New declaration.
92049         * m4/mbsncasecmp.m4: New file.
92050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92051         GNULIB_MBSNCASECMP.
92052         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92053         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92055 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92057         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92058         Verify that it doesn't overlap with our flags.
92059         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92060         do not have the desired effect in multibyte locales; instead, use
92061         mbscasecmp.
92062         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92063         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92064         we don't require GNU fnmatch ourselves (if our users require it, they
92065         should do so explicitly).
92067         Fix regex code so it doesn't rely on strcasecmp.
92068         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92069         Otherwise, include gnulib's langinfo.h.
92070         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92071         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92072         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92073         * modules/regex (FILES): Remove m4/codeset.m4.
92074         (Depends-on): Add localcharset.  Remove strcase.
92076 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92078         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92079         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92081 2007-02-13  Bruno Haible  <bruno@clisp.org>
92083         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92086 2007-02-12  Bruno Haible  <bruno@clisp.org>
92088         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92089         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92090         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92091         time warning rather than a link error.
92093 2007-02-12  Bruno Haible  <bruno@clisp.org>
92095         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92096         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92099 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92101         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92102         args, not 2.
92104 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92106         New module 'time', so that apps can include <time.h> as per
92107         POSIX and GNU instead of separate include files like time_r.h
92108         and timegm.h.  This implementation tries out a simpler approach
92109         for replacing decls in standard include files (as compared to
92110         the string module), somewhat as an experiment.
92112         * config/srclist.txt: Comment out mktime.c for now.
92113         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92114         since it doesn't apply any more.  Use generic wording instead.
92115         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92116         'time'.
92117         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92118         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92119         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92120         Don't include <sys/types.h>; no longer needed since we assume C89.
92121         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92122         * lib/strftime.c: Likewise.
92123         * lib/time_r.c: Likewise.
92124         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92125         * lib/nanosleep.c: Include <time.h> first, to check interface.
92126         * lib/strptime.c: Likewise.
92127         * lib/time_r.c: Likewise.
92128         * lib/timegm.c: Likewise.
92129         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92130         needed.
92131         * lib/timegm.c: Don't include timegm.h; no longer needed.
92132         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92133         time.h now handles any problems in that area.
92134         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92135         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92136         that time.h defines struct timespec.
92137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92138         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92139         handles that.
92140         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92141         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92142         needed.  Set REPLACE_LOCALTIME.
92143         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92144         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92145         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92146         nanosleep; time_h.m4 now does that.  Don't require
92147         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92148         module handles this now.
92149         * modules/getdate (Depends-on): Remove timespec.  Add time.
92150         * modules/nanosleep (Depends-on): Likewise.
92151         * modules/stat-time (Depends-on): Likewise.
92152         * modules/nanosleep (Include): Include time.h, not timespec.h.
92153         * modules/strptime (Files): Remove lib/strptime.h.
92154         (Depends-on): Add extensions, time.
92155         (Include): Include time.h, not strptime.h.
92156         * modules/time_r (Files): Remove lib/time_r.h.
92157         (Depends-on): Add time.
92158         (Include): Include time.h, not time_r.h.
92159         * modules/timegm: Likewise.
92160         * modules/timespec (Description): Now does timespec-related decls
92161         of our own, instead of struct timespec itself.
92162         (Depends-on): Add time; remove extensions.
92163         (Maintainer): Add self.
92164         * modules/utimecmp (Depends-on): Add time; remove timespec.
92165         * modules/utimens (Depends-on): Likewise.
92166         * modules/xnanosleep (Depends-on): Likewise.
92168 2007-02-11  Bruno Haible  <bruno@clisp.org>
92170         * lib/c-strstr.c: Include allocsa.h.
92171         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92172         * lib/c-strcasestr.c: Include allocsa.h.
92173         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92174         * lib/strcasestr.c: Include allocsa.h.
92175         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92176         * lib/mbsstr.c: Include allocsa.h.
92177         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92178         allocsa/freesa instead of malloc/free.
92179         * lib/mbscasestr.c: Include allocsa.h.
92180         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92181         allocsa/freesa instead of malloc/free.
92182         * modules/c-strstr (Depends-on): Add allocsa.
92183         * modules/c-strcasestr (Depends-on): Likewise.
92184         * modules/strcasestr (Depends-on): Likewise.
92185         * modules/mbsstr (Depends-on): Likewise.
92186         * modules/mbscasestr (Depends-on): Likewise.
92188 2007-02-11  Bruno Haible  <bruno@clisp.org>
92190         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92192         * modules/mbsspn-tests: New file.
92193         * tests/test-mbsspn.sh: New file.
92194         * tests/test-mbsspn.c: New file.
92196 2007-02-11  Bruno Haible  <bruno@clisp.org>
92198         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92200         * modules/mbspbrk-tests: New file.
92201         * tests/test-mbspbrk.sh: New file.
92202         * tests/test-mbspbrk.c: New file.
92204 2007-02-11  Bruno Haible  <bruno@clisp.org>
92206         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92207         unneeded cast.
92209         * modules/mbscspn-tests: New file.
92210         * tests/test-mbscspn.sh: New file.
92211         * tests/test-mbscspn.c: New file.
92213 2007-02-11  Bruno Haible  <bruno@clisp.org>
92215         * modules/mbscasecmp-tests: New file.
92216         * tests/test-mbscasecmp.sh: New file.
92217         * tests/test-mbscasecmp.c: New file.
92219 2007-02-11  Bruno Haible  <bruno@clisp.org>
92221         Ensure O(n) worst-case complexity of mbscasestr.
92222         * lib/mbscasestr.c: Include stdbool.h.
92223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92224         functions.
92225         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92226         the bookkeeping indicates that it's worth it.
92227         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92229         * modules/mbscasestr-tests: New file.
92230         * tests/test-mbscasestr1.c: New file.
92231         * tests/test-mbscasestr2.sh: New file.
92232         * tests/test-mbscasestr2.c: New file.
92233         * tests/test-mbscasestr3.sh: New file.
92234         * tests/test-mbscasestr3.c: New file.
92235         * tests/test-mbscasestr4.sh: New file.
92236         * tests/test-mbscasestr4.c: New file.
92237         * m4/locale-tr.m4: New file.
92239 2007-02-11  Bruno Haible  <bruno@clisp.org>
92241         Ensure O(n) worst-case complexity of mbsstr.
92242         * lib/mbsstr.c: Include stdbool.h.
92243         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92244         functions.
92245         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92246         bookkeeping indicates that it's worth it.
92247         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92249         * modules/mbsstr-tests: New file.
92250         * tests/test-mbsstr1.c: New file.
92251         * tests/test-mbsstr2.sh: New file.
92252         * tests/test-mbsstr2.c: New file.
92253         * tests/test-mbsstr3.sh: New file.
92254         * tests/test-mbsstr3.c: New file.
92255         * m4/locale-fr.m4: New file.
92257 2007-02-11  Bruno Haible  <bruno@clisp.org>
92259         * lib/mbsrchr.c (mbsrchr): Fix bug.
92261         * modules/mbsrchr-tests: New file.
92262         * tests/test-mbsrchr.sh: New file.
92263         * tests/test-mbsrchr.c: New file.
92265 2007-02-11  Bruno Haible  <bruno@clisp.org>
92267         * lib/mbschr.c (mbschr): Fix bug.
92269         * modules/mbschr-tests: New file.
92270         * tests/test-mbschr.sh: New file.
92271         * tests/test-mbschr.c: New file.
92272         * m4/locale-zh.m4: New file.
92274 2007-02-11  Bruno Haible  <bruno@clisp.org>
92276         Support for copying multibyte string iterators.
92277         * lib/mbiter.h: Include <string.h>.
92278         (mbiter_multi_copy): New function.
92279         (mbi_copy): New macro.
92280         * lib/mbuiter.h: Include <string.h>.
92281         (mbuiter_multi_copy): New function.
92282         (mbui_copy): New macro.
92284 2007-02-11  Bruno Haible  <bruno@clisp.org>
92286         New module mbslen.
92287         * modules/mbslen: New file.
92288         * lib/mbslen.c: New file.
92289         * lib/string_.h (mbslen): New declaration.
92290         * m4/mbslen.m4: New file.
92291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92292         GNULIB_MBSLEN.
92293         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92294         * MODULES.html.sh (Internationalization functions): Add mbslen.
92296 2007-02-11  Bruno Haible  <bruno@clisp.org>
92298         Ensure O(n) worst-case complexity of strcasestr substitute.
92299         * lib/strcasestr.c: Include stdbool.h.
92300         (knuth_morris_pratt): New function.
92301         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92302         bookkeeping indicates that it's worth it.
92303         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92305         * modules/strcasestr-tests: New file.
92306         * tests/test-strcasestr.c: New file.
92308 2007-02-11  Bruno Haible  <bruno@clisp.org>
92310         Ensure O(n) worst-case complexity of c_strcasestr.
92311         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92312         (knuth_morris_pratt): New function.
92313         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92314         the bookkeeping indicates that it's worth it.
92315         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92317         * modules/c-strcasestr-tests: New file.
92318         * tests/test-c-strcasestr.c: New file.
92320 2007-02-11  Bruno Haible  <bruno@clisp.org>
92322         Ensure O(n) worst-case complexity of c_strstr.
92323         * lib/c-strstr.c: Include stdbool.h, string.h.
92324         (knuth_morris_pratt): New function.
92325         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92326         bookkeeping indicates that it's worth it.
92327         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92329         * lib/c-strstr.c: Complete rewrite for maintainability.
92331         * modules/c-strstr-tests: New file.
92332         * tests/test-c-strstr.c: New file.
92334 2007-02-11  Bruno Haible  <bruno@clisp.org>
92336         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92337         5.2.1 and earlier, whereby \055 was treated just like the range
92338         delimiter '-'.
92339         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92341 2007-02-08  Bruno Haible  <bruno@clisp.org>
92343         * modules/regex (Depends-on): Add stdbool.
92344         Reported by Dalibor Topic <robilad@kaffe.org>.
92346 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92348         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92349         Prefer returning from main to exiting from it.
92350         Remove unnecessary parens after sizeof.
92352 2007-02-05  Bruno Haible  <bruno@clisp.org>
92354         New module mbssep.
92355         * modules/mbssep: New file.
92356         * lib/mbssep.c: New file.
92357         * lib/string_.h (strsep): Add a conditional link warning.
92358         (mbssep): New declaration.
92359         * m4/mbssep.m4: New file.
92360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92361         GNULIB_MBSSEP.
92362         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92363         * MODULES.html.sh (Internationalization functions): Add mbssep.
92365 2007-02-05  Bruno Haible  <bruno@clisp.org>
92367         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92368         Optimize search in case of 1 delimiter.
92370 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92372         * lib/acl.h: Include sys/types.h before sys/acl.h.
92374 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92376         Merge upstream fix for glibc bugzilla #3957:
92378         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92380         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92381         bit for RE_HAT_LISTS_NOT_NEWLINE.
92382         (build_charclass_op): Remove bogus comment.
92384 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92386         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92388 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92390         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92391         * lib/memmem.c [!defined _LIBC]: Include config.h.
92393 2007-02-04  Bruno Haible  <bruno@clisp.org>
92395         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92396         warning message.
92398 2007-02-04  Bruno Haible  <bruno@clisp.org>
92400         New module mbstok_r.
92401         * modules/mbstok_r: New file.
92402         * lib/mbstok_r.c: New file.
92403         * lib/string_.h (strtok_r): Change argument names to match the
92404         comments. Add a conditional link warning.
92405         (mbstok_r): New declaration.
92406         * m4/mbstok_r.m4: New file.
92407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92408         GNULIB_MBSTOK_R.
92409         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92410         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92412 2007-02-04  Bruno Haible  <bruno@clisp.org>
92414         New module mbsspn.
92415         * modules/mbsspn: New file.
92416         * lib/mbsspn.c: New file.
92417         * lib/string_.h (strspn): Add a conditional link warning.
92418         (mbsspn): New declaration.
92419         * m4/mbsspn.m4: New file.
92420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92421         GNULIB_MBSSPN.
92422         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92423         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92425 2007-02-04  Bruno Haible  <bruno@clisp.org>
92427         New module mbspbrk.
92428         * modules/mbspbrk: New file.
92429         * lib/mbspbrk.c: New file.
92430         * lib/string_.h (strpbrk): Add a conditional link warning.
92431         (mbspbrk): New declaration.
92432         * m4/mbspbrk.m4: New file.
92433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92434         GNULIB_MBSPBRK.
92435         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92436         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92438 2007-02-04  Bruno Haible  <bruno@clisp.org>
92440         New module mbscspn.
92441         * modules/mbscspn: New file.
92442         * lib/mbscspn.c: New file.
92443         * lib/string_.h (strcspn): Add a conditional link warning.
92444         (mbscspn): New declaration.
92445         * m4/mbscspn.m4: New file.
92446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92447         GNULIB_MBSCSPN.
92448         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92449         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92451 2007-02-04  Bruno Haible  <bruno@clisp.org>
92453         New module mbscasestr, reduced goal of strcasestr.
92454         * modules/mbscasestr: New file.
92455         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92456         (mbscasestr): Renamed from strcasestr.
92457         * lib/strcasestr.c: Don't include mbuiter.h.
92458         (strcasestr): Remove support for multibyte locales.
92459         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92460         Change the conditional link warning.
92461         (mbscasestr): New declaration.
92462         * m4/mbscasestr.m4: New file.
92463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92464         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92465         REPLACE_STRCASESTR.
92466         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92468         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92469         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92470         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92471         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92472         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92473         (Depends-on): Remove mbuiter.
92474         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92476 2007-02-04  Bruno Haible  <bruno@clisp.org>
92478         Simplify handling of strncasecmp.
92479         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92480         the conditional link warning.
92481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92482         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92483         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92484         * modules/strcase (configure.ac): Don't invoke
92485         gl_STRING_MODULE_INDICATOR.
92486         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92488 2007-02-04  Bruno Haible  <bruno@clisp.org>
92490         New module mbscasecmp, reduced goal of strcasecmp.
92491         * modules/mbscasecmp: New file.
92492         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92493         (mbscasecmp): Renamed from strcasecmp.
92494         * lib/strcasecmp.c: Don't include mbuiter.h.
92495         (strcasecmp): Remove support for multibyte locales.
92496         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92497         Change the conditional link warning.
92498         (mbscasecmp): New declaration.
92499         * m4/mbscasecmp.m4: New file.
92500         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92501         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92502         REPLACE_STRCASECMP.
92503         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92504         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92505         GNULIB_MBSCASECMP.
92506         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92507         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92508         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92509         (Depends-on): Remove mbuiter.
92510         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92512 2007-02-04  Bruno Haible  <bruno@clisp.org>
92514         New module mbsstr. Remove module strstr.
92515         * modules/mbsstr: New file.
92516         * modules/strstr: Remove file.
92517         * lib/mbsstr.c: Renamed from lib/strstr.c.
92518         (mbsstr): Renamed from strstr.
92519         * lib/string_.h (strstr): Remove declaration. Change the conditional
92520         link warning.
92521         (mbsstr): New declaration.
92522         * m4/mbsstr.m4: New file.
92523         * m4/strstr.m4: Remove file.
92524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92525         REPLACE_STRSTR.
92526         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92527         Don't initialize GNULIB_STRSTR.
92528         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92529         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92530         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92531         (Support for systems lacking ANSI C 89): Remove strstr.
92533 2007-02-04  Bruno Haible  <bruno@clisp.org>
92535         New module mbsrchr.
92536         * modules/mbsrchr: New file.
92537         * lib/mbsrchr.c: New file.
92538         * lib/string_.h (strrchr): Add a conditional link warning.
92539         (mbsrchr): New declaration.
92540         * m4/mbsrchr.m4: New file.
92541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92542         GNULIB_MBSRCHR.
92543         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92544         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92546 2007-02-04  Bruno Haible  <bruno@clisp.org>
92548         New module mbschr.
92549         * modules/mbschr: New file.
92550         * lib/mbschr.c: New file.
92551         * lib/string_.h (strchr): Add a conditional link warning.
92552         (mbschr): New declaration.
92553         * m4/mbschr.m4: New file.
92554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92555         GNULIB_MBSCHR.
92556         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92557         * MODULES.html.sh (Internationalization functions): Add mbschr.
92559 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92561         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92563         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92565 2007-02-04  Bruno Haible  <bruno@clisp.org>
92567         New module description section 'configure.ac-early'.
92568         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92569         (func_get_autoconf_early_snippet): New function.
92570         (func_import, func_create_testdir): Use it. Remove special cases for
92571         modules 'extensions' and 'lock'.
92572         * modules/extensions (configure.ac-early): Require
92573         gl_USE_SYSTEM_EXTENSIONS.
92574         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92576 2007-02-04  Bruno Haible  <bruno@clisp.org>
92578         Make use of gcj-4.3's -fsource and -ftarget option.
92579         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92580         and if so try the options -fsource and -ftarget.
92581         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92582         source_version, ftarget_option, target_version arguments.
92583         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92584         (is_envjavac_oldgcj_14_14_usable): Renamed from
92585         is_envjavac_gcj_14_14_usable.
92586         (is_envjavac_oldgcj_14_13_usable): Renamed from
92587         is_envjavac_gcj_14_13_usable.
92588         (is_gcj_present): Update.
92589         (is_gcj_43, is_gcj43_usable): New functions.
92590         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92591         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92592         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92593         try the options -fsource and -ftarget.
92595 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92597         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92598         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92599         larger value.
92601 2007-02-03  Jim Meyering  <jim@meyering.net>
92603         Give tools a better chance to allocate space for very large buffers.
92604         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92606         Make pwd and readlink work also when run with an unreadable parent dir
92607         on systems with openat support.
92608         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92609         provided getcwd function, even when we have openat support.
92610         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92612 2007-02-02  Bruno Haible  <bruno@clisp.org>
92614         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92615         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92616         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92617         portability problems if one of these functions is only used on specific
92618         platforms.
92619         Reported by Paul Eggert.
92621 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92623         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92624         is causing more trouble than it's curing.
92625         * lib/regex_internal.h (__mempcpy): Remove.
92626         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92627         (and make the code a tad smaller to boot).
92628         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92630 2007-02-02  Jim Meyering  <jim@meyering.net>
92632         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92633         section, not in the Makefile.am: one.
92635 2007-02-02  Eric Blake  <ebb9@byu.net>
92637         * lib/strchrnul.c: Always include config.h first.
92639         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92640         gnulib strstr is not necessary here.
92642 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92644         * m4/socklen.m4: Fix typo.
92646 2007-02-02  Eric Blake  <ebb9@byu.net>
92648         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92649         * modules/netinet_in (Makefile.am): Likewise.
92651 2007-02-01  Bruno Haible  <bruno@clisp.org>
92653         * lib/string_.h (GL_LINK_WARNING): New macro.
92654         (strcasecmp, strstr, strcasestr): If provided by the system,
92655         conditionally define as a macro that leads to a warning instead of to
92656         an error.
92657         (strncasecmp): Conditionally define as a macro that leads to a warning.
92659 2007-02-01  Karl Berry  <karl@gnu.org>
92661         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92663 2007-02-01  Bruno Haible  <bruno@clisp.org>
92665         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92666         renamings.
92668 2007-02-01  Eric Blake  <ebb9@byu.net>
92670         * modules/regex (Depends-on): Revert dependence on mempcpy.
92671         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92672         module's definition of mempcpy.
92673         Reported by Paul Eggert.
92675 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92677         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92678         the symbol XYZ before redefining it.  This fixes a problem with
92679         programs that don't use XYZ, when compiled on systems that define
92680         XYZ to something else.
92682 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92684         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92685         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92686         writeable to group or other and (2) is intended to have a special
92687         mode bit that is set or cleared.  In such a case, the directory
92688         should be neither group- nor other-writeable until the special
92689         mode bits are right.
92691 2007-01-31  Eric Blake  <ebb9@byu.net>
92693         * modules/mountlist (Depends-on): Add strstr.
92695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92696         bug.
92697         * modules/string (Makefile.am): Remove redundant replacement.
92698         * modules/regex (Depends-on): Add mempcpy.
92700 2007-01-31  Bruno Haible  <bruno@clisp.org>
92702         New module description field 'Link'.
92703         * gnulib-tool (func_usage): Document --extract-link-directive.
92704         (sed_extract_prog): Recognize 'Link' directive.
92705         (func_get_link_directive): New function.
92706         (func_import): Show summary of link directives.
92707         Handle --extract-link-directive option.
92708         * modules/acl (Link): New section.
92709         * modules/clock-time (Link): New section.
92710         * modules/euidaccess (Link): New section.
92711         * modules/gettext (Link): New section.
92712         * modules/iconv (Link): New section.
92713         * modules/lock (Link): New section.
92714         * modules/nanosleep (Link): New section.
92715         * modules/readline (Link): New section.
92717 2007-01-27  Bruno Haible  <bruno@clisp.org>
92719         Enforce the use of gnulib modules for unportable <string.h> functions.
92720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92722         (gl_HEADER_STRING_H_BODY): Require it.
92723         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92724         the symbol XYZ to one that gives a link error.
92725         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92726         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92727         * modules/mempcpy (configure.ac): Likewise.
92728         * modules/memrchr (configure.ac): Likewise.
92729         * modules/stpcpy (configure.ac): Likewise.
92730         * modules/stpncpy (configure.ac): Likewise.
92731         * modules/strcase (configure.ac): Likewise.
92732         * modules/strcasestr (configure.ac): Likewise.
92733         * modules/strchrnul (configure.ac): Likewise.
92734         * modules/strdup (configure.ac): Likewise.
92735         * modules/strndup (configure.ac): Likewise.
92736         * modules/strnlen (configure.ac): Likewise.
92737         * modules/strpbrk (configure.ac): Likewise.
92738         * modules/strsep (configure.ac): Likewise.
92739         * modules/strstr (configure.ac): Likewise.
92740         * modules/strtok_r (configure.ac): Likewise.
92742 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92744         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92746 2007-01-30  Jim Meyering  <jim@meyering.net>
92748         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92750 2007-01-29  Bruno Haible  <bruno@clisp.org>
92752         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92753         * lib/execute.c: Likewise.
92754         * lib/pipe.c: Likewise.
92755         * lib/printf-args.h: Likewise.
92756         * lib/printf-args.c: Likewise.
92757         * lib/printf-parse.c: Likewise.
92758         * lib/vasnprintf.c: Likewise.
92760 2007-01-29  Eric Blake  <ebb9@byu.net>
92762         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92763         declaration.
92765 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92767         * lib/strptime.h (strptime): Use 'restrict' for args where
92768         POSIX requires this.
92769         * lib/strptime.c (strptime): Likewise.
92770         Change license notice from LGPL to GPL, since gnulib-tool will
92771         change this as needed.
92772         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92773         defined.
92774         Include "strptime.h" first, to check interface.
92775         Do not #undef _LIBC and _NL_CURRENT.
92776         Do not include <stdlib.h>; no longer needed.
92777         Include "time_r.h" and declare ptime_locale_status
92778         only if _LIBC is not defined.
92779         (__P): Remove unused macro.
92780         (match_string): Bring back glibc version, but use it only if _LIBC
92781         is defined.
92782         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92783         Remove unnecessary assertion and abort() call.
92784         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92785         * m4/strptime.m4: Fix serial number comment.
92786         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92787         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92788         (Depends-on): Add time_r.
92790 2007-01-29  Bruno Haible  <bruno@clisp.org>
92792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92793         strptime.
92794         * modules/strptime (Depends-on): Add stdbool.
92795         * lib/strptime.h: Include <time.h> always. Add comments.
92797 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92799         * modules/strptime: New file.
92800         * lib/strptime.h: New file.
92801         * lib/strptime.c: New file.
92802         * m4/strptime.m4: New file.
92804 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92806         * MODULES.html.sh: New module mpsort.
92807         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92809         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92810         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92811         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92812         All uses changed.
92813         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92814         All uses changed.
92815         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92816         to _Restrict_.
92817         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92818         the parameter matches the prototype.
92820 2007-01-28  Jim Meyering  <jim@meyering.net>
92822         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92823         sys/time.h here, reverting that part of the previous patch:
92824         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92826 2007-01-28  Bruno Haible  <bruno@clisp.org>
92828         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92829         value of $(SYS_TIME_H).
92830         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92831         remove it conditionally, too. [added by Jim Meyering]
92832         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92834         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92835         GETTIMEOFDAY_REPLACEMENT to 1.
92837 2007-01-28  Bruno Haible  <bruno@clisp.org>
92839         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92840         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92842         Set UNISTD_H instead of UNISTD_H2.
92843         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92845 2007-01-28  Bruno Haible  <bruno@clisp.org>
92847         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92848         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92850 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92852         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92853         (func_create_testdir): Ensure C locale for `grep' and `tr'
92854         character ranges.
92855         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92856         ACLOCAL_AMFLAGS parsing state machine.
92858 2007-01-27  Bruno Haible  <bruno@clisp.org>
92860         * modules/unistr/base: Update.
92862 2007-01-27  Bruno Haible  <bruno@clisp.org>
92864         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92865         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92866         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92867         modules/unistr/u32-mbtouc.
92868         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92869         * lib/unistr.h: Update.
92870         * lib/linebreak.c: Update.
92871         * modules/unistr/u32-mbtouc: Renamed from
92872         modules/unistr/u32-mbtouc-safe.
92873         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92874         * lib/unistr.h: Update.
92875         * lib/unistr/u32-to-u8.c: Update.
92876         * lib/unistr/u32-to-u16.c: Update.
92878 2007-01-27  Bruno Haible  <bruno@clisp.org>
92880         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92881         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92882         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92883         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92884         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92885         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92886         modules/unistr/u16-mbtouc.
92887         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92888         * lib/unistr.h: Update.
92889         * lib/linebreak.c: Update.
92890         * modules/linebreak: Update.
92891         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92892         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92893         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
92894         * modules/unistr/u16-mbtouc: Renamed from
92895         modules/unistr/u16-mbtouc-safe.
92896         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
92897         * lib/unistr.h: Update.
92898         * lib/unistr/u16-to-u8.c: Update.
92899         * modules/unistr/u16-to-u8: Update.
92900         * lib/unistr/u16-to-u32.c: Update.
92901         * modules/unistr/u16-to-u32: Update.
92903 2007-01-27  Bruno Haible  <bruno@clisp.org>
92905         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
92906         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
92907         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
92908         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
92909         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
92910         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92911         modules/unistr/u8-mbtouc.
92912         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
92913         * lib/unistr.h: Update.
92914         * lib/striconveh.c: Update.
92915         * modules/striconveh: Update.
92916         * lib/linebreak.c: Update.
92917         * modules/linebreak: Update.
92918         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
92919         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
92920         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
92921         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
92922         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
92923         * lib/unistr.h: Update.
92924         * lib/striconveh.c: Update.
92925         * modules/striconveh: Update.
92926         * lib/unistr/u8-to-u16.c: Update.
92927         * modules/unistr/u8-to-u16: Update.
92928         * lib/unistr/u8-to-u32.c: Update.
92929         * modules/unistr/u8-to-u32: Update.
92931 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92933         Sync from Libtool.
92934         * lib/argz.c: Do not include strings.h nor memory.h, include
92935         string.h unconditionally.  Patch by Simon Josefsson.
92937 2007-01-27  Bruno Haible  <bruno@clisp.org>
92939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
92940         from gl_HEADER_STRING_H_BODY.
92941         (gl_HEADER_STRING_H_BODY): Require it.
92942         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
92943         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
92944         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
92945         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
92946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
92947         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
92948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92949         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
92950         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
92951         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92952         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
92953         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
92954         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
92955         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92958 2007-01-27  Bruno Haible  <bruno@clisp.org>
92960         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
92961         check_PROGRAMS into noinst_PROGRAMS.
92962         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
92963         check_PROGRAMS in this case.
92964         (func_import): Set for_test to false.
92965         (func_create_testdir): Set for_test to true.
92967 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92968             Bruno Haible  <bruno@clisp.org>
92970         * modules/strcasestr (Files): Remove lib/strcasestr.h.
92971         (Depends-on): Add string.
92972         (Includes): Use <string.h> instead of strcasestr.h.
92973         * modules/string (Makefile.am): Also substitute the value of
92974         REPLACE_STRCASESTR.
92975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
92976         assume strcasestr is declared in <string.h> not <strings.h>. Also
92977         set REPLACE_STRCASESTR.
92978         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
92979         REPLACE_STRCASESTR.
92980         * lib/strcasestr.h: Remove file.
92981         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
92982         * lib/string_.h (strcasestr): New declaration.
92984 2007-01-27  Bruno Haible  <bruno@clisp.org>
92986         * lib/string_.h: Use 'extern'.
92988 2007-01-27  Jim Meyering  <jim@meyering.net>
92990         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
92991         of set-but-not-used local, "q".
92993         * lib/mempcpy.c: Include <config.h> before <string.h>.
92994         This fixes a compilation error on HP-UX, due to the system's
92995         "restrict"-using mempcpy prototype.
92997 2007-01-26  Bruno Haible  <bruno@clisp.org>
92999         Small optimization.
93000         * lib/javacomp.c: Include c-strstr.h.
93001          (is_envjavac_gcj): Use c_strstr instead of strstr.
93002         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93004 2007-01-26  Bruno Haible  <bruno@clisp.org>
93006         * MODULES.html.sh (Unicode string functions): Add the new modules.
93008         * modules/uniconv/u32-strconv-to-locale: New file.
93009         * lib/uniconv/u32-strconv-to-locale.c: New file.
93011         * modules/uniconv/u16-strconv-to-locale: New file.
93012         * lib/uniconv/u16-strconv-to-locale.c: New file.
93014         * modules/uniconv/u8-strconv-to-locale: New file.
93015         * lib/uniconv/u8-strconv-to-locale.c: New file.
93017         * modules/uniconv/u32-strconv-from-locale: New file.
93018         * lib/uniconv/u32-strconv-from-locale.c: New file.
93020         * modules/uniconv/u16-strconv-from-locale: New file.
93021         * lib/uniconv/u16-strconv-from-locale.c: New file.
93023         * modules/uniconv/u8-strconv-from-locale: New file.
93024         * lib/uniconv/u8-strconv-from-locale.c: New file.
93026         * modules/uniconv/u32-strconv-to-enc: New file.
93027         * lib/uniconv/u32-strconv-to-enc.c: New file.
93028         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93029         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93031         * modules/uniconv/u16-strconv-to-enc: New file.
93032         * lib/uniconv/u16-strconv-to-enc.c: New file.
93033         * lib/uniconv/u-strconv-to-enc.h: New file.
93034         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93035         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93037         * modules/uniconv/u8-strconv-to-enc: New file.
93038         * lib/uniconv/u8-strconv-to-enc.c: New file.
93039         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93040         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93042         * modules/uniconv/u32-strconv-from-enc: New file.
93043         * lib/uniconv/u32-strconv-from-enc.c: New file.
93044         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93045         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93047         * modules/uniconv/u16-strconv-from-enc: New file.
93048         * lib/uniconv/u16-strconv-from-enc.c: New file.
93049         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93050         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93052         * modules/uniconv/u8-strconv-from-enc: New file.
93053         * lib/uniconv/u8-strconv-from-enc.c: New file.
93054         * lib/uniconv/u-strconv-from-enc.h: New file.
93055         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93056         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93058         * modules/uniconv/u32-conv-from-enc: New file.
93059         * lib/uniconv/u32-conv-from-enc.c: New file.
93060         * modules/uniconv/u32-conv-from-enc-tests: New file.
93061         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93063         * modules/uniconv/u16-conv-from-enc: New file.
93064         * lib/uniconv/u16-conv-from-enc.c: New file.
93065         * lib/uniconv/u-conv-from-enc.h: New file.
93066         * modules/uniconv/u16-conv-from-enc-tests: New file.
93067         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93069         * modules/uniconv/u8-conv-from-enc: New file.
93070         * lib/uniconv/u8-conv-from-enc.c: New file.
93071         * modules/uniconv/u8-conv-from-enc-tests: New file.
93072         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93074         * modules/uniconv/base: New file.
93075         * lib/uniconv.h: New file.
93077 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93079         * doc/gnulib-tool.texi (Initial import): Update to match current
93080         behavior with strdup module.
93081         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93082         * lib/memmem.h: Remove; all uses removed.  This is now done
93083         by <string.h>.
93084         * lib/mempcpy.h: Likewise.
93085         * lib/memrchr.h: Likewise.
93086         * lib/stpcpy.h: Likewise.
93087         * lib/stpncpy.h: Likewise.
93088         * lib/strcase.h: Likewise.
93089         * lib/strchrnul.h: Likewise.
93090         * lib/strdup.h: Likewise.
93091         * lib/strndup.h: Likewise.
93092         * lib/strnlen.h: Likewise.
93093         * lib/strpbrk.h: Likewise.
93094         * lib/strsep.h: Likewise.
93095         * lib/strstr.h: Likewise.
93096         * lib/strtok_r.h: Likewise.
93097         * lib/string_.h: New file.
93098         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93099         Rely on <string.h> instead.
93100         * lib/canon-host.c: Likewise.
93101         * lib/chdir-long.c: Likewise.
93102         * lib/concatpath.c: Likewise.
93103         * lib/exclude.c: Likewise.
93104         * lib/fchdir.c: Likewise.
93105         * lib/getaddrinfo.c: Likewise.
93106         * lib/getcwd.c: Likewise.
93107         * lib/getsubopt.c: Likewise.
93108         * lib/glob.c: Likewise.
93109         * lib/hard-locale.c: Likewise.
93110         * lib/iconvme.c: Likewise.
93111         * lib/javacomp.c: Likewise.
93112         * lib/mempcpy.c: Likewise.
93113         * lib/memrchr.c: Likewise.
93114         * lib/regex_internal.h: Likewise.
93115         * lib/stpncpy.c: Likewise.
93116         * lib/strcasecmp.c: Likewise.
93117         * lib/strchrnul.c: Likewise.
93118         * lib/strdup.c: Likewise.
93119         * lib/striconv.c: Likewise.
93120         * lib/striconveh.c: Likewise.
93121         * lib/striconveha.c: Likewise.
93122         * lib/strncasecmp.c: Likewise.
93123         * lib/strndup.c: Likewise.
93124         * lib/strnlen.c: Likewise.
93125         * lib/strsep.c: Likewise.
93126         * lib/strstr.c: Likewise.
93127         * lib/strtok_r.c: Likewise.
93128         * lib/userspec.c: Likewise.
93129         * lib/w32spawn.h: Likewise.
93130         * lib/xstrndup.c: Likewise.
93131         * lib/mountlist.c (strstr): Remove decl.
93132         * m4/string_h.m4: New file.
93133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93134         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93135         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93136         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93137         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93138         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93139         Set REPLACE_STRCASECMP if necessary.
93140         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93141         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93142         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93143         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93144         HAVE_DECL_STRDUP if necessary.
93145         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93146         since gl_FUNC_STRNDUP does that now.
93147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93148         Check for decl here...
93149         (gl_PREREQ_STRNLEN): ... not here.
93150         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93151         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93152         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93153         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93154         necessary.
93155         * modules/string: New file.
93156         * modules/memmem (Files): Remove special-purpose include file.
93157         (Depends-on): Add string.
93158         (Include): Include <string.h>, not the removed file.
93159         * modules/mempcpy: Likewise.
93160         * modules/memrchr: Likewise.
93161         * modules/stpcpy: Likewise.
93162         * modules/stpncpy: Likewise.
93163         * modules/strcase: Likewise.
93164         * modules/strchrnul: Likewise.
93165         * modules/strdup: Likewise.
93166         * modules/strndup: Likewise.
93167         * modules/strnlen: Likewise.
93168         * modules/strpbrk: Likewise.
93169         * modules/strsep: Likewise.
93170         * modules/strstr: Likewise.
93171         * modules/strtok_r: Likewise.
93172         * tests/test-dirname.c: Don't include "strdup.h", since
93173         <string.h> now suffices.
93174         * tests/test-memmem.c: Don't include "memmem.h", since
93175         <string.h> now suffices.
93177 2007-01-25  Bruno Haible  <bruno@clisp.org>
93179         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93180         *resultp is 0.
93182         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93183         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93184         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93185         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93187         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93188         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93189         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93190         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93191         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93192         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93194 2007-01-24  Bruno Haible  <bruno@clisp.org>
93196         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93197         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93198         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93199         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93200         gl_FUNC_FTS_CORE.
93201         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93202         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93203         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93204         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93205         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93206         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93207         gl_FUNC_FCHOWNAT.
93208         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93209         gl_FUNC_STRFTIME.
93210         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93211         Reported by Ralf Wildenhues.
93213 2007-01-24  Bruno Haible  <bruno@clisp.org>
93215         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93216         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93217         gl_GETADDRINFO.
93218         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93219         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93220         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93222 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93224         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93225         Don't use 'exit'; just return from 'main'.
93226         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93228         * lib/fnmatch_.h: Readjust white space and comments to match
93229         glibc, to avoid spurious diffs.
93231 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93233         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93234         2004-12-01 change by Jakub Jelinek, since this code won't compile
93235         if !LIBC.  Problem reported by Bob Proulx.
93237 2007-01-23  Bruno Haible  <bruno@clisp.org>
93239         * lib/striconveh.c: Include c-strcaseeq.h.
93240         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93241         * modules/striconveh (Depends-on): Add c-strcaseeq.
93243 2007-01-23  Bruno Haible  <bruno@clisp.org>
93245         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93247         * modules/c-strcaseeq: New file.
93248         * lib/c-strcaseeq.h: New file.
93250         * modules/streq: New file.
93251         * lib/streq.h: New file.
93253 2007-01-23  Bruno Haible  <bruno@clisp.org>
93255         * modules/striconveha-tests: New file.
93256         * tests/test-striconveha.c: New file.
93258         * lib/striconveha.h: Include <stdbool.h>.
93259         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93260         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93261         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93262         (mem_iconveha): New function.
93263         (str_iconveha_notranslit): Renamed from str_iconveha.
93264         (str_iconveha): New function.
93265         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93266         c-strcase.
93268 2007-01-23  Bruno Haible  <bruno@clisp.org>
93270         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93271         encodings without forgiving before trying any encoding with handler.
93272         (str_iconveha): Try all encodings without forgiving before trying any
93273         encoding with handler.
93275 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93277         Import the following changes from libc.
93279         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93281         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93283         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93285         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93286         normal_bracket label.
93288         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93290         [BZ #361]
93291         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93292         to normal_bracket after fetching the next character.
93294 2007-01-22  Bruno Haible  <bruno@clisp.org>
93296         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93297         argument.
93298         * lib/striconveh.c (iconv_carefully_1): New function.
93299         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93300         argument.
93301         (str_cd_iconveh): Update.
93302         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93303         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93304         * tests/test-striconveh.c (MAGIC): New macro.
93305         (new_offsets): New function.
93306         (main): Test call with and without offsets.
93308 2007-01-22  Bruno Haible  <bruno@clisp.org>
93310         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93311         * modules/sys_select (Makefile.am): Likewise.
93312         * modules/sys_socket (Makefile.am): Likewise.
93313         * modules/sys_time (Makefile.am): Likewise.
93315 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93317         * modules/gettimeofday (License): Change from GPL to LGPL, since
93318         gettimeofday is a library function.
93320 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93322         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93324 2007-01-21  Bruno Haible  <bruno@clisp.org>
93326         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93328 2007-01-21  Bruno Haible  <bruno@clisp.org>
93330         * modules/striconveha: New file.
93331         * lib/striconveha.h: New file.
93332         * lib/striconveha.c: New file.
93333         * MODULES.html.sh (Internationalization functions): Add striconveha.
93334         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93335         string.
93336         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93338 2007-01-21  Bruno Haible  <bruno@clisp.org>
93340         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93341         * lib/striconveh.c (str_iconveh): Likewise.
93343 2007-01-21  Bruno Haible  <bruno@clisp.org>
93345         * lib/striconveh.h (mem_iconveh): New declaration.
93346         * lib/striconveh.c (mem_iconveh): New function.
93347         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93349 2007-01-21  Bruno Haible  <bruno@clisp.org>
93351         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93353         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93354         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93355         original result buffer.
93356         (str_cd_iconveh): Update.
93357         * tests/test-striconveh.c (main): Update.
93359         * lib/striconv.h (mem_cd_iconv): Change specification.
93360         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93361         result buffer.
93362         (str_cd_iconv): Update.
93363         * tests/test-striconv.c (main): Update.
93365 2007-01-21  Bruno Haible  <bruno@clisp.org>
93367         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93369 2007-01-20  Jim Meyering  <jim@meyering.net>
93371         * lib/userspec.c (parse_with_separator): If a user or group string
93372         starts with "+", skip the corresponding name-to-ID look-up, since
93373         such a look-up must fail: user and group names may not include "+".
93375 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93377         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93378         since we now assume the sys_time module.
93379         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93380         check for sys/time.h; no longer needed.
93381         * modules/poll (Depends-on): Depend on sys_time.
93383 2007-01-18  Bruno Haible  <bruno@clisp.org>
93385         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93386         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93388         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93389         gettimeofday.
93391         * tests/test-gettimeofday.c: Include <time.h>.
93392         (dummy): Remove variable.
93394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93395         gl_HEADER_SYS_TIME_H.
93396         (gl_HEADER_SYS_TIME_H): New macro.
93398         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93399         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93401         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93402         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93404         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93405         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93406         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93407         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93408         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93410         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93411         last change; it caused a compilation error when cross-compiling to
93412         Cygwin.
93414 2007-01-18  Jim Meyering  <jim@meyering.net>
93416         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93417         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93418         than the race-prone "test -d sys || mkdir sys".
93419         (configure.ac): Use AC_PROG_MKDIR_P.
93420         * modules/sys_select: Likewise.
93421         * modules/sys_socket: Likewise.
93422         * modules/sys_time: Likewise.
93424 2007-01-18  Eric Blake  <ebb9@byu.net>
93426         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93427         replace gettimeofday.
93428         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93429         name, to avoid infinite recursion.
93431 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93433         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93434         module sys_time.
93435         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93436         assume timespec.h defines struct timeval.
93437         * lib/settime.c: Likewise.
93438         * lib/utimens.c: Likewise.
93439         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93440         since we now assume the gettimeofday module.
93441         * lib/tempname.c (__gen_tempname): Likewise.
93442         * lib/gettimeofday.h: Remove.
93443         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93444         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93445         Include <time.h>, for 'time()'.
93446         (localtime_buffer_addr): Also use this workaround if
93447         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93448         to simplify the uses.  All uses changed.
93449         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93450         that #undef is inside {}, and 'const' follows type name consistently.
93451         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93452         (gettimeofday): Do not use the maximum possible value for
93453         tv->tv_usec, since that might break usages other than ls.c.
93454         Instead, we'll leave ls.c alone.  This undoes today's patch
93455         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93456         we've never observed the problem but might as well keep the
93457         canary.
93458         * lib/nanosleep.c: Include timespec.h first, for interface check.
93459         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93460         now assume the sys_time module.
93461         * lib/tempname.c: Likewise.
93462         * lib/timespec.h: Likewise.
93463         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93464         needed.
93465         * lib/strftime.c: Likewise.
93466         * lib/timespec.h: Likewise.
93467         * lib/posixtm.c: Include posixtm.h first, for interface check.
93468         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93469         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93470         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93471         * lib/sys_time_.h: New file.
93472         * lib/timespec.h (struct timespec): Use long int, not long.
93473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93474         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93475         Remove obsolescent call to AC_HEADER_TIME.
93476         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93478         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93479         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93480         Likewise.
93481         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93482         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93484         into the sys_time module.  Check for gettimeofday just once.
93485         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93486         for gettimeofday signature to just check the signature.  Merely
93487         compile it, since linking doesn't test signature.  Improve test for
93488         whether gettimeofday.o is actually needed.
93489         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93490         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93491         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93492         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93493         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93494         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93495         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93496         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93497         than worrying about sys/time.h.
93498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93499         Don't bother worrying about TIME_WITH_SYS_TIME.
93500         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93501         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93502         * m4/sys_time_h.m4: New file.
93503         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93504         Don't include sys/time.h.  Return from main rather than exiting.
93505         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93506         all uses changed.
93507         * modules/gethrxtime (Depends-on): Add sys_time.
93508         * modules/gettime (Depends-on): Likewise.
93509         * modules/gettimeofday (Depends-on): Likewise.
93510         * modules/nanosleep (Depends-on): Likewise.
93511         * modules/settime (Depends-on): Likewise.
93512         * modules/tempname (Depends-on): Likewise.
93513         * modules/utimens (Depends-on): Likewise.
93514         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93515         (Include): Change back to <sys/time.h>.
93516         (Maintainer): Add self.
93517         * modules/sys_time: New file.
93518         * modules/tempname (Depends-on): Add gettimeofday.
93519         * tests/test-gettimeofday.c: Include <sys/time.h>
93520         rather than gettimeofday.h.
93522 2007-01-17  Bruno Haible  <bruno@clisp.org>
93524         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93525         the license default to GPL.
93526         (func_create_testdir): Don't complain if a module is LGPL and its
93527         tests module depends on GPLed modules.
93529 2007-01-17  Bruno Haible  <bruno@clisp.org>
93531         * lib/gettimeofday.c (gettimeofday): Add code for the case
93532         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93533         maximum possible value for tv->tv_usec, rather than the minimum one.
93535 2005-10-08  Martin Lambers  <marlam@marlam.de>
93536 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93537 2007-01-16  Bruno Haible  <bruno@clisp.org>
93539         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93540         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93541         gl_FUNC_GETTIMEOFDAY.
93542         (Include): Add gettimeofday.h.
93543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93544         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93545         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93546         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93547         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93548         * lib/gettimeofday.h: New file.
93549         * lib/gettimeofday.c: Include <sys/timeb.h>.
93550         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93551         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93552         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93553         fall back on time().
93555         * tests/test-gettimeofday.c: New file.
93556         * modules/gettimeofday-tests: New file.
93558 2007-01-16  Eric Blake  <ebb9@byu.net>
93560         * modules/fnmatch (Depends-on): Depend on wchar.
93561         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93562         * m4/fnmatch.m4: Likewise.
93563         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93564         * m4/mbchar.m4: Likewise.
93565         * modules/mbswidth (Depends-on): Depend on wchar.
93566         * lib/mbswidth.c: Assume <wchar.h>.
93567         * m4/mbswidth.m4: Likewise.
93568         * modules/quotearg (Depends-on): Depend on wchar.
93569         * lib/quotearg.c: Assume <wchar.h>.
93570         * m4/quotearg.m4: Likewise.
93571         * modules/regex (Depends-on): Depend on wchar.
93572         * lib/regex_internal.h: Assume <wchar.h>.
93573         * m4/regex.m4: Likewise.
93574         * modules/stdint (Depends-on): Depend on wchar.
93575         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93576         * m4/stdint.m4: Likewise.
93577         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93578         * modules/strftime (Depends-on): Depend on wchar.
93579         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93580         * modules/strtol (Depends-on): Depend on wchar.
93581         * lib/strtol.c: Assume <wchar.h>.
93582         * modules/wcwidth (Depends-on): Depend on wchar.
93583         * lib/wcwidth.h: Assume <wchar.h>.
93584         * m4/wcwidth.m4: Likewise.
93586 2007-01-16  Bruno Haible  <bruno@clisp.org>
93588         * modules/csharpexec-script: New, created from...
93589         * modules/csharpexec: ... this.
93591 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93593         * modules/javaexec-script: New, created from...
93594         * modules/javaexec: ... this.
93596 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93598         * modules/poll (Dependencies): Add sys_select.
93600 2007-01-15  Jim Meyering  <jim@meyering.net>
93602         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93603         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93604         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93605         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93607 2007-01-15  Bruno Haible  <bruno@clisp.org>
93609         * modules/striconveh: New file.
93610         * lib/striconveh.h: New file.
93611         * lib/striconveh.c: New file.
93612         * MODULES.html.sh (Internationalization functions): Add striconveh.
93614         * modules/striconveh-tests: New file.
93615         * tests/test-striconveh.c: New file.
93617 2007-01-15  Bruno Haible  <bruno@clisp.org>
93619         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93620         not from GNU libiconv or GNU libc.
93622 2007-01-15  Bruno Haible  <bruno@clisp.org>
93624         * doc/gnulib-intro.texi (Copyright): Explain the different license
93625         terms for module descriptions, autoconf macros, tests, documentation.
93627 2007-01-14  Bruno Haible  <bruno@clisp.org>
93629         * modules/striconv-tests: New file.
93630         * tests/test-striconv.c: New file.
93632 2007-01-14  Bruno Haible  <bruno@clisp.org>
93634         * modules/iconv-tests: New file.
93635         * tests/test-iconv.c: New file.
93637 2007-01-14  Bruno Haible  <bruno@clisp.org>
93639         * gnulib-tool (func_get_license): For test modules, use the license of
93640         the main module.
93642 2007-01-14  Bruno Haible  <bruno@clisp.org>
93644         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93645         if iconv is found to exist.
93647 2007-01-14  Bruno Haible  <bruno@clisp.org>
93649         * modules/c-ctype-tests: New file.
93650         * tests/test-c-ctype.c: New file.
93652 2007-01-14  Bruno Haible  <bruno@clisp.org>
93654         * modules/binary-io-tests: New file.
93655         * tests/test-binary-io.sh: New file.
93656         * tests/test-binary-io.c: New file.
93658 2007-01-14  Bruno Haible  <bruno@clisp.org>
93660         * modules/array-oset-tests: New file.
93661         * tests/test-array_oset.c: New file.
93663 2007-01-14  Bruno Haible  <bruno@clisp.org>
93665         * modules/array-list-tests: New file.
93666         * tests/test-array_list.c: New file.
93668 2007-01-14  Bruno Haible  <bruno@clisp.org>
93670         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93671         and make.
93672         Reported by Simon Josefsson in
93673         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93675 2007-01-14  Bruno Haible  <bruno@clisp.org>
93677         * modules/allocsa-tests: New file.
93678         * tests/test-allocsa.c: New file.
93680 2007-01-14  Bruno Haible  <bruno@clisp.org>
93682         * modules/fchdir (Depends-on): Add absolute-header.
93683         * modules/unistd (Depends-on): Likewise.
93685 2006-12-30  Bruno Haible  <bruno@clisp.org>
93687         * modules/fchdir: New file.
93688         * modules/unistd (Files): Add lib/unistd_.h.
93689         (Makefile.am): Generate unistd.h from unistd_.h.
93690         * lib/fchdir.c: New file.
93691         * lib/dirent_.h: New file.
93692         * lib/unistd_.h: New file.
93693         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93694         * m4/fchdir.m4: New file.
93695         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93696         (gl_HEADER_UNISTD): Invoke it.
93697         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93698         function.
93699         * lib/backupfile.c (opendir, closedir): Undefine.
93700         * lib/chown.c (open, close): Undefine.
93701         * lib/clean-temp.c (open, close): Undefine.
93702         * lib/copy-file.c (open, close): Undefine.
93703         * lib/execute.c (open, close): Undefine.
93704         * lib/fsusage.c (open, close): Undefine.
93705         * lib/gc-gnulib.c (open, close): Undefine.
93706         * lib/getcwd.c (opendir, closedir): Undefine.
93707         * lib/glob.c (opendir, closedir): Undefine.
93708         * lib/javacomp.c (open, close): Undefine.
93709         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93710         * lib/openat-proc.c (open, close): Undefine.
93711         * lib/pagealign_alloc.c (open, close): Undefine.
93712         * lib/pipe.c (open, close): Undefine.
93713         * lib/progreloc.c (open, close): Undefine.
93714         * lib/savedir.c (opendir, closedir): Undefine.
93715         * lib/utime.c (open, close): Undefine.
93716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93718 2007-01-10  Bruno Haible  <bruno@clisp.org>
93720         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93722 2007-01-12  Eric Blake  <ebb9@byu.net>
93724         Provide a robust <wchar.h>.  Further simplifications are now
93725         possible in other modules, but not included here.
93726         * modules/wchar: New module.
93727         * m4/wchar.m4: New file.
93728         * lib/wchar_.h: Likewise.
93729         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93730         of the new module.
93731         * MODULES.html.sh (Extended multibyte and wide character utilities):
93732         New section.
93734 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93736         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93737         to a reasonable default for memory allocation.
93738         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93739         file system that reports garbage st_size values for symlinks.
93740         Problem reported by Liyang Hu.
93742 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93744         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93745         Emacs .#* auto-save files).
93747 2007-01-11  Bruno Haible  <bruno@clisp.org>
93749         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93750         directory.
93752 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93754         Use @...@ consistently in lib/wctype_.h.
93755         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93756         on it being set to 1 or 0.
93757         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93758         go back to AC_SUBSTing it.
93759         * modules/wctype (Makefile.am): Undo previous change.
93761 2007-01-10  Eric Blake  <ebb9@byu.net>
93763         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93764         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93765         * modules/wctype (Makefile.am): Likewise.
93766         Reported by Chris McGuire.
93768 2007-01-10  Jim Meyering  <jim@meyering.net>
93770         fts.c: a small readability/maintainability improvement
93771         * lib/fts.c (fts_read): Make this code slightly more readable and
93772         maintainable by hoisting the "sp->fts_cur = p" assignments to
93773         immediately follow the statements that set P.  Derived from
93774         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93776 2007-01-10  Eric Blake  <ebb9@byu.net>
93778         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93779         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93781         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93782         Reported by Chris McGuire.
93784 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93786         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93787         in sed script.
93789 2007-01-09  Bruno Haible  <bruno@clisp.org>
93791         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93792         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93793         variables.
93794         (func_module): Use them.
93796 2007-01-09  Bruno Haible  <bruno@clisp.org>
93798         * modules/unistr/base: New file.
93799         * lib/unistr.h: New file.
93801         * modules/unistr/u8-to-u16: New file.
93802         * lib/unistr/u8-to-u16.c: New file.
93804         * modules/unistr/u8-to-u32: New file.
93805         * lib/unistr/u8-to-u32.c: New file.
93807         * modules/unistr/u16-to-u8: New file.
93808         * lib/unistr/u16-to-u8.c: New file.
93810         * modules/unistr/u16-to-u32: New file.
93811         * lib/unistr/u16-to-u32.c: New file.
93813         * modules/unistr/u32-to-u8: New file.
93814         * lib/unistr/u32-to-u8.c: New file.
93816         * modules/unistr/u32-to-u16: New file.
93817         * lib/unistr/u32-to-u16.c: New file.
93819         * modules/unistr/u8-check: New file.
93820         * modules/unistr/u16-check: New file.
93821         * modules/unistr/u32-check: New file.
93822         * lib/unistr/u8-check.c: New file.
93823         * lib/unistr/u16-check.c: New file.
93824         * lib/unistr/u32-check.c: New file.
93826         * modules/unistr/u8-chr: New file.
93827         * modules/unistr/u16-chr: New file.
93828         * modules/unistr/u32-chr: New file.
93829         * lib/unistr/u8-chr.c: New file.
93830         * lib/unistr/u16-chr.c: New file.
93831         * lib/unistr/u32-chr.c: New file.
93833         * modules/unistr/u8-cmp: New file.
93834         * modules/unistr/u16-cmp: New file.
93835         * modules/unistr/u32-cmp: New file.
93836         * lib/unistr/u8-cmp.c: New file.
93837         * lib/unistr/u16-cmp.c: New file.
93838         * lib/unistr/u32-cmp.c: New file.
93840         * modules/unistr/u8-cpy: New file.
93841         * modules/unistr/u16-cpy: New file.
93842         * modules/unistr/u32-cpy: New file.
93843         * lib/unistr/u8-cpy.c: New file.
93844         * lib/unistr/u16-cpy.c: New file.
93845         * lib/unistr/u32-cpy.c: New file.
93846         * lib/unistr/u-cpy.h: New file.
93848         * modules/unistr/u8-cpy-alloc: New file.
93849         * modules/unistr/u16-cpy-alloc: New file.
93850         * modules/unistr/u32-cpy-alloc: New file.
93851         * lib/unistr/u8-cpy-alloc.c: New file.
93852         * lib/unistr/u16-cpy-alloc.c: New file.
93853         * lib/unistr/u32-cpy-alloc.c: New file.
93854         * lib/unistr/u-cpy-alloc.h: New file.
93856         * modules/unistr/u8-endswith: New file.
93857         * modules/unistr/u16-endswith: New file.
93858         * modules/unistr/u32-endswith: New file.
93859         * lib/unistr/u8-endswith.c: New file.
93860         * lib/unistr/u16-endswith.c: New file.
93861         * lib/unistr/u32-endswith.c: New file.
93862         * lib/unistr/u-endswith.h: New file.
93864         * modules/unistr/u8-mblen: New file.
93865         * modules/unistr/u16-mblen: New file.
93866         * modules/unistr/u32-mblen: New file.
93867         * lib/unistr/u8-mblen.c: New file.
93868         * lib/unistr/u16-mblen.c: New file.
93869         * lib/unistr/u32-mblen.c: New file.
93871         * modules/unistr/u8-mbtouc: New file.
93872         * modules/unistr/u16-mbtouc: New file.
93873         * modules/unistr/u32-mbtouc: New file.
93874         * lib/unistr/u8-mbtouc.c: New file.
93875         * lib/unistr/u16-mbtouc.c: New file.
93876         * lib/unistr/u32-mbtouc.c: New file.
93878         * modules/unistr/u8-mbtouc-safe: New file.
93879         * modules/unistr/u16-mbtouc-safe: New file.
93880         * modules/unistr/u32-mbtouc-safe: New file.
93881         * lib/unistr/u8-mbtouc-safe.c: New file.
93882         * lib/unistr/u16-mbtouc-safe.c: New file.
93883         * lib/unistr/u32-mbtouc-safe.c: New file.
93885         * modules/unistr/u8-move: New file.
93886         * modules/unistr/u16-move: New file.
93887         * modules/unistr/u32-move: New file.
93888         * lib/unistr/u8-move.c: New file.
93889         * lib/unistr/u16-move.c: New file.
93890         * lib/unistr/u32-move.c: New file.
93891         * lib/unistr/u-move.h: New file.
93893         * modules/unistr/u8-next: New file.
93894         * modules/unistr/u16-next: New file.
93895         * modules/unistr/u32-next: New file.
93896         * lib/unistr/u8-next.c: New file.
93897         * lib/unistr/u16-next.c: New file.
93898         * lib/unistr/u32-next.c: New file.
93900         * modules/unistr/u8-prev: New file.
93901         * modules/unistr/u16-prev: New file.
93902         * modules/unistr/u32-prev: New file.
93903         * lib/unistr/u8-prev.c: New file.
93904         * lib/unistr/u16-prev.c: New file.
93905         * lib/unistr/u32-prev.c: New file.
93907         * modules/unistr/u8-set: New file.
93908         * modules/unistr/u16-set: New file.
93909         * modules/unistr/u32-set: New file.
93910         * lib/unistr/u8-set.c: New file.
93911         * lib/unistr/u16-set.c: New file.
93912         * lib/unistr/u32-set.c: New file.
93913         * lib/unistr/u-set.h: New file.
93915         * modules/unistr/u8-startswith: New file.
93916         * modules/unistr/u16-startswith: New file.
93917         * modules/unistr/u32-startswith: New file.
93918         * lib/unistr/u8-startswith.c: New file.
93919         * lib/unistr/u16-startswith.c: New file.
93920         * lib/unistr/u32-startswith.c: New file.
93921         * lib/unistr/u-startswith.h: New file.
93923         * modules/unistr/u8-stpcpy: New file.
93924         * modules/unistr/u16-stpcpy: New file.
93925         * modules/unistr/u32-stpcpy: New file.
93926         * lib/unistr/u8-stpcpy.c: New file.
93927         * lib/unistr/u16-stpcpy.c: New file.
93928         * lib/unistr/u32-stpcpy.c: New file.
93929         * lib/unistr/u-stpcpy.h: New file.
93931         * modules/unistr/u8-stpncpy: New file.
93932         * modules/unistr/u16-stpncpy: New file.
93933         * modules/unistr/u32-stpncpy: New file.
93934         * lib/unistr/u8-stpncpy.c: New file.
93935         * lib/unistr/u16-stpncpy.c: New file.
93936         * lib/unistr/u32-stpncpy.c: New file.
93937         * lib/unistr/u-stpncpy.h: New file.
93939         * modules/unistr/u8-strcat: New file.
93940         * modules/unistr/u16-strcat: New file.
93941         * modules/unistr/u32-strcat: New file.
93942         * lib/unistr/u8-strcat.c: New file.
93943         * lib/unistr/u16-strcat.c: New file.
93944         * lib/unistr/u32-strcat.c: New file.
93945         * lib/unistr/u-strcat.h: New file.
93947         * modules/unistr/u8-strchr: New file.
93948         * modules/unistr/u16-strchr: New file.
93949         * modules/unistr/u32-strchr: New file.
93950         * lib/unistr/u8-strchr.c: New file.
93951         * lib/unistr/u16-strchr.c: New file.
93952         * lib/unistr/u32-strchr.c: New file.
93954         * modules/unistr/u8-strcmp: New file.
93955         * modules/unistr/u16-strcmp: New file.
93956         * modules/unistr/u32-strcmp: New file.
93957         * lib/unistr/u8-strcmp.c: New file.
93958         * lib/unistr/u16-strcmp.c: New file.
93959         * lib/unistr/u32-strcmp.c: New file.
93961         * modules/unistr/u8-strcpy: New file.
93962         * modules/unistr/u16-strcpy: New file.
93963         * modules/unistr/u32-strcpy: New file.
93964         * lib/unistr/u8-strcpy.c: New file.
93965         * lib/unistr/u16-strcpy.c: New file.
93966         * lib/unistr/u32-strcpy.c: New file.
93967         * lib/unistr/u-strcpy.h: New file.
93969         * modules/unistr/u8-strcspn: New file.
93970         * modules/unistr/u16-strcspn: New file.
93971         * modules/unistr/u32-strcspn: New file.
93972         * lib/unistr/u8-strcspn.c: New file.
93973         * lib/unistr/u16-strcspn.c: New file.
93974         * lib/unistr/u32-strcspn.c: New file.
93975         * lib/unistr/u-strcspn.h: New file.
93977         * modules/unistr/u8-strdup: New file.
93978         * modules/unistr/u16-strdup: New file.
93979         * modules/unistr/u32-strdup: New file.
93980         * lib/unistr/u8-strdup.c: New file.
93981         * lib/unistr/u16-strdup.c: New file.
93982         * lib/unistr/u32-strdup.c: New file.
93983         * lib/unistr/u-strdup.h: New file.
93985         * modules/unistr/u8-strlen: New file.
93986         * modules/unistr/u16-strlen: New file.
93987         * modules/unistr/u32-strlen: New file.
93988         * lib/unistr/u8-strlen.c: New file.
93989         * lib/unistr/u16-strlen.c: New file.
93990         * lib/unistr/u32-strlen.c: New file.
93991         * lib/unistr/u-strlen.h: New file.
93993         * modules/unistr/u8-strmblen: New file.
93994         * modules/unistr/u16-strmblen: New file.
93995         * modules/unistr/u32-strmblen: New file.
93996         * lib/unistr/u8-strmblen.c: New file.
93997         * lib/unistr/u16-strmblen.c: New file.
93998         * lib/unistr/u32-strmblen.c: New file.
94000         * modules/unistr/u8-strmbtouc: New file.
94001         * modules/unistr/u16-strmbtouc: New file.
94002         * modules/unistr/u32-strmbtouc: New file.
94003         * lib/unistr/u8-strmbtouc.c: New file.
94004         * lib/unistr/u16-strmbtouc.c: New file.
94005         * lib/unistr/u32-strmbtouc.c: New file.
94007         * modules/unistr/u8-strncat: New file.
94008         * modules/unistr/u16-strncat: New file.
94009         * modules/unistr/u32-strncat: New file.
94010         * lib/unistr/u8-strncat.c: New file.
94011         * lib/unistr/u16-strncat.c: New file.
94012         * lib/unistr/u32-strncat.c: New file.
94013         * lib/unistr/u-strncat.h: New file.
94015         * modules/unistr/u8-strncmp: New file.
94016         * modules/unistr/u16-strncmp: New file.
94017         * modules/unistr/u32-strncmp: New file.
94018         * lib/unistr/u8-strncmp.c: New file.
94019         * lib/unistr/u16-strncmp.c: New file.
94020         * lib/unistr/u32-strncmp.c: New file.
94022         * modules/unistr/u8-strncpy: New file.
94023         * modules/unistr/u16-strncpy: New file.
94024         * modules/unistr/u32-strncpy: New file.
94025         * lib/unistr/u8-strncpy.c: New file.
94026         * lib/unistr/u16-strncpy.c: New file.
94027         * lib/unistr/u32-strncpy.c: New file.
94028         * lib/unistr/u-strncpy.h: New file.
94030         * modules/unistr/u8-strnlen: New file.
94031         * modules/unistr/u16-strnlen: New file.
94032         * modules/unistr/u32-strnlen: New file.
94033         * lib/unistr/u8-strnlen.c: New file.
94034         * lib/unistr/u16-strnlen.c: New file.
94035         * lib/unistr/u32-strnlen.c: New file.
94036         * lib/unistr/u-strnlen.h: New file.
94038         * modules/unistr/u8-strpbrk: New file.
94039         * modules/unistr/u16-strpbrk: New file.
94040         * modules/unistr/u32-strpbrk: New file.
94041         * lib/unistr/u8-strpbrk.c: New file.
94042         * lib/unistr/u16-strpbrk.c: New file.
94043         * lib/unistr/u32-strpbrk.c: New file.
94044         * lib/unistr/u-strpbrk.h: New file.
94046         * modules/unistr/u8-strrchr: New file.
94047         * modules/unistr/u16-strrchr: New file.
94048         * modules/unistr/u32-strrchr: New file.
94049         * lib/unistr/u8-strrchr.c: New file.
94050         * lib/unistr/u16-strrchr.c: New file.
94051         * lib/unistr/u32-strrchr.c: New file.
94053         * modules/unistr/u8-strspn: New file.
94054         * modules/unistr/u16-strspn: New file.
94055         * modules/unistr/u32-strspn: New file.
94056         * lib/unistr/u8-strspn.c: New file.
94057         * lib/unistr/u16-strspn.c: New file.
94058         * lib/unistr/u32-strspn.c: New file.
94059         * lib/unistr/u-strspn.h: New file.
94061         * modules/unistr/u8-strstr: New file.
94062         * modules/unistr/u16-strstr: New file.
94063         * modules/unistr/u32-strstr: New file.
94064         * lib/unistr/u8-strstr.c: New file.
94065         * lib/unistr/u16-strstr.c: New file.
94066         * lib/unistr/u32-strstr.c: New file.
94067         * lib/unistr/u-strstr.h: New file.
94069         * modules/unistr/u8-strtok: New file.
94070         * modules/unistr/u16-strtok: New file.
94071         * modules/unistr/u32-strtok: New file.
94072         * lib/unistr/u8-strtok.c: New file.
94073         * lib/unistr/u16-strtok.c: New file.
94074         * lib/unistr/u32-strtok.c: New file.
94075         * lib/unistr/u-strtok.h: New file.
94077         * modules/unistr/u8-uctomb: New file.
94078         * modules/unistr/u16-uctomb: New file.
94079         * modules/unistr/u32-uctomb: New file.
94080         * lib/unistr/u8-uctomb.c: New file.
94081         * lib/unistr/u16-uctomb.c: New file.
94082         * lib/unistr/u32-uctomb.c: New file.
94084         * MODULES.html.sh (Unicode string functions): Add the new modules.
94086 2007-01-08  Bruno Haible  <bruno@clisp.org>
94088         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94089         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94090         subdirectories.
94092 2007-01-08  Karl Berry  <karl@gnu.org>
94094         * doc/error.texi: mention that main() fns must set program_name
94095         when progname is used.
94097 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94099         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94100         WCTYPE_H is empty, for the benefit of builds from non-distclean
94101         directories.  Problem reported by Eric Blake in
94102         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94104 2007-01-08  Bruno Haible  <bruno@clisp.org>
94106         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94107         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94108         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94109         PROVIDE_CANONICALIZE_FILENAME_MODE.
94110         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94112 2007-01-08  Bruno Haible  <bruno@clisp.org>
94114         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94115         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94116         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94117         * lib/fts.c: Likewise.
94118         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94120 2006-12-25  Bruno Haible  <bruno@clisp.org>
94122         * modules/utf8-ucs4-safe: New file.
94123         * lib/utf8-ucs4-safe.h: New file.
94124         * lib/unistr/utf8-ucs4-safe.c: New file.
94126         * modules/utf16-ucs4-safe: New file.
94127         * lib/utf16-ucs4-safe.h: New file.
94128         * lib/unistr/utf16-ucs4-safe.c: New file.
94130         * MODULES.html.sh (Unicode string functions): Add the new modules.
94132 2007-01-08  Bruno Haible  <bruno@clisp.org>
94134         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94135         (Depends-on): Add unitypes.
94136         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94137         (u8_mbtouc_aux): Move out to separate file.
94138         (u8_mbtouc): Use ucs4_t, uint8_t types.
94139         * lib/unistr/utf8-ucs4.c: New file.
94141         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94142         (Depends-on): Add unitypes.
94143         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94144         (u16_mbtouc_aux): Move out to separate file.
94145         (u16_mbtouc): Use ucs4_t, uint16_t types.
94146         * lib/unistr/utf16-ucs4.c: New file.
94148         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94149         (Depends-on): Add unitypes.
94150         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94151         (u8_uctomb_aux): Move out to separate file.
94152         (u8_uctomb): Use ucs4_t, uint8_t types.
94153         * lib/unistr/ucs4-utf8.c: New file.
94155         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94156         (Depends-on): Add unitypes.
94157         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94158         (u16_uctomb_aux): Move out to separate file.
94159         (u16_uctomb): Use ucs4_t, uint16_t types.
94160         * lib/unistr/ucs4-utf16.c: New file.
94162 2006-12-25  Bruno Haible  <bruno@clisp.org>
94164         * modules/unitypes: New file.
94165         * lib/unitypes.h: New file.
94166         * MODULES.html.sh (func_all_modules): New section "Unicode string
94167         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94168         this section. Add unitypes.
94170 2007-01-08  Bruno Haible  <bruno@clisp.org>
94172         Avoid variable names that conflict with those from libtool.
94173         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94174         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94175         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94176         library_names_spec to acl_library_names_spec, hardcode_* to
94177         acl_hardcode_*.
94178         Reported by Ralf Wildenhues.
94180 2007-01-08  Bruno Haible  <bruno@clisp.org>
94182         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94183         definition.
94184         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94185         definition.
94186         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94187         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94188         definition.
94189         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94190         definition.
94191         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94192         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94193         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94194         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94195         definition.
94196         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94197         definition.
94198         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94199         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94200         GC_USE_<algorithm>.
94201         * lib/gc-libgcrypt.c: Likewise.
94202         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94203         * modules/gc-arctwo (configure.ac): Likewise.
94204         * modules/gc-des (configure.ac): Likewise.
94205         * modules/gc-hmac-md5 (configure.ac): Likewise.
94206         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94207         * modules/gc-md2 (configure.ac): Likewise.
94208         * modules/gc-md4 (configure.ac): Likewise.
94209         * modules/gc-md5 (configure.ac): Likewise.
94210         * modules/gc-random (configure.ac): Likewise.
94211         * modules/gc-rijndael (configure.ac): Likewise.
94212         * modules/gc-sha1 (configure.ac): Likewise.
94214 2007-01-08  Bruno Haible  <bruno@clisp.org>
94216         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94217         macro definition.
94218         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94219         definition.
94220         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94221         definition.
94222         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94223         * modules/fcntl-safer (configure.ac): Likewise.
94224         * modules/fopen-safer (configure.ac): Likewise.
94225         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94226         GNULIB_FWRITEERROR macro definition.
94228 2007-01-08  Bruno Haible  <bruno@clisp.org>
94230         * m4/gnulib-common.m4: New file.
94231         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94232         (func_get_filelist): Add m4/gnulib-common.m4.
94234 2007-01-08  Bruno Haible  <bruno@clisp.org>
94236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94237         command.
94239 2007-01-08  Jim Meyering  <jim@meyering.net>
94241         Use a more robust test for a "can't happen" condition.
94242         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94243         narrowed the st_size value.  Presuming the "can't happen" condition
94244         is true, that narrowing could conceivably convert an invalid st_size
94245         value into a valid one.  Instead, use a change based on Matthew
94246         Woehlke's original patch.
94248         Slight readability improvement: use an assert-like macro
94249         in place of literal "abort ()" uses.
94250         * lib/fts.c (fts_assert): Define.
94251         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94252         Use this macro instead of a bare 'abort'.
94254 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94256         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94257         simply work around them.
94258         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94259         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94260         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94261         declaring.
94262         Don't bother to define as macros, since the standard doesn't require it.
94263         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94264         longer worry about IRIX 5.3.
94265         (HAVE_WCTYPE_CTMP_BUG): Remove.
94267 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94269         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94270         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94271         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94272         Problems reported by Georg Schwarz for IRIX 5.3.
94274         * gnulib-tool (autoconf_minversion): Take the maximum version number
94275         found, not the minimum.  Problem reported by James Youngman.
94277 2007-01-03  Karl Berry  <karl@gnu.org>
94279         * doc/error.texi: new file, explaining interaction with progname.
94280         * doc/gnulib.texi: include it.  Update copyright.
94282 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94284         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94285         AC_CANONICAL_HOST, to improve autobuild outputs.
94287 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94288             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94290         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94291         sockets, server sockets, and other file descriptors.  Count errors
94292         to compute the return value.  Reorder the code a bit to be easier
94293         to follow.  Don't set event bits that were not requested (except
94294         POLLERR and POLLHUP).
94296 2007-01-01  Bruno Haible  <bruno@clisp.org>
94298         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94300 2007-01-03  Jim Meyering  <jim@meyering.net>
94302         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94304 2007-01-02  Bruno Haible  <bruno@clisp.org>
94306         * modules/settime (Include): Require timespec.h.
94307         * modules/nanosleep (Include): Likewise.
94309 2007-01-01  Bruno Haible  <bruno@clisp.org>
94311         * gnulib-tool (func_emit_copyright_notice): Bump year.
94312         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94314 2007-01-01  Bruno Haible  <bruno@clisp.org>
94316         Improve support for OpenBSD.
94317         * build-aux/config.rpath (libname_spec): Export.
94318         (library_names_spec): New variable. Export.
94319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94320         library_names_spec from the config.rpath output. Locate shared library
94321         through the name pattern in library_names_spec.
94323 2007-01-01  Eric Blake  <ebb9@byu.net>
94325         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94327 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94329         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94330         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94331         assume the C locale, and avoid an "eval" that could cause trouble.
94332         Problem with SORT reported by Bob Proulx.
94334         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94335         Define.  Trivial patch from Henning Nielsen Lund, originally
94336         sent to bug-grep@gnu.org today.
94338 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94340         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94341         struct stat.  Problem reported by Henning Nielsen Lund.
94342         * lib/acl.c: Include acl.h first, to check interface.  Don't
94343         bother to include sys/types.h and sys/stat.h again.
94345 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94347         Import the following change from libc; problem reported by
94348         Sven Verdoolaege.
94350         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94352         [BZ #1373]
94353         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94355 2006-12-28  Jim Meyering  <jim@meyering.net>
94357         * build-aux/announce-gen: Do not assume that the package
94358         builds any of tar.gz, tar.bz2, and .xdelta files.
94359         Suggestion from Simon Josefsson.
94361 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94363         * modules/announce-gen: New file.
94365 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94367         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94368         handles its gotchas now.
94369         * lib/mbswidth.c: Likewise.
94370         * lib/wcwidth.h: Likewise.
94371         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94372         and iswcntrl; the wctype module does this stuff now.
94373         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94375         * modules/mbchar (Depends-on): Add wctype.
94376         * modules/mbswidth (Depends-on): Likewise.
94377         * modules/wcwidth (Depends-on): Likewise.
94379 2006-12-27  Eric Blake  <ebb9@byu.net>
94381         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94382         module uses more than what <wctype.h> is required to provide.
94384 2006-12-26  Eric Blake  <ebb9@byu.net>
94386         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94388 2006-12-26  Eric Blake  <ebb9@byu.net>
94390         * modules/absolute-header: New module.
94391         * modules/fcntl (Depends-on): Depend on it.
94392         * modules/inttypes (Depends-on): Likewise.
94393         * modules/stdint (Depends-on): Likewise.
94394         * modules/sys_stat (Depends-on): Likewise.
94395         * modules/wctype (Depends-on): Likewise.
94396         * MODULES.html.sh (Support for building libraries and
94397         executables): Document it.
94399 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94401         * gnulib-tool (SED): Remove, undoing previous change.
94402         The problem was that it broke coreutils on Solaris, because
94403         "sed --posix" leaked into a makefile.
94404         (sed): New alias, if 'alias' and GNU sed.
94406 2006-12-24  Jim Meyering  <jim@meyering.net>
94408         Work around an fchownat bug in glibc-2.4:
94409         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94410         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94411         in spite of the -P option.
94412         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94413         New macros.
94414         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94415         * modules/openat (Files): Add lib/fchownat.c.
94416         * lib/openat.c (fchownat): Don't define here.  Move to...
94417         * lib/fchownat.c: ...this new file.
94419 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94421         Fix bug reported by Bruno Haible in
94422         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94423         where quotearg.c didn't compile on Mac OS X 10.2 because it
94424         lacks <wchar.h> and wint_t.
94425         * lib/wctype_.h (__wctype_wint_t): New type.
94426         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94427         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94428         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94429         Arg is now of type __wctype_wint_t, not wint_t.
94430         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94431         substitute HAVE_WINT_T.
94432         * modules/wctype (Files): Add m4/wint_t.m4.
94433         (wctype.h): Substitute HAVE_WINT_T.
94435 2006-12-23  Bruno Haible  <bruno@clisp.org>
94437         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94439 2006-12-23  Bruno Haible  <bruno@clisp.org>
94441         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94442         S_ISLNK.
94443         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94444         mingw.
94446 2006-12-22  Bruno Haible  <bruno@clisp.org>
94448         * lib/copy-file.c: Include acl.h.
94449         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94450         Close the file descriptors only after being done with copy_acl.
94451         * modules/copy-file (Depends-on): Add acl.
94453 2006-12-22  Bruno Haible  <bruno@clisp.org>
94455         * gnulib-tool (SED): New variable.
94456         Use $SED instead of sed everywhere.
94458 2006-12-22  Bruno Haible  <bruno@clisp.org>
94460         * modules/no-c++: New file.
94461         * m4/no-c++.m4: New file.
94462         * MODULES.html.sh (Support for building libraries and executables):
94463         Add no-c++.
94465 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94467         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94468         Include <limits.h>, and use its INT_MAX to rewrite the
94469         j loop so that it does not overflow 'int'.  Problem reported by
94470         Ralf Wildenhues in
94471         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94472         Play it safe by shifting left by 1 rather than multiplying by 2,
94473         as GCC is less likely to optimize this away when the value
94474         is signed (when it assumes overflow leads to undefined behavior).
94475         Also, don't assume time_t uses two's complement.
94477 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94479         * MODULES.html.sh: New module wctype.
94480         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94481         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94482         <wctype.h>, since the new wctype module should fix this.
94483         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94484         the wctype module should arrange for it.
94485         * lib/regex_internal.h: Likewise.
94486         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94487         since the wctype module should handle this now.
94488         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94489         * modules/fnmatch (Depends-on): Add wctype.
94490         * modules/quotearg (Depends-on): Likewise.
94491         * modules/regex (Depends-on): Likewise.
94493 2006-12-19  Bruno Haible  <bruno@clisp.org>
94495         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94496         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94498 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94500         * modules/savewd (Depends-on): Fix dependency on fcntl.
94502 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94504         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94505         conforms to C99, rather than relying on the user's environment
94506         setting of STDINT_H.
94508 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94509         and Eric Blake  <ebb9@byu.net>
94511         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94512         This is more consistent with the other defines here.
94513         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94514         Port to z/OS.  Problem reported by Paul Gilmartin.
94515         Change local vars to use gl_ prefix rather than ac_.
94516         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94517         with other defines.
94518         * modules/double-slash-root: New module.
94519         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94520         (Depends-on): Add double-slash-root.
94521         * MODULES.html.sh (File system functions): Mention new module.
94523 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94525         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94526         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94527         This is for the benefit of gzip, which doesn't do i18n.
94529 2006-12-12  Jim Meyering  <jim@meyering.net>
94531         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94532         Reported by Andreas Schwab <schwab@suse.de>.
94534 2006-12-12  Bruno Haible  <bruno@clisp.org>
94536         Merge these changes.
94537         2006-09-05  Bruno Haible  <bruno@clisp.org>
94538         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94539         iconv_alloc succeeded.
94540         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94541         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94542         test for " && dest " at the end - dest is always != NULL there. Call
94543         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94544         with 2xNULL arguments, also to flush the state storage. Handle the
94545         IRIX iconv behaviour. Realloc the final result, to throw away unused
94546         memory.
94548 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94550         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94551         and fchmodat unconditionally, since glibc 2.4 has them.
94552         Problem reported by Arkadiusz Miskiewicz.
94554 2006-12-10  Bruno Haible  <bruno@clisp.org>
94556         * gnulib-tool (func_import): Show the include files only for those
94557         modules that are copied and specified.
94558         Reported by Karl Berry.
94560 2006-12-08  Jim Meyering  <jim@meyering.net>
94562         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94563         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94565         * build-aux/announce-gen: Add two new options, both optional:
94566         --bootstrap-tools=TOOL_LIST
94567               a comma-separated list of tools, e.g.,
94568               autoconf,automake,bison,gnulib
94569         --gnulib-snapshot-date=DATE
94570               if gnulib is in the bootstrap tool list,
94571               then report this as the snapshot date.
94572               If not specified, use the current date/time.
94573               If you specify a date here, be sure it's UTC.
94575 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94577         * tests/test-argp-2.sh: Fix test to match actual output.
94578         (func_compare): Fix sed script to be portable.
94580 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94582         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94583         workaround for this case.  It is not autoconfigured now; offhand
94584         it's hard to see how to autoconfigure it.
94586 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94588         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94589         a directory that is about to be chowned.  Such a directory's
94590         initial file permissions should permit the owner only and this
94591         should not be changed until after the chown, since the group and
94592         other bits would be incorrect if they granted permission before
94593         the chown.
94595         Fix porting problem for iswctype reported by Georg Schwarz in:
94596         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94597         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94598         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94600         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94602 2006-12-03  Jim Meyering  <jim@meyering.net>
94604         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94605         p->fts_statp may not yet be defined.
94606         (fts_read): Instead, set it in the caller, once p->fts_statp is
94607         sure to be defined, and corresponds to a top-level directory.
94608         This bug made du -x fail.  Here's the coreutils test case:
94609         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94610         Reported by Mike Frysinger.
94612 2006-12-01  Jim Meyering  <jim@meyering.net>
94614         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94615         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94616         Reported by Simon Josefsson.
94618 2006-11-30  Jim Meyering  <jim@meyering.net>
94620         * m4/warning.m4: Use the all-permissive copyright notice
94621         recommended by RMS (rather than LGPL).
94622         * m4/vararrays.m4: Likewise.
94623         * m4/flexmember.m4: Likewise.
94625 2006-11-29  Bruno Haible  <bruno@clisp.org>
94627         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94628         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94629         using +=.
94630         Reported by Simon Josefsson <simon@josefsson.org>.
94632 2006-11-28  James Youngman  <jay@gnu.org>
94634         * README: Advise users that they might find the bug-gnulib@gnu.org
94635         and autotools-announce@gnu.org mailing lists useful.
94637 2006-11-28  Bruno Haible  <bruno@clisp.org>
94639         * m4/ptrdiff_max.m4: Remove file.
94641 2006-11-21  Bruno Haible  <bruno@clisp.org>
94643         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94644         _AC_COMPUTE_INT.
94645         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94646         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94647         _AC_COMPUTE_INT.
94648         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94649         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94650         _AC_COMPUTE_INT.
94651         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94653 2006-11-28  Jim Meyering  <jim@meyering.net>
94655         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94656         warning from "gcc -Wshadow" about shadowing the builtin.
94658 2006-11-27  Bruno Haible  <bruno@clisp.org>
94660         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94661         _AC_COMPUTE_INT.
94662         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94664 2006-11-27  Bruno Haible  <bruno@clisp.org>
94665             Paul Eggert  <eggert@cs.ucla.edu>
94667         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94669 2006-11-26  Bruno Haible  <bruno@clisp.org>
94671         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94672         noinst_LTLIBRARIES.
94674 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94675             Bruno Haible  <bruno@clisp.org>
94677         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94678         if compiling with "gcc -ansi".
94680 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94682         Fix some incompatibilities with gcc -ansi -pedantic.
94683         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94684         if compiling pedantically with GCC, unless it's C99 or later.
94685         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94686         it mishandles gcc -ansi -pedantic as well.
94687         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94688         if gcc -pedantic.
94689         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94690         initializers for struct if -pedantic, unless it's C99 or later.
94692 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94694         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94695         Don't close an fd more than once. Identical atimes indicate
94696         success, not failure.
94698 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94700         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94702 2006-11-23  Jim Meyering  <jim@meyering.net>
94704         * build-aux/announce-gen: New file.  From coreutils.
94706 2006-11-22  Jim Meyering  <jim@meyering.net>
94708         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94709         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94710         (fts_read): Use a temporary to narrow the overused st_size member
94711         before using it in a switch statement.  Reported by Matthew Woehlke.
94713         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94714         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94716 2006-11-20  Bruno Haible  <bruno@clisp.org>
94718         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94719         changequote instead of pairs of brackets.
94720         Reported by Andreas Schwab <schwab@suse.de>.
94722 2006-11-21  Jim Meyering  <jim@meyering.net>
94724         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94725         so as to remain compatible with older compilers.
94726         Patch from Michael Deutschmann.
94728 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94730         * MODULES.html.sh (File system functions): Add openat.
94732         * lib/openat.h (rpl_fstatat): New macro, if
94733         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94734         (fstatat): Define to rpl_fstatat under the same conditions,
94735         unless COMPILING_FSTATAT.
94736         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94737         seems to have the bug.
94738         * lib/fstatat.c: New file.
94739         * modules/openat (Files): Add it.
94741 2006-11-20  Bruno Haible  <bruno@clisp.org>
94743         * Makefile: New file.
94745 2006-11-20  Jim Meyering  <jim@meyering.net>
94747         The beginnings of syntax-related checks for gnulib.
94748         * lib/Makefile: New file.
94749         * lib/t-idcache: New script.  Ensure that the two halves of
94750         idcache.c stay in sync.
94752         * lib/idcache.c: Adjust comments in user- and group- portions to
94753         be more accurate, and to be consistent with one another.
94755 2006-11-20  Jim Meyering  <jim@meyering.net>
94757         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94758         continue using the flexible array member (thus, this module performs
94759         half as many malloc calls), with the addition that...
94760         (getgroup, getuser): Consistently record a non-match via an empty
94761         "name" string, and map an empty string match to a NULL return value.
94762         * modules/idcache (Depends-on): Re-add flexmember.
94764         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94765         (getuidbyname, getgroup, getgidbyname): Likewise.
94767         Use cleaner syntax: NULL rather than 0.
94768         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94770 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94772         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94773         It mishandled the case where the group was missing.
94774         Problem reported by Greg Schafer.
94775         * modules/idcache: Likewise.
94777 2006-11-18  Jim Meyering  <jim@meyering.net>
94779         * check-module (%exempt_header): Add exception for some
94780         conditionally-included headers.
94782         * modules/i-ring (Depends-on): Add verify.
94783         (License): Change to LGPL.
94785 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94787         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94788         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94789         and inttostr.h.  Use snprintf rather than uinttostr, so that
94790         LGPLed code doesn't depend on GPLed.
94792 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94794         * modules/inline (License): Change from GPL to LGPL.
94796 2006-11-17  Jim Meyering  <jim@meyering.net>
94798         * modules/d-type (License): Switch to LGPL.
94800 2006-11-15  Bruno Haible  <bruno@clisp.org>
94802         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94804 2006-11-15  Eric Blake  <ebb9@byu.net>
94806         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94807         the module dependency.
94809 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94810             Bruno Haible  <bruno@clisp.org>
94812         * gnulib-tool (func_create_testdir): Add license consistency check.
94814 2006-11-15  Eric Blake  <ebb9@byu.net>
94816         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94817         random "(cached)" in configure output.
94819 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94821         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94822         test for conforming inttypes.h is both announced and cached.
94824         * MODULES.html.sh (seen_modules, seen_files): New variables.
94825         (func_module): Rewrite to use a few less gnulib-tool and sed
94826         invocations.  Avoid a couple of quadratic algorithms for ...
94827         (missed_modules, missed_files): ... these, with ...
94828         (func_append, func_tmpdir): ... these new functions, from
94829         gnulib-tool.  Analogously, install traps for cleanup.
94831         * tests/test-gc.c (main): Remove unused variables.
94832         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94834 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94836         * modules/inttostr (License): Change to LGPL.
94838 2006-11-14  Eric Blake  <ebb9@byu.net>
94840         * modules/tempname (License): Change to LGPL.
94842 2006-11-14  Eric Blake  <ebb9@byu.net>
94844         * doc/functions.texi (Function Portability): *printf functions on
94845         Cygwin now understand all POSIX size specifiers.
94847 2006-11-14  Bruno Haible  <bruno@clisp.org>
94849         * modules/c-ctype (License): Change to LGPL.
94851 2006-11-12  Bruno Haible  <bruno@clisp.org>
94853         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94854         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94855         for GNOME libraries, for which the include files are installed in
94856         subdirectories of $prefix/include.
94858 2006-11-12  Bruno Haible  <bruno@clisp.org>
94860         * m4/lib-link.m4: Require at least autoconf-2.54.
94861         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94862         name to underscores for the --with option.
94864 2006-11-13  Bruno Haible  <bruno@clisp.org>
94866         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94867         the tests directory.
94868         Reported by Ralf Wildenhues.
94870 2006-11-13  Bruno Haible  <bruno@clisp.org>
94872         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94873         (func_emit_initmacro_end): Undo the override here.
94874         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94875         Works around the famous automake error in coreutils.
94877 2006-11-13  Eric Blake  <ebb9@byu.net>
94879         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94880         element, not its node.
94882 2006-11-12  Bruno Haible  <bruno@clisp.org>
94884         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94885         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94887 2006-11-12  Bruno Haible  <bruno@clisp.org>
94889         * gnulib-tool: New option --local-symlink.
94890         (func_usage): Document it.
94891         (lsymbolic): New variable.
94892         (func_import, func_create_testdir): If --symlink was not specified,
94893         test whether --local-symlink was specified and the file comes from
94894         the local_gnulib_dir.
94896 2006-11-12  Bruno Haible  <bruno@clisp.org>
94898         * gnulib-tool (func_ln): New function.
94899         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
94901 2006-11-12  Bruno Haible  <bruno@clisp.org>
94903         Finish support for source files in subdirectories.
94904         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
94905         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
94906         AUTOMAKE_OPTIONS.
94907         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
94909 2006-11-12  Bruno Haible  <bruno@clisp.org>
94911         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94912         EXTRA_lib_SOURCES augmentation.
94913         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
94915 2006-11-12  Jim Meyering  <jim@meyering.net>
94917         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
94918         file descriptors.  This also averts a failure on systems with
94919         native openat support when a traversed directory lacks "x" access.
94920         * lib/fts_.h: Include "i-ring.h"
94921         (struct FTS) [fts_fd_ring]: New member.
94922         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
94923         (FCHDIR): Add parentheses.
94924         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
94925         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
94926         When descending, rather than simply closing the previous
94927         fts_cwd_fd value, push that file descriptor onto the ring.
94928         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
94929         (fts_open): Initialize the new fd_ring member.
94930         (fts_close): Clear the ring.
94931         (fts_safe_changedir): When possible, use our new fd_ring to skip
94932         the diropen and fstat and dev/ino comparison that would normally
94933         accompany a virtual `chdir ("..")'.
94935         * modules/fts (Depends-on): Add i-ring.
94936         * modules/i-ring: New module.
94937         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
94938         * m4/i-ring.m4: New file.
94940 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94942         * gnulib-tool (func_create_testdir): Fix replacement of
94943         `build-aux' in configure.ac.  Run autotools in gltests
94944         subdirectory.
94945         (func_create_testdir, func_create_megatestdir, test): There is
94946         no need for '--force' in most autotool invocations in a new
94947         tree.  Actually fail the whole test if any of the tools, or the
94948         configure or make stages fail.
94950         Sync from Automake.
94951         * build-aux/gnupload: Revert last change.  Add pointer to upload
94952         instructions of the GNU Maintenance Instructions.
94953         Suggestion by Karl Berry.
94955 2006-11-10  Jim Meyering  <jim@meyering.net>
94957         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
94959 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94961         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
94962         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
94963         (bind_textdomain_codeset) [! ENABLE_NLS]:
94964         Evaluate all the arguments.  That way, callers get compatible behavior
94965         if the arguments have side effects.  Also, it avoids some GCC
94966         diagnostics in some cases; Joel E. Denny reported problems when Bison
94967         was configured with --enable-gcc-warnigs.
94969 2006-11-10  Jim Meyering  <jim@meyering.net>
94971         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
94972         relevant options in CFLAGS (like -O, -fno-inline) are taken into
94973         account.
94975 2006-11-10  Jim Meyering  <jim@meyering.net>
94977         * modules/inline: New file/module.
94978         * modules/xalloc (Files): Remove m4/inline.m4.
94979         (Depends-on): Add inline, instead.
94980         * modules/oset: Likewise.
94981         * modules/list: Likewise.
94983 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94985         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
94986         Problem reported by Matthew Woehlke.
94988 2006-11-09  Bruno Haible  <bruno@clisp.org>
94990         * lib/tempname.c (gen_tempname): Remove variant that invokes
94991         __gen_tempname.
94992         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
94993         __gen_tempname.
94995 2006-11-08  Bruno Haible  <bruno@clisp.org>
94997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
94998         to 'yes' instead of 'cross-compiling'.
95000 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95002         * lib/quotearg.h (quotearg_free): New decl.
95003         * lib/quotearg.c (quotearg_free): New function.
95004         (slot0, nslots, slotvec0, slotvec):
95005         Now file-scope so that quotearg_free can get at them.
95007 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95009         Sync from Automake.
95010         * build-aux/gnupload: Add missing 'gnu' to example URL.
95011         Report by Karl Berry.
95013 2006-11-08  Bruno Haible  <bruno@clisp.org>
95015         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95016         Suggested by Paul Eggert.
95018 2006-11-08  Jim Meyering  <jim@meyering.net>
95020         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95021         It's already included if !_LIBC.
95022         (fts_safe_changedir): Add a comment.
95024 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95026         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95027         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95028         Matthew Woehlke.
95030         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95031         definitions up, to avoid colliding with change below.
95032         (static_inline) [HAVE_INLINE]: New macro.
95033         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95034         Provide extern decls when !HAVE_INLINE.  Do not define unless
95035         static_inline is defined, either by us or by xmalloc.c.  Use
95036         static_inline rather than static inline.
95037         (XCALLOC): Optimize sizeof(T) = 1 case.
95038         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95040 2006-11-07  Bruno Haible  <bruno@clisp.org>
95042         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95043         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95044         AC_C_INLINE.
95045         * modules/xalloc (Files): Add m4/inline.m4.
95047 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95049         * README: Fix typo.
95050         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95051         (Miscellanous Notes): ...from this.
95053 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95055         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95056         Mention that offsetof should be used instead of sizeof.
95057         From Bruno Haible.
95059 2006-11-07  Bruno Haible  <bruno@clisp.org>
95061         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95063 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95065         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95066         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95067         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95068         (gl_tree_add_before, gl_tree_add_after):
95069         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95070         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95071         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95072         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95073         (gl_linked_add_after, gl_linked_add_at): Likewise.
95074         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95075         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95076         (gl_tree_add_before, gl_tree_add_after): Likewise.
95077         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95078         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95079         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95081 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95083         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95085 2006-11-06  Bruno Haible  <bruno@clisp.org>
95087         * m4/inline.m4: New file.
95088         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95089         * modules/list (Files): Add m4/inline.m4.
95090         * modules/oset (Files): Likewise.
95092 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95094         * lib/idcache.c: Include <stddef.h>, for offsetof.
95095         (struct userid.name): Change from char * to a flexible array member.
95096         All uses changed.
95097         * modules/idcache (Depends-on): Add flexmember.
95099         * MODULES.html.sh (Core language properties): New module flexmember.
95100         * modules/flexmember, m4/flexmember.m4: New files.
95102         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95103         inline functions that are identical with the old xnmalloc_inline,
95104         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95105         that we can avoid some unnecessary integer multiplications and
95106         divisions in the common case where the element size is known at
95107         compile time.
95108         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95109         needed.
95110         (xnboundedmalloc): Remove.
95111         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95112         arguments, for consistency with rest of this header.
95113         (xcharalloc): Rewrite using XNMALLOC.
95114         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95115         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95116         versions have been moved to lib/xalloc.h and renamed to be the
95117         non-*_inline versions.
95118         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95119         and xnrealloc functions, since those functions are now inline and
95120         now call us.
95121         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95122         renaming described above.
95123         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95124         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95125         captures the dependency in AC_C_INLINE.
95127         New module canonicalize-lgpl, proposed by Charles Wilson in
95128         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95129         with a few small changes afterwards.
95130         * MODULES.html.sh (File system functions): New module
95131         canonicalize-lgpl.
95132         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95133         and canonicalize_file_name.
95134         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95135         * modules/canonicalize-lgpl: New files.
95137 2006-11-05  Bruno Haible  <bruno@clisp.org>
95139         * gnulib-tool (func_import, func_create_testdir): Create directories
95140         also for files in subdirectories of lib/.
95142 2006-11-05  Bruno Haible  <bruno@clisp.org>
95144         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95145         ANSI C compliant.
95147 2006-11-03  Bruno Haible  <bruno@clisp.org>
95149         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95150         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95151         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95152         (xnboundedmalloc): New inline function.
95153         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95154         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95155         xmalloc.
95156         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95157         xmalloc.
95158         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95159         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95160         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95161         xmalloc.
95162         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95163         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95164         xmalloc.
95165         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95166         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95167         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95168         xmalloc.
95169         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95170         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95171         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95172         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95173         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95174         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95175         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95177 2006-11-03  Bruno Haible  <bruno@clisp.org>
95179         * lib/c-ctype.h [C++]: Define functions without name mangling.
95180         * lib/fwriteerror.h [C++]: Likewise.
95181         * lib/gcd.h [C++]: Likewise.
95182         * lib/linebreak.h [C++]: Likewise.
95184 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95186         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95187         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95188         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95190         Check for functions and headers just once.
95191         Check for declaration of canonicalize_file_name.
95192         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95194 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95196         * gnulib-tool (func_import): Fix typo in actioncmd.
95198 2006-11-02  Bruno Haible  <bruno@clisp.org>
95200         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95201         newline sequence in the Makefile.am snippet as a space, like "make"
95202         does.
95203         Reported by Roger Persson <perrog@gmail.com>.
95205 2006-11-01  Bruno Haible  <bruno@clisp.org>
95207         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95208         already declared in <string.h>.
95209         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95211 2006-11-01  Bruno Haible  <bruno@clisp.org>
95213         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95214         * lib/strcase.h: Include <string.h>.
95215         (strcasecmp): Define to rpl_strcasecmp here.
95217 2006-11-01  Bruno Haible  <bruno@clisp.org>
95219         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95221 2006-11-01  Eric Blake  <ebb9@byu.net>
95223         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95227 2006-10-29  Bruno Haible  <bruno@clisp.org>
95229         Make it compile in C++ mode.
95230         * lib/full-write.c (full_rw): Add a cast.
95232 2006-11-01  Bruno Haible  <bruno@clisp.org>
95234         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95235         be POSIX compliant.
95236         Reported by Roger Persson <perrog@gmail.com>.
95238 2006-11-01  Eric Blake  <ebb9@byu.net>
95240         * lib/getopt_.h: Fix comments.
95242 2006-10-31  Eric Blake  <ebb9@byu.net>
95244         * modules/tmpdir (Depends-on): Add sys_stat.
95245         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95246         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95247         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95248         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95249         tempname.
95251 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95253         Avoid some C++ diagnostics reported by Bruno Haible.
95254         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95255         xmalloc.
95256         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95257         (struct slotvec): Move to top level.
95258         (quotearg_n_options): Rewrite to avoid xmalloc.
95259         * lib/xalloc.h (xcharalloc): New function.
95260         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95261         [defined __cplusplus]: Add function template that provides result
95262         type propagation.  This part of the change is from Bruno Haible.
95264 2006-10-29  Bruno Haible  <bruno@clisp.org>
95266         Make it compile in C++ mode.
95267         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95268         * lib/strnlen1.c (strnlen1): Cast memchr result.
95269         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95270         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95271         (create_temp_dir): Rename local variable 'template'.
95272         (compile_csharp_using_sscli): Add cast.
95273         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95274         * lib/findprog.c (find_in_path): Likewise.
95275         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95276         * lib/wait-process.c (register_slave_subprocess): Likewise.
95278 2006-10-22  Bruno Haible  <bruno@clisp.org>
95280         * modules/tsearch: New file.
95281         * lib/tsearch.h: New file.
95282         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95283         * m4/tsearch.m4: New file.
95284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95286 2006-10-29  Eric Blake  <ebb9@byu.net>
95288         * lib/arcfour.c: Assume config.h.
95289         * lib/arctwo.c: Likewise.
95290         * lib/base64.c: Likewise.
95291         * lib/check-version.c: Likewise.
95292         * lib/crc.c: Likewise.
95293         * lib/des.c: Likewise.
95294         * lib/gc-gnulib.c: Likewise.
95295         * lib/gc-libgcrypt.c: Likewise.
95296         * lib/gc-pbkdf2-sha1.c: Likewise.
95297         * lib/getaddrinfo.c: Likewise.
95298         * lib/getdelim.c: Likewise.
95299         * lib/getline.c: Likewise.
95300         * lib/hmac-md5.c: Likewise.
95301         * lib/hmac-sha1.c: Likewise.
95302         * lib/iconvme.c: Likewise.
95303         * lib/md2.c: Likewise.
95304         * lib/md4.c: Likewise.
95305         * lib/memxor.c: Likewise.
95306         * lib/read-file.c: Likewise.
95307         * lib/readline.c: Likewise.
95308         * lib/rijndael-alg-fst.c: Likewise.
95309         * lib/rijndael-api-fst.c: Likewise.
95310         * lib/xgetdomainname.c: Likewise.
95312 2006-10-28  Eric Blake  <ebb9@byu.net>
95314         * lib/xstrndup.c: Assume config.h.
95316 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95318         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95319         stat-macros.h is now for our own macros, whereas stat_h is for
95320         macros in the <sys/stat.h> name space.
95321         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95322         (STAT_MACROS_H): Remove.
95323         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95324         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95325         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95326         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95327         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95328         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95329         Move these macros to ...
95330         * lib/stat_.h: here.  Don't include stat-macros.h.
95331         * lib/canonicalize.c: Don't include stat-macros.h.
95332         * lib/chown.c: Likewise.
95333         * lib/euidaccess.c: Likewise.
95334         * lib/file-type.c: Likewise.
95335         * lib/filemode.c: Likewise.
95336         * lib/glob.c: Likewise.
95337         * lib/isapipe.c: Likewise.
95338         * lib/lchown.c: Likewise.
95339         * lib/lstat.c: Likewise.
95340         * lib/mkdir-p.c: Likewise.
95341         * lib/rmdir.c: Likewise.
95342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95344         unless mkdir isn't declared, to speed up 'configure'.
95345         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95346         would define all the S_* symbols.
95347         * modules/canonicalize (Depends-on):
95348         Depend on sys_stat, not stat-macros.
95349         * modules/chown: Likewise.
95350         * modules/euidaccess: Likewise.
95351         * modules/filemode: Likewise.
95352         * modules/file-type: Likewise.
95353         * modules/glob: Likewise.
95354         * modules/isapipe: Likewise.
95355         * modules/lchown: Likewise.
95356         * modules/lstat: Likewise.
95357         * modules/mkancesdirs: Likewise.
95358         * modules/rmdir: Likewise.
95359         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95360         * modules/modechange: Likewise.
95361         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95362         (configure.ac): Remove gl_STAT_MACROS.
95363         * modules/sys_stat (Depends-on): Remove stat-macros.
95365 2006-10-27  Bruno Haible  <bruno@clisp.org>
95367         * m4/signed.m4: Remove file.
95368         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95369         invocation.
95370         * modules/vasnprintf (Files): Remove m4/signed.m4.
95372 2006-10-27  Bruno Haible  <bruno@clisp.org>
95374         Update to GNU gettext 0.16.
95375         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95376         m4/inttypes-h.m4, m4/signed.m4.
95377         * m4/gettext.m4: Update to GNU gettext 0.16.
95378         * m4/intl.m4: New file, from GNU gettext.
95379         * m4/intldir.m4: New file, from GNU gettext.
95380         * config/srclist.txt: Update
95382 2006-10-27  Eric Blake  <ebb9@byu.net>
95384         * MODULES.html.sh: Document tempname.
95385         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95386         dependencies.
95387         (Files): Move lib/tempname.c...
95388         * modules/tempname: ...to this new module.
95389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95390         (gl_PREREQ_TEMPNAME): Move...
95391         * m4/tempname.m4: ...to this new file.
95392         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95393         * modules/sys_stat (Depends-on): Add stat-macros.
95394         * lib/stat_.h (includes): Pick up stat macros.
95395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95396         if stat macros are broken.
95397         * lib/tempname.c (includes): No need to include "stat-macros.h".
95398         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95399         (direxists, __path_search) [!_LIBC]: Don't compile these in
95400         gnulib; the tmpdir module covers that.
95401         * lib/tempname.h: New file.
95403 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95405         * COPYING: Explain how gnulib-tool converts licence headers.
95406         Almost all wording by Eric Blake.
95408 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95410         * lib/mbchar.h (is_basic_table): Make read-only.
95411         * lib/mbchar.c (is_basic_table): Likewise.
95412         Reported by John Darrington.
95414 2006-10-25  Bruno Haible  <bruno@clisp.org>
95416         * lib/progname.h (set_program_name): Undefine before defining.
95418 2006-10-25  Bruno Haible  <bruno@clisp.org>
95420         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95421         false for non-gcc C++ compilers.
95422         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95424 2006-10-24  Bruno Haible  <bruno@clisp.org>
95426         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95427         iconv implementations like Irix iconv.
95429 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95431         * modules/vararrays: New file.
95432         * m4/vararrays.m4: New file, taken from diffutils.
95433         * MODULES.html.sh: New module vararrays.
95435 2006-10-24  Karl Berry  <karl@gnu.org>
95437         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95438         Don't call GNU Unix.
95440 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95442         * users.txt: Add Libtool.
95444         Sync from Libtool:
95446         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95448         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95449         to gnulib's policy of including config.h unconditionally.
95451 2006-10-24  Bruno Haible  <bruno@clisp.org>
95453         * modules/wcwidth (Files): Add m4/wint_t.m4.
95454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95455         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95457 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95459         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95460         to pacify GCC with some -W flags enabled.  Problem reported by
95461         Bruno Haible.
95463 2006-10-24  Jim Meyering  <jim@meyering.net>
95465         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95466         Reported by Karl Berry.
95468 2006-10-23  Bruno Haible  <bruno@clisp.org>
95470         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95472 2006-10-24  Bruno Haible  <bruno@clisp.org>
95474         * lib/gl_list.h: Use C comment style, not C++ comment style.
95476 2006-10-23  Eric Blake  <ebb9@byu.net>
95478         * lib/getaddrinfo.c (includes): Add missing include.
95480 2006-10-23  Bruno Haible  <bruno@clisp.org>
95481             Paul Eggert  <eggert@cs.ucla.edu>
95483         Ability to rename obstack_free.
95484         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95485         obstack_free.
95486         (obstack_free): Invoke the __obstack_free macro.
95487         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95489 2006-10-23  Bruno Haible  <bruno@clisp.org>
95490             Paul Eggert  <eggert@cs.ucla.edu>
95492         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95493         __argc, __argv from the declaration. (They are defined as macros on
95494         mingw.)
95496 2006-10-22  Bruno Haible  <bruno@clisp.org>
95498         * doc/gnulib-intro.texi: New file.
95499         * doc/gnulib.texi: Include it.
95501 2006-10-21  Bruno Haible  <bruno@clisp.org>
95503         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95504         "Introduction", "Miscellanous Notes", "Particular Modules".
95506 2006-10-21  Bruno Haible  <bruno@clisp.org>
95508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95509         Change mostlyclean-local rule to avoid sh syntax error from bash
95510         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95512 2006-10-23  Jim Meyering  <jim@meyering.net>
95514         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95515         in place of snprintf.
95517         * modules/inttostr (Files): Add lib/uinttostr.c.
95518         * lib/uinttostr.c (inttostr): New file/function.
95519         * lib/inttostr.h (uinttostr): Declare.
95520         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95521         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95522         Add uinttostr.
95523         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95525 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95527         * lib/canonicalize.c (ELOOP): Define if not already defined.
95528         Problem reported by Bruno Haible in
95529         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95531 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95533         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95534         Problem reported by Perry Smith and Ville Laurikari.
95536         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95537         uses.
95539 2006-10-19  Bruno Haible  <bruno@clisp.org>
95541         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95542         for mingw.
95544 2006-10-19  Bruno Haible  <bruno@clisp.org>
95546         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95547         Needed for mingw.
95549 2006-10-19  Bruno Haible  <bruno@clisp.org>
95551         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95553 2006-10-19  Bruno Haible  <bruno@clisp.org>
95555         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95556         it.
95558 2006-10-19  Bruno Haible  <bruno@clisp.org>
95560         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95561         invocation.
95563 2006-10-19  Bruno Haible  <bruno@clisp.org>
95565         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95566         mountlist by default.
95568 2006-10-16  Bruno Haible  <bruno@clisp.org>
95570         * lib/c-strstr.c: Include c-strstr.h.
95572 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95574         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95575         in a slash.
95577 2006-10-18  Bruno Haible  <bruno@clisp.org>
95579         * lib/lock.h [C++]: Wrap definitions in extern "C".
95581 2006-10-18  Bruno Haible  <bruno@clisp.org>
95583         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95584         gl_LIBOBJS list.
95586 2006-10-18  Bruno Haible  <bruno@clisp.org>
95588         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95590 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95592         * lib/xstrtol.h: Include gettext.h.
95593         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95594         Problem reported by Eric Blake.
95595         * modules/xstrtol (Depends-on): Add gettext-h.
95597 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95599         * lib/strftime.c (advance): New macro.
95600         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95601         incomplete type, so you can't add 0 to it.  Problem and patch
95602         reported by Eelco Dolstra for dietlibc.
95604 2006-10-18  Jim Meyering  <jim@meyering.net>
95606         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95607         type for a local, and rename it: s/up/user_proc/.
95609 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95611         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95612         READ_UTMP_USER_PROCESS.
95613         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95615 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95617         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95618         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95620 2006-10-17  Eric Blake  <ebb9@byu.net>
95622         * lib/sigprocmask.c (sigprocmask): Fix typo.
95624         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95626         * modules/clean-temp (Makefile.am): Don't add to make output...
95627         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95628         config.h.
95630 2006-10-17  Bruno Haible  <bruno@clisp.org>
95632         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95633         differently if DEFAULT_TEXT_DOMAIN is set.
95635 2006-10-16  Bruno Haible  <bruno@clisp.org>
95637         * lib/clean-temp.c: Include fwriteerror.h.
95639 2006-10-16  Bruno Haible  <bruno@clisp.org>
95641         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95643 2006-10-16  Bruno Haible  <bruno@clisp.org>
95645         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95646         * lib/sigprocmask.h: Include <sys/types.h>.
95647         (sigset_t): Use the system's definition if present.
95649 2006-10-17  Eric Blake  <ebb9@byu.net>
95651         * lib/xvasprintf.c (includes): Assume config.h.
95652         * lib/xasprintf.c (includes): Likewise.
95654 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95656         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95657         at least as wide as intmax_t.
95659 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95661         (Imported from Automake.)
95662         * build-aux/gnupload: Update to version 1.1 of directive file.
95664 2006-10-16  Eric Blake  <ebb9@byu.net>
95666         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95667         match Automake 1.10a.
95669 2006-10-14  Bruno Haible  <bruno@clisp.org>
95671         * modules/sigprocmask: New file.
95672         * lib/sigprocmask.h: New file.
95673         * lib/sigprocmask.c: New file.
95674         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95675         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95676         request sigprocmask.o.
95677         (gl_PREREQ_SIGPROCMASK): New macro.
95678         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95679         (Depends-on): Add sigprocmask.
95680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95681         gt_SIGNALBLOCKING. Test for 'raise' only once.
95682         * lib/fatal-signal.c: Include sigprocmask.h.
95683         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95684         unblock_fatal_signals): Define always.
95685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95686         sigprocmask.
95688 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95690         Sync from Automake.
95691         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95692         which incorrectly sets the mode of an existing destination
95693         directory.  In some cases the unpatched install-sh could do the
95694         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95695         system.  We hope this is rare in practice, but it's clearly worth
95696         fixing.  Problem reported by Alex Unleashed in
95697         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95698         Also, don't bother to check for -m bugs unless we're using -m;
95699         suggested by Stepan Kasal.
95701 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95703         Sync from Automake.
95704         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95705         `-c' flag, so they appear at the same position as in %FASTDEP%
95706         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95707         which ignores unknown options only after the first non-option.
95708         Bug report against M4 by Nelson H. F. Beebe.
95710 2006-10-13  Jim Meyering  <jim@meyering.net>
95712         Fix a bug in yesterday's change.
95713         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95714         p->fts_statp->st_dev would be used uninitialized.
95715         Ensures that we always call fts_stat on the very first entry.
95716         Miklos Szeredi reported that find -xdev stopped working.
95718 2006-10-12  Bruno Haible  <bruno@clisp.org>
95720         * gnulib-tool (func_get_automake_snippet): Append an automatically
95721         computed EXTRA_DIST augmentation.
95722         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95723         * modules/alloca-opt (Makefile.am): Likewise.
95724         * modules/allocsa (Makefile.am): Likewise.
95725         * modules/arcfour (Makefile.am): Likewise.
95726         * modules/arctwo (Makefile.am): Likewise.
95727         * modules/argmatch (Makefile.am): Likewise.
95728         * modules/argz (Makefile.am): Likewise.
95729         * modules/atexit (Makefile.am): Likewise.
95730         * modules/backupfile (Makefile.am): Likewise.
95731         * modules/byteswap (Makefile.am): Likewise.
95732         * modules/c-strtod (Makefile.am): Likewise.
95733         * modules/c-strtold (Makefile.am): Likewise.
95734         * modules/calloc (Makefile.am): Likewise.
95735         * modules/canon-host (Makefile.am): Likewise.
95736         * modules/canonicalize (Makefile.am): Likewise.
95737         * modules/chdir-long (Makefile.am): Likewise.
95738         * modules/chdir-safer (Makefile.am): Likewise.
95739         * modules/check-version (Makefile.am): Likewise.
95740         * modules/chown (Makefile.am): Likewise.
95741         * modules/cloexec (Makefile.am): Likewise.
95742         * modules/close-stream (Makefile.am): Likewise.
95743         * modules/closeout (Makefile.am): Likewise.
95744         * modules/crc (Makefile.am): Likewise.
95745         * modules/csharpexec (Makefile.am): Likewise.
95746         * modules/cycle-check (Makefile.am): Likewise.
95747         * modules/des (Makefile.am): Likewise.
95748         * modules/dev-ino (Makefile.am): Likewise.
95749         * modules/dirfd (Makefile.am): Likewise.
95750         * modules/dirname (Makefile.am): Likewise.
95751         * modules/dup2 (Makefile.am): Likewise.
95752         * modules/eealloc (Makefile.am): Likewise.
95753         * modules/error (Makefile.am): Likewise.
95754         * modules/euidaccess (Makefile.am): Likewise.
95755         * modules/exclude (Makefile.am): Likewise.
95756         * modules/exitfail (Makefile.am): Likewise.
95757         * modules/fcntl-safer (Makefile.am): Likewise.
95758         * modules/fcntl (Makefile.am): Likewise.
95759         * modules/file-type (Makefile.am): Likewise.
95760         * modules/fileblocks (Makefile.am): Likewise.
95761         * modules/filemode (Makefile.am): Likewise.
95762         * modules/filenamecat (Makefile.am): Likewise.
95763         * modules/fnmatch (Makefile.am): Likewise.
95764         * modules/fopen-safer (Makefile.am): Likewise.
95765         * modules/fpending (Makefile.am): Likewise.
95766         * modules/fprintftime (Makefile.am): Likewise.
95767         * modules/free (Makefile.am): Likewise.
95768         * modules/fsusage (Makefile.am): Likewise.
95769         * modules/ftruncate (Makefile.am): Likewise.
95770         * modules/fts (Makefile.am): Likewise.
95771         * modules/gc-arcfour (Makefile.am): Likewise.
95772         * modules/gc-des (Makefile.am): Likewise.
95773         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95774         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95775         * modules/gc-md4 (Makefile.am): Likewise.
95776         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95777         * modules/gc-sha1 (Makefile.am): Likewise.
95778         * modules/gc (Makefile.am): Likewise.
95779         * modules/getaddrinfo (Makefile.am): Likewise.
95780         * modules/getcwd (Makefile.am): Likewise.
95781         * modules/getdelim (Makefile.am): Likewise.
95782         * modules/getdomainname (Makefile.am): Likewise.
95783         * modules/getgroups (Makefile.am): Likewise.
95784         * modules/gethostname (Makefile.am): Likewise.
95785         * modules/gethrxtime (Makefile.am): Likewise.
95786         * modules/getline (Makefile.am): Likewise.
95787         * modules/getloadavg (Makefile.am): Likewise.
95788         * modules/getlogin_r (Makefile.am): Likewise.
95789         * modules/getndelim2 (Makefile.am): Likewise.
95790         * modules/getopt (Makefile.am): Likewise.
95791         * modules/getpagesize (Makefile.am): Likewise.
95792         * modules/getpass-gnu (Makefile.am): Likewise.
95793         * modules/getpass (Makefile.am): Likewise.
95794         * modules/getsubopt (Makefile.am): Likewise.
95795         * modules/gettime (Makefile.am): Likewise.
95796         * modules/gettimeofday (Makefile.am): Likewise.
95797         * modules/getugroups (Makefile.am): Likewise.
95798         * modules/getusershell (Makefile.am): Likewise.
95799         * modules/glob (Makefile.am): Likewise.
95800         * modules/group-member (Makefile.am): Likewise.
95801         * modules/hard-locale (Makefile.am): Likewise.
95802         * modules/hash (Makefile.am): Likewise.
95803         * modules/hmac-md5 (Makefile.am): Likewise.
95804         * modules/hmac-sha1 (Makefile.am): Likewise.
95805         * modules/human (Makefile.am): Likewise.
95806         * modules/idcache (Makefile.am): Likewise.
95807         * modules/imaxabs (Makefile.am): Likewise.
95808         * modules/imaxdiv (Makefile.am): Likewise.
95809         * modules/inet_ntop (Makefile.am): Likewise.
95810         * modules/inet_pton (Makefile.am): Likewise.
95811         * modules/intprops (Makefile.am): Likewise.
95812         * modules/inttostr (Makefile.am): Likewise.
95813         * modules/inttypes (Makefile.am): Likewise.
95814         * modules/isapipe (Makefile.am): Likewise.
95815         * modules/javaversion (Makefile.am): Likewise.
95816         * modules/lchmod (Makefile.am): Likewise.
95817         * modules/lchown (Makefile.am): Likewise.
95818         * modules/localcharset (Makefile.am): Likewise.
95819         * modules/long-options (Makefile.am): Likewise.
95820         * modules/lstat (Makefile.am): Likewise.
95821         * modules/malloc (Makefile.am): Likewise.
95822         * modules/mathl (Makefile.am): Likewise.
95823         * modules/mbchar (Makefile.am): Likewise.
95824         * modules/md2 (Makefile.am): Likewise.
95825         * modules/md4 (Makefile.am): Likewise.
95826         * modules/md5 (Makefile.am): Likewise.
95827         * modules/memcasecmp (Makefile.am): Likewise.
95828         * modules/memchr (Makefile.am): Likewise.
95829         * modules/memcmp (Makefile.am): Likewise.
95830         * modules/memcoll (Makefile.am): Likewise.
95831         * modules/memcpy (Makefile.am): Likewise.
95832         * modules/memmem (Makefile.am): Likewise.
95833         * modules/memmove (Makefile.am): Likewise.
95834         * modules/mempcpy (Makefile.am): Likewise.
95835         * modules/memrchr (Makefile.am): Likewise.
95836         * modules/memset (Makefile.am): Likewise.
95837         * modules/memxor (Makefile.am): Likewise.
95838         * modules/mkancesdirs (Makefile.am): Likewise.
95839         * modules/mkdir-p (Makefile.am): Likewise.
95840         * modules/mkdir (Makefile.am): Likewise.
95841         * modules/mkdtemp (Makefile.am): Likewise.
95842         * modules/mkstemp (Makefile.am): Likewise.
95843         * modules/mktime (Makefile.am): Likewise.
95844         * modules/modechange (Makefile.am): Likewise.
95845         * modules/mountlist (Makefile.am): Likewise.
95846         * modules/nanosleep (Makefile.am): Likewise.
95847         * modules/obstack (Makefile.am): Likewise.
95848         * modules/openat (Makefile.am): Likewise.
95849         * modules/pagealign_alloc (Makefile.am): Likewise.
95850         * modules/pathmax (Makefile.am): Likewise.
95851         * modules/physmem (Makefile.am): Likewise.
95852         * modules/poll (Makefile.am): Likewise.
95853         * modules/posixtm (Makefile.am): Likewise.
95854         * modules/posixver (Makefile.am): Likewise.
95855         * modules/putenv (Makefile.am): Likewise.
95856         * modules/quote (Makefile.am): Likewise.
95857         * modules/quotearg (Makefile.am): Likewise.
95858         * modules/raise (Makefile.am): Likewise.
95859         * modules/read-file (Makefile.am): Likewise.
95860         * modules/readline (Makefile.am): Likewise.
95861         * modules/readlink (Makefile.am): Likewise.
95862         * modules/readtokens (Makefile.am): Likewise.
95863         * modules/readutmp (Makefile.am): Likewise.
95864         * modules/realloc (Makefile.am): Likewise.
95865         * modules/regex (Makefile.am): Likewise.
95866         * modules/rename-dest-slash (Makefile.am): Likewise.
95867         * modules/rename (Makefile.am): Likewise.
95868         * modules/rijndael (Makefile.am): Likewise.
95869         * modules/rmdir (Makefile.am): Likewise.
95870         * modules/rpmatch (Makefile.am): Likewise.
95871         * modules/safe-read (Makefile.am): Likewise.
95872         * modules/safe-write (Makefile.am): Likewise.
95873         * modules/same-inode (Makefile.am): Likewise.
95874         * modules/same (Makefile.am): Likewise.
95875         * modules/save-cwd (Makefile.am): Likewise.
95876         * modules/savedir (Makefile.am): Likewise.
95877         * modules/setenv (Makefile.am): Likewise.
95878         * modules/settime (Makefile.am): Likewise.
95879         * modules/sha1 (Makefile.am): Likewise.
95880         * modules/sig2str (Makefile.am): Likewise.
95881         * modules/snprintf (Makefile.am): Likewise.
95882         * modules/stat-macros (Makefile.am): Likewise.
95883         * modules/stat-time (Makefile.am): Likewise.
95884         * modules/stdbool (Makefile.am): Likewise.
95885         * modules/stdint (Makefile.am): Likewise.
95886         * modules/stdlib-safer (Makefile.am): Likewise.
95887         * modules/stpcpy (Makefile.am): Likewise.
95888         * modules/stpncpy (Makefile.am): Likewise.
95889         * modules/strcase (Makefile.am): Likewise.
95890         * modules/strcasestr (Makefile.am): Likewise.
95891         * modules/strchrnul (Makefile.am): Likewise.
95892         * modules/strcspn (Makefile.am): Likewise.
95893         * modules/strdup (Makefile.am): Likewise.
95894         * modules/strerror (Makefile.am): Likewise.
95895         * modules/strftime (Makefile.am): Likewise.
95896         * modules/strndup (Makefile.am): Likewise.
95897         * modules/strnlen (Makefile.am): Likewise.
95898         * modules/strpbrk (Makefile.am): Likewise.
95899         * modules/strsep (Makefile.am): Likewise.
95900         * modules/strstr (Makefile.am): Likewise.
95901         * modules/strtod (Makefile.am): Likewise.
95902         * modules/strtoimax (Makefile.am): Likewise.
95903         * modules/strtok_r (Makefile.am): Likewise.
95904         * modules/strtol (Makefile.am): Likewise.
95905         * modules/strtoll (Makefile.am): Likewise.
95906         * modules/strtoul (Makefile.am): Likewise.
95907         * modules/strtoull (Makefile.am): Likewise.
95908         * modules/strtoumax (Makefile.am): Likewise.
95909         * modules/strverscmp (Makefile.am): Likewise.
95910         * modules/sys_socket (Makefile.am): Likewise.
95911         * modules/sys_stat (Makefile.am): Likewise.
95912         * modules/sysexits (Makefile.am): Likewise.
95913         * modules/time_r (Makefile.am): Likewise.
95914         * modules/timegm (Makefile.am): Likewise.
95915         * modules/timespec (Makefile.am): Likewise.
95916         * modules/tmpfile-safer (Makefile.am): Likewise.
95917         * modules/trim (Makefile.am): Likewise.
95918         * modules/unistd-safer (Makefile.am): Likewise.
95919         * modules/unlinkdir (Makefile.am): Likewise.
95920         * modules/unlocked-io (Makefile.am): Likewise.
95921         * modules/userspec (Makefile.am): Likewise.
95922         * modules/utime (Makefile.am): Likewise.
95923         * modules/utimecmp (Makefile.am): Likewise.
95924         * modules/utimens (Makefile.am): Likewise.
95925         * modules/vasnprintf (Makefile.am): Likewise.
95926         * modules/vasprintf (Makefile.am): Likewise.
95927         * modules/vsnprintf (Makefile.am): Likewise.
95928         * modules/xalloc (Makefile.am): Likewise.
95929         * modules/xgetcwd (Makefile.am): Likewise.
95930         * modules/xnanosleep (Makefile.am): Likewise.
95931         * modules/xreadlink (Makefile.am): Likewise.
95932         * modules/xstrtod (Makefile.am): Likewise.
95933         * modules/xstrtol (Makefile.am): Likewise.
95934         * modules/xstrtold (Makefile.am): Likewise.
95935         * modules/yesno (Makefile.am): Likewise.
95936         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
95938 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95940         * modules/error (Makefile.am): Distribute files through
95941         EXTRA_DIST, not lib_SOURCES.
95943 2006-10-12  Eric Blake  <ebb9@byu.net>
95945         * modules/error (Makefile.am): Distribute files in /lib.
95946         * modules/obstack (Makefile.am): Likewise.
95948 2006-10-12  Bruno Haible  <bruno@clisp.org>
95950         * modules/acl (Makefile.am): Distribute all files in lib/ through
95951         EXTRA_DIST.
95952         * modules/arcfour (Makefile.am): Likewise.
95953         * modules/arctwo (Makefile.am): Likewise.
95954         * modules/argmatch (Makefile.am): Likewise.
95955         * modules/argz (Makefile.am): Likewise.
95956         * modules/atexit (Makefile.am): Likewise.
95957         * modules/backupfile (Makefile.am): Likewise.
95958         * modules/c-strtod (Makefile.am): Likewise.
95959         * modules/c-strtold (Makefile.am): Likewise.
95960         * modules/calloc (Makefile.am): Likewise.
95961         * modules/canon-host (Makefile.am): Likewise.
95962         * modules/canonicalize (Makefile.am): Likewise.
95963         * modules/chdir-long (Makefile.am): Likewise.
95964         * modules/chdir-safer (Makefile.am): Likewise.
95965         * modules/check-version (Makefile.am): Likewise.
95966         * modules/chown (Makefile.am): Likewise.
95967         * modules/cloexec (Makefile.am): Likewise.
95968         * modules/close-stream (Makefile.am): Likewise.
95969         * modules/closeout (Makefile.am): Likewise.
95970         * modules/crc (Makefile.am): Likewise.
95971         * modules/cycle-check (Makefile.am): Likewise.
95972         * modules/des (Makefile.am): Likewise.
95973         * modules/dirfd (Makefile.am): Likewise.
95974         * modules/dirname (Makefile.am): Likewise.
95975         * modules/dup2 (Makefile.am): Likewise.
95976         * modules/euidaccess (Makefile.am): Likewise.
95977         * modules/exclude (Makefile.am): Likewise.
95978         * modules/exitfail (Makefile.am): Likewise.
95979         * modules/fcntl-safer (Makefile.am): Likewise.
95980         * modules/file-type (Makefile.am): Likewise.
95981         * modules/fileblocks (Makefile.am): Likewise.
95982         * modules/filemode (Makefile.am): Likewise.
95983         * modules/filenamecat (Makefile.am): Likewise.
95984         * modules/fnmatch (Makefile.am): Likewise.
95985         * modules/fopen-safer (Makefile.am): Likewise.
95986         * modules/fpending (Makefile.am): Likewise.
95987         * modules/fprintftime (Makefile.am): Likewise.
95988         * modules/free (Makefile.am): Likewise.
95989         * modules/fsusage (Makefile.am): Likewise.
95990         * modules/ftruncate (Makefile.am): Likewise.
95991         * modules/fts (Makefile.am): Likewise.
95992         * modules/gc (Makefile.am): Likewise.
95993         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95994         * modules/getaddrinfo (Makefile.am): Likewise.
95995         * modules/getcwd (Makefile.am): Likewise.
95996         * modules/getdelim (Makefile.am): Likewise.
95997         * modules/getdomainname (Makefile.am): Likewise.
95998         * modules/getgroups (Makefile.am): Likewise.
95999         * modules/gethostname (Makefile.am): Likewise.
96000         * modules/gethrxtime (Makefile.am): Likewise.
96001         * modules/getline (Makefile.am): Likewise.
96002         * modules/getloadavg (Makefile.am): Likewise.
96003         * modules/getlogin_r (Makefile.am): Likewise.
96004         * modules/getopt (Makefile.am): Likewise.
96005         * modules/getpass (Makefile.am): Likewise.
96006         * modules/getpass-gnu (Makefile.am): Likewise.
96007         * modules/getsubopt (Makefile.am): Likewise.
96008         * modules/gettime (Makefile.am): Likewise.
96009         * modules/gettimeofday (Makefile.am): Likewise.
96010         * modules/getugroups (Makefile.am): Likewise.
96011         * modules/getusershell (Makefile.am): Likewise.
96012         * modules/glob (Makefile.am): Likewise.
96013         * modules/group-member (Makefile.am): Likewise.
96014         * modules/hard-locale (Makefile.am): Likewise.
96015         * modules/hash (Makefile.am): Likewise.
96016         * modules/hmac-md5 (Makefile.am): Likewise.
96017         * modules/hmac-sha1 (Makefile.am): Likewise.
96018         * modules/human (Makefile.am): Likewise.
96019         * modules/idcache (Makefile.am): Likewise.
96020         * modules/imaxabs (Makefile.am): Likewise.
96021         * modules/imaxdiv (Makefile.am): Likewise.
96022         * modules/inet_ntop (Makefile.am): Likewise.
96023         * modules/inet_pton (Makefile.am): Likewise.
96024         * modules/inttostr (Makefile.am): Likewise.
96025         * modules/isapipe (Makefile.am): Likewise.
96026         * modules/lchown (Makefile.am): Likewise.
96027         * modules/long-options (Makefile.am): Likewise.
96028         * modules/lstat (Makefile.am): Likewise.
96029         * modules/malloc (Makefile.am): Likewise.
96030         * modules/mathl (Makefile.am): Likewise.
96031         * modules/mbchar (Makefile.am): Likewise.
96032         * modules/md2 (Makefile.am): Likewise.
96033         * modules/md4 (Makefile.am): Likewise.
96034         * modules/md5 (Makefile.am): Likewise.
96035         * modules/memcasecmp (Makefile.am): Likewise.
96036         * modules/memchr (Makefile.am): Likewise.
96037         * modules/memcmp (Makefile.am): Likewise.
96038         * modules/memcoll (Makefile.am): Likewise.
96039         * modules/memcpy (Makefile.am): Likewise.
96040         * modules/memmem (Makefile.am): Likewise.
96041         * modules/memmove (Makefile.am): Likewise.
96042         * modules/mempcpy (Makefile.am): Likewise.
96043         * modules/memrchr (Makefile.am): Likewise.
96044         * modules/memset (Makefile.am): Likewise.
96045         * modules/memxor (Makefile.am): Likewise.
96046         * modules/mkancesdirs (Makefile.am): Likewise.
96047         * modules/mkdir (Makefile.am): Likewise.
96048         * modules/mkdir-p (Makefile.am): Likewise.
96049         * modules/mkdtemp (Makefile.am): Likewise.
96050         * modules/mkstemp (Makefile.am): Likewise.
96051         * modules/mktime (Makefile.am): Likewise.
96052         * modules/modechange (Makefile.am): Likewise.
96053         * modules/mountlist (Makefile.am): Likewise.
96054         * modules/nanosleep (Makefile.am): Likewise.
96055         * modules/openat (Makefile.am): Likewise.
96056         * modules/pagealign_alloc (Makefile.am): Likewise.
96057         * modules/physmem (Makefile.am): Likewise.
96058         * modules/poll (Makefile.am): Likewise.
96059         * modules/posixtm (Makefile.am): Likewise.
96060         * modules/posixver (Makefile.am): Likewise.
96061         * modules/putenv (Makefile.am): Likewise.
96062         * modules/quote (Makefile.am): Likewise.
96063         * modules/quotearg (Makefile.am): Likewise.
96064         * modules/raise (Makefile.am): Likewise.
96065         * modules/read-file (Makefile.am): Likewise.
96066         * modules/readline (Makefile.am): Likewise.
96067         * modules/readlink (Makefile.am): Likewise.
96068         * modules/readtokens (Makefile.am): Likewise.
96069         * modules/readutmp (Makefile.am): Likewise.
96070         * modules/realloc (Makefile.am): Likewise.
96071         * modules/regex (Makefile.am): Likewise.
96072         * modules/rename (Makefile.am): Likewise.
96073         * modules/rename-dest-slash (Makefile.am): Likewise.
96074         * modules/rijndael (Makefile.am): Likewise.
96075         * modules/rmdir (Makefile.am): Likewise.
96076         * modules/rpmatch (Makefile.am): Likewise.
96077         * modules/safe-read (Makefile.am): Likewise.
96078         * modules/safe-write (Makefile.am): Likewise.
96079         * modules/same (Makefile.am): Likewise.
96080         * modules/save-cwd (Makefile.am): Likewise.
96081         * modules/savedir (Makefile.am): Likewise.
96082         * modules/setenv (Makefile.am): Likewise.
96083         * modules/settime (Makefile.am): Likewise.
96084         * modules/sha1 (Makefile.am): Likewise.
96085         * modules/sig2str (Makefile.am): Likewise.
96086         * modules/snprintf (Makefile.am): Likewise.
96087         * modules/stdlib-safer (Makefile.am): Likewise.
96088         * modules/stpcpy (Makefile.am): Likewise.
96089         * modules/stpncpy (Makefile.am): Likewise.
96090         * modules/strcase (Makefile.am): Likewise.
96091         * modules/strcasestr (Makefile.am): Likewise.
96092         * modules/strchrnul (Makefile.am): Likewise.
96093         * modules/strcspn (Makefile.am): Likewise.
96094         * modules/strdup (Makefile.am): Likewise.
96095         * modules/strerror (Makefile.am): Likewise.
96096         * modules/strftime (Makefile.am): Likewise.
96097         * modules/strndup (Makefile.am): Likewise.
96098         * modules/strnlen (Makefile.am): Likewise.
96099         * modules/strpbrk (Makefile.am): Likewise.
96100         * modules/strsep (Makefile.am): Likewise.
96101         * modules/strstr (Makefile.am): Likewise.
96102         * modules/strtod (Makefile.am): Likewise.
96103         * modules/strtoimax (Makefile.am): Likewise.
96104         * modules/strtok_r (Makefile.am): Likewise.
96105         * modules/strtol (Makefile.am): Likewise.
96106         * modules/strtoll (Makefile.am): Likewise.
96107         * modules/strtoul (Makefile.am): Likewise.
96108         * modules/strtoull (Makefile.am): Likewise.
96109         * modules/strtoumax (Makefile.am): Likewise.
96110         * modules/strverscmp (Makefile.am): Likewise.
96111         * modules/time_r (Makefile.am): Likewise.
96112         * modules/timegm (Makefile.am): Likewise.
96113         * modules/tmpfile-safer (Makefile.am): Likewise.
96114         * modules/unistd-safer (Makefile.am): Likewise.
96115         * modules/unlinkdir (Makefile.am): Likewise.
96116         * modules/userspec (Makefile.am): Likewise.
96117         * modules/utime (Makefile.am): Likewise.
96118         * modules/utimecmp (Makefile.am): Likewise.
96119         * modules/utimens (Makefile.am): Likewise.
96120         * modules/vasnprintf (Makefile.am): Likewise.
96121         * modules/vasprintf (Makefile.am): Likewise.
96122         * modules/vsnprintf (Makefile.am): Likewise.
96123         * modules/xalloc (Makefile.am): Likewise.
96124         * modules/xgetcwd (Makefile.am): Likewise.
96125         * modules/xnanosleep (Makefile.am): Likewise.
96126         * modules/xreadlink (Makefile.am): Likewise.
96127         * modules/xstrtod (Makefile.am): Likewise.
96128         * modules/xstrtol (Makefile.am): Likewise.
96129         * modules/xstrtold (Makefile.am): Likewise.
96130         * modules/yesno (Makefile.am): Likewise.
96132 2006-10-12  Jim Meyering  <jim@meyering.net>
96134         * m4/getloadavg.m4: Revert the change below.
96136         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96137         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96138         fail with a symlink, which is what coreutils' ./bootstrap now
96139         creates by default.
96141 2006-10-12  Bruno Haible  <bruno@clisp.org>
96143         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96144         mingw.
96145         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96146         MSVC and mingw explicitly.
96148 2006-10-11  Simon Josefsson  <jas@extundo.com>
96149             Bruno Haible  <bruno@clisp.org>
96151         Add support for multiple gnulib-tool invocations in the scope of a
96152         single configure.ac file.
96153         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96154         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96155         with the same contents as the _LIBADD variable.
96156         (func_emit_initmacro_start, func_emit_initmacro_end,
96157         func_emit_initmacro_done): New functions.
96158         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96159         gl_LIBOBJS and gl_LTLIBOBJS.
96161 2006-10-11  Bruno Haible  <bruno@clisp.org>
96163         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96164         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96165         autoreconf. Instead, invoke autopoint explicitly but move back the
96166         *.m4 files from gnulib.
96168 2006-10-11  Bruno Haible  <bruno@clisp.org>
96170         * gnulib-tool (func_usage): Make module names after --create-testdir
96171         optional.
96172         (func_create_testdir): If no module was specified, use nearly all
96173         modules.
96175 2006-10-12  Jim Meyering  <jim@meyering.net>
96177         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96178         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96179         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96180         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96181         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96182         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96183         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96184         (fts_set_stat_required): New function.
96185         (fts_open): Defer the calls to fts_stat, if possible or requested.
96186         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96187         into fts_stat itself.
96188         (fts_read): Perform any required (deferred) fts_stat call.
96189         (fts_build): Likewise, for the directory we're about to open and read.
96190         In the readdir loop, carefully decide whether each entry will require
96191         an eventual call to fts_stat, using dirent.d_type info if available.
96192         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96193         a command line argument into this function.  Update all callers.
96194         Map a return value of FTS_DOT to FTS_D for a command line argument.
96195         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96196         Thanks to Miklos Szeredi for his tenacity and for the initial
96197         bug report about "find" failing on a FUSE-based file system.
96199         * lib/fts.c (fts_open): Use consistent indentation.
96201 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96203         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96204         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96205         reported by Jim Meyering.  All uses of cache variables renamed
96206         to match Autoconf's.
96207         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96208         the other one.
96210         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96211         Fix misspelling in diagnostic.
96213 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96215         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96216         defined.  Problem reported by Matthew Woehlke.
96218         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96219         Add support for Tandem NonStop R series.
96220         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96221         Use new macro.
96223         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96224         (has_trailing_slash): Omit size arg; all callers changed.
96225         Omit 'inline', since it doesn't help performance and we'd
96226         need to configure it.
96227         Don't count //, ///, etc. as having a trailing slash.
96228         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96229         (rpl_rename_dest_slash): On failure, use rename's errno rather
96230         than (in some cases) an incorrect or junk errno.
96231         Simplify code by removing need to compute length; this does
96232         cause it to make two passes instead of one over the file name,
96233         but it's worth it.
96235         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96236         change, since Autoconf's version may no longer be appropriate now
96237         that we are using CVS Autoconf's version.  Add support for Tandem.
96239 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96240             Bruno Haible  <bruno@clisp.org>
96242         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96243         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96244         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96245         gl_AC_TYPE_LONG_LONG.
96247         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96248         instead of HAVE_LONG_LONG.
96249         * lib/printf-args.c (printf_fetchargs): Likewise.
96250         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96251         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96252         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96253         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96254         gl_AC_TYPE_LONG_LONG.
96256 2006-10-11  Bruno Haible  <bruno@clisp.org>
96258         * m4/longlong.m4: Add comments.
96259         * m4/ulonglong.m4: Likewise.
96261 2006-10-10  Bruno Haible  <bruno@clisp.org>
96263         Make it possible to #define stpcpy, strdup to aliases.
96264         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96265         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96267 2006-10-10  Bruno Haible  <bruno@clisp.org>
96269         Make it possible to #define gcd to an alias.
96270         * lib/gcd.c: Include config.h.
96272 2006-10-10  Bruno Haible  <bruno@clisp.org>
96274         Make it possible to #define c_isascii to an alias.
96275         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96276         defined. Undefine the macros before defining them, to avoid gcc
96277         warnings.
96278         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96279         define NO_C_CTYPE_MACROS early.
96281 2006-10-10  Bruno Haible  <bruno@clisp.org>
96283         Make it possible to #define set_program_name to an alias.
96284         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96285         ENABLE_RELOCATABLE early.
96287 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96289         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96290         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96291         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96292         More generally, don't assume that 64-bit signed int is available
96293         if unsigned int is, and vice versa.
96294         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96295         unsigned symbols, not on their signed counterparts.
96296         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96297         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96298         (UINT64_C, UINTMAX_C):
96299         Likewise.
96300         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96301         unsigned counterparts.
96302         (Have_long_long, Unsigned): New macros.
96303         (Int): Renamed from INT.
96304         (strtoimax): Use the new macros.
96305         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96306         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96307         * modules/inttypes (inttypes.h): Substitute
96308         HAVE_UNSIGNED_LONG_LONG_INT.
96309         * modules/stdint (stdint.h): Likewise.
96310         (Files): Add m4/ulonglong.m4.
96312 2006-10-10  Bruno Haible  <bruno@clisp.org>
96314         Fix a gcc -Wshadow warning.
96315         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96316         to 'bucket'.
96317         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96318         gl_linked_indexof_from_to): Likewise.
96319         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96320         Likewise.
96321         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96322         Likewise.
96323         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96324         Reported by Eric Blake.
96326 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96328         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96329         for NetBSD.  Problem reported by Bruno Haible.
96331 2006-10-09  Jim Meyering  <jim@meyering.net>
96333         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96334         Patch from Bruno Haible.
96336 2006-10-09  Jim Meyering  <jim@meyering.net>
96338         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96339         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96340         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96342 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96344         Don't include <config.h> twice; this doesn't work in some cases,
96345         e.g., when config.h has "#define intmax_t long long int" and
96346         we include <config.h>, <inttypes.h>, <config.h> in that order.
96347         Problem reported by Matthew Woehlke in:
96348         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96349         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96350         * lib/fts-cycle.c: Don't include config.h.
96351         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96352         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96353         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96354         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96355         inttypes.h.
96356         * lib/xstrtoumax.c: Likewise.
96357         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96358         __strtol and the like, so that this module is more like its siblings.
96359         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96360         Remove; no longer needed now that we assume gnulib inttypes.h.
96362 2006-10-08  Bruno Haible  <bruno@clisp.org>
96364         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96365         option.
96367 2006-10-07  Jim Meyering  <jim@meyering.net>
96369         * modules/inttypes (inttypes.h): Revert what seems to have been
96370         an inadvertent part of today's change: use "|", not "/" in the
96371         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96373 2006-10-07  Bruno Haible  <bruno@clisp.org>
96375         * modules/sublist: New file.
96377 2006-10-07  Bruno Haible  <bruno@clisp.org>
96379         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96380         * modules/argz (argz.h): Likewise.
96381         * modules/arpa_inet (arpa/inet.h): Likewise.
96382         * modules/byteswap (byteswap.h): Likewise.
96383         * modules/configmake (configmake.h): Likewise.
96384         * modules/fcntl (fcntl.h): Likewise.
96385         * modules/fnmatch (fnmatch.h): Likewise.
96386         * modules/getopt (getopt.h): Likewise.
96387         * modules/glob (glob.h): Likewise.
96388         * modules/inttypes (inttypes.h): Likewise.
96389         * modules/netinet_in (netinet/in.h): Likewise.
96390         * modules/poll (poll.h): Likewise.
96391         * modules/stdbool (stdbool.h): Likewise.
96392         * modules/stdint (stdint.h): Likewise.
96393         * modules/sys_select (sys/select.h): Likewise.
96394         * modules/sys_socket (sys/socket.h): Likewise.
96395         * modules/sys_stat (sys/stat.h): Likewise.
96396         * modules/sysexits (sysexits.h): Likewise.
96397         * modules/unistd (unistd.h): Likewise.
96398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96399         Add a "DO NOT EDIT" comment to the generated file.
96400         (func_import): Likewise for gnulib-comp.m4.
96402 2006-10-07  Bruno Haible  <bruno@clisp.org>
96404         * lib/gl_sublist.h: New file.
96405         * lib/gl_sublist.c: New file.
96407 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96409         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96410         name (relative to the original working directory) and the file
96411         name component (relative to the temporary working directory).  All
96412         callers changed.
96413         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96414         * lib/mkdir-p.c (make_dir_parents): Likewise.
96415         * lib/mkdir-p.h (make_dir_parents): Likewise.
96417 2006-10-06  Eric Blake  <ebb9@byu.net>
96419         Define several macros for use by the clean-temp module.
96420         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96421         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96422         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96424         * lib/clean-temp.h (close_stream_temp): New declaration.
96425         * lib/clean-temp.c (includes): Pull in headers according to what
96426         other modules are in use.
96427         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96429 2006-10-06  Bruno Haible  <bruno@clisp.org>
96431         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96432         instead of fopen, fwriteerror.
96434 2006-10-06  Bruno Haible  <bruno@clisp.org>
96436         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96437         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96438         int.
96439         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96440         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96441         Return an error indicator.
96442         Suggested by Eric Blake.
96444 2006-10-06  Bruno Haible  <bruno@clisp.org>
96446         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96447         Reported by Eric Blake.
96449 2006-10-06  Bruno Haible  <bruno@clisp.org>
96451         * modules/closeout (Description): Mention stderr too.
96453 2006-10-06  Bruno Haible  <bruno@clisp.org>
96454         and Paul Eggert  <eggert@cs.ucla.edu>
96456         * lib/closeout.c (close_stdout): Also close stderr.
96457         * lib/closeout.h: Update comment.
96459 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96461         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96462         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96463         * lib/dirchownmod.c: Include lchown.h.
96464         * lib/lchown.c: Don't include files that lchown.h now includes.
96465         Don't declare chown, since lchown.h now does that.
96466         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96467         (lchown): Define to rpl_chown if lchown is declared but
96468         does not exist.  Declare using a prototype if lchown is not
96469         declared.  Add a copyright notice.
96470         * lib/mkstemp.h: Include <unistd.h>.
96471         * lib/openat.c: Include lchown.h.
96473         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96474         we now test for that separately.
96475         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96476         rather than O_NOFOLLOW, when testing whether it's possible to
96477         avoid a race condition reliably.
96478         * lib/savewd.c (savewd_chdir): Likewise.
96480         Remove macros that are no longer needed now that stdint.h is
96481         reliable.
96482         * lib/fsusage.c (UINTMAX_MAX): Remove.
96483         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96484         * lib/utimecmp.c (SIZE_MAX): Remove.
96486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96488         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96489         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96490         O_NOATIME works.
96492 2006-10-05  Bruno Haible  <bruno@clisp.org>
96494         * lib/gl_list.h (gl_sortedlist_search_from_to,
96495         gl_sortedlist_indexof_from_to): New declarations.
96496         (gl_list_implementation): New fields sortedlist_search_from_to,
96497         sortedlist_indexof_from_to.
96498         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96499         inline functions.
96500         * lib/gl_list.c (gl_sortedlist_search_from_to,
96501         gl_sortedlist_indexof_from_to): New functions.
96502         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96503         function.
96504         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96505         (gl_array_sortedlist_search_from_to): New function.
96506         (gl_array_list_implementation): Update.
96507         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96508         function.
96509         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96510         (gl_carray_sortedlist_search_from_to): New function.
96511         (gl_carray_list_implementation): Update.
96512         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96513         gl_linked_sortedlist_indexof_from_to): New functions.
96514         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96515         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96516         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96517         gl_tree_sortedlist_indexof_from_to): New functions.
96518         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96519         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96520         Update.
96521         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96522         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96523         Update.
96525 2006-10-05  Bruno Haible  <bruno@clisp.org>
96527         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96528         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96529         (struct gl_list_implementation): Add fields search_from_to,
96530         indexof_from_to. Remove fields search, indexof.
96531         (gl_list_search): Use the search_from_to method.
96532         (gl_list_search_from, gl_list_search_from_to): New functions.
96533         (gl_list_indexof): Use the indexof_from_to method.
96534         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96535         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96536         (gl_list_search_from, gl_list_search_from_to): New functions.
96537         (gl_list_indexof): Use the indexof_from_to method.
96538         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96539         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96540         gl_array_indexof. Add start_index, end_index arguments.
96541         (gl_array_search_from_to): Renamed from gl_array_search. Add
96542         start_index, end_index arguments.
96543         (gl_array_remove, gl_array_list_implementation): Update.
96544         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96545         gl_carray_indexof. Add start_index, end_index arguments.
96546         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96547         start_index, end_index arguments.
96548         (gl_carray_remove, gl_carray_list_implementation): Update.
96549         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96550         gl_linked_search. Add start_index, end_index arguments.
96551         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96552         start_index, end_index arguments.
96553         (gl_linked_remove): Update.
96554         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96555         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96556         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96557         field to 'size_t'.
96558         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96559         gl_tree_search. Add start_index, end_index arguments.
96560         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96561         start_index, end_index arguments.
96562         (gl_tree_remove): Update.
96563         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96564         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96565         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96566         function.
96567         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96568         gl_tree_search. Add start_index, end_index arguments.
96569         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96570         start_index, end_index arguments.
96571         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96572         Update.
96573         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96575 2006-10-05  Bruno Haible  <bruno@clisp.org>
96577         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96579         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96580         fwriteerror_temp): New declarations.
96581         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96582         (descriptors): New variable.
96583         (cleanup): First, close the descriptors.
96584         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96585         fclose_temp, fwriteerror_temp): New functions.
96587 2006-10-04  Jim Meyering  <jim@meyering.net>
96589         * lib/fts.c (fts_open): Tiny comment change.
96591 2006-10-04  Bruno Haible  <bruno@clisp.org>
96593         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96594         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96595         gl_LOCK_BODY.
96596         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96597         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96598         gl_LOCK_EARLY_BODY.
96599         (gl_LOCK): Require gl_LOCK_BODY.
96601 2006-10-04  Bruno Haible  <bruno@clisp.org>
96603         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96604         (gl_oset_search_atleast): New declaration.
96605         (struct gl_oset_implementation): Add field 'search_atleast'.
96606         (gl_oset_search_atleast): New inline function.
96607         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96608         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96609         (gl_array_oset_implementation): Update.
96610         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96611         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96612         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96614 2006-10-04  Bruno Haible  <bruno@clisp.org>
96616         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96618 2006-10-03  Bruno Haible  <bruno@clisp.org>
96620         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96621         from gl_avltreehash_list_implementation.
96623 2006-10-03  Bruno Haible  <bruno@clisp.org>
96625         * lib/gl_oset.c (gl_oset_add): Fix return type.
96627 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96629         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96631 2006-10-02  Eric Blake  <ebb9@byu.net>
96633         * modules/strnlen (Depends-on): Add extensions.
96635 2006-10-02  Eric Blake  <ebb9@byu.net>
96637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96638         definition in 2.60+.
96640 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96642         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96643         checks.
96645 2006-10-02  Bruno Haible  <bruno@clisp.org>
96647         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96648         to the AUTOMAKE_OPTIONS.
96649         Reported by Jim Meyering.
96651 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96653         Work around bug in Solaris 10 /proc file system:
96654         /proc/self/fd/NNN/.. isn't the parent directory of
96655         the directory whose file descriptor is NNN.  This needs to
96656         be worked around at run time, not compile time, since a
96657         program might be built on Solaris 8, where things work, and
96658         run on Solaris 10.
96659         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96660         to use the following interface instead:
96661         (OPENAT_BUFFER_SIZE): New macro.
96662         (openat_proc_name): New function.
96663         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96664         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96665         Likewise.
96666         * lib/openat-proc.c: New file.
96667         * modules/openat (Files): Add lib/openat-proc.c.
96668         (Depends-on): Add same-inode, stdbool.
96669         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96671 2006-09-29  Bruno Haible  <bruno@clisp.org>
96673         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96674         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96675         argument. Set stdout_closed before testing for ferror, not after.
96676         (fwriteerror, fwriteerror_no_ebadf): New functions.
96678 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96680         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96682 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96684         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96685         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96687 2006-09-28  Jim Meyering  <jim@meyering.net>
96689         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96690         Include <unistd.h>.
96692 2006-09-28  Bruno Haible  <bruno@clisp.org>
96694         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96695         * modules/linkedhash-list (Depends-on): Likewise.
96696         * modules/rbtreehash-list (Depends-on): Likewise.
96698 2006-09-28  Bruno Haible  <bruno@clisp.org>
96700         * lib/strndup.h: Simplify the redefinition of strndup.
96701         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96702         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96704 2006-09-28  Bruno Haible  <bruno@clisp.org>
96706         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96707         * lib/gl_linkedhash_list.c: Likewise.
96708         * lib/gl_rbtreehash_list.c: Likewise.
96710 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96712         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96713         getaddrinfo.
96715         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96716         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96717         it causes <stdio_ext.h> to cause a compile-time error.
96718         Problem reported by Nelson H. F. Beebe.
96719         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96720         of HAVE_DECL___PENDING.
96722         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96723         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96724         declaration.
96726 2006-09-27  Jim Meyering  <jim@meyering.net>
96728         This file could end up with a definition for a function
96729         named __strndup, rather than rpl_strndup on a system with
96730         incomplete weak_alias support.
96731         * lib/strndup.c (strndup): Rename from __strndup.
96732         Remove #defines that used to map __strndup to strndup.
96733         Don't use K&R prototypes.
96734         Remove LIBC-related code, since this file is not sync'd with glibc.
96735         * lib/strndup.h: Revamp, accordingly.
96736         * m4/strndup.m4: Modernize.
96738 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96740         * modules/savewd (Depends-on): Add 'raise'.
96741         * lib/savewd.c: Include <signal.h>, for 'raise'.
96743 2006-09-26  Jim Meyering  <jim@meyering.net>
96745         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96746         when we detect Darwin 8.7.0's acl_get_file bug.
96747         Rearrange to perform the new (below) run-test while $LIBS
96748         contains any acl-related library.  Set USE_ACL at the end.
96749         (gl_ACL_GET_FILE): New function.
96751 2006-09-26  Eric Blake  <ebb9@byu.net>
96753         * lib/verror.c: Include <config.h> unconditionally.
96755 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96757         * modules/clock-time (Maintainer): Add self.
96758         * modules/getlogin_r (Depends-on): Add extensions.
96760 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96762         * modules/clock-time: New module.
96763         * modules/nanosleep (Depends-on): Add clock-time.
96764         * modules/gethrxtime (Depends-on): Likewise.
96765         * modules/gettime (Depends-on): Likewise.
96766         * modules/settime (Depends-on): Likewise.
96768         * modules/fts-lgpl: Depend on openat.
96769         * modules/mkancesdirs: Depend on savewd.
96770         * modules/mkdir-p: Likewise.
96772 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96774         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96776         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96777         `gl_have_arbitrary_file_name_length_limit' to
96778         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96779         actually works between configure runs.
96781 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96782             Bruno Haible  <bruno@clisp.org>
96784         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96786 2006-09-25  Jim Meyering  <jim@meyering.net>
96788         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96789         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96791 2006-09-25  Eric Blake  <ebb9@byu.net>
96793         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96794         exec's in 2006-09-18 patch when shuffling fds.
96796 2006-09-25  Bruno Haible  <bruno@clisp.org>
96798         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96799         Reported by Jim Meyering.
96801 2006-09-24  Jim Meyering  <jim@meyering.net>
96803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96804         compare a pointer against a literal "0".  That caused failures with
96805         at least HP-UX's hpcc.
96807 2006-09-22  Simon Josefsson  <jas@extundo.com>
96809         * modules/gc-sha1:
96810         * modules/gc-md4:
96811         * modules/gc-hmac-sha1:
96812         * modules/gc-hmac-md5:
96813         * modules/gc-des:
96814         * modules/gc-arcfour: Distribute more files.
96816 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96818         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96819         (gl_linked_iterator_from_to): Initialize struct completely.
96820         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96821         (gl_tree_iterator_from_to): Likewise
96822         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96823         * lib/gl_array_list.c [lint] (gl_array_iterator)
96824         (gl_array_iterator_from_to): Likewise.
96825         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96826         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96827         (gl_carray_iterator_from_to): Likewise.
96829         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96830         * lib/md4.c (md4_process_block): Remove unused variable.
96831         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96832         parentheses for clarity.
96834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96836         * modules/bison-i18n (Depends-on): Add gettext.
96838 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96840         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96841         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96842         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96843         also add missing comma that caused broken test.
96844         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96845         stdlib.h, for `abort'.
96846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96847         variables.
96848         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96849         include unistd.h if present, for `rmdir'.
96850         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96851         variables.
96852         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96853         in the process include standard headers for prototypes.
96854         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96855         gets declared on GNU/Linux.
96856         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96857         unistd.h, for `rmdir'.
96858         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96861         always true.
96862         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96864         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96866 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96868         * gnulib-tool (func_version): Create output all at once.  This
96869         may help avoid triggering unnecessary SIGPIPEs, and at any
96870         rate it doesn't hurt.
96872 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96873             Bruno Haible  <bruno@clisp.org>
96875         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96876         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96877         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96879         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96880         (gl_FUNC_VASPRINTF): Invoke it.
96882 2006-09-22  Bruno Haible  <bruno@clisp.org>
96884         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96885         getloadavg.c as first argument.
96887 2006-09-22  Bruno Haible  <bruno@clisp.org>
96889         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96890         at the beginning of the gl_INIT macro.
96891         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96892         gl_GETLOADAVG.
96894 2006-09-22  Bruno Haible  <bruno@clisp.org>
96896         * gnulib-tool (func_create_megatestdir): Don't include the config-h
96897         module.
96898         Suggested by Ralf Wildenhues.
96900 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
96902         Import this patch from libc:
96904         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
96906         * lib/regex_internal.c (re_string_reconstruct): Handle
96907         offset < pstr->valid_raw_len && pstr->offsets_needed case.
96908         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
96909         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
96910         re_string_context_at.
96912         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
96913         now requires it.
96914         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
96915         gl_REGEX now does it for us.
96916         (gl_REGEX): Add test taken from
96917         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
96919         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
96920         Check that large offsets work.  Modernize Autoconf usages.
96921         Prefer "yes" to mean a good thing rather than a bad.
96922         Don't put "#define mkstemp" in config.h, as this might interfere
96923         with standard system headers that "#define mkstemp mkstemp64".
96925         * modules/mkstemp (Depends-on): Add extensions, so that
96926         mkstemp is visible on some platforms.
96927         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
96928         (Include): Change to "mkstemp.h" from <stdlib.h>.
96929         (Files): Add mkstemp.h.
96931         * lib/mkstemp.h: New file, since some standard headers
96932         #define mkstemp.
96933         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
96934         Include "mkstemp.h".
96935         Make the _LIBC code resemble glibc original more,
96936         e.g., use K&R style.
96937         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
96938         (mkstemp): Remove, since mkstemp.h does this for us.
96939         * lib/stdlib--.h: Include mkstemp.h.
96941         Import this patch from libc:
96943         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96945         * lib/tempname.c (__gen_tempname): Change attempts_min
96946         into a macro.  Use preprocessor to decide how to initialize
96947         attempts [Coverity CID 67].
96949 2006-09-20  Bruno Haible  <bruno@clisp.org>
96951         * lib/mkdtemp.c: Import from libc.
96952         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96953                 * sysdeps/posix/tempname.c (__gen_tempname): Change
96954                 attempts_min into a macro.  Use preprocessor to decide how to
96955                 initialize attempts [Coverity CID 67].
96956         2001-11-27  Paul Eggert  <eggert@twinsun.com>
96957                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
96958                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
96960 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96962         * gnulib-tool (func_exit): New function, to allow to pass the
96963         exit status portably through the trap.  Use everywhere.
96964         (--help, --version): Signal a write error.
96965         (trap): catch SIGPIPE, for write errors.
96966         Exit at the end of the trap, with the correct exit status.
96968 2006-09-19  Karl Berry  <karl@gnu.org>
96970         * doc/gnulib.texi: note about the license texinfo files.
96972 2006-09-19  Eric Blake  <ebb9@byu.net>
96974         * gnulib-tool: Avoid space-tab.
96976 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96978         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
96979         that prevented coreutils 6.1 from building.  Problem reported
96980         by Petter Reinholdtsen.
96982 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96984         * gnulib-tool (avoidlist): Fix typo that broke options like
96985         --avoid=lock that are used by coreutils bootstrap.
96987 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
96989         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
96990         more systematically.
96992 2006-09-18  Jim Meyering  <jim@meyering.net>
96994         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
96996 2006-09-18  Bruno Haible  <bruno@clisp.org>
96998         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97000 2006-09-18  Bruno Haible  <bruno@clisp.org>
97002         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97003         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97004         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97005         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97006         * m4/gettext.m4: Require autoconf >= 2.52.
97007         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97008         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97009         of gl_cv_header_inttypes_h.
97011 2006-09-18  Bruno Haible  <bruno@clisp.org>
97013         * lib/javaversion.c: Include configmake.h.
97015 2006-09-18  Bruno Haible  <bruno@clisp.org>
97017         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97018         avoid that the while loops be executed in a subshell.
97020 2006-09-18  Bruno Haible  <bruno@clisp.org>
97022         * MODULES.html.sh (func_module): Break long lines.
97023         Suggested by Bruce Korb <bkorb@gnu.org>.
97025 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97027         Speed up by a factor of 1.12.
97028         * gnulib-tool (nl): New variable.
97029         (func_import): Rewrite include directive extraction to only read each
97030         directive once.
97032 2006-09-17  Bruno Haible  <bruno@clisp.org>
97034         * modules/javaversion (Makefile.am): Remove DEFS setting.
97035         (Depends-on): Add configmake, for PKGDATADIR definition.
97037 2006-09-17  Bruno Haible  <bruno@clisp.org>
97039         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97041 2006-09-17  Bruno Haible  <bruno@clisp.org>
97043         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97044         (func_modules_transitive_closure, func_modules_add_dummy,
97045         func_modules_to_filelist, func_import, func_create_testdir,
97046         func_create_megatestdir, ...): Use it wherever possible.
97047         Suggested by Ralf Wildenhues.
97049 2006-09-16  Karl Berry  <karl@gnu.org>
97051         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97052         to avoid sectioning errors.
97053         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97054         [ifinfo]: blank line after @center-ed titles.
97055         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97056         Spell FSF address consistently with others.
97057         (These changes approved by rms.)
97059 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97061         Speed up by a factor of 1.61.
97062         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97063         already checked module names again.
97065 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97067         Speed up by a factor of 1.13.
97068         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97069         for new_files, and the input to func_add_or_update.
97071 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97073         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97074         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97076 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97078         * modules/mkancesdirs (Depends-on): Add fcntl.
97079         * modules/savewd: New file.
97080         * MODULES.html.sh (File system functions): Add savewd.
97082         * modules/configmake (Makefile.am): Add support for the
97083         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97085 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97087         * m4/savewd.m4: New file.
97089 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97091         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97092         (dirchownmod): New arg FD.  All callers changed.
97093         Use FD rather than opening the directory ourself, as opening is
97094         now the caller's responsibility.
97095         * lib/dirchownmod.h: Likewise.
97096         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97097         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97098         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97099         (test_dir): Remove.
97100         (mkancesdirs): Return length of prefix of FILE that has already
97101         been made, or -2 if there is a child doing the work.  Redo
97102         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97103         ".", and treat ".." specially since it might stray back into
97104         already-created areas.  Use a subprocess if necessary.  New arg
97105         WD; all users changed.  MAKE_DIR function should now return 1
97106         if it creates a directory that is not readable.  Return -2 if
97107         a child process is spun off.
97108         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97109         Adjust signature to match code.
97110         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97111         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97112         all users changed.
97113         * lib/savewd.c, lib/savewd.h: New files.
97115 2006-09-15  Jim Meyering  <jim@meyering.net>
97117         * modules/rename-dest-slash: New module.
97118         * MODULES.html.sh (posix_compat): Add it here.
97120         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97122 2006-09-15  Jim Meyering  <jim@meyering.net>
97124         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97125         file.
97127         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97129 2006-09-15  Jim Meyering  <jim@meyering.net>
97131         * lib/rename-dest-slash.c (has_trailing_slash): Use
97132         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97133         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97134         test before testing whether SRC is a directory.
97135         Suggestions from Bruno Haible.
97137         Avoid a warning about an unused variable.
97138         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97139         into the #ifdef block where it's used.
97141         * lib/rename-dest-slash.c: New file.
97143 2006-09-14  Bruno Haible  <bruno@clisp.org>
97145         * lib/allocsa.c: Include <config.h> unconditionally.
97146         * lib/asnprintf.c: Likewise.
97147         * lib/asprintf.c: Likewise.
97148         * lib/c-strcasecmp.c: Likewise.
97149         * lib/c-strcasestr.c: Likewise.
97150         * lib/c-strncasecmp.c: Likewise.
97151         * lib/c-strstr.c: Likewise.
97152         * lib/classpath.c: Likewise.
97153         * lib/clean-temp.c: Likewise.
97154         * lib/concatpath.c: Likewise.
97155         * lib/copy-file.c: Likewise.
97156         * lib/csharpcomp.c: Likewise.
97157         * lib/csharpexec.c: Likewise.
97158         * lib/execute.c: Likewise.
97159         * lib/fatal-signal.c: Likewise.
97160         * lib/findprog.c: Likewise.
97161         * lib/fwriteerror.c: Likewise.
97162         * lib/gl_array_list.c: Likewise.
97163         * lib/gl_array_oset.c: Likewise.
97164         * lib/gl_avltree_list.c: Likewise.
97165         * lib/gl_avltree_oset.c: Likewise.
97166         * lib/gl_avltreehash_list.c: Likewise.
97167         * lib/gl_carray_list.c: Likewise.
97168         * lib/gl_linked_list.c: Likewise.
97169         * lib/gl_linkedhash_list.c: Likewise.
97170         * lib/gl_list.c: Likewise.
97171         * lib/gl_oset.c: Likewise.
97172         * lib/gl_rbtree_list.c: Likewise.
97173         * lib/gl_rbtree_oset.c: Likewise.
97174         * lib/gl_rbtreehash_list.c: Likewise.
97175         * lib/imaxabs.c: Likewise.
97176         * lib/imaxdiv.c: Likewise.
97177         * lib/javacomp.c: Likewise.
97178         * lib/javaexec.c: Likewise.
97179         * lib/javaversion.c: Likewise.
97180         * lib/linebreak.c: Likewise.
97181         * lib/localcharset.c: Likewise.
97182         * lib/lock.c: Likewise.
97183         * lib/mbchar.c: Likewise.
97184         * lib/mbswidth.c: Likewise.
97185         * lib/mkdtemp.c: Likewise.
97186         * lib/pipe.c: Likewise.
97187         * lib/printf-args.c: Likewise.
97188         * lib/printf-parse.c: Likewise.
97189         * lib/progname.c: Likewise.
97190         * lib/progreloc.c: Likewise.
97191         * lib/readlink.c: Likewise.
97192         * lib/sh-quote.c: Likewise.
97193         * lib/stpcpy.c: Likewise.
97194         * lib/stpncpy.c: Likewise.
97195         * lib/strcasecmp.c: Likewise.
97196         * lib/strcasestr.c: Likewise.
97197         * lib/strcspn.c: Likewise.
97198         * lib/striconv.c: Likewise.
97199         * lib/strncasecmp.c: Likewise.
97200         * lib/strnlen1.c: Likewise.
97201         * lib/strstr.c: Likewise.
97202         * lib/strtok_r.c: Likewise.
97203         * lib/tls.c: Likewise.
97204         * lib/tmpdir.c: Likewise.
97205         * lib/unicodeio.c: Likewise.
97206         * lib/unsetenv.c: Likewise.
97207         * lib/vasnprintf.c: Likewise.
97208         * lib/vasprintf.c: Likewise.
97209         * lib/wait-process.c: Likewise.
97210         * lib/xallocsa.c: Likewise.
97211         * lib/xsetenv.c: Likewise.
97212         * lib/xstriconv.c: Likewise.
97214 2006-09-13  Simon Josefsson  <jas@extundo.com>
97216         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97217         that internally, suggested by Ralf Wildenhues
97218         <Ralf.Wildenhues@gmx.de>.
97220 2006-09-13  Simon Josefsson  <jas@extundo.com>
97222         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97223         @LIBOBJS@.
97224         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97226 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97228         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97229         longer worry about uses that don't define HAVE_CONFIG_H.
97230         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97231         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97232         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97233         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97234         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97235         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97236         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97237         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97238         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97239         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97240         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97241         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97242         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97243         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97244         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97245         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97246         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97247         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97248         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97249         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97250         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97251         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97252         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97253         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97254         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97255         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97256         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97257         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97258         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97259         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97260         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97261         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97262         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97263         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97264         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97265         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97266         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97267         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97268         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97269         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97270         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97271         Likewise.
97273 2006-09-13  Eric Blake  <ebb9@byu.net>
97275         * lib/getopt.c: Fix typo in last commit.
97277 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97279         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97280         dgettext.
97282 2006-09-12  Jim Meyering  <jim@meyering.net>
97284         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97285         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97286         Reported by Nelson H. F. Beebe.
97288 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97290         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97291         program_invocation_name and program_invocation_short_name are
97292         initialized.
97293         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97294         and program_invocation_short_name to argp.h, so they are visible
97295         to user programs.
97296         * lib/argp.h: Likewise
97298 2006-09-10  Bruno Haible  <bruno@clisp.org>
97300         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97301         m4/inttypes_h.m4, m4/uintmax_t.m4.
97303 2006-09-10  Bruno Haible  <bruno@clisp.org>
97305         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97306         gl_AC_TYPE_UINTMAX_T.
97308 2006-09-10  Bruno Haible  <bruno@clisp.org>
97310         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97312 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97314         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97315         convention.  Text proposed by Bruno Haible.
97316         (struct argp_option): Document the use of N_() wrappers.
97318         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97319         '\v', and translate the two parts separately, instead of feeding
97320         the whole string to gettext.  This allows to exclude
97321         '\v' from the strings visible to the translator by writing doc
97322         strings as N_("..") "\v" N_("..").
97324 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97326         * config/srclist.txt: Undo latest change; the bug was fixed.
97328 2006-09-09  Bruno Haible  <bruno@clisp.org>
97330         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97331         assignments if building a library without libtool.
97332         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97333         in func_emit_lib_Makefile_am.
97334         (func_import): When building a static library libfoo.a, arrange to
97335         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97336         (func_create_testdir): Likewise.
97337         * modules/gc (configure.ac, Makefile.am): If building statically,
97338         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97339         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97340         * modules/striconv (configure.ac, Makefile.am): Likewise.
97341         Based on a suggestion by Ralf Wildenhues.
97343 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97345         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97346         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97347         Also:
97349         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97350         Add year_2050_test to catch glibc bug 2821
97351         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97353         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97354         Prefer #ifdef to #if.
97356         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97357         Return from 'main' instead of calling 'exit'.
97359 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97361         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97362         returned the maximum time_t value rather than (time_t) -1.
97363         Problem originally reported by William Bardwell
97364         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97366         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97367         Moved to here ...
97368         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97369         ... from here.
97371 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97373         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97374         2821 is fixed.
97376 2006-09-08  Jim Meyering  <jim@meyering.net>
97378         Don't make generated files read-only.  That would bother too many
97379         people.  However, do retain the ability to work when targets are
97380         read-only: remove the destination and temporary files before writing
97381         them (when generated via sed or echo), or by using the -f option for
97382         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97383         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97384         * modules/byteswap, modules/configmake, modules/fcntl:
97385         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97386         * modules/localcharset, modules/netinet_in, modules/poll:
97387         * modules/stdbool, modules/stdint, modules/sys_select:
97388         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97390 2006-09-08  Jim Meyering  <jim@meyering.net>
97392         Avoid new build failure on FreeBSD 6.0.
97393         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97394         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97395         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97397 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97401 2006-09-07  Jim Meyering  <jim@meyering.net>
97403         Fix global typo in last change: use chmod u-w, not chmod u-x.
97404         Spotted by Paul Eggert and Bruce Korb.
97405         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97406         * modules/byteswap, modules/configmake, modules/fcntl:
97407         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97408         * modules/localcharset, modules/netinet_in, modules/poll:
97409         * modules/stdbool, modules/stdint, modules/sys_select:
97410         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97412 2006-09-06  Jim Meyering  <jim@meyering.net>
97414         Make generated files be read-only.
97415         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97416         Ensure that each generated file is now read-only.
97417         * modules/argz: Likewise.
97418         * modules/arpa_inet: Likewise.
97419         * modules/byteswap: Likewise.
97420         * modules/configmake: Likewise.
97421         * modules/fcntl: Likewise.
97422         * modules/fnmatch: Likewise.
97423         * modules/getopt: Likewise.
97424         * modules/glob: Likewise.
97425         * modules/inttypes: Likewise.
97426         * modules/netinet_in: Likewise.
97427         * modules/poll: Likewise.
97428         * modules/stdbool: Likewise.
97429         * modules/stdint: Likewise.
97430         * modules/sys_select: Likewise.
97431         * modules/sys_socket: Likewise.
97432         * modules/sys_stat: Likewise.
97433         * modules/sysexits: Likewise.
97434         * modules/localcharset: Same as above, but continue using temporary
97435         file named "t-$@" (why different?) rather than the "$@-t" used
97436         everywhere else.
97438         * modules/sysexits (Makefile.am): Replace literal occurrences
97439         of "sysexit.h" more readable, and more consistent, "$@".
97441 2006-09-06  Bruno Haible  <bruno@clisp.org>
97443         * modules/striconv: New file.
97444         * modules/xstriconv: New file.
97445         * MODULES.html.sh (Internationalization functions): Add striconv,
97446         xstriconv.
97448 2006-09-06  Bruno Haible  <bruno@clisp.org>
97450         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97451         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97452         not using libtool correctly.
97454 2006-09-06  Bruno Haible  <bruno@clisp.org>
97456         * lib/striconv.h: New file.
97457         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97458         iconvstring.c.
97459         * lib/xstriconv.h: New file.
97460         * lib/xstriconv.c: New file.
97462 2006-09-06  Bruno Haible  <bruno@clisp.org>
97464         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97465         lib_..._LDFLAGS.
97467 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97469         * lib/argz_.h: Sync from Libtool.
97471         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97472                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97474         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97476 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97478         * modules/trim: New file.
97480 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97482         * lib/trim.h: New file.
97483         * lib/trim.c: New file.
97485 2006-09-05  Bruno Haible  <bruno@clisp.org>
97487         * MODULES.html.sh (String handling): Add trim.
97489 2006-09-04  Karl Berry  <karl@gnu.org>
97491         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97492         until next release.
97494 2006-09-03  Bruno Haible  <bruno@clisp.org>
97496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97497         correctly.
97499 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97501         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97502         not gl_GETLOADAVG.  Omit unneeded semicolons.
97503         Problems reported by Ralf Wildenhues in
97504         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97505         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97506         at the end, which is the usual gnulib style.
97508         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97509         of doing all the work ourselves.
97510         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97511         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97513 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97515         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97516         Problem reported by Ralf Wildenhues in
97517         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97519         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97520         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97522 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97524         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97525         yesterday's patch by changing test -n to test -z.
97527 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97529         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97530         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97531         the former is now obsolescent.
97533         * modules/chdir-long (Depends-on): Add fcntl.
97535 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97537         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97538         obsolescent, and programs should use gnulib instead.
97539         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97540         but with prefixes changed.
97542 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97544         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97545         or stdbool.h, because they might not exist while configuring.
97547         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97548         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97549         does that for us.
97550         (O_DIRECTORY): Remove.
97552 2006-08-31  Eric Blake  <ebb9@byu.net>
97554         * gnulib-tool: Don't let emacs change spaces to TAB.
97556 2006-08-31  Bruno Haible  <bruno@clisp.org>
97558         * gnulib-tool: When calling func_import more than once, do it in a
97559         subshell.
97560         Reported by Eric Blake <ebb9@byu.net>.
97562 2006-08-31  Bruno Haible  <bruno@clisp.org>
97564         * gnulib-tool (nl): Remove variable.
97565         (sed_transform_lib_file): Use more robust test for config-h module.
97566         (func_import): Fix typo in 2006-08-25 patch.
97568 2006-08-31  Bruno Haible  <bruno@clisp.org>
97570         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97571         specified, augment Makefile.am variables instead of assigning them.
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         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97580         Check for nanosleep bug.
97581         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97583 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97585         Work around a bug in both the Linux and SunOS 64-bit kernels:
97586         nanosleep mishandles sleeps for longer than 2**31 seconds.
97587         Problem reported by Frank v Waveren in
97588         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97589         * lib/nanosleep.c (BILLION): New constant.
97590         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97591         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97592         implementation.
97594 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97596         * modules/nanosleep (Depends-on): Add gettime.
97598 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97599         and Simon Josefsson  <jas@extundo.com>
97600         and Oskar Liljeblad  <oskar@osk.mine.nu>
97602         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97603         * gnulib-tool (func_import): New license type 'unmodifiable license
97604         text'.
97605         * modules/fdl: Use it.  Longer description.
97606         * module/gpl, module/lgpl: New files.
97608 2006-08-30  Jim Meyering  <jim@meyering.net>
97610         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97611         shadowing the parameter.
97613 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97615         Sync from Libtool:
97617         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97619         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97620         sharing with gnulib.  Report by Eric Blake.
97622 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97624         * modules/isapipe: New file.
97625         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97627 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97629         * modules/configmake (Makefile.am): Add a comment, and omit
97630         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97631         by Bruno Haible.
97633 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97635         * m4/isapipe.m4: New file.
97637 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97639         * lib/isapipe.c, lib/isapipe.h: New files.
97641 2006-08-29  Jim Meyering  <jim@meyering.net>
97643         * modules/configmake (Makefile.am): Make configmake.h depend on
97644         Makefile.  Otherwise, a stale configmake.h could hang around.
97646 2006-08-29  Eric Blake  <ebb9@byu.net>
97648         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97649         resolution of upstream bug 3044.
97651 2006-08-29  Bruno Haible  <bruno@clisp.org>
97653         * modules/localcharset (Depends-on): Add configmake.
97654         (Makefile.am): Remove setting of LIBDIR through DEFS.
97656 2006-08-29  Bruno Haible  <bruno@clisp.org>
97658         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97659         defined.
97661 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97663         * modules/fcntl: New file.
97664         * modules/chdir-safer (Depends-on): Add fcntl.
97665         * modules/fts: Likewise.
97666         * modules/mkdir-p: Likewise.
97668         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97669         This undoes the most recent change, since we're now addressing the
97670         problem in a different way.
97672         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97673         into output, since the output might be called Makefile.am even
97674         if $makefile_name is something different.
97675         (func_import): Use $makefile_am rather than
97676         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97677         empty.
97679         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97681 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97683         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97684         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97685         recent change to stdint.m4, since we're now addressing the problem in a
97686         different way.
97688 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97690         * m4/fcntl_h.m4: New file.
97692 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97694         * lib/fcntl_.h: New file.
97695         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97696         the fcntl module.
97697         * lib/dirchownmod.c: Likewise.
97698         * lib/fts.c: Likewise.
97700         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97701         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97702         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97703         just before including <inttypes.h>, to avoid circular inclusion.
97705 2006-08-28  Jim Meyering  <jim@meyering.net>
97707         * doc/visibility.texi: Actually read and correct the grammar of the
97708         sentence affected by yesterday's change.
97710 2006-08-28  Eric Blake  <ebb9@byu.net>
97712         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97713         needs wrapper.
97715 2006-08-28  Eric Blake  <ebb9@byu.net>
97717         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97719 2006-08-28  Eric Blake  <ebb9@byu.net>
97721         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97723 2006-08-28  Bruno Haible  <bruno@clisp.org>
97725         * modules/c-strstr: New file, from GNU gettext.
97726         * MODULES.html.sh (String handling): Add c-strstr.
97728 2006-08-28  Bruno Haible  <bruno@clisp.org>
97730         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97731         macros.
97732         Reported by Eric Blake.
97734 2006-08-28  Bruno Haible  <bruno@clisp.org>
97736         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97737         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97738         * lib/vasprintf.c: Include errno.h, limits.h.
97739         (EOVERFLOW): New fallback definition.
97740         (vasprintf): Test here whether the string length is > INT_MAX.
97741         * lib/vsnprintf.c: Include errno.h, limits.h.
97742         (EOVERFLOW): New fallback definition.
97743         (vsnprintf): Fix bug when generated string was too long for the buffer.
97744         Test here whether the string length is > INT_MAX.
97746 2006-08-28  Bruno Haible  <bruno@clisp.org>
97748         * lib/inttypes_.h (SCNX*): Remove definitions.
97749         Reported by Eric Blake.
97751 2006-08-28  Bruno Haible  <bruno@clisp.org>
97753         * lib/c-strstr.h: New file, from GNU gettext.
97754         * lib/c-strstr.c: New file, from GNU gettext.
97756 2006-08-28  Bruno Haible  <bruno@clisp.org>
97758         * gnulib-tool: Reorder some statements.
97760 2006-08-28  Bruno Haible  <bruno@clisp.org>
97762         * gnulib-tool: New option --makefile-name.
97763         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97764         $makefile_name.
97765         (func_import): Write $makefile_name to the cache file, and read it from
97766         there unless explicitly specified. Use $makefile_name as file name
97767         instead of Makefile.am. Adjust the recommendations accordingly.
97769 2006-08-28  Bruno Haible  <bruno@clisp.org>
97771         * gnulib-tool (func_verify_module): Check against misapplying patch.
97773 2006-08-28  Bruno Haible  <bruno@clisp.org>
97775         * gnulib-tool (func_relativize, func_relconcat): New functions.
97776         Give an error if --local-dir is given with --update.
97777         Remove trailing slashes from $local_gnulib_dir.
97778         (func_import): Store the relativized $local_gnulib_dir in
97779         gnulib-cache.m4, and read it from there if not specified explicitly.
97781 2006-08-28  Bruno Haible  <bruno@clisp.org>
97783         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97784         is the current directory. Respect also $local_gnulib_dir.
97786 2006-08-28  Bruno Haible  <bruno@clisp.org>
97787             Simon Josefsson  <jas@extundo.com>
97789         BeOS portability.
97790         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97792 2006-08-27  Jim Meyering  <jim@meyering.net>
97794         * doc/visibility.texi: Remove duplicate word: "pointer".
97796 2006-08-26  Bruno Haible  <bruno@clisp.org>
97798         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97799         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97800         (Makefile.am): Create inttypes.h from inttypes_.h.
97801         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97803         * modules/imaxabs: New file.
97805         * modules/imaxdiv: New file.
97807 2006-08-26  Bruno Haible  <bruno@clisp.org>
97809         * m4/inttypes.m4: New file.
97810         * m4/_inttypes_h.m4: Remove file.
97811         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97812         PRI_MACROS_BROKEN.
97813         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97815         * m4/imaxabs.m4: New file.
97817         * m4/imaxdiv.m4: New file.
97819 2006-08-26  Bruno Haible  <bruno@clisp.org>
97821         * lib/inttypes_.h: New file.
97822         * lib/inttypes.h: Remove file.
97823         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97825         * lib/imaxabs.c: New file.
97827         * lib/imaxdiv.c: New file.
97829 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97831         New config-h module, so that "make" output needn't be cluttered
97832         by -DHAVE_CONFIG_H.
97833         * MODULES.html.sh (Support for building libraries and executables):
97834         Add config-h.
97835         * modules/config-h: New file.
97836         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97837         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97838         the config-h module is used.
97840         New configmake module, so that "make" output needn't be cluttered
97841         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97842         * MODULES.html.sh (Support for building libraries and executables):
97843         Add configmake.
97844         * modules/configmake: New file.
97846 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97848         * m4/config-h.m4: New file.
97850 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97852         * config/srclist.txt: Add elisp-comp.
97854 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97856         * MODULES.html.sh (Support for building libraries and executables):
97857         Add elisp-comp.
97858         * build-aux/elisp-comp: New file.
97859         * modules/elisp-comp: New file.
97861 2006-08-24  Bruno Haible  <bruno@clisp.org>
97863         * gnulib-tool (func_create_testdir): Use non-default values of
97864         sourcebase and m4base.
97866 2006-08-24  Bruno Haible  <bruno@clisp.org>
97868         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97869         HTML structure.
97871 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97873         * modules/openat (Depends-on): Add lchown.
97875 2006-08-23  Bruno Haible  <bruno@clisp.org>
97877         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97878         of gl_LOCK_EARLY instead of gl_LOCK.
97880 2006-08-23  Bruno Haible  <bruno@clisp.org>
97882         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97883         on OSF/1 to no.
97884         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97886 2006-08-23  Bruno Haible  <bruno@clisp.org>
97888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97889         as unusable.
97891         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97892         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97893         (gl_LOCK): New macro.
97895 2006-08-22  Simon Josefsson  <jas@extundo.com>
97897         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
97898         to md5 module.
97900 2006-08-22  Simon Josefsson  <jas@extundo.com>
97902         * MODULES.html.sh: Add "Support for maintaining and release
97903         projects".
97905         * build-aux/gnupload: New file, from coreutils.
97907 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97909         Avoid the need for AC_LIBSOURCES in m4 macros.
97910         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
97911         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
97912         * modules/check-version (EXTRA_DIST): Add check-version.h.
97913         * modules/crc (EXTRA_DIST): Add crc.h.
97914         * modules/des (EXTRA_DIST): Add des.h.
97915         * modules/gc (EXTRA_DIST): Add gc.h.
97916         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
97917         * modules/getline (EXTRA_DIST): Add getline.h.
97918         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
97919         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
97920         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
97921         * modules/md2 (EXTRA_DIST): Add md2.h.
97922         * modules/md4 (EXTRA_DIST): Add md4.h.
97923         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
97924         * modules/read-file (EXTRA_DIST): Add read-file.h.
97925         * modules/readline (EXTRA_DIST): Add readline.h.
97926         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
97927         rijndael-api-fst.h.
97929 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97931         * m4/rijndael.m4 (gl_ARCFOUR):
97932         * m4/arctwo.m4 (gl_ARCTWO):
97933         * m4/check-version.m4 (gl_CHECK_VERSION):
97934         * m4/crc.m4 (gl_CRC):
97935         * m4/des.m4 (gl_DES):
97936         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
97937         * m4/gc.m4 (gl_GC):
97938         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
97939         * m4/getline.m4 (gl_FUNC_GETLINE):
97940         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
97941         * m4/hmac-md5.m4 (gl_HMAC_MD5):
97942         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
97943         * m4/md2.m4 (gl_MD2):
97944         * m4/md4.m4 (gl_MD4):
97945         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
97946         * m4/read-file.m4 (gl_FUNC_READ_FILE):
97947         * m4/readline.m4 (gl_FUNC_READLINE):
97948         * m4/rijndael.m4 (gl_RIJNDAEL):
97949         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97950         to get the necessary .h files and whatnot.
97952 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97954         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
97955         gnulib rather than the other way around.
97956         * config/srclistvars.sh (COREUTILS): Remove.
97958 2006-08-22  Jim Meyering  <jim@meyering.net>
97960         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
97962         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
97964 2006-08-22  Eric Blake  <ebb9@byu.net>
97966         * modules/regexprops-generic: New file.
97967         * MODULES.html.sh (Support for building documentation): List it.
97969 2006-08-22  Eric Blake  <ebb9@byu.net>
97971         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
97972         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
97973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
97974         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
97976 2006-08-22  Bruno Haible  <bruno@clisp.org>
97978         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
97979         and lib_LTLIBRARIES like the other lib_* variables.
97981 2006-08-22  Bruno Haible  <bruno@clisp.org>
97983         * build-aux/x-to-1.in: New file, from GNU gettext.
97985 2006-08-22  Bruno Haible  <bruno@clisp.org>
97987         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
97988         <utmpx.h> exists.
97990 2006-08-22  Bruno Haible  <bruno@clisp.org>
97992         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
97993         <utmpx.h> exists.
97995 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97997         BeOS portability.
97998         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
97999         exist.
98000         Problem reported by Bruno Haible.
98002 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98004         Avoid the need for AC_LIBSOURCES in m4 macros.
98005         * modules/acl (EXTRA_DIST): Add acl.h.
98006         * modules/argmatch (Files): Add m4/argmatch.m4.
98007         (configure.ac): Add gl_ARGMATCH.
98008         (EXTRA_DIST): Renamed from lib_SOURCES, for
98009         consistency with the other modules.  Remove argmatch.c.
98010         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98011         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98012         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98013         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98014         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98015         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98016         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98017         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98018         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98019         * modules/closeout (EXTRA_DIST): Add closeout.h.
98020         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98021         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98022         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98023         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98024         dirname.h; remove basename.c and stripslash.c.
98025         * modules/exclude (EXTRA_DIST): Add exclude.h.
98026         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98027         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98028         * modules/file-type (EXTRA_DIST): Add file-type.h.
98029         * modules/filemode (EXTRA_DIST): Add filemode.h.
98030         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98031         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98032         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98033         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98034         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98035         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98036         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98037         * modules/getdate (EXTRA_DIST): Add getdate.c.
98038         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98039         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98040         * modules/getpass (EXTRA_DIST): Add getpass.h.
98041         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98042         * modules/group-member (EXTRA_DIST): Add group-member.h.
98043         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98044         * modules/hash (EXTRA_DIST): Add hash.h.
98045         * modules/human (EXTRA_DIST): Add human.h.
98046         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98047         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98048         * modules/lchown (EXTRA_DIST): Add lchown.h.
98049         * modules/long-options (EXTRA_DIST): Add long-options.h.
98050         * modules/lstat (EXTRA_DIST): Add lstat.h.
98051         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98052         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98053         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98054         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98055         * modules/memxor (EXTRA_DIST): Add memxor.h.
98056         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98057         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98058         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98059         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98060         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98061         * modules/physmem (EXTRA_DIST): Add physmem.h.
98062         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98063         * modules/posixver (EXTRA_DIST): Add posixver.h.
98064         * modules/quote (EXTRA_DIST): Add quote.h.
98065         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98066         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98067         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98068         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98069         regex_internal.h regexec.c.
98070         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98071         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98072         * modules/same (EXTRA_DIST): Add same.h.
98073         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98074         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98075         * modules/savedir (EXTRA_DIST): Add savedir.h.
98076         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98077         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98078         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98079         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98080         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98081         * modules/strdup (EXTRA_DIST): Add strdup.h.
98082         * modules/strftime (EXTRA_DIST): Add strftime.h.
98083         * modules/strndup (EXTRA_DIST): Add strndup.h.
98084         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98085         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98086         * modules/time_r (EXTRA_DIST): Add time_r.h.
98087         * modules/timespec (EXTRA_DIST): Add timespec.h.
98088         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98089         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98090         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98091         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98092         * modules/userspec (EXTRA_DIST): Add userspec.h.
98093         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98094         * modules/utimens (EXTRA_DIST): Add utimens.h.
98095         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98096         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98097         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98098         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98099         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98100         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98101         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98102         * modules/yesno (EXTRA_DIST): Add yesno.h.
98104 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98106         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98108         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98109         * m4/dev-ino.m4, same-inode.m4: Remove.
98111         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98112         * m4/acl.m4 (AC_FUNC_ACL):
98113         * m4/backupfile.m4 (gl_BACKUPFILE):
98114         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98115         * m4/canon-host.m4 (gl_CANON_HOST):
98116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98117         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98118         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98119         * m4/cloexec.m4 (gl_CLOEXEC):
98120         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98121         * m4/closeout.m4 (gl_CLOSEOUT):
98122         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98123         * m4/dirname.m4 (gl_DIRNAME):
98124         * m4/exclude.m4 (gl_EXCLUDE):
98125         * m4/exitfail.m4 (gl_EXITFAIL):
98126         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98127         * m4/file-type.m4 (gl_FILE_TYPE):
98128         * m4/filemode.m4 (gl_FILEMODE):
98129         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98130         * m4/fpending.m4 (gl_FUNC_FPENDING):
98131         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98132         * m4/fts.m4 (gl_FUNC_FTS):
98133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98134         * m4/getdate.m4 (gl_GETDATE):
98135         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98136         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98137         * m4/getpass.m4 (gl_FUNC_GETPASS):
98138         * m4/gettime.m4 (gl_GETTIME):
98139         * m4/getugroups.m4 (gl_GETUGROUPS):
98140         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98141         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98142         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98143         * m4/hash.m4 (gl_HASH):
98144         * m4/idcache.m4 (gl_IDCACHE):
98145         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98146         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98147         * m4/long-options.m4 (gl_LONG_OPTIONS):
98148         * m4/lstat.m4 (gl_FUNC_LSTAT):
98149         * m4/md5.m4 (gl_MD5):
98150         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98151         * m4/memcoll.m4 (gl_MEMCOLL):
98152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98154         * m4/memxor.m4 (gl_MEMXOR):
98155         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98157         * m4/modechange.m4 (gl_MODECHANGE):
98158         * m4/mountlist.m4 (gl_MOUNTLIST):
98159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98160         * m4/openat.m4 (gl_FUNC_OPENAT):
98161         * m4/pathmax.m4 (gl_PATHMAX):
98162         * m4/physmem.m4 (gl_PHYSMEM):
98163         * m4/posixtm.m4 (gl_POSIXTM):
98164         * m4/posixver.m4 (gl_POSIXVER):
98165         * m4/quote.m4 (gl_QUOTE):
98166         * m4/quotearg.m4 (gl_QUOTEARG):
98167         * m4/readtokens.m4 (gl_READTOKENS):
98168         * m4/readutmp.m4 (gl_READUTMP):
98169         * m4/regex.m4 (gl_REGEX):
98170         * m4/safe-read.m4 (gl_SAFE_READ):
98171         * m4/safe-write.m4 (gl_SAFE_WRITE):
98172         * m4/same.m4 (gl_SAME):
98173         * m4/save-cwd.m4 (gl_SAVE_CWD):
98174         * m4/savedir.m4 (gl_SAVEDIR):
98175         * m4/settime.m4 (gl_SETTIME):
98176         * m4/sha1.m4 (gl_SHA1):
98177         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98178         * m4/stat-macros.m4 (gl_STAT_MACROS):
98179         * m4/stat-time.m4 (gl_STAT_TIME):
98180         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98181         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98182         * m4/strdup.m4 (gl_FUNC_STRDUP):
98183         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98184         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98185         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98186         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98187         * m4/time_r.m4 (gl_TIME_R):
98188         * m4/timespec.m4 (gl_TIMESPEC):
98189         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98190         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98191         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98192         * m4/userspec.m4 (gl_USERSPEC):
98193         * m4/utimecmp.m4 (gl_UTIMECMP):
98194         * m4/utimens.m4 (gl_UTIMENS):
98195         * m4/xalloc.m4 (gl_XALLOC):
98196         * m4/xgetcwd.m4 (gl_XGETCWD):
98197         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98198         * m4/xreadlink.m4 (gl_XREADLINK):
98199         * m4/xstrtod.m4 (gl_XSTRTOD):
98200         * m4/yesno.m4 (gl_YESNO):
98201         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98202         to get the necessary .h files and whatnot.
98204 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98205             Bruno Haible  <bruno@clisp.org>
98207         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98208         /bin/sh understanding of '!' conditional negation.
98210 2006-08-21  Jim Meyering  <jim@meyering.net>
98212         * modules/openat (Depends-on): Really alphabetize.
98214         * modules/acl (Depends-on): Add error and quote.
98216         * check-module (find_included_lib_files): Add at-func.c to the
98217         ok-to-include-more-than-once white list.
98219         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98221 2006-08-21  Bruno Haible  <bruno@clisp.org>
98223         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98224         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98225         Reported by Martin Lambers <marlam@marlam.de>.
98227 2006-08-21  Bruno Haible  <bruno@clisp.org>
98229         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98230         specify an installation location, don't emit a noinst_LIBRARIES or
98231         noinst_LTLIBRARIES assignment.
98233 2006-08-21  Bruno Haible  <bruno@clisp.org>
98235         BeOS portability.
98236         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98237         BeOS has mbrtowc() but no <wctype.h>.
98239 2006-08-21  Bruno Haible  <bruno@clisp.org>
98241         BeOS portability.
98242         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98243         exist.
98245 2006-08-21  Bruno Haible  <bruno@clisp.org>
98247         BeOS portability.
98248         * lib/mbchar.h: Include <wctype.h> only if it exists.
98250 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98252         Remove files that are no longer needed by their respective modules.
98253         * m4/obstack.m4: Remove.
98254         * m4/strerror_r.m4: Remove.
98255         * m4/uint32_t.m4: Remove.
98256         * m4/uintptr_t.m4: Remove.
98257         * m4/ullong_max.m4: Remove.
98258         * m4/xstrtoimax.m4: Remove.
98259         * m4/xstrtoumax.m4: Remove.
98261         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98262         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98263         dependencies now capture this.
98265         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98266         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98267         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98268         * m4/human.m4 (gl_HUMAN): Likewise.
98269         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98270         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98272         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98274         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98275         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98276         stdint.
98277         * m4/human.m4 (gl_HUMAN): Likewise.
98278         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98279         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98280         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98281         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98282         * m4/xstrtol (gl_XSTRTOL): Likewise.
98284         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98285         AC_TYPE_LONG_LONG_INT.
98286         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98287         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98288         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98289         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98291         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98292         on stdbool.
98294         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98295         (gl_PREREQ_XSTRTOUL): Remove.
98297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98299         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98300         mode.
98302 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98304         Add and change modules to make it easier for coreutils to use
98305         gnulib-tool.
98306         * modules/backupfile (Files): Remove m4/d-ino.m4.
98307         (Depends-on): Add d-ino.
98308         * modules/cycle-check (Depends-on): Add stdint.
98309         (lib_SOURCES): Add cycle-check.h.
98310         * modules/d-ino: New module.
98311         * modules/d-type: New module.
98312         * modules/error (Files): Remove m4/strerror_r.m4.
98313         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98314         * modules/fsuage (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 fsusage.h.
98318         * modules/getcwd (Files): Remove d-ino.m4.
98319         (Depends-on): Add d-ino.
98320         * modules/getndelim2 (Depends-on): Add stdint.
98321         * modules/glob (Files): Remove m4/d-type.m4.
98322         (Depends-on): Add d-type.
98323         * modules/host-os: New module.
98324         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98325         m4/inttypes_h.m4, m4/uintmax_t.m4.
98326         * Depends-on: Add stdint.
98327         (lib_SOURCES): Add human.h.
98328         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98329         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98330         m4/uintmax_t.m4, m4/ulonglong.m4.
98331         (Depends-on): Add stdint.
98332         (EXTRA_DIST): Add inttostr.h.
98333         * modules/lchmod: New module.
98334         * modules/link-follow: New module.
98335         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98336         (Depends-on): Add lchmod.
98337         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98338         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98339         (Depends-on): Add stdint.
98340         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98341         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98342         (Depends-on): Add stdint.
98343         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98344         * modules/perl: New module.
98345         * modules/regex (Depends-on): Add stdint.
98346         * modules/rmdir-errno: New module.
98347         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98348         m4/intmax_t.m4.
98349         (Depends-on): Add stdint.
98350         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98351         m4/uintmax_t.m4.
98352         (Depends-on): Add stdint.
98353         * modules/unlink-busy: New module.
98354         * modules/utimecmp (Depends-on): Add stdint.
98355         * modules/uptime: New module.
98356         * modules/winsz-ioctl: New module.
98357         * modules/winsz-termios: New module.
98358         * modules/xnanosleep (Depends-on): Add nanosleep.
98359         * modules/ullong_max: Remove.
98360         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98361         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98362         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98363         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98364         (Depends-on): Add inttypes.
98365         (lib_SOURCES): Add xstrtol.h.
98366         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98367         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98368         * MODULES.html.sh: Move 'assert' into the assert section.
98369         Move 'dummy' into the linking section.
98370         Remove ullong_max.
98371         Add section for compatibility checks for POSIX:2001 functions,
98372         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98373         winsz-ioctl, and winsz-termios into it.
98374         Add lchmod.
98375         Add top-level Misc section and put host-os, perl, and uptime
98376         into it.
98378 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98380         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98381         now assume the stdint module.  Do not include inttypes.h.
98382         * lib/fsusage.h: Likewise.
98383         * lib/getndelim2.c: Likewise.
98384         * lib/human.h: Likewise.
98385         * lib/inttostr.h: Likewise.
98386         * lib/obstack.c: Likewise.
98387         * lib/regex_internal.h: Likewise.
98388         * lib/tempname.c: Likewise.
98389         * lib/utimecmp.c: Likewise.
98390         * lib/xstrtol.h: Likewise.
98392         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98394         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98395         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98396         * lib/xtime.h: Likewise.
98398 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98400         * modules/openat (Files): Add lib/fchmodat.c.
98401         Fixes problem reported by Jay Youngman.
98403 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98405         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98406         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98408 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98409             Bruno Haible  <bruno@clisp.org>
98411         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98412         and is a script that invokes bison. Tighten the code. Add comments.
98414 2006-08-18  Jim Meyering  <jim@meyering.net>
98416         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98417         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98418         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98419         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98421 2006-08-18  Bruno Haible  <bruno@clisp.org>
98423         * modules/bison-i18n: New file.
98424         * MODULES.html.sh (Internationalization functions): Add it.
98426 2006-08-18  Bruno Haible  <bruno@clisp.org>
98428         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98429         sys/statvfs.h. When getmntinfo was found, check its declaration and
98430         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98432 2006-08-18  Bruno Haible  <bruno@clisp.org>
98434         * m4/bison-i18n.m4: New file, from bison.
98436 2006-08-18  Bruno Haible  <bruno@clisp.org>
98438         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98439         (ME_DUMMY): Treat "kernfs" as a dummy.
98440         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98442 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98444         Update from coreutils.
98446         2006-08-15  Jim Meyering  <jim@meyering.net>
98448         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98450         2006-01-17  Jim Meyering  <jim@meyering.net>
98452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98454         2006-01-11  Jim Meyering  <jim@meyering.net>
98456         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98457         Check for the lchmod function.
98459 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98461         Update from coreutils.
98463         * lib/__fpending.h: Add copyright notice.
98464         * lib/fprintftime.h: Likewise.
98465         * lib/savedir.c: Use (C) in copyright notice.
98466         * lib/savedir.h: Likewise.
98468         2006-08-15  Jim Meyering  <jim@meyering.net>
98470         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98471         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98472         in support of the EXPECTED_ERRNO macro.
98473         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98474         definitions.  Instead, define the appropriate symbols and include
98475         "at-func.c".
98476         * lib/mkdirat.c (mkdirat): Likewise.
98477         * lib/fchmodat.c (fchmodat): Likewise.
98478         (ENOSYS): Remove definition.
98479         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98480         it.  Don't include "unistd--.h" -- it wasn't ever used.
98482         2006-01-17  Jim Meyering  <jim@meyering.net>
98484         Rewrite fts.c not to change the current working directory,
98485         by using openat, fstatat, fdopendir, etc..
98487         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98488         (HAVE_OPENAT_SUPPORT): Define.
98489         [_LIBC] (fchdir): Don't undef or define; no longer used.
98490         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98491         Now, this `function' always succeeds, and consumes its file descriptor
98492         parameter -- so callers must not close such FDs.  Update callers.
98493         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98494         (diropen): Add parameter, SP.  Adjust all callers.
98495         Implement using diropen_fd, rather than open.
98496         (fts_open): Initialize new member, fts_cwd_fd.
98497         Remove fts_rft-setting code.
98498         (fts_close): Close fts_cwd_fd, if necessary.
98499         (__opendir2): Define in terms of opendir or opendirat,
98500         depending on whether the FST_NOCHDIR flag is set.
98501         (fts_build): Since fts_safe_changedir consumes its FD, and since
98502         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98503         and close the dup'd file descriptor upon failure.
98504         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98505         (fts_safe_changedir): Tweak semantics to reflect that this function
98506         now calls cwd_advance_fd and hence consumes its FD argument.
98507         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98508         [struct FTS] (fts_rft): Remove now-unused member.
98509         [struct FTS] (fts_cycle.state): Improve comment.
98511         * lib/openat.c (openat_needs_fchdir): New function.
98512         * lib/openat.h (openat_needs_fchdir): Declare it.
98514 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98516         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98517         Problem and fix reported by Pádraig Brady in
98518         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98520 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98522         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98524 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98526         * lib/memcoll.c (memcoll): Optimize for the common case where the
98527         arguments are bytewise equal.
98529 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98531         * doc/regexprops-generic.texi: Add a copyright notice.
98533 2006-08-15  Bruno Haible  <bruno@clisp.org>
98535         * modules/tmpdir (License): Change to LGPL.
98537 2006-08-15  Bruno Haible  <bruno@clisp.org>
98539         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98540         module.
98542 2006-08-14  Simon Josefsson  <jas@extundo.com>
98544         * config/srclist.txt: Add gnupload.
98546 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98548         Change copyright notice from LGPL 2 to GPL 2, since that's the
98549         standard form used in the gnulib repository.
98550         * tests/test-lock.c: Likewise.
98551         * tests/test-stdint.c: Likewise.
98552         * tests/test-tls.c: Likewise.
98554         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98555         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98556         Add copyright notice.
98558         * check-module: Add copyright notice.  Output a copyright
98559         notice if "--version" is specified.
98560         * modules/COPYING: New file.
98561         * tests/test-getaddrinfo.c: Add copyright notice.
98562         * tests/test-verify.c: Likewise.
98564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98566         Change copyright notice from LGPL 2 to GPL 2, since that's the
98567         standard form used in the gnulib repository.
98568         * lib/lock.c: LGPL -> GPL.
98569         * lib/lock.h: Likewise.
98570         * lib/strnlen1.c: Likewise.
98571         * lib/strnlen1.h: Likewise.
98572         * lib/tls.c: Likewise.
98573         * lib/tls.h: Likewise.
98574         * lib/tmpdir.c: Likewise.
98576         * lib/TODO: Remove; this belongs only in coreutils.
98578 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98580         Add copyright notices to long-enough files that lack them, since
98581         otherwise the files aren't clearly free.  Use the same notice that
98582         getdate.texi already uses.
98583         * doc/alloca-opt.texi: Add copyright notice.
98584         * doc/alloca.texi: Likewise.
98585         * doc/ctime.texi: Likewise.
98586         * doc/functions.texi: Likewise.
98587         * doc/gcd.texi: Likewise.
98588         * doc/gnulib-tool.texi: Likewise.
98589         * doc/inet_ntoa.texi: Likewise.
98590         * doc/visibility.texi: Likewise.
98592         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98593         * doc/quote.texi: Add copyright notice.
98595         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98596         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98597         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98598         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98599         is now obsolete, and give a pointer to the Sun list.
98600         Add copyright notice.
98602 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98604         * config/srclistvars.sh: Add copyright notice.
98606 2006-08-14  Eric Blake  <ebb9@byu.net>
98608         Import the following change from libc:
98610         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98612         Upstream bug 2997.
98613         * lib/misc/error.c: Add space between program name and message if file
98614         name is missing.
98616 2006-08-12  Karl Berry  <karl@gnu.org>
98618         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98619         remove, these originate in gnulib now.
98621 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98623         * doc/Makefile (standards.info standards.html standards.dvi):
98624         Also depend on make-stds.texi.
98626 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98628         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98629         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98631         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98632         in wchar_t.  Problem reported by Eric Blake.
98634         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98635         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98636         Also, help the compiler to keep LEN in a register.
98638 2006-08-11  Eric Blake  <ebb9@byu.net>
98640         * users.txt: Sort.  Add tar.
98642 2006-08-11  Bruno Haible  <bruno@clisp.org>
98644         * users.txt: New file.
98646 2006-08-11  Bruno Haible  <bruno@clisp.org>
98648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98649         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98651 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98653         * modules/snprintf (Depends-on): Remove minmax.
98654         (Maintainer): Add self and Bruno.
98656 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98658         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98659         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98660         (EOVERFLOW): Define if the system does not.
98661         Do not include "minmax.h"; it wasn't used.
98662         (snprintf): Don't assume size_t promotes to an unsigned type.
98663         Fix bug when generated string was too long for the buffer: the
98664         buffer's contents are supposed to be the initial prefix of the
98665         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98666         exceeds INT_MAX; do the check ourselves.
98668         Import the following changes from libc:
98670         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98672         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98673         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98674         set wc to the byte which couldn't be converted.
98675         (re_string_reconstruct): Don't clear valid_raw_len before calling
98676         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98677         tip_context using re_string_context_at.
98679         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98681         * lib/posix/regex.h: g++ still cannot handled [restrict].
98683         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98685         * lib/posix/regex.h: Remove special handling for VMS.
98687 2006-08-10  Jim Meyering  <jim@meyering.net>
98689         * modules/same-inode: New module.
98690         * modules/dev-ino: New module.
98691         * modules/cycle-check: Depend on these modules, rather than simply
98692         including their .h files.
98693         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98694         required via m4/cycle-check.m4.
98695         * modules/same: Depend on new same-inode module, rather than
98696         including same-inode.h.
98697         * modules/chdir-safer: New file.
98699         * modules/chown (Depends-on): Add stat-macros.
98701 2006-08-10  Jim Meyering  <jim@meyering.net>
98703         * m4/cycle-check.m4: New file.
98704         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98705         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98707 2006-08-10  Eric Blake  <ebb9@byu.net>
98709         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98710         in from original proposal.
98712 2006-08-10  Eric Blake  <ebb9@byu.net>
98713         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98715         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98716         namespace.
98718 2006-08-10  Bruno Haible  <bruno@clisp.org>
98720         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98721         as well.
98723 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98725         Sync from coreutils.
98727         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98729         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98730         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98732 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98734         * modules/restrict: Remove; no longer needed now that we assume
98735         Autoconf 2.59 or later.
98736         * MODULES.html.sh: Remove 'restrict'.
98737         * modules/argp (Depends-on): Remove 'restrict'.
98738         * modules/base64 (Depends-on): Likewise.
98739         * modules/gc (Depends-on): Likewise.
98740         * modules/getaddrinfo (Depends-on): Likewise.
98741         * modules/glob (Depends-on): Likewise.
98742         * modules/inet_ntop (Depends-on): Likewise.
98743         * modules/inet_pton (Depends-on): Likewise.
98744         * modules/memxor (Depends-on): Likewise.
98745         * modules/regex (Depends-on): Likewise.
98746         * modules/strtok_r (Depends-on): Likewise.
98747         * modules/time_r (Depends-on): Likewise.
98749 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98751         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98752         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98753         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98754         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98755         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98756         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98757         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98758         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98760         Merge from coreutils.
98761         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98762         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98763         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98764         * m4/time_r.m4 (gl_TIME_R): Likewise.
98766 2006-08-09  Karl Berry  <karl@gnu.org>
98768         * config/srclist.txt: no more gettext-tools, per Bruno.
98770 2006-08-08  Eric Blake  <ebb9@byu.net>
98772         * modules/verror: New module.
98773         * MODULES.html.sh: Document it.
98775 2006-08-08  Eric Blake  <ebb9@byu.net>
98777         * lib/verror.h, lib/verror.c: New files.
98779 2006-08-08  Eric Blake  <ebb9@byu.net>
98781         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98782         verror_at_line output complies with GNU Coding Standards even when
98783         file is NULL.
98785 2006-08-07  Bruno Haible  <bruno@clisp.org>
98787         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98788         versions of AIX.
98789         Reported by Ralf Wildenhues.
98791 2006-08-07  Bruno Haible  <bruno@clisp.org>
98793         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98794         in an AC_DEFUN. Needed so that the autoconf snippets can use
98795         AC_REQUIRE.
98797 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98800         Initialize pkgdata_DATA.
98801         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98802         overriding it.
98804 2006-08-06  Eric Blake  <ebb9@byu.net>
98806         * lib/error.h: Fold in some upstream changes from glibc.
98807         * lib/error.c: Likewise.
98809 2006-08-04  Bruno Haible  <bruno@clisp.org>
98811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98812         Make the mostlyclean-local rule depend on mostlyclean-generic.
98813         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98815 2006-07-31  Bruno Haible  <bruno@clisp.org>
98817         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98818         <stdlib.h>, <string.h>.
98820 2006-07-30  Bruno Haible  <bruno@clisp.org>
98822         * modules/readlink (License): Change to LGPL.
98824 2006-07-30  Bruno Haible  <bruno@clisp.org>
98826         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98827         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98828         set PKGDATADIR to point to it.
98830 2006-07-30  Bruno Haible  <bruno@clisp.org>
98832         * modules/csharpexec (configure.ac): Comment out macro invocation.
98833         * modules/javaexec (configure.ac): Likewise.
98834         * modules/javacomp-script (configure.ac): Likewise.
98836         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98838 2006-07-30  Bruno Haible  <bruno@clisp.org>
98840         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98841         linked-list.
98843 2006-07-30  Bruno Haible  <bruno@clisp.org>
98845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98847 2006-07-30  Bruno Haible  <bruno@clisp.org>
98849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98850         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98851         get removed.
98853 2006-07-29  Bruno Haible  <bruno@clisp.org>
98855         Make it possible for gnulib-tool to work with locally modified or
98856         augmented gnulib repositories.
98857         * gnulib-tool (func_usage): Document --local-dir option.
98858         (local_gnulib_dir): New variable.
98859         Handle --local-dir option.
98860         (func_lookup_file): New function.
98861         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98862         (func_get_description, func_get_filelist, func_get_description,
98863         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98864         func_get_automake_snippet, func_get_include_directive,
98865         func_get_license, func_get_maintainer): Use func_lookup_file.
98866         (func_import, func_create_testdir): Use func_lookup_file.
98868 2006-07-29  Bruno Haible  <bruno@clisp.org>
98870         * modules/setenv (Depends-on): Add unistd.
98872 2006-07-29  Bruno Haible  <bruno@clisp.org>
98874         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98876 2006-07-29  Bruno Haible  <bruno@clisp.org>
98878         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98880 2006-07-29  Bruno Haible  <bruno@clisp.org>
98882         * gnulib-tool (import, update): If there is no Makefile.am, look at
98883         aclocal.m4, instead of bailing out.
98885 2006-07-29  Bruno Haible  <bruno@clisp.org>
98887         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98888         Categorize the options by when they are useful.
98890 2006-07-29  Bruno Haible  <bruno@clisp.org>
98892         * gnulib-tool (func_usage): Document option --no-libtool.
98893         Handle option --no-libtool.
98894         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
98895         for changed semantics of $libtool variable.
98896         (func_import): Likewise. If libtool is not used, show this through
98897         an option --no-libtool.
98898         (func_create_testdir): Update.
98900 2006-07-29  Bruno Haible  <bruno@clisp.org>
98902         * gnulib-tool (func_import): Extend error message about missing
98903         --doc-base.
98905 2006-07-29  Bruno Haible  <bruno@clisp.org>
98907         * gnulib-tool (func_import): Don't create the $docbase directory if
98908         there is no file to store there.
98910 2006-07-29  Bruno Haible  <bruno@clisp.org>
98912         * gnulib-tool (autoconf_minversion): If a --dir option is given and
98913         relevant, look for configure.ac there, not in the current directory.
98914         Also use a simple search for AC_PREREQ, not "autoconf --trace".
98916 2006-07-29  Bruno Haible  <bruno@clisp.org>
98918         * gnulib-tool (SORT): New variable.
98919         (func_usage): Undocument --assume-autoconf option.
98920         Remove --assume-autoconf option handling.
98921         (autoconf_minversion): Determine from the contents of configure.ac.
98922         (func_import): Remove autoconf_minversion handling.
98923         Suggested by Eric Blake.
98925 2006-07-29  Bruno Haible  <bruno@clisp.org>
98927         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
98929 2006-07-29  Bruno Haible  <bruno@clisp.org>
98931         * config/srclist.txt (*setenv.[ch]): Remove rules.
98933 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98935         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
98937 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98939         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
98940         arpa/inet.h.
98942 2006-07-28  Simon Josefsson  <jas@extundo.com>
98944         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
98945         * modules/inet_pton (Depends-on): Likewise.
98947 2006-07-28  Simon Josefsson  <jas@extundo.com>
98949         * m4/netinet_in_h.m4: New file.
98951 2006-07-28  Simon Josefsson  <jas@extundo.com>
98953         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
98954         #include's.
98956 2006-07-28  Simon Josefsson  <jas@extundo.com>
98958         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
98959         #include's.
98961 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
98963         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
98964         setgid on directories only if they set these bits.
98965         * lib/modechange.h: Remove obsolete comment about masks.
98967 2006-07-28  Eric Blake  <ebb9@byu.net>
98969         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
98970         macro expansion.
98972 2006-07-28  Bruno Haible  <bruno@clisp.org>
98974         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
98976 2006-07-28  Bruno Haible  <bruno@clisp.org>
98978         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
98980 2006-07-28  Bruno Haible  <bruno@clisp.org>
98982         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
98983         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
98984         Define fallbacks.
98985         Avoids link error on FreeBSD 4.x.
98986         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98988         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
98989         encoding.
98990         * lib/mbswidth.c (iswcntrl): Likewise.
98992 2006-07-27  Bruno Haible  <bruno@clisp.org>
98994         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
98995         test.
98997 2006-07-27  Bruno Haible  <bruno@clisp.org>
98999         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99000         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99001         defined.
99003 2006-07-26  Eric Blake  <ebb9@byu.net>
99005         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99007 2006-07-26  Eric Blake  <ebb9@byu.net>
99009         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99010         like mingw that lack mkstemp.
99011         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99012         avoid compilation warning on mingw.
99014 2006-07-26  Bruno Haible  <bruno@clisp.org>
99016         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99017         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99018         INT_FAST*_MIN, INTPTR_MIN.
99020 2006-07-25  Bruno Haible  <bruno@clisp.org>
99022         * modules/version-etc (Depends-on): Add stdarg.
99024 2006-07-25  Bruno Haible  <bruno@clisp.org>
99026         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99027         complex commands.
99029 2006-07-25  Bruno Haible  <bruno@clisp.org>
99031         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99032         defined in <stdarg.h> or config.h.
99034 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99036         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99037         (gl_STDIO_SAFER): Remove.
99039 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99041         * MODULES.html.sh (File stream based Input/Output):
99042         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99043         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99044         * modules/fopen-safer, modules/tmpfile-safer: New files.
99045         * modules/stdio-safer: Remove.
99047 2006-07-24  Bruno Haible  <bruno@clisp.org>
99049         * modules/tmpdir: New file.
99050         * MODULES.html.sh (File system functions): Add it.
99052 2006-07-24  Bruno Haible  <bruno@clisp.org>
99054         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99055         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99057 2006-07-24  Bruno Haible  <bruno@clisp.org>
99059         * modules/clean-temp: New file.
99061 2006-07-24  Bruno Haible  <bruno@clisp.org>
99063         * m4/tmpdir.m4: New file, from GNU gettext.
99065 2006-07-24  Bruno Haible  <bruno@clisp.org>
99067         * lib/tmpdir.h: New file, from GNU gettext.
99068         * lib/tmpdir.c: New file, from GNU gettext.
99070 2006-07-24  Bruno Haible  <bruno@clisp.org>
99072         * lib/clean-temp.h: New file, from GNU gettext.
99073         * lib/clean-temp.c: New file, from GNU gettext.
99075 2006-07-23  Eric Blake  <ebb9@byu.net>
99077         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99078         (Depends-on): Add binary-io.
99080 2006-07-23  Eric Blake  <ebb9@byu.net>
99082         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99084 2006-07-23  Eric Blake  <ebb9@byu.net>
99086         * lib/tmpfile-safer.c: New file.
99087         * lib/stdio-safer.h (fopen_safer): Add prototype.
99088         * lib/stdio--.h (tmpfile): Make safer.
99090 2006-07-23  Bruno Haible  <bruno@clisp.org>
99092         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99093         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99094         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99095         gl_linked_remove_at): Use it.
99097 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99098         and Simon Josefsson <jas@extundo.com>
99100         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99102         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99104 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99106         * modules/close-stream: New file.
99107         * modules/closeout (Description): Make it clear that it exits
99108         with a diagnostic on error.
99109         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99110         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99112 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99114         * m4/close-stream.m4: New file.
99116 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99118         * lib/close-stream.c, lib/close-stream.h: New files.
99120 2006-07-22  Bruno Haible  <bruno@clisp.org>
99122         Merge from GNU gettext 0.15.
99124         2006-05-01  Bruno Haible  <bruno@clisp.org>
99126                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99128         2006-07-22  Bruno Haible  <bruno@clisp.org>
99130                 * modules/javaversion: New file.
99131                 * MODULES.html.sh (Java): Add javaversion.
99133         2006-03-12  Bruno Haible  <bruno@clisp.org>
99135                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99137         2005-12-04  Bruno Haible  <bruno@clisp.org>
99139                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99140                 (untested).
99142         2006-06-21  Bruno Haible  <bruno@clisp.org>
99144                 Avoid warnings from recent versions of mcs.
99145                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99146                 -o, -L, -r any more. Use options documented since mcs-1.0
99147                 instead. Similarly for -g.
99149         2005-12-04  Bruno Haible  <bruno@clisp.org>
99151                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99152                 .resources, not .resource.
99154         2005-07-09  Bruno Haible  <bruno@clisp.org>
99156                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99157                 add a .dll suffix.
99158                 Reported by Mark Junker <mjscod@gmx.de>.
99160         2006-07-22  Bruno Haible  <bruno@clisp.org>
99162                 * modules/gettext: Upgrade to gettext-0.15.
99163                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99164                 m4/visibility.m4.
99165                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99167 2006-07-22  Bruno Haible  <bruno@clisp.org>
99169         Merge from GNU gettext 0.15.
99171         2006-03-25  Bruno Haible  <bruno@clisp.org>
99173                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99175         2006-07-21  Bruno Haible  <bruno@clisp.org>
99177                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99178                 "1.1".
99180         2006-05-09  Bruno Haible  <bruno@clisp.org>
99182                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99183                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99184                 for the conftestver execution.
99186         2006-05-01  Bruno Haible  <bruno@clisp.org>
99188                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99189                 optional target-version argument. Verify that the compiler
99190                 groks source of the specified source-version, or add -source
99191                 option as necessary. Verify that the compiler produces
99192                 bytecode in the specified target-version, or add -target and
99193                 -source options as necessary. Make the result of the test
99194                 available as variable CONF_JAVAC. Also log error output in
99195                 config.log.
99197         2006-03-11  Bruno Haible  <bruno@clisp.org>
99199                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99201         2006-05-09  Bruno Haible  <bruno@clisp.org>
99203                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99204                 CLASSPATH_SEPARATOR to a semicolon.
99206         2006-03-12  Bruno Haible  <bruno@clisp.org>
99208                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99209                 available as variable CONF_JAVA, for subsequent autoconf
99210                 tests. Also log error output in config.log.
99212         2006-07-19  Bruno Haible  <bruno@clisp.org>
99214                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99215                 that getline works on glibc2 systems. Needed to avoid trouble
99216                 in relocatable.c.
99217                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99219         2005-12-04  Bruno Haible  <bruno@clisp.org>
99221                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99222                 launcher (untested).
99224         2005-12-04  Bruno Haible  <bruno@clisp.org>
99226                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99228         2006-07-22  Bruno Haible  <bruno@clisp.org>
99230                 * gettext.m4: Update from GNU gettext-0.15.
99231                 * nls.m4: Likewise.
99232                 * po.m4: Likewise.
99233                 * inttypes-pri.m4: Likewise.
99234                 * inttypes-h.m4: Renamed from inttypes.m4.
99235                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99237 2006-07-22  Bruno Haible  <bruno@clisp.org>
99239         Merge from GNU gettext 0.15.
99241         2005-07-05  Bruno Haible  <bruno@clisp.org>
99243                 * printf-args.c (printf_fetchargs): Work around broken
99244                 definition of wint_t on mingw.
99246         2005-02-12  Bruno Haible  <bruno@clisp.org>
99248                 * xallocsa.h: Add extern "C" for C++.
99250         2006-05-17  Bruno Haible  <bruno@clisp.org>
99252                 Cygwin portability.
99253                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99255         2006-04-30  Bruno Haible  <bruno@clisp.org>
99257                 * progreloc.c: Include <mach-o/dyld.h> if available.
99258                 (find_executable): Use _NSGetExecutablePath when possible.
99260         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99262                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99263                 function.
99265         2005-12-29  Bruno Haible  <bruno@clisp.org>
99267                 * progreloc.c (set_program_name_and_installdir): Fix
99268                 compilation error.
99270         2005-12-04  Bruno Haible  <bruno@clisp.org>
99272                 Cygwin portability.
99273                 * progreloc.c: Include <windows.h> also on Cygwin.
99274                 (find_executable): Add support for Cygwin.
99275                 (set_program_name_and_installdir): Handle also platforms with
99276                 nonempty EXEEXT.
99278         2006-07-11  Bruno Haible  <bruno@clisp.org>
99280                 * javacomp.c: Fix a comment.
99281                 Reported by Jim Meyering.
99283         2006-04-30  Bruno Haible  <bruno@clisp.org>
99285                 * javacomp.h (compile_java_class): Add source_version,
99286                 target_version arguments.
99287                 * javacomp.c: Rewritten to choose only a compiler that
99288                 respects the specified source_version and target_version.
99290         2006-06-27  Bruno Haible  <bruno@clisp.org>
99292                 Assume correct S_ISDIR macro.
99293                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99295         2006-07-22  Bruno Haible  <bruno@clisp.org>
99297                 * javaversion.h: New file, from GNU gettext.
99298                 * javaversion.c: New file, from GNU gettext.
99299                 * javaversion.java: New file, from GNU gettext.
99300                 * javaversion.class: New file, from GNU gettext.
99302         2006-05-17  Bruno Haible  <bruno@clisp.org>
99304                 Cygwin portability.
99305                 * javaexec.c (execute_java_class): Test for jview program
99306                 also on Cygwin.
99308         2006-04-09  Bruno Haible  <bruno@clisp.org>
99310                 * fatal-signal.c: Don't include string.h.
99311                 (at_fatal_signal): Use a copying loop instead of memcpy.
99313         2005-12-04  Bruno Haible  <bruno@clisp.org>
99315                 * csharpexec.c: Add support for 'clix' launcher (untested).
99316                 (execute_csharp_using_sscli): New function.
99317                 (execute_csharp_program): Call it.
99319         2006-06-21  Bruno Haible  <bruno@clisp.org>
99321                 Avoid warnings from recent versions of mcs.
99322                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99323                 -o, -L, -r any more. Use options documented since mcs-1.0
99324                 instead. Similarly for -g.
99326         2005-07-09  Bruno Haible  <bruno@clisp.org>
99328                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99329                 add a .dll suffix.
99330                 Reported by Mark Junker <mjscod@gmx.de>.
99332         2006-06-17  Bruno Haible  <bruno@clisp.org>
99334                 * config.charset: Update for NetBSD 3.0.
99336         2006-05-17  Bruno Haible  <bruno@clisp.org>
99338                 Cygwin portability.
99339                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99341         2006-05-16  Bruno Haible  <bruno@clisp.org>
99343                 * localcharset.c [CYGWIN]: Include <windows.h>.
99344                 (get_charset_aliases): For Cygwin, return the same CPxxx
99345                 aliases list as under WIN32.
99346                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99347                 the environment variables. Fall back to GetACP().
99349         2006-04-05  Bruno Haible  <bruno@clisp.org>
99351                 * config.charset: Update Juan Manuel Guerrero's address.
99353         2005-02-12  Bruno Haible  <bruno@clisp.org>
99355                 * allocsa.h: Add extern "C" for C++.
99357         2005-02-10  Bruno Haible  <bruno@clisp.org>
99359                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99360                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99362         2006-07-22  Bruno Haible  <bruno@clisp.org>
99364                 * gettext.h: Update to GNU gettext-0.15.
99366 2006-07-22  Bruno Haible  <bruno@clisp.org>
99368         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99369         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99370         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99372 2006-07-21  Eric Blake  <ebb9@byu.net>
99374         * modules/stdlib-safer: New file.
99375         * MODULES.html.sh (File stream based Input/Output): Add
99376         stdlib-safer.
99378 2006-07-21  Eric Blake  <ebb9@byu.net>
99380         * lib/stdlib-safer.h: New file from coreutils, required by
99381         stdlib--.h.
99383 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99385         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99387 2006-07-20  Bruno Haible  <bruno@clisp.org>
99389         * gnulib-tool: Recognize new option --assume-autoconf.
99390         (autoconf_minversion): New variable.
99391         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99393 2006-07-20  Bruno Haible  <bruno@clisp.org>
99395         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99397 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99399         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99400         Reindent and repaginate.
99402 2006-07-19  Derek Price  <derek@ximbiot.com>
99404         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99405         Correct grammar.
99407 2006-07-17  Bruno Haible  <bruno@clisp.org>
99409         * modules/list: New file.
99410         * modules/array-list: New file.
99411         * modules/carray-list, modules/carray-list-tests: New files.
99412         * modules/linked-list, modules/linked-list-tests: New files.
99413         * modules/avltree-list, modules/avltree-list-tests: New files.
99414         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99415         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99416         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99417         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99418         * modules/oset: New file.
99419         * modules/array-oset: New file.
99420         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99421         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99422         * tests/test-carray_list.c: New file.
99423         * tests/test-linked_list.c: New file.
99424         * tests/test-avltree_list.c: New file.
99425         * tests/test-rbtree_list.c: New file.
99426         * tests/test-linkedhash_list.c: New file.
99427         * tests/test-avltreehash_list.c: New file.
99428         * tests/test-rbtreehash_list.c: New file.
99429         * tests/test-avltree_oset.c: New file.
99430         * tests/test-rbtree_oset.c: New file.
99431         * MODULES.html.sh (Container data structures): New section.
99433 2006-07-17  Bruno Haible  <bruno@clisp.org>
99435         * m4/gl_list.m4: New file.
99437 2006-07-17  Bruno Haible  <bruno@clisp.org>
99439         * lib/gl_list.h: New file.
99440         * lib/gl_list.c: New file.
99441         * lib/gl_array_list.h: New file.
99442         * lib/gl_array_list.c: New file.
99443         * lib/gl_carray_list.h: New file.
99444         * lib/gl_carray_list.c: New file.
99445         * lib/gl_linked_list.h: New file.
99446         * lib/gl_linked_list.c: New file.
99447         * lib/gl_anylinked_list1.h: New file.
99448         * lib/gl_anylinked_list2.h: New file.
99449         * lib/gl_avltree_list.h: New file.
99450         * lib/gl_avltree_list.c: New file.
99451         * lib/gl_anyavltree_list1.h: New file.
99452         * lib/gl_anyavltree_list2.h: New file.
99453         * lib/gl_rbtree_list.h: New file.
99454         * lib/gl_rbtree_list.c: New file.
99455         * lib/gl_anyrbtree_list1.h: New file.
99456         * lib/gl_anyrbtree_list2.h: New file.
99457         * lib/gl_anytree_list1.h: New file.
99458         * lib/gl_anytree_list2.h: New file.
99459         * lib/gl_linkedhash_list.h: New file.
99460         * lib/gl_linkedhash_list.c: New file.
99461         * lib/gl_anyhash_list1.h: New file.
99462         * lib/gl_anyhash_list2.h: New file.
99463         * lib/gl_avltreehash_list.h: New file.
99464         * lib/gl_avltreehash_list.c: New file.
99465         * lib/gl_rbtreehash_list.h: New file.
99466         * lib/gl_rbtreehash_list.c: New file.
99467         * lib/gl_anytreehash_list1.h: New file.
99468         * lib/gl_anytreehash_list2.h: New file.
99470         * lib/gl_oset.h: New file.
99471         * lib/gl_oset.c: New file.
99472         * lib/gl_array_oset.h: New file.
99473         * lib/gl_array_oset.c: New file.
99474         * lib/gl_avltree_oset.h: New file.
99475         * lib/gl_avltree_oset.c: New file.
99476         * lib/gl_rbtree_oset.h: New file.
99477         * lib/gl_rbtree_oset.c: New file.
99478         * lib/gl_anytree_oset.h: New file.
99480 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99482         * m4/mkancesdirs.m4: New file.
99483         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99484         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99485         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99486         it.
99488 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99490         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99491         * lib/mkancesdirs.h: New files.
99492         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99493         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99494         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99495         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99496         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99497         callers changed.  Revamp internals significantly, by not
99498         attempting to create directories that are temporarily more
99499         permissive than the final results.  Do not attempt to use
99500         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99501         This removes some race conditions, fixes some bugs, and simplifies
99502         things.  Use new dirchownmod function to do owner and mode changes.
99503         * lib/mkdir-p.h: Likewise.
99504         * lib/modechange.c (octal_to_mode): New function.
99505         (struct mode_change): New member mentioned.
99506         (make_node_op_equals): New arg mentioned.  All callers changed.
99507         (mode_compile): Keep track of which mode bits the user has explicitly
99508         mentioned.
99509         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99510         New arg PMODE_BITS, to keep track of which mode bits the user
99511         mentioned; it treats S_ISUID and S_ISGID speciall.
99512         All callers changed.
99513         * lib/modechange.h: Likewise.
99515 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99517         * MODULES.html.sh: Add mkancestors.
99518         * modules/mkancesdirs: New module.
99519         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99520         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99521         The chdir-safer and afs files are now orphans; I'll remove them
99522         unless someone speaks up.
99523         Add lib/dirchownmod.c, lib/dirchownmod.h.
99524         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99525         Add lchown, mkancesdirs.
99526         (Maintainer): Add self.
99528 2006-07-15  Karl Berry  <karl@gnu.org>
99530         * gnulib-tool: help message wording/arrangement.
99532 2006-07-14  Simon Josefsson  <jas@extundo.com>
99534         * doc/gnulib.texi (Libtool and Windows): New section.
99536 2006-07-12  Simon Josefsson  <jas@extundo.com>
99538         * modules/gendocs (License): Fix license, approved by Karl.
99540 2006-07-12  Eric Blake  <ebb9@byu.net>
99542         * MODULES.html.sh: Add gendocs.
99544 2006-07-11  Eric Blake  <ebb9@byu.net>
99546         * modules/fdl: New module, to install doc/fdl.texi.
99547         * MODULES.html.sh: Add new section for documentation modules.
99548         * gnulib-tool: Avoid space-tab.
99549         (--doc-base): New option, to manage files from doc.
99551 2006-07-11  Eric Blake  <ebb9@byu.net>
99553         * m4/absolute-header.m4: Fix comments to match recent change.
99555 2006-07-11  Eric Blake  <ebb9@byu.net>
99557         * gnulib-tool: List --doc-base before --tests-base.
99559 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99561         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99563 2006-07-11  Bruno Haible  <bruno@clisp.org>
99565         * README: Mention where to put documentation.
99567 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99569         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99571 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99573         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99574         to stdint.m4.
99576 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99578         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99579         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99580         "no/such/file/stdint.h" when there is no such file, so that
99581         the resulting C code can be parsed by dodgy compilers.
99582         Problems reported by Bob Proulx.
99584 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99586         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99587         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99588         macros into the GNU _D_EXACT_NAMLEN.
99589         * lib/savedir.c:  Likewise.
99590         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99592 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99593         and Paul Eggert  <eggert@cs.ucla.edu>
99595         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99596         * m4/savedir.m4:
99597         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99598         macros into the GNU _D_EXACT_NAMLEN.
99600 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99603         around the absolute name, to work around a problem with the HP-UX
99604         11.23 native C compiler, reported by Bob Proulx.
99606 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99608         * doc/maintain.texi, make-stds.texi: Sync from
99609         <http://savannah.gnu.org/projects/gnustandards>.
99611 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99613         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99615 2006-07-09  Jim Meyering  <jim@meyering.net>
99617         * m4/glob.m4: Remove a doubled word in a comment.
99619 2006-07-09  Jim Meyering  <jim@meyering.net>
99621         * lib/argp-pv.c: Remove a doubled word in a comment.
99622         * lib/check-version.c (check_version): Likewise.
99623         * lib/javacomp.c (compile_java_class): Likewise.
99625 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99627         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99628         for the benefit of people using Autoconf 2.60.  If you want to
99629         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99630         (or m4/onceonly.m4, if pre-2.57) manually.
99632 2006-07-08  Jim Meyering  <jim@meyering.net>
99634         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99635         comment.
99636         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99637         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99638         comment.
99640 2006-07-08  Jim Meyering  <jim@meyering.net>
99642         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99644 2006-07-07  Simon Josefsson  <jas@extundo.com>
99646         * tests/test-crc.c: Change expected crc value, the test vector
99647         were probably computed using the old broken crc.c?
99649 2006-07-06  Simon Josefsson  <jas@extundo.com>
99651         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99652         now the canonical place for the M4 file).
99654         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99655         from the sys_socket dependency now.
99657         * modules/inet_pton (Files): Ditto.
99659         * modules/inet_ntop (Files): Ditto.
99661 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99663         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99664         not gl_PREREQ_GETUSERSHELL.
99666 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99668         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99669         with only one argument, for Autoconf 2.60.
99670         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99671         expand to nothing, so add a shell command to avoid syntax error.
99672         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99674 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99676         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99678 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99681         no longer needed.  Check for isblank decl.
99682         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99683         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99684         of existence.
99686 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99688         * lib/getloadavg.c: Use __VMS, not VMS.
99689         * lib/getopt.c: Likewise.
99690         * lib/getpagesize.h: Likewise.
99691         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99692         and probably does not work.
99694 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99696         * lib/.cppi-disable: Add wcwidth.
99697         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99698         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99699         (ISGRAPH): Remove.  All uses changed to isgraph.
99700         (FOLD) [!defined _LIBC]: Remove special case.
99701         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99702         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99703         HAVE_ISBLANK.
99704         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99705         case.
99707 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99709         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99710         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99711         brackets.  Other minor changes to suppress some compiler
99712         warnings.
99714 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99715         and Paul Eggert  <eggert@cs.ucla.edu>
99717         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99718         of invoking obsolescent AC_HEADER_DIRENT macro.
99719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99720         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99721         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99722         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99723         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99724         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99725         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99726         * m4/readdir.m4: Remove; no longer needed.
99728 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99729         and Paul Eggert  <eggert@cs.ucla.edu>
99731         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99732         Don't worry about this obsolete case any more.
99733         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99734         directories.
99735         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99736         worry about this obsolete case any more.
99737         * lib/fts.c: Likewise.
99738         * lib/getcwd.c: Likewise.
99739         * lib/glob.h: Likewise.
99740         * lib/savedir.c: Likewise.
99742 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99744         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99745         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99746         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99747         needed.
99748         All uses removed.
99749         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99750         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99751         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99752         needed.
99753         * m4/getdate.m4 (gl_GETDATE): Likewise.
99754         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99755         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99756         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99757         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99758         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99759         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99760         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99761         needed.
99763 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99765         * lib/memcasecmp.c: Include <limits.h>.
99766         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99767         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99768         Don't assume isdigit succeeds only on '0' through '9'.
99770 2006-07-05  Eric Blake  <ebb9@byu.net>
99772         * modules/getaddrinfo (Depends-on): Add snprintf.
99774 2006-07-05  Eric Blake  <ebb9@byu.net>
99776         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99777         to avoid 'header present but could not be compiled' on cygwin.
99779 2006-07-05  Eric Blake  <ebb9@byu.net>
99781         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99782         missing from netdb.h.
99783         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99785 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99787         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99788         no longer needed.
99789         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99790         * m4/getdate.m4 (gl_GETDATE): Likewise.
99791         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99792         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99793         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99794         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99795         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99797 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99799         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99800         All uses of is_space replaced by isspace.
99801         * lib/exit.h: Don't talk about STDC_HEADERS.
99802         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99803         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99804         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99805         replaced by isprint etc.
99806         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99807         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99808         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99809         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99810         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99811         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99813 2006-07-05  Bruno Haible  <bruno@clisp.org>
99815         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99816         the function exists, before testing against AIX.
99817         Reported by Martin Lambers <marlam@marlam.de>.
99819 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99821         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99822         From Mark D. Baushke.
99824 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99826         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99827         to the absolute name, not just one, to bypass Sun C 5.8's
99828         "warning: #include of /usr/include/... may be non-portable".
99830 2006-07-04  Eric Blake  <ebb9@byu.net>
99832         * modules/dirname-tests: New test module.
99833         * tests/test-dirname.c: New file, replacing dirname.c
99834         TEST_DIRNAME section that was recently deleted.
99836 2006-07-04  Bruno Haible  <bruno@clisp.org>
99838         Assume ANSI C header files and <ctype.h> functions.
99839         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99840         (mbsnwidth): Use isprint, iscntrl instead.
99842 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99844         Merge from coreutils.
99845         * MODULES.html.sh: Add xstrtold.
99846         * modules/xstrtold: New file.
99847         * modules/cycle-check (Files): Add lib/same-inode.h.
99848         * modules/dirname (Files): Add m4/double-slash-root.m4.
99849         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99850         * modules/mkdir-p (Files): Add lib/same-inode.h.
99851         * modules/same (Files): Add lib/same-inode.h.
99853 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99855         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99856         This is to keep the terminology clean; POSIX talks about
99857         "absolute pathnames", not "full pathnames", but the GNU
99858         Coding Standards say to use "path" for something else;
99859         so use "absolute" to keep both sides happy.
99860         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99861         Set gl_absolute_header, not gl_full_header_path.
99862         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99863         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99864         All uses changed.
99866         Merge from coreutils.
99868         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99870         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99871         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99872         want to require the building of c-strtod.o.
99873         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99874         needs -lm directly.
99875         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99877         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99879         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99880         --as-needed option if available.  Problem reported by Albert Chin in
99881         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99882         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99883         cc merely issues a bunch of annoying warnings for --as-needed
99884         (this problem was reported by Bob Proulx).  Also, try linking with
99885         -lm to detect a bug in binutils 2.16 (this problem was reported
99886         by Ralf Wildenhues).
99888         2006-06-18  Jim Meyering  <jim@meyering.net>
99890         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99891         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99892         macro.
99893         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
99894         also check for glibc-2.4's abort-inducing bug.
99896         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
99897         Low-probability clean-up should be to use rmdir to get rid of
99898         the just-created directory, not unlink.
99900         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
99901         configure fail, and request a bug report to inform us about it.
99902         Add a comment that, barring reports to the contrary, in 2007 we'll
99903         assume ftruncate is universally available.
99905         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99907         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
99909         2006-03-12  Jim Meyering  <jim@meyering.net>
99911         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
99912         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
99913         * m4/same.m4 (gl_SAME): Likewise.
99914         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
99916         2006-03-11  Eric Blake  <ebb9@byu.net>
99918         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
99919         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
99920         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
99921         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
99923 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99925         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
99926         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
99927         reported by Mark D. Baushke, one in
99928         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
99930         Merge from coreutils.
99932         * lib/.cppi-disable: Add stdint_.h.
99933         * lib/.cvsignore: Add stdint.h.
99935         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99937         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
99938         both double and long double versions.
99939         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
99940         * lib/xstrtold.c: New file.
99941         * lib/xstrtod.h (xstrtold): New decl.
99943         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99945         * lib/filemode.c (setst): Remove.
99946         (strmode): Rewrite to avoid setst.  This makes the code shorter,
99947         (arguably) clearer, and the generated code is a bit smaller on my
99948         Debian GNU/Linux stable x86 host.
99950         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99952         * lib/filemode.c: Include "filemode.h" first, to test the interface.
99953         Assume that filemode.h includes sys/types.h and sys/stat.h.
99954         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
99955         (ftypelet): Reorder to put common cases first, for efficiency.
99956         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
99957         to do 'M'.
99958         (strmode): Renamed from mode_string, and now stores 12 bytes instead
99959         of 10, for compatibility with FreeBSD.  All callers changed.
99960         (filemodestring): Now stores 12 bytes instead of 10, and sets file
99961         types that can't be deduced solely from st_mode.  First arg is now a
99962         const pointer.
99963         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
99964         (strmode): Renamed from mode_string.
99965         (filemodestring): New decl.
99966         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
99967         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
99968         needed.
99969         (S_ISPORT, S_ISWHT): New macros, if not already defined.
99971         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99973         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
99974         fsusage.h now does that.  Include fsusage.h first, to test interface.
99975         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
99976         at most one method (the old code could have generated decls that
99977         didn't conform to C89, not that this was ever exercised).
99978         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
99980         2006-03-19  Jim Meyering  <jim@meyering.net>
99982         Work even in a chroot where d_ino values for entries in "/"
99983         don't match the stat.st_ino values for the same names.
99984         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
99985         number, iterate through all entries again, using lstat instead.
99986         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
99987         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
99989         * lib/getcwd.c (__getcwd): Clarify a comment.
99990         Use memcpy in place of a call to strcpy.
99992         2006-03-12  Jim Meyering  <jim@meyering.net>
99994         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
99995         matches that of the current directory (which we're about to chdir ".."
99996         out of), then save the dev-ino of the parent, instead.
99998         * lib/same-inode.h (SAME_INODE): New file/macro.
99999         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100000         Include "same-inode.h", instead.
100001         * lib/same.c: Likewise.
100002         * lib/cycle-check.h: Include "same-inode.h".
100003         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100004         * lib/cycle-check.c (SAME_INODE): Remove definition.
100005         * lib/root-dev-ino.h: Include "same-inode.h".
100007         2006-03-11  Eric Blake  <ebb9@byu.net>
100009         * lib/same.c (same_name): s/base_name/last_component/
100010         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100011         * lib/filenamecat.c (file_name_concat): Likewise.
100013         2006-03-11  Eric Blake  <ebb9@byu.net>,
100014                     Paul Eggert  <eggert@cs.ucla.edu>
100016         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100017         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100018         drive prefix.
100019         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100020         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100021         (last_component): New method.
100022         * lib/dirname.c (dir_len): Determine when drive letters need a
100023         subsequent slash.  Preserve // when it is special.
100024         (dir_name): Don't append dot when drive letter is absolute.
100025         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100026         * lib/basename.c (base_name): New semantics - malloc the result.
100027         Preserve // when it is special.  Preserve relative files that look
100028         like drive letters.
100029         (base_len): Preserve // when it is special.
100030         (last_component): New method, similar to old base_name semantics.
100031         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100032         base_name.  Strip redundant slashes from ///.
100034 2006-07-03  Jim Meyering  <jim@meyering.net>
100036         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100037         macro is used before the first cycle_check call.
100039 2006-07-03  Eric Blake  <ebb9@byu.net>
100041         * modules/dirname (Depends-on): Add xstrndup.
100043 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100045         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100046         test cases, so that config.log is a bit easier to follow.
100048 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100050         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100051         both are 64 bits, since this seems to be the tradition, and this
100052         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100053         we ever run into a host that prefers long long to long in this
100054         case, we'll need another configure-time test.  Problem reported by
100055         Jim Meyering.
100057 2006-07-02  Eric Blake  <ebb9@byu.net>
100059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100061 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100063         * modules/inttypes (Depends-on): No longer depends on stdint.
100064         * modules/stdint (Description): Say more about assumptions.
100065         Say that the fast types might differ.  Say macros are used.
100066         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100067         (Makefile.am): Revise list of substituted symbols to match
100068         new stdint.m4.
100069         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100070         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100071         * tests/test-stdint.c (verify_same_types)
100072         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100073         the code conforms to C99/C89.
100074         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100075         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100077 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100079         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100080         but fix a bug, by requiring at least 64 bits.
100081         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100082         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100083         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100084         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100086         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100087         changes.  Make 2.59 a prerequisite.  Check and substitute for
100088         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100089         inttypes.h.  Do not use special include files; just use the
100090         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100091         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100092         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100093         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100094         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100095         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100096         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100097         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100098         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100099         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100100         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100101         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100102         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100103         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100104         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100105         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100106         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100107         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100108         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100109         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100110         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100111         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100112         not check for things that C99 does not require, e.g., int8_t.  If
100113         a test isn't needed unless <stdint.h> isn't working, and is
100114         unlikely to be needed for any other reason, then don't do it
100115         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100116         size_t, since we assume C89 freestanding at least.  Do not check
100117         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100118         the right thing even if the types are not defined.  Instead use:
100119         (gl_STDINT_TYPE_PROPERTIES): New macro.
100120         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100121         testing whether <sys/types.h> clashes, as Autoconf does this for
100122         us now.  All uses removed.
100123         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100124         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100125         (gl_CHECK_TYPE_SAME):
100126         Remove; no longer needed.
100127         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100128         exists, since we'll return 0 anyway in that case.
100129         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100131 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100133         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100134         possible collision with system files.
100135         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100136         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100137         WCHAR_MIN and WCHAR_MAX in this case.
100138         (<stddef.h>): Do not include; no longer needed.
100139         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100140         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100141         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100142         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100143         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100144         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100145         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100146         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100147         !defined(__c99))]: Include in this case too, since it's harmless
100148         now.
100149         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100150         dangerous to do so.
100151         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100152         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100153         (_STDINT_MIN, _STDINT_MAX): New macros.
100154         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100155         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100156         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100157         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100158         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100159         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100160         macros, not typedefs; this simplifies things quite a bit.
100161         Use long int for all types narrower than int64_t.
100162         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100163         Define in terms of long long int or int64_t or long int,
100164         not int64_t or int32_t.  This saves some compile-time testing.
100165         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100166         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100167         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100168         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100169         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100170         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100171         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100172         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100173         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100174         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100175         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100176         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100177         undef any previous version and define our own version, for
100178         simplicity and consistency with the new macros for types.
100179         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100180         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100181         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100182         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100183         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100184         @WINT_T_SUFFIX@ to keep things simple here.
100185         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100186         Simplify by assuming typical 8/16/32/64 host, since we're
100187         already doing that elsewhere anyway.
100188         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100189         and assume long long int is 64 bits if available.  This
100190         speeds up 'configure'.
100192 2006-07-01  Eric Blake  <ebb9@byu.net>
100194         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100195         Reported by Andreas Buening.
100197 2006-07-01  Eric Blake  <ebb9@byu.net>
100199         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100201 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100203         * lib/getaddrinfo.c: fixed typo
100205 2006-06-29  Jim Meyering  <jim@meyering.net>
100207         * modules/strftime (Maintainer): Add my name, since with the
100208         FPRINTFTIME changes strftime.c has forked from glibc.
100210 2006-06-29  Eric Blake  <ebb9@byu.net>
100212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100214 2006-06-29  Eric Blake  <ebb9@byu.net>
100216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100218 2006-06-29  Eric Blake  <ebb9@byu.net>
100220         * lib/stat_.h: New file.
100222 2006-06-29  Eric Blake  <ebb9@byu.net>
100224         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100225         unused static function.
100227 2006-06-29  Eric Blake  <ebb9@byu.net>
100229         * doc/functions.texi (Function Portability): Document missing lstat
100230         on mingw.
100232 2006-06-29  Eric Blake  <ebb9@byu.net>
100234         * MODULES.html.sh: Add sys_stat.
100235         * modules/sys_stat: New module.
100236         * modules/mkstemp (Depends-on): Add sys_stat.
100238 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100240         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100242 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100244         * m4/c-bs-a.m4: Removed.
100246 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100248         * lib/strftime.c: Assume strftime() exists.
100250 2006-06-29  Derek Price  <derek@ximbiot.com>
100252         * modules/c-bs-a: Removed - \a is C89.
100253         * MODULES.html.sh: Remove c-bs-a.
100255 2006-06-29  Bruno Haible  <bruno@clisp.org>
100257         * modules/wcwidth (License): Change to LGPL.
100259 2006-06-28  Simon Josefsson  <jas@extundo.com>
100261         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100262         on _WIN32.
100264         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100265         getnameinfo.
100267 2006-06-28  Simon Josefsson  <jas@extundo.com>
100269         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100271 2006-06-28  Simon Josefsson  <jas@extundo.com>
100273         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100274         functions there.  It will succeed on Windows XP, but on Windows
100275         2000 and (presumably) earlier, it will fail, and use the internal
100276         re-implementation.
100277         (use_win32_p): New function.
100278         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100279         Support AI_NUMERICSERV to disable getservbyname.
100280         (getnameinfo): New function, only supports
100281         NI_NUMERICHOST|NI_NUMERICSERV for now.
100283         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100284         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100285         getnameinfo.
100287 2006-06-28  Eric Blake  <ebb9@byu.net>
100289         * modules/wcwidth: New file.
100290         * modules/mbchar (Depends-on): Add wcwidth.
100291         * modules/mbswidth (Depends-on): Add wcwidth.
100292         * MODULES.html.sh: Add wcwidth.
100294 2006-06-28  Eric Blake  <ebb9@byu.net>
100296         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100299 2006-06-28  Eric Blake  <ebb9@byu.net>
100301         * lib/xvasprintf.h: Fix comments.
100303 2006-06-28  Eric Blake  <ebb9@byu.net>
100305         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100306         * lib/mbswidth.c (wcwidth): Move from here...
100307         * lib/wcwidth.h: ...to this new file.
100309 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100311         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100313         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100314         it's obsolete.
100315         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100317 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100319         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100320         Autoconf 2.60 says this stuff was obsolete.
100322 2006-06-28  Bruno Haible  <bruno@clisp.org>
100324         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100326 2006-06-28  Bruno Haible  <bruno@clisp.org>
100328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100329         gt_TYPE_WCHAR_T.
100331 2006-06-28  Bruno Haible  <bruno@clisp.org>
100333         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100334         declaration for wcwidth.
100335         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100337 2006-06-28  Bruno Haible  <bruno@clisp.org>
100339         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100340         (mkdir): Define using _mkdir.
100342 2006-06-28  Bruno Haible  <bruno@clisp.org>
100344         * lib/getaddrinfo.h: Fix POSIX URL.
100345         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100346         _WIN32.
100347         (use_win32_p): Make static.
100348         (getaddrinfo): Reject service name if it is empty or does not consist
100349         solely of decimal digits, or if its value is > 65535.
100350         (getnameinfo): Remove useless casts.
100352 2006-06-27  Simon Josefsson  <jas@extundo.com>
100354         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100355         Eggert and Martin Lambers.
100357 2006-06-27  Simon Josefsson  <jas@extundo.com>
100359         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100360         Eggert and Martin Lambers.
100362 2006-06-27  Bruno Haible  <bruno@clisp.org>
100364         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100365         result to 0, not to empty.
100366         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100368 2006-06-27  Bruno Haible  <bruno@clisp.org>
100370         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100372 2006-06-26  Simon Josefsson  <jas@extundo.com>
100374         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100375         present.
100377 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100379         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100380         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100381         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100383 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100385         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100387 2006-06-26  Bruno Haible  <bruno@clisp.org>
100389         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100391 2006-06-26  Bruno Haible  <bruno@clisp.org>
100393         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100395 2006-06-26  Bruno Haible  <bruno@clisp.org>
100397         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100398         SGI C compiler in pre-C99 mode.
100399         Suggested by Mark D. Baushke and Larry Jones.
100401 2006-06-26  Bruno Haible  <bruno@clisp.org>
100403         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100404         WCHAR_MAX.
100405         Reported by Mark D. Baushke and Larry Jones.
100407 2006-06-26  Bruno Haible  <bruno@clisp.org>
100409         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100410         in pre-C99 mode.
100411         Suggested by Mark D. Baushke and Larry Jones.
100413 2006-06-23  Simon Josefsson  <jas@extundo.com>
100414             Bruno Haible  <bruno@clisp.org>
100416         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100417         Emit mostlyclean-local rule.
100418         (func_emit_tests_Makefile_am): Likewise.
100419         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100421 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100423         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100425 2006-06-23  Bruno Haible  <bruno@clisp.org>
100427         * tests/test-stdint.c: Update to match ISO C 99 Technical
100428         Corrigendum 1.
100430 2006-06-23  Bruno Haible  <bruno@clisp.org>
100432         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100434 2006-06-23  Bruno Haible  <bruno@clisp.org>
100436         * lib/stdint_.h: Treat IRIX like OpenBSD.
100438 2006-06-23  Bruno Haible  <bruno@clisp.org>
100440         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100441         ISO C 99 Technical Corrigendum 1.
100443 2006-06-22  Simon Josefsson  <jas@extundo.com>
100445         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100446         MinGW.
100448 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100450         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100451         needed.  Some compiler complained about some of them.  Problem reported
100452         by Larry Jones in
100453         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100455 2006-06-21  Simon Josefsson  <jas@extundo.com>
100457         * tests/test-getaddrinfo.c: New file.
100459         * modules/getaddrinfo-tests: New file.
100461         * MODULES.html.sh: Add inet_pton.
100463         * modules/inet_pton: New file.
100465 2006-06-21  Simon Josefsson  <jas@extundo.com>
100467         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100468         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100469         of using the (limited) gnulib implementation on Windows XP.
100471         * m4/inet_pton.m4: New file.
100473 2006-06-21  Simon Josefsson  <jas@extundo.com>
100475         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100476         variable.
100478         * lib/socket_.h: Don't define WINVER.
100480         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100481         slightly modified to work in gnulib.
100483 2006-06-21  Simon Josefsson  <jas@extundo.com>
100485         * doc/gnulib.texi (Windows sockets): Add.
100487 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100489         * lib/read-file.c (fread_file): Start with buffer allocation of
100490         0 bytes rather than 1 byte; this simplifies the code.
100491         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100492         code to free buffer and save/restore errno.
100493         (internal_read_file): Remove unused local.
100495 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100497         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100498         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100499         Problem reported by Denis Excoffier in
100500         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100502 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100504         * modules/sys_socket, modules/socklen: Include sys/types since
100505         FreeBSD 4.x's sys/socket.h needs it.
100507 2006-06-19  Simon Josefsson  <jas@extundo.com>
100509         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100511 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100513         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100515 2006-06-19  Bruno Haible  <bruno@clisp.org>
100517         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100518         and FULL_PATH_INTTYPES_H in angle brackets.
100519         Reported by Mark D. Baushke <mdb@gnu.org>.
100521 2006-06-17  Eric Blake  <ebb9@byu.net>
100523         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100524         errno.
100526 2006-06-17  Bruno Haible  <bruno@clisp.org>
100528         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100529         <sys/inttypes.h>.
100531 2006-06-17  Bruno Haible  <bruno@clisp.org>
100533         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100534         whether errno is declared. Assume <errno.h> declares errno.
100536 2006-06-17  Bruno Haible  <bruno@clisp.org>
100538         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100540 2006-06-17  Bruno Haible  <bruno@clisp.org>
100542         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100543         problem on Solaris 2.5.1.
100545 2006-06-16  Eric Blake  <ebb9@byu.net>
100547         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100548         * lib/unicodeio.c [!defined errno]: Likewise.
100549         * lib/strtol.c [!defined errno]: Likewise.
100550         * lib/strtod.c [!defined errno]: Likewise.
100552 2006-06-15  Eric Blake  <ebb9@byu.net>
100554         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100556 2006-06-15  Eric Blake  <ebb9@byu.net>
100558         * config/srclist.txt (ssize_t.m4): Lose sync.
100560 2006-06-15  Bruno Haible  <bruno@clisp.org>
100562         * modules/stdint (Files): Include m4/full-header-path.m4,
100563         m4/size_max.m4, m4/wchar_t.m4.
100564         (Makefile.am): Many more substitutions.
100565         * modules/stdint-tests: New file.
100566         * tests/test-stdint.c: New file.
100568 2006-06-15  Bruno Haible  <bruno@clisp.org>
100570         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100571         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100572         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100573         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100574         gl_CHECK_TYPE_SAME): New macros.
100576 2006-06-15  Bruno Haible  <bruno@clisp.org>
100578         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100580 2006-06-15  Bruno Haible  <bruno@clisp.org>
100582         * lib/stdint_.h: Rewritten to be fully auto-configured.
100583         Fixes bug on HP-UX/IA64.
100585 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100587         * lib/getdate.y (__attribute__): Don't define if already defined.
100588         Problem reported by Larry Jones.
100589         * lib/utimens.c (__attribute__): Likewise.
100591 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100593         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100594         reported by Andreas Schwab.
100596 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100597             Bruno Haible  <bruno@clisp.org>
100599         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100600         check for the declaration of strnlen and a run test that exposes the
100601         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100602         rpl_strndup.
100604 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100605             Bruno Haible  <bruno@clisp.org>
100607         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100609 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100611         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100612         compile test, for Tru64 4.0D.
100614 2006-05-28  Karl Berry  <karl@gnu.org>
100616         * config/srclist.txt (printf-args.c): lose sync.
100618 2006-05-26  Martin Lambers  <marlam@marlam.de>
100620         * lib/getpass.c: Updates the test for the native W32 API, and adds
100621         missing includes, thus fixing compilation warnings.
100623 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100625         * lib/exclude.c (exclude_fnmatch): New function.
100626         (excluded_file_name): Call exclude_fnmatch.
100627         * lib/exclude.h (excluded_file_name): New prototype
100629 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100631         * lib/tempname.c (small_open, large_open): New macros.
100632         (__open, __open64) [!_LIBC]: Remove.
100633         (__gen_tempname): Use small_open and large_open instead of __open
100634         and __open64.  This fixes a portability bug on HP-UX 11.11i
100635         reported by Simon Wing-Tang in
100636         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100638 2006-05-24  Bruno Haible  <bruno@clisp.org>
100640         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100641         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100642         Reported by Thorsten Maerz <torte@netztorte.de> via
100643         Aaron Stone <aaron@serendipity.cx>.
100645 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100648         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100649         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100650         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100651         not really conditional on the cache.
100652         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100654 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100656         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100657         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100658         (my_usleep): Don't mishandle maximum value.
100660 2006-05-19  Jim Meyering  <jim@meyering.net>
100662         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100664 2006-05-17  Bruno Haible  <bruno@clisp.org>
100666         Cygwin portability.
100667         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100669 2006-05-17  Bruno Haible  <bruno@clisp.org>
100671         * lib/stdint_.h: Fix recognition of Cygwin.
100673 2006-05-15  Bruno Haible  <bruno@clisp.org>
100675         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100676         on libtool patch by Ralf Wildenhues.
100678 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100680         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100681         test for C99 conformance; (bool) 0.5 is an integer constant
100682         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100683         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100685 2006-05-11  Simon Josefsson  <jas@extundo.com>
100687         * m4/xvasprintf.m4: Fix obvious typo.
100689 2006-05-11  Jim Meyering  <jim@meyering.net>
100691         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100692         James Lemley.
100694 2006-05-10  Simon Josefsson  <jas@extundo.com>
100696         * lib/md4.c: Typo fix, update copyright years.
100697         (K1, K2): Don't use L because it turn computations into 64-bit on
100698         64-bit platforms.
100700 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100702         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100703         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100704         unwanted sign propagation, e.g., on hosts with 64-bit int.
100705         There still are some problems with reeelly weird theoretical hosts
100706         (e.g., 33-bit int) but it's not worth worrying about now.
100707         * lib/sha1.c (rol): Likewise.
100708         (K1, K2, K3, K4): Remove unnecessary L suffix.
100710 2006-05-10  Bruno Haible  <bruno@clisp.org>
100712         * lib/des.c: Cast to avoid warnings.
100714 2006-05-09  Bruno Haible  <bruno@clisp.org>
100716         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100717         (Depends-on): Depend also on xsize, stdarg.
100718         (configure.ac): Add gl_XVASPRINTF.
100720 2006-05-09  Bruno Haible  <bruno@clisp.org>
100722         * m4/xvasprintf.m4: New file.
100724 2006-05-09  Bruno Haible  <bruno@clisp.org>
100726         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100727         (EOVERFLOW): Define fallback value.
100728         (xstrcat): New function.
100729         (xvasprintf): Recognize the special case of a string concatenation.
100731 2006-05-08  Eric Blake  <ebb9@byu.net>
100733         * gnulib-tool (func_version): Base copyright year on CVS date.
100734         (func_emit_copyright_notice): New function.
100735         (func_emit_lib_Makefile_am): Use it.
100736         (func_emit_tests_Makefile_am): Likewise.
100737         (func_import): Likewise.
100739 2006-05-08  Bruno Haible  <bruno@clisp.org>
100741         * modules/stdarg: New file.
100742         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100744 2006-05-08  Bruno Haible  <bruno@clisp.org>
100746         * m4/stdarg.m4: New file, from GNU gettext.
100748 2006-05-08  Bruno Haible  <bruno@clisp.org>
100750         * config/srclist.txt (build-aux/config.rpath): different from latest
100751         release.
100753 2006-05-08  Bruno Haible  <bruno@clisp.org>
100755         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100757 2006-05-05  Jim Meyering  <jim@meyering.net>
100759         * m4/warning.m4: New file, derived from bison's file by the same name.
100761 2006-05-03  Bruno Haible  <bruno@clisp.org>
100763         * lib/stdint_.h: Shorter URL.
100764         * lib/inttypes.h: Likewise.
100766 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100768         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100770 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100772         * lib/verify.h: Document the internals better.  Most of this change
100773         was written by Bruno Haible.
100775 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100777         * doc/verify.texi: New file, partly based on a proposal by
100778         Bruno Haible.
100780 2006-05-02  Bruno Haible  <bruno@clisp.org>
100782         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100783         test from here...
100784         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100786 2006-04-29  Bruno Haible  <bruno@clisp.org>
100788         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100789         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100791 2006-04-29  Bruno Haible  <bruno@clisp.org>
100793         * gnulib-tool: Make --update option actually work.
100795 2006-04-29  Bruno Haible  <bruno@clisp.org>
100797         * doc/gcd.texi: New file.
100798         * doc/gnulib.texi: Include it.
100800 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100802         * lib/getdate.y (get_date): When adding relative date, start with the
100803         initial time, not with the result of the first mktime call.
100805 2006-04-25  Bruno Haible  <bruno@clisp.org>
100807         * gnulib-tool (func_import): Output the include directives in three
100808         blocks, sorted separately.
100809         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100811 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100813         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100814         to define main with arguments, for C++.  Reported by Eric Blake.
100815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100816         Prefer 'int main ()' to 'int main (void)', for C++.
100817         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100819         for 'main', for C99 and C++.
100821 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100823         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100824         Don't assume that exit status -1 is valid.
100825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100826         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100827         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100828         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100829         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100830         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100831         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100832         functions can be used without declaring them, or that you can
100833         exit with status -1.
100834         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100836 2006-04-24  Karl Berry  <karl@gnu.org>
100838         * config/srclist.txt (longdouble.m4): sync lost.
100840 2006-04-24  Eric Blake  <ebb9@byu.net>
100842         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100844 2006-04-24  Bruno Haible  <bruno@clisp.org>
100846         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100847         poll() implementation in AIX.
100848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100850 2006-04-24  Bruno Haible  <bruno@clisp.org>
100852         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100853         assigned exactly once.
100855 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100856             Bruno Haible  <bruno@clisp.org>
100858         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100859         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100860         for AM_CPPFLAGS.
100862 2006-04-23  Bruno Haible  <bruno@clisp.org>
100864         * modules/copy-file: Depend on unistd.
100865         * modules/execute: Likewise.
100866         * modules/fatal-signal: Likewise.
100867         * modules/findprog: Likewise.
100868         * modules/mkdtemp : Likewise.
100869         * modules/pipe: Likewise.
100870         * modules/wait-process: Likewise.
100872 2006-04-23  Bruno Haible  <bruno@clisp.org>
100874         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100875         condition was already detected.
100876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100878 2006-04-23  Bruno Haible  <bruno@clisp.org>
100880         * lib/copy-file.c: Include <unistd.h> unconditionally.
100881         * lib/execute.c: Likewise.
100882         * lib/fatal-signal.c: Likewise.
100883         * lib/findprog.c: Likewise.
100884         * lib/mkdtemp.c: Likewise.
100885         * lib/pipe.h: Likewise.
100886         * lib/pipe.c: Likewise.
100887         * lib/wait-process.h: Likewise.
100889 2006-04-23  Bruno Haible  <bruno@clisp.org>
100891         * gnulib-tool (func_usage): Fix --import description. Document
100892         --update.
100893         (func_import): Create temporary file in a temporary directory, if
100894         --dry-run is specified. Silence errors from 'grep' when there are no
100895         m4 files in $m4dir.
100896         (func_create_testdir): Silence errors from 'grep' when there are no
100897         m4 files in $m4dir.
100898         Reported by Karl Berry <karl@freefriends.org>.
100900 2006-04-20  Bruno Haible  <bruno@clisp.org>
100902         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
100903         one argument, so that the code will be portable to Autoconf 2.60.
100904         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
100905         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100906         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
100908 2006-04-19  Derek Price  <derek@ximbiot.com>
100909             Eric Blake  <ebb9@byu.net>
100911         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
100912         rather than "/full/path.h".  Update comment to match.  Shorten &
100913         generalize m4_translit call via AS_TR_CPP.
100915 2006-04-19  Derek Price  <derek@ximbiot.com>
100916             Eric Blake  <ebb9@byu.net>
100918         * lib/inttypes.h: Correct grammar in comment.
100920 2006-04-18  Derek Price  <derek@ximbiot.com>
100921             Paul Eggert  <eggert@cs.ucla.edu>
100923         * modules/inttypes: New file.
100924         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
100926 2006-04-18  Derek Price  <derek@ximbiot.com>
100927             Paul Eggert  <eggert@cs.ucla.edu>
100929         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
100930         New files.
100932 2006-04-18  Derek Price  <derek@ximbiot.com>
100933             Paul Eggert  <eggert@cs.ucla.edu>
100935         * lib/inttypes.h: New file.
100936         * lib/strtoimax.c: Assume <inttypes.h>.
100938 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
100940         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
100941         isn't mounted.  Problem reported by Kir Kolyshkin.
100943 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100945         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
100946         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
100947         Derek R. Price.
100948         * lib/regex.h (RE_DUP_MAX): Update comment to match current
100949         implementation.
100951 2006-04-12  Eric Blake  <ebb9@byu.net>
100953         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
100954         is now done automatically by the corresponding Autoconf macro.
100956 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
100958         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
100959         time_r.h.
100961 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100963         Merge regex changes from libc, removing some of our
100964         POSIX-conformance changes that were rejected and redoing them in a
100965         less-intrusive way.
100967         * lib/regcomp.c (re_compile_internal, init_dfa):
100968         Length arg is now size_t, not Idx.  All uses changed.
100969         (peek_token): Forward decl now says internal_function.
100970         (__re_error_msgid, __re_error_msgid_idx):
100971         Now static rather than extern with attribute_hidden.
100972         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
100973         For some reason libc prefers K&R style defns for external functions.
100974         (regerror) [!defined _LIBC]: Likewise.
100975         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
100976         (seek_collating_symbol_entry, lookup_collation_sequence_value):
100977         (build_range_exp, build_collating_symbol):
100978         Use K&R-style defn.
100979         (re_compile_fastmap): Use '\0' to memset, not 0.
100980         (utf8_sb_map): Make the calculations more obvious.
100981         (init_dfa, parse_bracket_exp, build_charclass_op):
100982         Call calloc and cast result, as glibc does.
100983         (init_word_char, fetch_token, peek_token, peek_token_bracket):
100984         (build_range_exp, build_collating_symbol):
100985         Now internal functions.
100987         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
100989         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
100990         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
100991         Don't depend on VMS; depend on __VMS instead, for POSIX
100992         namespace cleanness.
100993         (regoff_t): Define to ssize_t, not long int.
100995         Remove the REG_ macros named below.  Instead, make the old names
100996         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
100997         __USE_GNU_REGEX.
100998         (REG_BACKSLASH_ESCAPE_IN_LISTS):
100999         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101000         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101001         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101002         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101003         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101004         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101005         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101006         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101007         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101008         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101009         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101010         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101011         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101012         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101013         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101014         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101015         (REG_NREGS):
101016         Remove.  All uses replaced by the old RE_* names.
101017         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101018         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101019         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101020         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101021         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101022         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101023         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101024         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101025         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101026         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101027         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101028         Don't bother having these macros be independent of each others'
101029         values, since they no longer exist in the POSIX name space.
101031         Rename the following member names back to their old names,
101032         unless !__USE_GNU_REGEX.  All uses changed back.
101033         (buffer): Renamed from re_buffer.
101034         (allocated): Renamed from re_allocated.
101035         (used): Renamed from re_used.
101036         (syntax): Renamed from re_syntax.
101037         (fastmap): Renamed from re_fastmap.
101038         (translate): Renamed from re_translate.
101039         (can_be_null): Renamed from re_can_be_null.
101040         (regs_allocated): Renamed from re_regs_allocated.
101041         (fastmap_accurate): Renamed from re_fastmap_accurate.
101042         (no_sub): Renamed from re_no_sub.
101043         (not_bol): Renamed from re_not_bol.
101044         (not_eol): Renamed from re_not_eol.
101045         (newline_anchor): Renamed from re_newline_anchor.
101046         (num_regs): Renamed from rm_num_regs.
101047         (start): Renamed from rm_start.
101048         (end): Renamed from rm_end.
101050         (free_state): Move up a bit.
101052         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101053         #define to be empty.
101054         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101055         when that is what is intended.
101056         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101057         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101058         (MAX): New macro.
101059         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101060         All uses changed back to re_malloc, etc.  It's now the caller's
101061         responsibility to check for overflow; all callers changed.
101062         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101063         (re_x2nrealloc): Remove.
101064         (free_state): Remove decl.
101066         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101067         (re_set_registers, re_exec):
101068         Use K&R-style defn.
101070         2006-01-31  Roland McGrath  <roland@redhat.com>
101072         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101073         Reported by Mike Frysinger <vapier@gentoo.org>.
101075         2006-01-15  Andreas Jaeger  <aj@suse.de>
101077         [BZ #1950]
101078         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101079         build_wcs_upper_buffer change.
101080         (build_wcs_upper_buffer): Change return type.
101082         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101084         * lib/regex_internal.h: Include <stdint.h> if available.
101086         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101088         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101090         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101092         * lib/regcomp.c: Adjust for changed secondary hash function.
101094         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101096         * lib/regex.h: Pretty printing.
101097         Clean up namespace a bit.
101099         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101101         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101102         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101104         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101105                     Ulrich Drepper  <drepper@redhat.com>
101107         [BZ #1302]
101108         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101109         changed.
101110         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101112         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101114         [BZ #281]
101115         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101116         * lib/regcomp.c: Remove unnecessary uses of
101117         unsigned RE_TRANSLATE_TYPE.
101118         * lib/regex_internal.h: Likewise.
101119         * lib/regex_internal.c: Likewise.
101120         * lib/regexec.c: Likewise.
101121         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101123         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101125         * lib/regexec.c (find_recover_state): Remove unnecessary
101126         initialization.
101127         (transit_state_bkref): Make DFA a const pointer.
101128         (get_subexp): Likewise.
101129         (check_arrival): Likewise.
101130         (update_cur_sifted_state): Likewise.
101131         (re_search_internal): Likewise.
101132         (prune_impossible_nodes): Likewise.
101133         (acquire_init_state_context): Likewise.
101134         (proceed_next_node): Likewise.
101135         (set_regs): Likewise.
101136         (free_fail_stack_return): Likewise.
101137         (check_arrival_expand_ecl): Mark DFA parameter as const.
101138         (check_arrival_expand_ecl_sub): Likewise.
101139         (check_subexp_limits): Likewise.
101140         (sub_epsilon_src_nodes):  Likewise.
101141         (add_epsilon_src_nodes):  Likewise.
101142         (merge_state_array): Likewise.
101143         (update_regs): Likewise.
101144         (build_trtable): Likewise.
101145         (sift_states_backward): Mark MCTX parameter as const.
101146         (build_sifted_states): Likewise.
101147         (update_cur_sifted_state): Likewise.
101148         (sift_states_mkref): Likewise.
101149         (check_arrival_expand_ecl): Mark eclosure as const.
101150         (check_dst_limits_calc_pos_1): Likewise.
101151         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101152         pointer.
101154         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101156         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101157         (transit_state_sb): Likewise.
101158         (transit_state_mb): Likewise.
101159         (sift_states_iter_mb): Likewise.
101160         (check_arrival_add_next_nodes): Likewise.
101161         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101162         [_LIBC] (re_search_2_stub): Use mempcpy.
101164         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101165         mbrtowc for very simple UTF-8 case.
101167         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101168         a pointer-to-const.
101169         (re_acquire_state_context): Likewise.
101170         * lib/regex_internal.h: Adjust prototypes.
101172         * lib/regex.c: Prevent using C++ compilers.
101174         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101175         (re_acquire_state_context): Likewise.
101177 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101179         * modules/regex (Depends-on): Add ssize_t.
101181 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101183         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101184         translation table.
101186 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101188         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101190 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101191             Bruno Haible  <bruno@clisp.org>
101193         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101194         <sys/types.h> and <inttypes.h>.
101196 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101198         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101199         `__error_t_defined', so argp.h will not typedef the former.
101201 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101203         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101204         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101205         glibc names.  Even if glibc is changed to conform to POSIX, the
101206         traditional names will be available anyway, since regex depends on
101207         the extensions module.  Also, fix a longstanding typo in the
101208         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101209         reported by Emanuele Giaquinta.  Also, change sense of cached
101210         variable, so that the message makes sense.
101212 2006-03-24  Simon Josefsson  <jas@extundo.com>
101214         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101215         including some doc fixes.
101216         (base64_encode_alloc): Fix +1 bug on allocation failures.
101218 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101220         * lib/base64.c (base64_encode): Do not read past end of array with
101221         unsanitized input on systems with CHAR_BIT > 8.
101223 2006-03-24  Eric Blake  <ebb9@byu.net>
101225         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101227 2006-03-22  Karl Berry  <karl@gnu.org>
101229         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101230         * config/srclistvars.sh (COREUTILS): new var.
101232 2006-03-17  Jim Meyering  <jim@meyering.net>
101234         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101235         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101237 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101239         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101240         no longer needs it.  Instead, check that regoff_t is as least
101241         as wide as ptrdiff_t.
101243         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101244         so that our regex.h stays compatible with the installed regex.
101245         This is helpful for installers who configure --without-included-regex.
101246         Problem reported by Emanuele Giaquinta.
101248 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101250         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101251         Typedef to long int, not to off_, as POSIX will likely change
101252         in that direction.
101254 2006-03-15  Eric Blake  <ebb9@byu.net>
101256         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101258 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101260         * lib/argp-help.c (validate_uparams): Fix typo
101261         * lib/argp-parse.c (argp_default_options): Consistently begin help
101262         messages with a lowercase letter.
101264 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101266         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101267         overrun buffers and shouldn't be used (much as gets shouldn't be
101268         used).
101269         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101271 2006-03-08  Simon Josefsson  <jas@extundo.com>
101273         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101274         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101276 2006-03-08  Simon Josefsson  <jas@extundo.com>
101278         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101279         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101281 2006-03-08  Simon Josefsson  <jas@extundo.com>
101283         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101284         signal that configure disabled the device.
101286 2006-03-08  Simon Josefsson  <jas@extundo.com>
101288         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101289         languages.
101291 2006-03-07  Simon Josefsson  <jas@extundo.com>
101293         * modules/getopt (Depends-on): Add unistd.
101295         * modules/unistd: New file.
101297 2006-03-07  Simon Josefsson  <jas@extundo.com>
101299         * modules/gc-random: New file.
101301 2006-03-07  Simon Josefsson  <jas@extundo.com>
101303         * m4/unistd_h.m4: New file.
101305 2006-03-07  Simon Josefsson  <jas@extundo.com>
101307         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101308         test to be side-effect free by storing the result in the cache
101309         variable gl_cv_lib_readline, and moving the assignment of
101310         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101311         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101313 2006-03-07  Simon Josefsson  <jas@extundo.com>
101315         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101316         error on missing devices (the functions will return an error).
101318         * m4/gc.m4: Move random stuff to gc-random.m4
101320 2006-03-07  Simon Josefsson  <jas@extundo.com>
101322         * lib/unistd_.h: New file.
101324 2006-03-07  Simon Josefsson  <jas@extundo.com>
101326         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101328 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101330         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101331         Problem reported by Juan Manuel Guerrero.
101333 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101335         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101336         the unistd module.
101337         * lib/getlogin_r.c: Likewise.
101338         * lib/getlogin_r.h: Likewise.
101339         * lib/glob.c: Likewise.
101340         * lib/pagealign_alloc.c: Likewise.
101341         * lib/unistd_.h: Remove; no longer needed.
101343 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101345         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101346         Add unistd.
101347         * modules/c-stack (Depends-on): Add unistd.
101348         * modules/getlogin_r: Likewise.
101349         * modules/glob: Likewise.
101350         * modules/pagealign_alloc: Likewise.
101351         * modules/unistd (Files): Remove lib/unistd_.h.
101352         (EXTRA_DIST): Remove.
101353         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101354         need unistd_.h.
101355         (MOSTLYCLEANFILES): Remove unistd.h-t.
101357 2006-03-03  Simon Josefsson  <jas@extundo.com>
101359         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101361 2006-03-03  Simon Josefsson  <jas@extundo.com>
101363         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101364         libidn and bison.
101366 2006-03-03  Simon Josefsson  <jas@extundo.com>
101368         * build-aux/maint.mk: Add indent target.
101370 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101372         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101373         our replacement poll.h in any case, to avoid a differing
101374         declaration from a system header.  Seen on AIX.
101376 2006-03-01  Simon Josefsson  <jas@extundo.com>
101378         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101379         <kasal@ucw.cz>.
101381 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101383         * modules/gettime (Depends-on): Add extensions module.
101384         * modules/nanosleep (Depends-on): Likewise.
101385         * modules/settime (Depends-on): Likewise.
101387 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101389         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101390         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101391         pedantically.
101392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101393         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101395         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101396         not "==".  Reported by Ralf Wildenhues.
101398 2006-03-01  Karl Berry  <karl@gnu.org>
101400         * doc/Copyright/request-*: new files, synced from gnuorg.
101402 2006-03-01  Karl Berry  <karl@gnu.org>
101404         * config/srclist.txt (Copyright/*): new entries.
101406 2006-02-28  Simon Josefsson  <jas@extundo.com>
101408         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101410 2006-02-27  Simon Josefsson  <jas@extundo.com>
101412         * lib/base64.h: Indent #define's.  From Jim Meyering
101413         <jim@meyering.net>.
101415 2006-02-27  Jim Meyering  <jim@meyering.net>
101417         Revert the change of 2006-02-24, so these files can continue
101418         to be sync'd from gettext.
101419         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101420         of `config.h'.
101422 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101424         * modules/intprops: New file.
101425         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101426         Add intprops.
101427         * modules/getloadavg (Files): Remove lib/intprops.h.
101428         (Depends-on): Add intprops.
101429         * modules/human: Likewise.
101430         * modules/inttostr: Likewise.
101431         * modules/openat: Likewise.
101432         * modules/sig2str: Likewise.
101433         * modules/userspec: Likewise.
101434         * modules/utimecmp: Likewise.
101435         * modules/xnanosleep: Likewise.
101436         * modules/xstrtol: Likewise.
101438 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101440         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101441         * modules/lock-tests (TESTS): Use $(EXEEXT).
101442         * modules/tls-tests: Likewise.
101443         * modules/argp-tests: Likewise.
101444         (check_PROGRAMS): New var, replacing...
101445         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101447 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101449         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101450         `config.h'.
101452 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101454         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101456 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101458         Sync from coreutils.
101459         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101460         gl_CHDIR_SAFER.
101462 2006-02-22  Jim Meyering  <jim@meyering.net>
101464         Sync from coreutils.
101465         * m4/chdir-safer.m4: New file.
101467 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101469         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101470         AT_FDCWD exceeds INT_MAX.
101471         * lib/openat.h (AT_FDCWD): Likewise.
101473 2006-02-17  Eric Blake  <address@hidden>
101475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101477 2006-02-16  Simon Josefsson  <jas@extundo.com>
101479         * modules/getaddrinfo (Depends-on): Add sys_socket.
101481 2006-02-15  Simon Josefsson  <jas@extundo.com>
101483         * build-aux/maint.mk: Add dsyntax-check rule.
101485 2006-02-15  Eric Blake  <ebb9@byu.net>
101487         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101488         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101489         'present but cannot compile' warnings on cygwin.
101490         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101491         use ws2tcpip.h if sys/socket.h works.
101492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101493         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101495 2006-02-14  Simon Josefsson  <jas@extundo.com>
101497         * modules/maintainer-makefile (Files): Rename.
101499         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101500         and (the local) Makefile.cfg to maint-cfg.mk.
101502         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101503         to the latter.
101505         * modules/maintainer-makefile: New module.
101507         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101508         severaly stripped to make it possible to build it up from scratch
101509         with reliable tests.
101511         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101512         fixes to permit overriding the default actions when configure and
101513         makefile are not available.
101515 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101517         Sync from coreutils.
101518         * modules/lstat (Depends-on): Don't depend on xalloc.
101519         (License): Change from GPL to LGPL, since this is now simply a
101520         replacement for a libc function.
101522 2006-02-14  Jim Meyering  <jim@meyering.net>
101524         Sync from coreutils.
101526         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101527         failure on deficient systems, and simplify gnulib lgpl dependencies.
101528         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101529         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101531         * lib/xalloc-die.c: Remove unused definition of N_.
101533 2006-02-14  Jim Meyering  <jim@meyering.net>
101535         Sync from coreutils.
101536         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101537         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101538         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101539         double-quote uses of that variable, to accommodate the rare case in
101540         which getmntent is available in none of the libraries checked.  This
101541         happens at least on FreeBSD 5.0.
101543 2006-02-13  Simon Josefsson  <jas@extundo.com>
101545         * gnulib-tool (Usage): Fix --import, from
101546         karl@freefriends.org (Karl Berry).
101548 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101550         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101552 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101554         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101555         "autoupdate" on 2005-12-12.
101557 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101559         * modules/closeout (Depends-on): Remove atexit.
101561 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101563         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101564         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101566 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101569         __EXTENSIONS__ if this causes compilation to fail.  Problem
101570         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101571         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101573 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101575         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101576         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101577         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101578         All uses changed.
101580 2006-01-26  Simon Josefsson  <jas@extundo.com>
101582         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101583         prototype is visible on mingw32.
101585         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101586         for mingw32.
101588         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101589         mingw32).
101591 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101593         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101594         attempt to open for write; this always fails, at least on POSIX
101595         hosts.  This reinstates the 2006-01-09 change, which was
101596         inadvertently removed.
101598 2006-01-26  Bruno Haible  <bruno@clisp.org>
101600         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101601         Reported by Paul Eggert.
101603 2006-01-26  Bruno Haible  <bruno@clisp.org>
101604             Paul Eggert  <eggert@cs.ucla.edu>
101606         * lib/stdbool_.h (_Bool)
101607         [(! (defined __cplusplus || defined __BEOS__)
101608           && !defined __GNUC__
101609           && !(defined __HP_cc || defined __xlc__
101610                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101611                || defined __sgi))]:
101612         #define to signed char in these cases too; this simplifies
101613         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101614         etc., separately) and makes it more conservative.
101616 2006-01-25  Simon Josefsson  <jas@extundo.com>
101618         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101619         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101620         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101622 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101624         * lib/argp-namefrob.h: Bugfix. Remove stray #
101626 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101629         so that we test the test.
101630         Check for yet another HP-UX cc bug involving *bool |= bool.
101632 2006-01-25  Karl Berry  <karl@gnu.org>
101634         * config/srclist.txt (vasnprintf.c): sync lost.
101636 2006-01-25  Jim Meyering  <jim@meyering.net>
101638         Sync from the stable (b5) branch of coreutils:
101640         * lib/fts.c (fts_children): Don't let close() clobber errno from
101641         failed fchdir().
101643         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101644         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101645         a dangling symlink.  That can also happen at least for ELOOP.
101646         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101647         FYI, this bug predates the inclusion of fts.c in coreutils.
101649         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101650         in their own block, so pre-c99 compilers don't object.
101652         Avoid the double-free (first in fts_read, second in fts_close) that
101653         would occur when an `active' directory is made inaccessible (e.g.,
101654         via chmod a-x) during a traversal.
101655         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101656         before returning.  Reproduce this failure by
101657         mkdir -p a/b; cd a; chmod a-x . b
101658         Reported by Stavros Passas.
101660 2006-01-25  Jim Meyering  <jim@meyering.net>
101662         * lib/fileblocks.c: Remove more useless parentheses.
101663         * lib/readutmp.h: Likewise.
101665 2006-01-25  Bruno Haible  <bruno@clisp.org>
101667         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101668         warnings.
101669         Reported by Paul Eggert.
101671 2006-01-25  Bruno Haible  <bruno@clisp.org>
101673         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101674         rid of a trap command. For Solaris sh.
101675         Reported by Mark D. Baushke <mdb@gnu.org>.
101677 2006-01-24  Simon Josefsson  <jas@extundo.com>
101679         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101680         Bruno.
101682 2006-01-24  Karl Berry  <karl@gnu.org>
101684         * config/srclist.txt (argp-namefrob.h): sync lost.
101686 2006-01-24  Jim Meyering  <jim@meyering.net>
101688         * modules/openat (Files): Add lib/intprops.h.
101689         From Mark D. Baushke.
101691 2006-01-24  Jim Meyering  <jim@meyering.net>
101693         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101694         Reported by Mark D. Baushke.
101696 2006-01-24  Jim Meyering  <jim@meyering.net>
101698         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101700 2006-01-24  Bruno Haible  <bruno@clisp.org>
101702         * modules/strnlen (Maintainer): Change from glibc to all.
101704 2006-01-24  Bruno Haible  <bruno@clisp.org>
101706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101707         Patch by Paul Eggert.
101709 2006-01-24  Bruno Haible  <bruno@clisp.org>
101711         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101712         already has it.
101713         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101714         2005-11-26.
101716         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101717         'signed char' to avoid problems with the built-in _Bool type.
101718         Reported by Paul Eggert on 2005-11-26.
101720 2006-01-24  Bruno Haible  <bruno@clisp.org>
101722         * gnulib-tool (func_import): Avoid constructing complicated sed
101723         expressions inside backquote.
101724         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101726 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101728         These changes imported from libc.
101729         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101730         test and two separate function calls.
101731         * lib/strndup.c (__strndup): Add libc_hidden_def.
101733 2006-01-23  Simon Josefsson  <jas@extundo.com>
101735         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101736         Remove the test_*_SOURCES variable: automake infers it by default.
101737         * modules/tls-tests: Likewise.
101739 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101741         Work around porting bugs reported by Dieter in
101742         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101743         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101744         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101745         Include "getopt.h" first, to check interface.
101746         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101747         !HAVE_DECL_GETENV.
101748         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101749         (__strndup): Revert to K&R-style function dfns, the glibc style.
101750         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101751         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101752         Include strnlen.h first, to get prototype properly.
101753         (strnlen): Renamed from __strnlen.
101754         Remove weak alias.
101756 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101758         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101760 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101762         * config/srclist.txt: Adjust to reflect glibc reorganization.
101763         This affects only comments.
101765 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101767          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101768          Reported by Bruce Korb <bkorb@gnu.org>.
101770 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101772         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101773         to pacify gcc -Wswitch-default.
101775 2006-01-22  Bruno Haible  <bruno@clisp.org>
101777         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101778         temporary buffer for sprintf, take into account the precision also
101779         for 'd', 'i', 'u', 'o', 'x', 'X'.
101781 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101783         * modules/argp-tests: New module
101784         * tests/test-argp.c: New file
101785         * tests/test-argp-2.sh: New file
101787 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101789         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101790         (__argp_base_name): Removed
101791         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101792         typo.
101793         (__argp_base_name): Provide macro definition or extern declaration
101794         depending on the configuration
101796 2006-01-20  Simon Josefsson  <jas@extundo.com>
101798         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101800 2006-01-20  Simon Josefsson  <jas@extundo.com>
101802         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101804 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101807         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101808         Suggested by Bruno Haible.
101810 2006-01-20  Karl Berry  <karl@gnu.org>
101812         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101813         until changes propagate, I guess.
101815 2006-01-19  Simon Josefsson  <jas@extundo.com>
101817         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101819 2006-01-19  Simon Josefsson  <jas@extundo.com>
101821         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101823 2006-01-19  Simon Josefsson  <jas@extundo.com>
101825         * gnulib-tool: Set check_PROGRAMS.
101827         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101828         modules/des-tests, modules/gc-arcfour-tests,
101829         modules/gc-arctwo-tests, modules/gc-des-tests,
101830         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101831         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101832         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101833         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101834         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101835         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101836         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101837         test_*_SOURCES.
101839 2006-01-18  Simon Josefsson  <jas@extundo.com>
101841         * modules/socklen (Depends-on): Depend on sys_socket.
101843 2006-01-18  Simon Josefsson  <jas@extundo.com>
101845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101846         modules/des-tests, modules/gc-arcfour-tests,
101847         modules/gc-arctwo-tests, modules/gc-des-tests,
101848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101853         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101854         $(EXEEXT) to automake TESTS variable, for mingw32.
101856 2006-01-17  Simon Josefsson  <jas@extundo.com>
101858         * modules/socklen (Include): Need sys/socket.h.
101860 2006-01-17  Bruno Haible  <bruno@clisp.org>
101862         * modules/ssize_t (Include): Add <sys/types.h>.
101864 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101866         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101867         it's not portable and it doesn't work with cross-compiles.
101868         Problem reported by Bruno Haible.  Fix missing-$ typo in
101869         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101870         -zignore from being used with Sun's C compiler.
101872 2006-01-12  Simon Josefsson  <jas@extundo.com>
101874         * lib/base64.c: Fix warning, reported by Bruno Haible
101875         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101877 2006-01-12  Bruno Haible  <bruno@clisp.org>
101879         * modules/ldd: New file.
101880         * build-aux/ldd.sh.in: New file.
101881         * MODULES.html.sh (Support for building libraries and executables): Add
101882         ldd.
101884 2006-01-12  Bruno Haible  <bruno@clisp.org>
101886         * m4/ldd.m4: New file.
101888 2006-01-12  Bruno Haible  <bruno@clisp.org>
101890         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101891         endless loop while replacing $auxdir with build-aux.
101893 2006-01-11  Simon Josefsson  <jas@extundo.com>
101895         * lib/stdint_.h (SIZE_MAX): Add missing (.
101897 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
101899         Sync from coreutils.
101900         * lib/md5.c: Fix commentary typos.
101901         (alignof, UNALIGNED_P): No need for a GCC-specific version.
101902         * lib/md5.h (__attribute__): Remove; unused.
101903         * lib/sha1.c: Fix commentary to match md5 better.
101904         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
101905         so that we don't need to worry about alignment.  All uses changed.
101906         This merges the 2005-10-28 md5 change into sha1.
101908 2006-01-11  Jim Meyering  <jim@meyering.net>
101910         Sync from coreutils.
101911         * lib/md5.c (OP): Fix spacing.
101913 2006-01-11  Bruno Haible  <bruno@clisp.org>
101915         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101916         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
101917         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
101919 2006-01-11  Bruno Haible  <bruno@clisp.org>
101921         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101922         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
101923         the "early" section as well.
101925 2006-01-11  Bruno Haible  <bruno@clisp.org>
101927         Avoid "ar: no archive members specified" error on MacOS X.
101928         * gnulib-tool (func_modules_add_dummy): New function.
101929         (func_import, func_create_testdir): Invoke it.
101931 2006-01-11  Bruno Haible  <bruno@clisp.org>
101933         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
101934         with $auxdir in AC_CONFIG_FILES statements.
101936 2006-01-11  Bruno Haible  <bruno@clisp.org>
101938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101939         Initialize also noinst_HEADERS to empty.
101941 2006-01-11  Bruno Haible  <bruno@clisp.org>
101943         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
101944         variables.
101945         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
101946         autoreconf.
101948 2006-01-11  Bruno Haible  <bruno@clisp.org>
101950         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
101951         overridable by the user.
101952         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101954 2006-01-10  Simon Josefsson  <jas@extundo.com>
101956         * modules/sys_socket: New file.
101958 2006-01-10  Simon Josefsson  <jas@extundo.com>
101960         * m4/sys_socket_h.m4: New file.
101962 2006-01-10  Simon Josefsson  <jas@extundo.com>
101964         * lib/socket_.h: New file.
101966 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101968         * modules/readutmp (Maintainer): Add myself.
101970 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101972         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
101973         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
101974         People who are still concerned with buggy memcmp implementations
101975         can invoke gl_FUNC_MEMCMP themselves.
101977 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101979         * lib/regex_internal.h (BITSET_WORD_BITS):
101980         Work around a bug in 64-bit PGC (before version 6.1-2), where the
101981         preprocessor mishandles large unsigned values as if they were signed.
101982         Problem reported by Claudio Fontana in
101983         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
101985 2006-01-10  Jim Meyering  <jim@meyering.net>
101987         Avoid the double-free (first in fts_read, second in fts_close) that
101988         would occur when an `active' directory is made inaccessible (e.g.,
101989         via chmod a-x) during a traversal.
101990         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101991         before returning.  Reproduce this failure by
101992         mkdir -p a/b; cd a; chmod a-x . b
101993         Reported by Stavros Passas.
101995         Sync from coreutils.
101996         * lib/sha1.c: Tweak grammar in a comment.
101998 2006-01-10  Jim Meyering  <jim@meyering.net>
102000         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102001         Patch by Joerg Sonnenberger.
102003 2006-01-10  Bruno Haible  <bruno@clisp.org>
102005         * modules/readutmp: Depend on module free.
102006         * modules/strtok_r: Depend on module restrict.
102008 2006-01-10  Bruno Haible  <bruno@clisp.org>
102010         * modules/gettext (configure.ac): Add an invocation of
102011         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102013 2006-01-10  Bruno Haible  <bruno@clisp.org>
102015         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102016         Reported by Werner Lemberg <wl@gnu.org>.
102018 2006-01-10  Bruno Haible  <bruno@clisp.org>
102020         * lib/localcharset.c: Update from GNU gettext.
102022 2006-01-10  Bruno Haible  <bruno@clisp.org>
102024         * lib/argp.h (__const): Remove macro. Use const instead.
102025         * lib/argp-fmtstream.h (__const): Likewise.
102026         * lib/glob_.h (__const): Remove macro.
102027         * lib/glob-libc.h: Use const instead of __const.
102029 2006-01-10  Bruno Haible  <bruno@clisp.org>
102031         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102032         variable.
102033         Needed to avoid an automake error regarding the 'gettext' module.
102035 2006-01-09  Simon Josefsson  <jas@extundo.com>
102037         * modules/inet_ntop (Depends-on): Add restrict.
102039 2006-01-09  Simon Josefsson  <jas@extundo.com>
102041         * modules/gc-rijndael-tests (License): Put under LGPL.
102043         * modules/gc-des-tests (License): Likewise.
102045         * modules/gc-arcfour-tests (License): Likewise.
102047         * modules/gc-arctwo-tests (License): Likewise.
102049         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102051         * modules/gc-hmac-sha1-tests (Files): Likewise.
102053         * modules/gc-hmac-md5-tests (License): Likewise.
102055         * modules/gc-sha1-tests (License): Likewise.
102057         * modules/gc-md5-tests (License): Likewise.
102059         * modules/gc-md4-tests (License): Likewise.
102061         * modules/gc-md2-tests (License): Likewise.
102063         * modules/gc-tests (License): Likewise.
102065         * modules/des-tests (License): Likewise.
102067         * modules/md4-tests (License): Likewise.
102069         * modules/md2-tests (License): Likewise.
102071 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102073         Sync from coreutils:
102075         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102076         * modules/lib-ignore: New file.
102077         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102078         chdir-safer.m4, lchmod.m4.
102079         * modules/openat: Add mkdirat.c, openat-priv.h.
102081 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102083         Sync from coreutils.
102084         * m4/lib-ignore.m4: New file.
102085         * m4/lchmod.m4: New file.
102087 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102089         Sync from coreutils.
102090         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102091         for write access: POSIX says that must fail.
102092         * lib/fts.c (diropen): Likewise.
102093         * lib/save-cwd.c (save_cwd): Likewise.
102094         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102095         well, for minor improvements on hosts that lack O_DIRECTORY.
102096         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102097         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102098         Fall back on chown if open failed with EACCES.
102100         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102101         Report an error at compile-time if only a 1-second nominal clock
102102         resolution is found.
102104         * lib/lchmod.h: New file.
102105         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102106         (make_dir_parents): Use lchown rather than chown, and
102107         lchmod rather than chmod.
102109         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102110         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102111         "proc" reported by n0dalus.
102113         * lib/mountlist.c: Include <limits.h>.
102114         (dev_from_mount_options)
102115         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102116         New function.  It no longer assumes "dev=" has the System V meaning
102117         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102118         (read_file_system_list)
102119         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102120         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102121         dev= in that case.
102123         * lib/posixtm.h (PDS_PRE_2000): New macro.
102124         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102125         allow_century.  All usages changed.  Reject dates outside the range
102126         1969-1999 if PDS_PRE_2000 is used.
102128 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102130         Sync from coreutils.
102131         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102132         (Time of day items): Mention the possibility of leap seconds.
102133         Problem reported by Dr. David Alan Gilbert.
102135 2006-01-09  Jim Meyering  <jim@meyering.net>
102137         Sync from coreutils.
102139         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102141         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102143         * lib/modechange.c (mode_compile): Reject an invalid mode string
102144         that starts with an octal digit.  From Andreas Gruenbacher.
102146         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102147         and dup to open_safer and dup_safer, respectively.
102148         (openat_permissive): Fix typo in comment.
102150         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102151         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102152         (_): Remove; no longer needed.
102153         (openat): Renamed from rpl_openat; no need for rpl_openat
102154         since openat.h renames openat for us.
102155         Replace most of the body with a call to openat_permissive,
102156         to avoid duplicate code.
102157         Port to (probably hypothetical) environments were mode_t is
102158         wider than int.
102159         (openat_permissive): Require mode arg, so that we can check
102160         types better.  Put it just after flags.  Change cwd failure
102161         indicator from pointer-to-bool to pointer-to-errno-value.
102162         All callers changed.
102163         Invoke openat_save_fail and/or openat_restore_fail if
102164         cwd_errno is null, so that openat can call us.
102165         (openat_permissive, fdopendir, fstatat, unlinkat):
102166         Simplify errno handling to avoid some duplicate code,
102167         as it's OK to set errno on success.
102168         * lib/openat.h: Revamp code so that function macros depend on
102169         __OPENAT_PREFIX only, not also on AT_FDCWD.
102170         (openat_ro): Remove.  Caller changed to use openat_permissive.
102171         (openat_permissive): Now a macro, if not a function.
102172         (openat_restore_fail, openat_save_fail): Now always functions,
102173         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102175         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102176         and openat.c.
102177         * lib/mkdirat.c: Include openat-priv.h.
102178         Remove definitions of macros defined therein.
102179         * lib/openat.c: Likewise.
102181         * lib/mkdirat.c (mkdirat): New file and function.
102182         * lib/openat.h (mkdirat): Declare.
102184         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102186         * lib/openat.h (openat_permissive): Declare.
102187         (openat_ro): Define.
102189         * lib/openat.c (EXPECTED_ERRNO): New macro.
102190         (openat_permissive): New function -- used in remove.c rewrite.
102191         (all functions): Set errno just before returning, only if there
102192         was an actual failure.
102193         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102195         Emulate openat-family functions using Linux's procfs, if possible.
102196         Idea and some code based on Ulrich Drepper's glibc changes.
102198         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102199         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102200         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102201         before falling back on save_cwd and restore_cwd.
102202         (fdopendir, fstatat, unlinkat): Likewise.
102204         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102205         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102207         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102208         as second argument to va_arg.  Otherwise, some versions of gcc
102209         warn that `if this code is reached, the program will abort'.
102211 2006-01-09  Jim Meyering  <jim@meyering.net>
102213         Sync from coreutils.
102214         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102215         Require openat-priv.h.
102217 2006-01-09  Bruno Haible  <bruno@clisp.org>
102219         * modules/strnlen (Include): Use strnlen.h.
102221 2006-01-09  Bruno Haible  <bruno@clisp.org>
102223         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102225 2006-01-09  Bruno Haible  <bruno@clisp.org>
102227         * lib/sysexit_.h (EX_OK): New macro.
102228         Suggested by Martin Lambers <marlam@marlam.de>.
102230 2006-01-09  Bruno Haible  <bruno@clisp.org>
102232         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102233         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102235 2006-01-09  Bruno Haible  <bruno@clisp.org>
102237         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102238         numbers.
102240 2006-01-09  Bruno Haible  <bruno@clisp.org>
102242         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102243         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102244         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102245         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102247 2006-01-09  Bruno Haible  <bruno@clisp.org>
102249         * build-aux/javacomp.sh.in: New file, moved from lib/.
102250         * modules/javacomp-script (Files): Update.
102251         (configure.ac): Add AC_CONFIG_FILES invocation.
102252         (EXTRA_DIST): Remove variable.
102254         * build-aux/javaexec.sh.in: New file, moved from lib/.
102255         * modules/javaexec (Files): Update.
102256         (configure.ac): Add AC_CONFIG_FILES invocation.
102257         (EXTRA_DIST): Remove javaexec.sh.in.
102259         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102260         * modules/csharpcomp-script (Files): Update.
102261         (configure.ac): Add AC_CONFIG_FILES invocation.
102262         (EXTRA_DIST): Remove variable.
102264         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102265         * modules/csharpexec (Files): Update.
102266         (configure.ac): Add AC_CONFIG_FILES invocation.
102267         (EXTRA_DIST): Remove csharpexec.sh.in.
102269 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102271         Sync from coreutils.
102273         Add POSIX ACL support
102274         * lib/acl.h (copy_acl, set_acl): Add declarations.
102275         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102276         systems other than Linux.
102277         (chmod_or_fchmod): New function: use fchmod when possible,
102278         and chmod otherwise.
102279         (file_has_acl): Add a POSIX ACL implementation, with a
102280         Linux-specific subcase.
102281         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102282         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102283         acls are unsupported.
102284         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102285         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102286         are unsupported.
102288 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102290         Sync from coreutils.
102291         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102293 2006-01-07  Bruno Haible  <bruno@clisp.org>
102295         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102296         gl_EARLY.
102298 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102300         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102301         Problem reported for Mingw by Mark Junker.
102303 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102305         * README: Gnulib normally doesn't generate a tarball.
102307 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102309         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102310         long int, not int, for nanosecond counts, so that people who are
102311         used to POSIX struct timespec won't be surprised.  Reported by Jim
102312         Meyering.
102314 2005-12-28  Bruno Haible  <bruno@clisp.org>
102316         * build-aux/config.rpath: Update from GNU gettext.
102318 2005-12-16  Jim Meyering  <jim@meyering.net>
102320         * modules/fprintftime: New module.
102321         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102323 2005-12-16  Jim Meyering  <jim@meyering.net>
102325         * m4/fprintftime.m4: New file.
102327 2005-12-16  Jim Meyering  <jim@meyering.net>
102329         * lib/fprintftime.c, lib/fprintftime.h: New files.
102331 2005-12-15  Simon Josefsson  <jas@extundo.com>
102333         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102334         new m4/socklen.m4.
102336 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102338         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102339         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102341 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102343         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102344         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102345         struct uparams is valid. Fall back to the default values if it is
102346         not.
102348 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102350         * modules/argp (Files): Add argp-pin.c
102351         (Depends-on): dirname
102352         (lib_SOURCES): Add argp-pin.c
102354 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102356         * m4/argp.m4:  Check if program_invocation_name and
102357         program_invocation_short_name are declared and define appropriate
102358         macros if they are not.
102360 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102362         * lib/argp-help.c (__argp_base_name): New function
102363         (__argp_short_program_name): Rewrite using __argp_base_name
102364         * lib/argp-namefrob.h: Define program_invocation_name and
102365         program_invocation_short_name if requested
102366         (__argp_base_name): Add prototype
102367         * lib/argp-parse.c (argp_def): Use gettext wrappers
102368         (argp_default_parser): Use __argp_base_name
102369         * lib/argp-pin.c: New file. Defines program_invocation_name and
102370         program_invocation_short_name on systems that lack them.
102372 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102374         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102375         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102376         porting problem reported by Georg Schwarz in
102377         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102379 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102381         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102382         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102383         porting problem reported by Georg Schwarz in
102384         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102386 2005-12-05  Bruno Haible  <bruno@clisp.org>
102388         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102389         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102390         Reported by Mark Junker <mjscod@gmx.de>.
102392 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102394         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102395         Use implementation from Albert Chin, with some
102396         comments/corrections by Stepan Kasal and myself.
102398 2005-12-02  Bruno Haible  <bruno@clisp.org>
102400         * gnulib-tool (func_import): Accept GPLed build tool modules when
102401         --lgpl is given.
102402         * modules/csharpcomp-script: New file.
102403         * modules/csharpcomp: Depend on it.
102404         * modules/javacomp-script: New file.
102405         * modules/javacomp: Depend on it.
102406         Suggested by Simon Josefsson.
102408 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102410         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102411         statement, to work around an HP-UX 10.20 compiler bug reported by
102412         Peter O'Gorman.
102414 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102416         * modules/savedir (Depends-on): Add openat.
102418 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102420         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102421         (uintmax_t) [defined uintmax_t]: Do not declare.
102422         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102423         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102424         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102425         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102426         sake of portability to weird hosts that C allows (though we don't
102427         know of any practical examples).
102429         * lib/savedir.h (fdsavedir): New decl.
102430         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102431         contains most of the former guts of savedir.
102432         (savedir): Use savedirstream.
102433         Include "openat.h".
102435 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102437         * modules/obstack (Files): Add m4/ulonglong.m4.
102438         Problem reported by Davide Angelocola.
102440 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102442         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102443         coreutils no longer futzes with rounding modes.
102445 2005-11-14  Jim Meyering  <jim@meyering.net>
102447         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102448         replacement of mkstemp.
102450 2005-11-10  Simon Josefsson  <jas@extundo.com>
102452         * lib/readline.c: Remove EOL.
102454 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102456         * modules/gethrxtime (Depends-on): Add gettime.
102458 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102460         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102461         or gettimeofday; no longer needed.
102463 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102465         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102466         time business.
102467         (gethrxtime) [! (HAVE_NANOUPTIME
102468         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102469         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102470         our own approximation.
102472 2005-11-08  Eric Blake  <ebb9@byu.net>
102474         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102476 2005-11-08  Eric Blake  <ebb9@byu.net>
102478         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102480 2005-11-04  Bruno Haible  <bruno@clisp.org>
102482         * gnulib-tool: Implement --update mode.
102484 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102486         Fix porting problem reported by Theodoros V. Kalamatianos.
102487         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102488         Don't assume that futimes failing means we must fail.
102490 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102492         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102493         variables to suggest the intended function of the PATH_MAX check.
102495 2005-10-30  Kean Johnston  <jkj@sco.com>
102497         Trivial changes to support SCO systems.
102498         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102499         as PATH_MAX.
102500         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102501         where __ptr is null when no I/O is pending.
102503 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102505         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102506         leave errno alone.  Problem reported by Dmitry V. Levin.
102508 2005-10-28  Simon Josefsson  <jas@extundo.com>
102510         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102511         Test more.
102513         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102515         * modules/md2, modules/md2-tests: New files.
102517 2005-10-28  Simon Josefsson  <jas@extundo.com>
102519         * m4/inet_ntop.m4: More tests.
102521         * m4/gc-md2.m4, md2.m4: New file.
102523 2005-10-28  Simon Josefsson  <jas@extundo.com>
102525         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102526         "restrict" keywords, as per POSIX.  Protect the function
102527         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102528         Don't use K&R prototypes.  Check the sprintf return values.
102529         Re-define EAFNOSUPPORT if not present.  Indent.
102531         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102532         suggested by Bruno Haible <bruno@clisp.org>.
102534         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102536         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102538         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102539         libgcrypt).
102541         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102543         * lib/md2.h, lib/md2.c: New files.
102545 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102547         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102548         errno alone.  Problem reported by Frederic Jolliton.
102550 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102552         * modules/verify (License): Change from GPL to LGPL.  This is a
102553         tiny module and there are apparently near-equivalents that are
102554         under the BSD license.
102556 2005-10-24  Simon Josefsson  <jas@extundo.com>
102558         * modules/sha1: Relicense to LGPL.
102560 2005-10-24  Simon Josefsson  <jas@extundo.com>
102562         * lib/md4.h: Shrink buffer size, now that we changed the type.
102564 2005-10-23  Simon Josefsson  <jas@extundo.com>
102566         * gnulib-tool (func_import): Fix --tests-base.
102568 2005-10-22  Simon Josefsson  <jas@extundo.com>
102570         * modules/arcfour (Depends-on): Need stdint.
102572 2005-10-22  Simon Josefsson  <jas@extundo.com>
102574         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102575         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102577 2005-10-22  Simon Josefsson  <jas@extundo.com>
102579         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102580         suggested by Bruno Haible <bruno@clisp.org>.
102582 2005-10-22  Simon Josefsson  <jas@extundo.com>
102584         * lib/crc.h: Include stddef.h, for size_t.
102586 2005-10-22  Simon Josefsson  <jas@extundo.com>
102588         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102589         arcfour_context struct (simplify test vector testing in GNU
102590         Shishi).
102592 2005-10-21  Simon Josefsson  <jas@extundo.com>
102594         * modules/des, modules/des-tests: New files.
102596         * modules/gc-des, modules/gc-des-tests: New files.
102598         * tests/test-des.c, tests/test-gc-des.c: New file.
102600 2005-10-21  Simon Josefsson  <jas@extundo.com>
102602         * modules/arctwo, modules/arctwo-tests: New files.
102604         * tests/test-arctwo.c: New file.
102606         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102608         * tests/test-gc-arctwo.c: New file.
102610 2005-10-21  Simon Josefsson  <jas@extundo.com>
102612         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102613         Bruno Haible <bruno@clisp.org>.
102615         * m4/gc-des.m4: New file.
102617 2005-10-21  Simon Josefsson  <jas@extundo.com>
102619         * m4/arctwo.m4: New file.
102621         * m4/gc-arctwo.m4: New file.
102623 2005-10-21  Simon Josefsson  <jas@extundo.com>
102625         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102626         block.
102628 2005-10-21  Simon Josefsson  <jas@extundo.com>
102630         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102631         <bruno@clisp.org>.
102633         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102635         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102636         Bruno Haible <bruno@clisp.org>.
102638         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102639         <bruno@clisp.org>.
102641 2005-10-21  Simon Josefsson  <jas@extundo.com>
102643         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102645 2005-10-21  Simon Josefsson  <jas@extundo.com>
102647         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102649 2005-10-21  Simon Josefsson  <jas@extundo.com>
102651         * lib/des.h, lib/des.c: New files.
102653         * lib/gc-gnulib.c: Support DES.c
102655 2005-10-21  Simon Josefsson  <jas@extundo.com>
102657         * lib/arctwo.h, lib/arctwo.c: New files.
102659         * lib/gc-gnulib.c: Support ARCTWO.
102661 2005-10-21  Simon Josefsson  <jas@extundo.com>
102663         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102664         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102666 2005-10-21  Simon Josefsson  <jas@extundo.com>
102668         * gnulib-tool (func_import, func_create_testdir): Define automake
102669         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102670         Makefile.am snippet),
102671         suggested by Bruno Haible <bruno@clisp.org>.
102673         * modules/gc (Makefile.am): Use it.
102675 2005-10-21  Bruno Haible  <bruno@clisp.org>
102677         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102678         patch.
102680 2005-10-19  Simon Josefsson  <jas@extundo.com>
102682         * tests/test-gc-rijndael.c: New file.
102684         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102686 2005-10-19  Simon Josefsson  <jas@extundo.com>
102688         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102689         interface too.
102691 2005-10-19  Simon Josefsson  <jas@extundo.com>
102693         * tests/test-gc-arcfour.c: New file.
102695         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102697 2005-10-19  Simon Josefsson  <jas@extundo.com>
102699         * modules/gc-md4, modules/gc-md4-tests: New file.
102701         * tests/test-gc-md4.c: New file.
102703 2005-10-19  Simon Josefsson  <jas@extundo.com>
102705         * m4/gc-md4.m4: New file.
102707 2005-10-19  Simon Josefsson  <jas@extundo.com>
102709         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102710         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102711         <kasal@ucw.cz>.
102713 2005-10-19  Simon Josefsson  <jas@extundo.com>
102715         * m4/gc-arcfour.m4: New file.
102717         * m4/gc-rijndael.m4: New file.
102719 2005-10-19  Simon Josefsson  <jas@extundo.com>
102721         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102723 2005-10-19  Simon Josefsson  <jas@extundo.com>
102725         * lib/gc-gnulib.c: Support ARCFOUR.
102727 2005-10-19  Simon Josefsson  <jas@extundo.com>
102729         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102730         support.
102732         * lib/gc.h: Add ECB enum type.
102734         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102736 2005-10-18  Simon Josefsson  <jas@extundo.com>
102738         * tests/test-md5.c: New file.
102740         * modules/md5-tests: New file.
102742 2005-10-18  Simon Josefsson  <jas@extundo.com>
102744         * tests/test-md4.c: New file.
102746         * modules/md4, modules/md4-tests: New files.
102748 2005-10-18  Simon Josefsson  <jas@extundo.com>
102750         * m4/md4.m4: New file.
102752 2005-10-18  Simon Josefsson  <jas@extundo.com>
102754         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102756 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102758         * gnulib-tool (func_create_testdir): Omit the second check whether
102759         BUILT_SOURCES in nonempty.
102761 2005-10-17  Simon Josefsson  <jas@extundo.com>
102763         * tests/test-rijndael.c: New file.
102765 2005-10-17  Simon Josefsson  <jas@extundo.com>
102767         * modules/sha1: Depend on stdint instead of md5.
102769         * modules/md5: Depend on stdint, remove uint32_t.
102771 2005-10-17  Simon Josefsson  <jas@extundo.com>
102773         * modules/gc-sha1-tests: New file.
102775         * tests/test-gc-sha1.c: New file.
102777 2005-10-17  Simon Josefsson  <jas@extundo.com>
102779         * m4/md5.m4: Remove call to uint32_t.m4.
102781 2005-10-17  Simon Josefsson  <jas@extundo.com>
102783         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102785         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102786         md5.h.
102788         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102790         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102792 2005-10-17  Simon Josefsson  <jas@extundo.com>
102794         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102796 2005-10-17  Simon Josefsson  <jas@extundo.com>
102798         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102800 2005-10-17  Simon Josefsson  <jas@extundo.com>
102802         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102804         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102806 2005-10-17  Bruno Haible  <bruno@clisp.org>
102808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102809         that it can also be used in a test.
102811 2005-10-16  Bruno Haible  <bruno@clisp.org>
102813         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102814         TESTS_ENVIRONMENT, so that individual tests can augment it.
102816         * gnulib-tool (func_create_testdir): Use an intermediate target for
102817         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102818         macros, like $(ALLOCA_H), which cannot be passed through the command
102819         line.
102821 2005-10-15  Simon Josefsson  <jas@extundo.com>
102823         * modules/rijndael-tests: New file.
102825         * modules/rijndael: New file.
102827 2005-10-15  Simon Josefsson  <jas@extundo.com>
102829         * m4/rijndael.m4: New file.
102831 2005-10-15  Simon Josefsson  <jas@extundo.com>
102833         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102835         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102837 2005-10-14  Simon Josefsson  <jas@extundo.com>
102839         * tests/test-arcfour.c: New file.
102841         * modules/arcfour, modules/arcfour-tests: New files.
102843 2005-10-14  Simon Josefsson  <jas@extundo.com>
102845         * m4/arcfour.m4: New file.
102847 2005-10-14  Simon Josefsson  <jas@extundo.com>
102849         * lib/arcfour.h, lib/arcfour.c: New files.
102851 2005-10-14  Roland McGrath  <roland@redhat.com>
102853         Import from libc.  [BZ #1331]
102854         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102855         macro argument.
102856         Reported by Matej Vela <vela@debian.org>.
102858 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102860         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102861         include <wchar.h>; no longer needed.
102863 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102865         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102867 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102868         and  Ulrich Drepper  <drepper@redhat.com>
102870         Import from libc.
102871         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102872         instead of inline stream orientation test and two separate
102873         function calls.  Pay no attention to USE_IN_LIBIO.
102875 2005-10-13  Simon Josefsson  <jas@extundo.com>
102877         * modules/gc-hmac-md5-tests: New file.
102879         * tests/test-gc-hmac-sha1.c: New file.
102881         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102883         * modules/gc-hmac-md5-tests: New file.
102885         * tests/test-gc-md5.c: New file.
102887         * modules/gc-md5-tests: New file.
102889 2005-10-13  Simon Josefsson  <jas@extundo.com>
102891         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102892         Move memory allocation outside of loop.
102894 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
102896         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
102897         intermediate directory is in a read-only file system.  Problem
102898         reported by Eric Blake.
102900 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
102902         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
102904 2005-10-12  Simon Josefsson  <jas@extundo.com>
102906         * tests/test-hmac-sha1.c: New file.
102908         * modules/hmac-sha1-tests: New file.
102910         * modules/hmac-sha1: New file.
102912 2005-10-12  Simon Josefsson  <jas@extundo.com>
102914         * modules/gc-sha1: New file.
102916 2005-10-12  Simon Josefsson  <jas@extundo.com>
102918         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
102920         * tests/test-gc-pbkdf2-sha1.c: New file.
102922 2005-10-12  Simon Josefsson  <jas@extundo.com>
102924         * modules/gc-md5, modules/gc-hmac-md5: New files.
102926         * modules/gc (Files): Remove md5, memxor and hmac files.
102928 2005-10-12  Simon Josefsson  <jas@extundo.com>
102930         * m4/gc-pbkdf2-sha1.m4: New file.
102932         * m4/gc-hmac-sha1.m4: New file.
102934         * m4/gc-sha1: New file.
102936         * m4/hmac-sha1.m4: New file.
102938 2005-10-12  Simon Josefsson  <jas@extundo.com>
102940         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
102942         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
102944 2005-10-12  Simon Josefsson  <jas@extundo.com>
102946         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
102947         suggested by Bruno Haible <bruno@clisp.org>.
102949 2005-10-12  Simon Josefsson  <jas@extundo.com>
102951         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
102953 2005-10-12  Simon Josefsson  <jas@extundo.com>
102955         * lib/gc-pbkdf2-sha1.c: New file.
102957         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
102959 2005-10-12  Simon Josefsson  <jas@extundo.com>
102961         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
102963         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
102965 2005-10-12  Simon Josefsson  <jas@extundo.com>
102967         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
102968         GC_USE_HMAC_MD5, respectively.
102970         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
102971         (gc_md5): Fix typo.
102973         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
102975         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
102977         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
102979 2005-10-12  Bruno Haible  <bruno@clisp.org>
102981         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
102982         Reported by Stepan Kasal <kasal@ucw.cz>.
102984 2005-10-11  Simon Josefsson  <jas@extundo.com>
102986         * tests/test-crc.c: New file.
102988         * modules/crc, modules/crc-tests: New files.
102990 2005-10-11  Simon Josefsson  <jas@extundo.com>
102992         * m4/crc.m4: New file.
102994 2005-10-11  Simon Josefsson  <jas@extundo.com>
102996         * lib/gc.h: Add gc_hash and gc_hash_buffer.
102998         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103000         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103002 2005-10-11  Simon Josefsson  <jas@extundo.com>
103004         * lib/crc.h, lib/crc.c: New files.
103006         * lib/gc.h (gc_hash_buffer): Add doc.
103008 2005-10-11  Bruno Haible  <bruno@clisp.org>
103010         * modules/c-strcasestr: New file.
103011         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103013 2005-10-11  Bruno Haible  <bruno@clisp.org>
103015         * modules/c-strcase: New file.
103016         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103018 2005-10-11  Bruno Haible  <bruno@clisp.org>
103020         * lib/strcasecmp.c: Include limits.h.
103021         (strcasecmp): Avoid integer overflow on exotic platforms.
103022         * lib/strncasecmp.c: Include limits.h.
103023         (strncasecmp): Avoid integer overflow on exotic platforms.
103024         Reported by Paul Eggert.
103026 2005-10-11  Bruno Haible  <bruno@clisp.org>
103028         * lib/c-strcasestr.h: New file, from GNU gettext.
103029         * lib/c-strcasestr.c: New file, from GNU gettext.
103031 2005-10-11  Bruno Haible  <bruno@clisp.org>
103033         * lib/c-strcase.h: New file, from GNU gettext.
103034         * lib/c-strcasecmp.c: New file, from GNU gettext.
103035         * lib/c-strncasecmp.c: New file, from GNU gettext.
103037 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103039         * modules/mempcpy (License): GPL -> LGPL.
103040         * modules/strchrnul (License): Likewise.
103041         * modules/sysexits (License): Likewise.
103043 2005-10-08  Simon Josefsson  <jas@extundo.com>
103045         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103047 2005-10-07  Simon Josefsson  <jas@extundo.com>
103049         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103051 2005-10-06  Simon Josefsson  <jas@extundo.com>
103053         * tests/test-hmac-md5.c: New file.
103055         * modules/hmac-md5-tests: New file.
103057         * modules/hmac-md5: New file.
103059 2005-10-06  Simon Josefsson  <jas@extundo.com>
103061         * m4/hmac-md5.m4: New file.
103063         * m4/memxor.m4: Require gl_C_RESTRICT.
103065 2005-10-06  Simon Josefsson  <jas@extundo.com>
103067         * lib/memxor.c (memxor): Avoid casts and warnings.
103069 2005-10-06  Simon Josefsson  <jas@extundo.com>
103071         * lib/hmac-md5.c: New file.
103073         * lib/hmac.h: New file.
103075 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103078         promotes to int, not unsigned int, to catch the AIX 5.3
103079         compiler bug.
103081 2005-10-05  Simon Josefsson  <jas@extundo.com>
103083         * modules/memxor: New file.
103085         * modules/iconv (Files): Move config.rpath to havelib, it is used
103086         there.
103088         * modules/havelib (Files): Add config.rpath.
103090 2005-10-05  Simon Josefsson  <jas@extundo.com>
103092         * m4/memxor.m4: New file.
103094 2005-10-05  Simon Josefsson  <jas@extundo.com>
103096         * lib/memxor.c (memxor): Fix compiler error.
103098         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103099         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103101         * lib/memxor.h, lib/memxor.c: New files.
103103         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103104         we assume all systems have it, suggested by Jim Meyering
103105         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103106         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103107         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103108         same reasons.
103110 2005-10-05  Simon Josefsson  <jas@extundo.com>
103112         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103114 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103117         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103118         needed, since the source code now assumes these .h files.
103120 2005-10-05  Derek Price  <derek@ximbiot.com>
103122         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103124 2005-10-05  Bruno Haible  <bruno@clisp.org>
103126         * modules/stdint (License): Change to LGPL.
103128 2005-10-04  Simon Josefsson  <jas@extundo.com>
103130         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103131         D. Baushke" <mdb@gnu.org>.
103133 2005-10-04  Bruno Haible  <bruno@clisp.org>
103135         * lib/verify.h (verify_true): Provide alternative definition for C++.
103137 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103139         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103140         (SSIZE_MAX): New macro, if not already defined.
103141         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103142         than 2 GiB.
103144 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103146         Sync from coreutils.
103147         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103148         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103149         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103150         ULLONG_MAX doesn't work with 2.7.2.1.
103152 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103154         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103155         From Ben Pfaff.
103157         * modules/exclude (Depends-on): Depend on verify.
103158         * modules/strtoimax (Depends-on): Likewise.
103159         * modules/utimecmp (Depends-on): Likewise.
103161 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103163         * lib/exclude.c: Include verify.h.
103164         (verify): Remove.  All callers changed to use verify.h's version.
103165         * lib/strtoimax.c: Likewise.
103166         * lib/utimecmp.c: Likewis.e
103168         Sync from coreutils.
103169         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103170         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103171         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103172         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103173         bother returning ENOSYS if settimeofday or stime fails; just let
103174         them return whatever errno they want to return.
103175         * lib/utimens.c: Include unistd.h, for dup2.
103176         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103177         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103179 2005-10-02  Jim Meyering  <jim@meyering.net>
103181         Sync from coreutils.
103182         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103183         from glibc-2.2.5 that fails for read-only files.
103185 2005-10-02  Jim Meyering  <jim@meyering.net>
103187         Sync from coreutils.
103188         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103189         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103190         `#if HAVE_CONFIG_H'.
103191         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103192         Remove AT_FDCWD test.
103193         Do not consume the fd unless successful.
103194         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103195         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103196         block, so that we don't even try to compile it if settimeofday is
103197         available.  This works around a compilation failure on OSF1 V5.1,
103198         due to stime requiring a `long int*' while tv_sec is `int'.
103200 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103202         Sync from coreutils.
103203         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103204         against `yes', rather than just testing for nonempty.
103206 2005-10-01  Simon Josefsson  <jas@extundo.com>
103208         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103209         and Darwin.
103211         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103212         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103213         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103214         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103215         Check if struct addrinfo is declared.
103217 2005-10-01  Simon Josefsson  <jas@extundo.com>
103219         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103220         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103221         AI_* and EAI_* definitions.  Protect function declarations.
103223 2005-10-01  Jim Meyering  <jim@meyering.net>
103225         Sync from coreutils.
103227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103228         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103229         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103231         in the inet and nsl libraries.  Required on Solaris 5.7.
103233 2005-10-01  Jim Meyering  <jim@meyering.net>
103235         Sync from coreutils.
103236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103237         in the inet and nsl libraries.  Required on Solaris 5.7.
103239 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103241         * lib/getdelim.c (getdelim): Remove unused variables.
103243 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103245         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103246         so that the code works even with ancient cpp.  Portability problem
103247         with GCC 2.7.2.1 reported by Thomas M.Ott.
103249 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103251         * modules/regex (Depends-on): Add strcase.
103253         * modules/gethostname (Licence): Change from GPL to LGPL, since
103254         gethostname.c is a trivial implementation of a standard library
103255         function.
103256         * modules/poll (License): Change from GPL to LGPL, since it's
103257         derived from LGPL code.
103259 2005-09-27  Jim Meyering  <jim@meyering.net>
103261         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103262         HAVE_CONFIG_H.
103264         * lib/intprops.h (signed_type_or_expr__): Define.
103265         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103266         for unsigned types.
103268 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103270         * lib/verify.h (verify_expr): Remove, replacing with:
103271         (verify_true): New macro that returns true instead of void.
103272         (verify_type__): Remove.
103273         (verify): Use verify_true rather than verify_type__.
103275 2005-09-26  Bruno Haible  <bruno@clisp.org>
103277         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103278         is necessary.
103279         (lib_SOURCES): Remove mbchar.c.
103280         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103281         (Files): Add m4/mbrtowc.m4.
103282         * modules/mbiter: Likewise.
103283         * modules/mbuiter: Likewise.
103285 2005-09-26  Bruno Haible  <bruno@clisp.org>
103287         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103288         compile mbchar.c if they are not both present.
103289         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103290         * m4/mbiter.m4 (gl_MBITER): Likewise.
103291         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103292         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103293         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103295 2005-09-25  Jim Meyering  <jim@meyering.net>
103297         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103298         also uses socklen_t.
103300 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103302         * lib/utimens.c (ENOSYS): Define if not already defined.
103303         (futimens): Support having a null PATH if the file descriptor
103304         is nonnegative.
103306         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103307         Remove.
103308         (__attribute): Define to empty unless GCC 3.1 or later.
103309         This works around a core dump on OpenBSD 3.4, which has GCC
103310         2.95.3, which dumps core when given __attribute__(()).  It also
103311         simplifies other tests, since we really don't want to bother with
103312         worrying about which ancient version of GCC supported what.
103313         Original problem reported by Yoann Vandoorselaere, with part of
103314         the fix suggested by Derek Price.
103316 2005-09-24  Jim Meyering  <jim@meyering.net>
103318         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103319         so we can once again use a positive bitfield width of 1 -- now we
103320         don't have to explain why we were using a bitfield width of 2.
103322 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103324         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103325         and similarly for the other external symbols.  Problem reported
103326         by James Gallager.
103328         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103329         bug reported by Jim Meyering.
103331         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103333         not needed, since socklen is a prerequisite module.
103335 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103337         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103338         Problem reported by Eric Blake.
103339         (getaddrinfo): Initialize se so that it's not garbage.
103340         Redo internal storage allocation so that it doesn't make unportable
103341         assumptions about alignment.
103342         Fix a memory leak.
103344         * lib/utimens.c (futimens): Use futimesat if available.
103345         Prefer it to futimes since it doesn't have the futimes bug.
103347         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103348         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103349         Instead, declare a function that returns a pointer to an array,
103350         and use verify_type__ to declare the size of the array.
103351         Problem and germ of a solution reported by Bruno Haible.
103352         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103353         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103355 2005-09-23  Jim Meyering  <jim@meyering.net>
103357         Sync from coreutils.
103358         Correct build failure (socklen_t not defined) on at least
103359         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103360         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103362 2005-09-23  Jim Meyering  <jim@meyering.net>
103364         * modules/getaddrinfo (Depends-on): Add socklen.
103366 2005-09-23  Bruno Haible  <bruno@clisp.org>
103368         * tests/test-verify.c: New file.
103370 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103372         Sync from coreutils.
103374         * modules/argmatch (Depends-on): Add verify.
103375         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103376         unistd-safer.
103377         * modules/save-cwd (Depends-on): Likewise.
103379         * modules/openat (Files): Add lib/openat-die.c.
103380         (Depends-on): Remove error, exitfail.
103381         Add dirname.
103383         * modules/verify: New file.
103384         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103385         with "verify" module.
103387 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103389         Sync from coreutils.
103391         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103392         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103393         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103394         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103395         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103396         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103397         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103398         Don't bother checking for string.h, stdlib.h, unistd.h.
103399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103400         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103401         module's job.
103402         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103403         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103405         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103406         (gl_GETDATE): Use it.
103408         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103410 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103412         Sync from coreutils.
103414         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103415         stat-time.h.
103416         * lib/argmatch.h: Include verify.h
103417         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103418         (ARGMATCH_ASSERT): Remove; unused.
103419         * lib/canonicalize.c: Assume STDC_HEADERS.
103420         * lib/exclude.c: Include "strcase.h".
103421         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103422         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103423         and stdio-safer.h.
103424         (getusershell): Call fopen, not fopen_safer.
103425         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103426         Do not include unistd-safer.h.
103427         (save_cwd): Don't call fd_safer; no longer needed
103428         now that we include fcntl--.h.
103430         * lib/getdate.y (relative_time): New type.
103431         (RELATIVE_TIME_0): New constant.
103432         (parser_control): Use relative_time instead of doing it ourselves.
103433         (%union): Add new relative_time rel member.
103434         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103435         Now typeless.
103436         (relunit, relunit_snumber): Now of type rel.
103437         (zone, rel, relunit, get_date): Adjust to above changes.
103439         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103440         Do not include unistd-safer.h.
103441         (getloadavg): Don't call fd_safer; no longer needed
103442         now that we include fcntl--.h.
103444         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103445         (make_dir_parents): Treat ENOSYS like EEXIST.
103447         Improve quality of diagnostics on restore_cwd failure.
103448         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103449         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103450         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103451         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103452         each time through the loop.  Do not diagnose restore_cwd failure;
103453         that is the caller's job (and perhaps the caller does not care).
103455         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103456         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103457         If the file already exists but is not a directory, don't bother
103458         to try to make its parents.
103459         Close potential file descriptor leak if we can't chdir("/") (!).
103460         Don't always return true if chdir($PWD) fails; return true only
103461         if the requested action was done successfully (except for the
103462         chdir($PWD)).
103463         Don't log final directory unless we actually made it.
103464         Refactor to avoid duplicate code to fix up permissions.
103465         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103467         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103468         to make it a bit faster and (I hope) clearer.
103469         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103470         Fix bug in formats like %2N.
103472         * lib/verify.h: New file.
103474 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103476         Sync from coreutils.
103477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103479 2005-09-22  Jim Meyering  <jim@meyering.net>
103481         Sync from coreutils.
103483         * m4/lstat.m4 (gl_FUNC_LSTAT):
103484         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103485         Remove obsolete comment.
103486         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103487         * m4/xstrtod.m4: Likewise.
103489         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103491 2005-09-22  Jim Meyering  <jim@meyering.net>
103493         Sync from coreutils.
103495         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103497         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103498         the .tm_year member, since otherwise gcc-4.0 would now warn about
103499         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103501         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103502         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103504         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103505         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103506         when run in a time zone for which daylight savings time is in effect
103507         for the starting date.
103509         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103510         stop us from restricting permissions of just-created absolute-named
103511         directories.
103512         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103513         to restore initial working directory.
103514         * lib/mkdir-p.c (make_dir_parents): New parameter:
103515         different_working_dir, to tell caller if/when we change the working
103516         directory and are unable to return to the initial one.
103517         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103518         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103519         `return false'.  This fixes a bug introduced on 2004-07-30.
103521         * lib/openat.c (fdopendir): Be sure to close the supplied
103522         file descriptor before returning.  This makes our replacement
103523         implementation a little closer to Solaris's, where fdopendir
103524         ties the file descriptor to the returned DIR* pointer.
103525         * lib/openat.c (unlinkat): New function.
103526         * lib/openat.h (unlinkat): Add prototype.
103527         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103528         (openat_restore_fail): Rename from openat_restore_die.
103529         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103531         Provide an alternative to exiting immediately upon save_cwd or
103532         restore_cwd failure.  Now, an application can arrange e.g.,
103533         to perform a longjump in that case.
103534         * lib/openat.c: Include dirname.h.
103535         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103536         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103537         and openat_restore_die rather than calling error directly.
103538         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103540         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103541         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103542         define.
103544         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103545         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103546                             int utc, int nanoseconds);
103547         Background:
103548         date should not have to allocate a megabyte of virtual memory to
103549         handle a format argument like +%1048575T.  When implemented with
103550         strftime, it must allocate such a buffer, use strftime to fill it
103551         in, print it, then free it.
103552         With fprintftime, it simply prints everything and exits.
103553         With no need for memory allocation, that's one fewer way to fail.
103554         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103555         optional field width, not before, so we accept %9:z, not %:9z.
103556         (my_strftime): Be sure to use L_('x') for literals.
103558         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103559         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103560         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103561         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103562         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103563         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103564         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103565         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103566         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103567         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103568         * lib/xgethostname.c, lib/xreadlink.c:
103569         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103571         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103572         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103573         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103574         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103575         and don't include <sys/file.h>).
103577 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103579         Sync from coreutils.
103581         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103582         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103583         [!LDAV_DONE]: Avoid unused variable warning.
103585 2005-09-21  Bruno Haible  <bruno@clisp.org>
103587         * lib/unicodeio.h (unicode_to_mb): New declaration.
103589 2005-09-20  Derek Price  <derek@ximbiot.com>
103591         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103592         getaddrinfo.h.
103594 2005-09-20  Bruno Haible  <bruno@clisp.org>
103596         * gnulib-tool: Remove trailing slashes from the values specified for
103597         --source-base, --m4-base, --tests-base, --aux-dir.
103598         Suggested by Simon Josefsson <jas@extundo.com>.
103600 2005-09-20  Bruno Haible  <bruno@clisp.org>
103602         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103603         func_modules_to_filelist, func_import, func_create_testdir): Make all
103604         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103605         change when gnulib-tool is invoked in a different locale.
103607 2005-09-19  Simon Josefsson  <jas@extundo.com>
103609         * m4/socklen.m4: Fix typo.
103611 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103613         Use a consistent style for including <config.h>.
103614         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103615         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103616         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103617         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103618         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103619         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103620         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103621         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103622         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103623         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103624         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103625         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103626         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103627         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103628         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103629         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103630         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103631         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103632         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103633         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103634         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103635         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103636         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103637         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103638         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103639         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103640         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103641         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103642         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103643         lib/xstrtoumax.c, lib/yesno.c:
103644         Standardize inclusion of config.h.
103645         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103646         lib/inttostr.h:  Removed inclusion of config.h from header files.
103647         * lib/inttostr.c:  Adjusted in-tree users.
103648         * lib/timespec.h: Remove superfluous warning to include config.h.
103649         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103650         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103651         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103652         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103653         config.h with HAVE_CONFIG_H.
103655 2005-09-19  Jim Meyering  <jim@meyering.net>
103657         * modules/pathmax (License): Change to LGPL.
103659 2005-09-19  Derek Price  <derek@ximbiot.com>
103661         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103663 2005-09-19  Bruno Haible  <bruno@clisp.org>
103665         * gnulib-tool (import): Provide default for --tests-base.
103667 2005-09-19  Bruno Haible  <bruno@clisp.org>
103669         * doc/quote.texi: New file, extracted from gnulib.texi.
103670         * doc/ctime.texi: New file, extracted from gnulib.texi.
103671         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103672         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103673         * doc/gnulib.texi: Include them.
103675 2005-09-18  Bruno Haible  <bruno@clisp.org>
103677         Portability fix.
103678         * gnulib-tool (func_readlink): New function.
103679         (func_ln_if_changed): Use it.
103681 2005-09-18  Bruno Haible  <bruno@clisp.org>
103683         * gnulib-tool: Support --with-tests also with --import.
103684         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103685         (func_import): Use variables $testsbase and $inctests. Emit a
103686         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103687         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103688         SUBDIRS += $testsdir.
103689         (func_create_testdir): Update.
103691 2005-09-18  Bruno Haible  <bruno@clisp.org>
103693         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103694         instead of $dry_run.
103695         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103696         (func_ln_if_changed): Don't handle dry-run here.
103697         (func_import): In dry-run mode, detect more precisely which actions
103698         would be performed, and don't use "...ing" verbs.
103700 2005-09-18  Bruno Haible  <bruno@clisp.org>
103702         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103703         (func_import): Use join on two temporary files instead of three nested
103704         loops, in order to determine which files are new or old.
103706 2005-09-18  Bruno Haible  <bruno@clisp.org>
103708         * gnulib-tool (func_import): Comment out code that spits out the
103709         new files with --dry-run.
103711 2005-09-18  Bruno Haible  <bruno@clisp.org>
103713         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103715 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103717         * lib/stat-time.h: New file.
103718         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103719         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103720         in a different way.
103721         (timespec_cmp): New function.
103722         * lib/utimecmp.c: Include stat-time.h.
103723         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103724         members exist, not on the obsolescent ST_MTIM_NSEC.
103725         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103727 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103729         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103731 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103733         * MODULES.html.sh (File system functions): Add stat-time.
103734         * modules/stat-time: New file.
103735         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103736         is now done in a different way, by the stat-time module.
103737         * modules/utimecmp (Depends-on): Add stat-time.
103739 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103741         * m4/st_mtim.m4: Remove.  Superseded by...
103742         * m4/stat-time.m4: New file.
103743         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103744         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103746 2005-09-15  Derek Price  <derek@ximbiot.com>
103748         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103750 2005-09-15  Derek Price  <derek@ximbiot.com>
103752         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103753         * lib/regex_internal.c: Ditto, using this...
103754         (__GNUC_PREREQ): ...new macro.
103755         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103756         using...
103757         (__GNUC_PREREQ): ...this new macro.
103759         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103761 2005-09-15  Derek Price  <derek@ximbiot.com>
103762             Paul Eggert  <eggert@cs.ucla.edu>
103764         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103765         changes, consolidating in...
103766         * lib/regex_internal.h: ...this file.
103768 2005-09-13  Jim Meyering  <jim@meyering.net>
103770         * lib/canon-host.c: Filter through gnu indent and reword comments
103771         slightly.
103772         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103774 2005-09-13  Derek Price  <derek@ximbiot.com>
103776         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103777         failure.
103778         Reported by Jim Meyering  <jim@meyering.net>.
103780 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103782         * lib/base64.c: Typo.
103783         (base64_encode): Put b64str in initialized data section.
103785 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103787         Merge glibc and coreutils changes into gnulib, plus a few
103788         extra fixes.
103789         * lib/md5.c: Use #error rather than a string.
103790         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103791         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103792         (__attribute__): Define to empty for non recent-GCC.
103793         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103794         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103795         Renamed from their non-__ counterparts, with new macros replacing
103796         them if not _LIBC.  Add __THROW attribute.
103797         (rol): Remove.
103798         (struct md5_ctx): Align buffer if using GCC.
103799         * lib/sha1.h (struct sha1_ctx): Likewise.
103800         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103801         The old name was backwards.
103802         (NOTSWAP): Remove; not used.
103803         (rol): New macro, moved here from md5.h.
103804         (sha1_process_block): Remove a FIXME that doesn't make sense.
103806 2005-09-12  Derek Price  <derek@ximbiot.com>
103808         Return usable errors from canon-host.
103809         * lib/canon-host.h: New file.
103810         * lib/canon-host.c (canon_host): Wrap...
103811         (canon_host_r): ...this new function, which now relies exclusively on
103812         getaddrinfo.
103813         (ch_strerror): New function.
103814         (last_cherror): New global.
103815         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103816         interface.
103817         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103818         void *.
103819         (freeaddrinfo): Free ai->ai_canonname when set.
103821 2005-09-12  Derek Price  <derek@ximbiot.com>
103823         Make canon-host require getaddrinfo.
103824         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103825         AC_LIBSOURCE canon-host.h.  Call...
103826         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103827         gl_GETADDRINFO.
103828         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103830 2005-09-12  Derek Price  <derek@ximbiot.com>
103832         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103833         LGPL.
103834         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103836 2005-09-12  Derek Price  <derek@ximbiot.com>
103838         * lib/gai_strerror.c: Include config.h when available.  Include
103839         getaddrinfo.h before other headers to test interface.
103840         Reported by Larry Jones <lawrence.jones@ugs.com>.
103842 2005-09-12  Derek Price  <derek@ximbiot.com>
103843             Paul Eggert  <eggert@cs.ucla.edu>
103845         * modules/glob (Files): Add glob-libc.h.
103847 2005-09-12  Derek Price  <derek@ximbiot.com>
103848             Paul Eggert  <eggert@cs.ucla.edu>
103850         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103851         glob_.h, glob-libc.h.
103852         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103854 2005-09-12  Derek Price  <derek@ximbiot.com>
103855             Paul Eggert  <eggert@cs.ucla.edu>
103857         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103858         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103859         protecting things that should be done only in gnulib contexts.
103860         * lib/glob_.h: New file, containing only the glob things needed for
103861         gnulib.
103862         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103863         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103864         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103865         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103866         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103867         and to respect the namespace rules better.
103869 2005-09-08  Simon Josefsson  <jas@extundo.com>
103871         * modules/socklen: New file.
103873 2005-09-08  Simon Josefsson  <jas@extundo.com>
103875         * m4/socklen.m4: New file.
103877 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103879         * modules/utimens (Files): Add m4/utimbuf.m4, since
103880         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103881         Reported by Sergey Poznyakoff.
103883 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103885         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103886         definitions, since that's the preferred style in glibc.
103887         Fix a minor spacing issue, and update copyright notice to match
103888         glibc's.
103890 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103892         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
103894 2005-09-06  Simon Josefsson  <jas@extundo.com>
103896         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
103897         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
103899 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103901         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
103902         warning.
103904 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103906         * config/srclist.txt: Add glibc bug 1302.
103908 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
103910         Change bitset word type from unsigned int to unsigned long int,
103911         as this has better performance on typical 64-bit hosts.
103912         Port bitset code to hosts with unusual word sizes.
103913         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
103914         (build_collating_symbol):
103915         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
103916         argument is a bitset.  This is merely a style issue, but it makes
103917         it clearer that an entire array is expected.
103918         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
103919         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
103920         Port to the case where bitset_word is not the same as unsigned int.
103921         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103922         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
103923         Likewise.
103924         * lib/regexec.c (check_dst_limits_calc_pos_1,
103925         check_subexp_matching_top):
103926         (build_trtable, group_nodes_into_DFAstates):
103927         Likewise.
103928         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
103929         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
103930         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
103931         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
103932         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
103933         * lib/regcomp.c (optimize_subexps, lower_subexp):
103934         Work even if bitset_word has holes in its bitwise representation.
103935         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
103936         * lib/regexec.c (check_dst_limits_calc_pos_1,
103937         check_subexp_matching_top):
103938         Likewise.
103939         * lib/regex_internal.c (re_string_reconstruct):
103940         Don't assume UCHAR_MAX == 255.
103941         * lib/regex_internal.h (bitset_set_all): Likewise.
103942         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
103943         All uses changed.
103944         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
103945         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
103946         All uses changed.
103947         (BITSET_WORD_MAX): New macro.
103948         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
103949         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
103950         (bitset_empty, bitset_copy):
103951         Prefer sizeof (bitset) to multiplying it out ourselves.
103952         (bitset_not_merge): Remove; unused.
103953         (bitset_contain): Return bool, not unsigned int with one bit on.
103954         All callers changed.
103955         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
103956         alignment than re_node_set; do this by defining a new internal
103957         type struct dests_alloc and using it to allocate memory.
103959 2005-09-05  Bruno Haible  <bruno@clisp.org>
103961         * gnulib-tool (func_import): Fix comparison in handling of symbolic
103962         links.
103964 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
103966         * modules/size_max (Makefile.am): Add size_max.h
103968 2005-09-04  Derek Price  <derek@ximbiot.com>
103970         * gnulib-tool (func_import): Fix reversed $symbolic logic.
103972 2005-09-03  Simon Josefsson  <jas@extundo.com>
103974         * gnulib-tool: Fix typo.
103976 2005-09-03  Simon Josefsson  <jas@extundo.com>
103978         * config/srclist.txt: Add glibc bug 1293.
103980 2005-09-03  Derek Price  <derek@ximbiot.com>
103982         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
103983         From Larry Jones <lawrence.jones@ugs.com>.
103985 2005-09-02  Simon Josefsson  <jas@extundo.com>
103987         * modules/socklen: New file.
103989 2005-09-02  Simon Josefsson  <jas@extundo.com>
103991         * modules/havelib: New module.
103993         * modules/gettext, modules/iconv, modules/lock, modules/readline:
103994         Use havelib.
103996 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103998         Check for arithmetic overflow when calculating sizes, to prevent
103999         some buffer-overflow issues.  These patches are conservative, in the
104000         sense that when I couldn't determine whether an overflow was possible,
104001         I inserted a run-time check.
104002         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104003         macros.
104004         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104005         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104006         (re_xnrealloc, re_x2nrealloc): New inline functions.
104007         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104008         parse_bracket_exp):
104009         (build_equiv_class, build_charclass): Check for arithmetic overflow
104010         in size expression calculations.
104011         * lib/regex_internal.c (re_string_realloc_buffers):
104012         (build_wcs_upper_buffer, re_node_set_add_intersect):
104013         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104014         (re_dfa_add_node, register_state): Likewise.
104015         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104016         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104017         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104018         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104020 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104022         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104023         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104025 2005-09-02  Bruno Haible  <bruno@clisp.org>
104027         Support for lib vs. lib64 distinction on biarch platforms.
104028         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104029         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104032 2005-09-02  Bruno Haible  <bruno@clisp.org>
104034         * gnulib-tool (import): In the other first-use case, provide defaults
104035         as well.
104037 2005-09-02  Bruno Haible  <bruno@clisp.org>
104039         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104040         patches not yet found in the latest gettext release.
104042 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104044         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104045         to avoid a collision with bits/local_lim.h in glibc.
104046         All uses changed.  Problem reported by Dmitry V. Levin in
104047         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104049         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104050         bugs in int versus size_t comparisons.
104051         (re_string_context_at): Fix bug where the code assumed that
104052         Idx is signed.
104054         Use bool where appropriate.
104055         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104056         All callers changed.
104057         (calc_eclosure_iter): Likewise, for ROOT arg.
104058         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104059         (build_charclass_op): Likewise, for NON_MATCH arg.
104060         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104061         (re_string_construct_common): Likewise, for ICASE arg.
104062         * lib/regexec.c (re_search_2_stub, re_search_stub):
104063         Likewise, for RET_LEN arg.
104064         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104065         (set_regs): Likewise, for FL_BACKTRACK arg.
104066         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104067         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104068         (calc_eclosure_iter, parse_bracket_exp):
104069         Use bool for internal variables that are booleans.
104070         * lib/regexec.c (re_search_internal, check_matching,
104071         proceed_next_node):
104072         (set_regs, build_sifted_states, sift_states_bkref):
104073         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104074         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104075         (find_collation_sequence_value):
104076         Likewise.
104077         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104078         (re_node_set_compare):
104079         Return bool, not int. All callers changed.
104080         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104081         (build_trtable, check_node_accept): Likewise.
104082         * lib/regex_internal.h: Include stdbool.h.
104084         Fix bugs uncovered when converting to bool.
104085         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104086         failure instead of charging ahead blindly.
104087         * lib/regex_internal.c (register_state): Likewise.
104088         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104089         for freeing internal storage.
104090         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104091         bitset pieces used as boolean, to avoid undefined behavior
104092         on hosts that do int overflow checking.
104094 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104096         * config/srclist.txt: Add glibc bugs 1285-1287.
104098 2005-09-01  Jim Meyering  <jim@meyering.net>
104100         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104101         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104102         Require gl_STAT_MACROS, too.
104104 2005-09-01  Bruno Haible  <bruno@clisp.org>
104106         * gnulib-tool (import): In the first-use case, provide defaults.
104108 2005-09-01  Bruno Haible  <bruno@clisp.org>
104110         * gnulib-tool (func_import): Remove the .tmp files.
104112 2005-09-01  Bruno Haible  <bruno@clisp.org>
104114         * gnulib-tool (func_import): Fix handling of symbolic links.
104116 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104118         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104119         old glibc regex code mishandles strings longer than 2**31 bytes.
104120         This patch fixes this when the regex code is used in gnulib
104121         (i.e., outside glibc).
104123         This patch should not affect the use of the regex code inside
104124         glibc.  No doubt this problem also needs to be handled for glibc
104125         as well, but the result will be an incompatible change to the
104126         glibc ABI, and the old ABI will have to be supported too.  That
104127         can be the subject for another patch.
104129         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104130         governing whether the rest of this patch is active.  By default,
104131         the macro is disabled and the patch has no effect.
104132         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104133         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104134         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104135         (re_match_2, re_set_registers): Use the new types.
104136         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104137         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104138         New macros.
104139         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104140         (re_string_context_at, bin_tree_t, re_dfastate_t):
104141         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104142         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104143         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104144         (re_string_char_size_at, re_string_wchar_at):
104145         (re_string_elem_size_at):
104146         Use the new types and macros to port to 64-bit hosts.
104147         Use unsigned types for internal values, so that the code
104148         mostly works even for arrays larger than SSIZE_MAX.
104149         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104150         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104151         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104152         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104153         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104154         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104155         (calc_inveclosure, parse_dup_op, build_range_exp):
104156         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104157         (fetch_number, create_token_tree, mark_opt_subexp):
104158         Likewise.
104159         * lib/regex_internal.c (re_string_construct_common,
104160         create_ci_newstate):
104161         (create_cd_newstate, re_string_allocate, re_string_construct):
104162         (re_string_realloc_buffers, build_wcs_upper_buffer):
104163         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104164         (re_string_reconstruct, re_string_peek_byte_case):
104165         (re_string_fetch_byte_case, re_string_context_at):
104166         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104167         (re_node_set_init_copy, re_node_set_add_intersect):
104168         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104169         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104170         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104171         (re_acquire_state, re_acquire_state_context, register_state):
104172         Likewise.
104173         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104174         search_cur_bkref_entry):
104175         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104176         (re_search_internal, re_search_2_stub, re_search_stub)
104177         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104178         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104179         (update_cur_sifted_state, check_dst_limits):
104180         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104181         (check_subexp_limits, sift_states_bkref, merge_state_array):
104182         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104183         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104184         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104185         (expand_bkref_cache, check_node_accept_bytes):
104186         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104187         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104188         (acquire_init_state_context, check_halt_node_context):
104189         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104190         (sift_states_backward, clean_state_log_if_needed):
104191         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104192         (find_recover_state, transit_state_sb, transit_state_mb):
104193         (transit_state_bkref, build_trtable, match_ctx_clean):
104194         Likewise.
104195         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104196         to work around an assumption that REG_MISSING is negative.
104198         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104199         (seek_collating_symbol_entry) [defined _LIBC]:
104200         (lookup_collation_sequence_value) [defined _LIBC]:
104201         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104202         Use prototypes rather than old-style function definitions.
104203         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104204         (transit_state_sb) [0]:
104205         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104207         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104208         rm_eo.
104210         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104211         (optimize_subexps, lower_subexp):
104212         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104213         since the signed shift might overflow.  Use 1u<<31 instead.
104214         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104215         Likewise.
104216         * lib/regexec.c (check_dst_limits_calc_pos_1,
104217         check_subexp_matching_top): Likewise.
104219         * lib/regcomp.c (optimize_subexps, lower_subexp):
104220         Use CHAR_BIT rather than 8, for clarity.
104221         * lib/regexec.c (check_dst_limits_calc_pos_1):
104222         (check_subexp_matching_top): Likewise.
104223         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104224         have to worry about portability issues when shifting it left.
104225         Remove no-longer-needed test for table_size > 0.
104226         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104227         in a word, as the resulting behavior is undefined.
104228         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104229         in one case, a <= should have been an <, and in another case the
104230         whole test was missing.
104231         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104232         the standard name CHAR_BIT.
104233         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104234         this is not true on one's complement and signed-magnitude hosts.
104236         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104237         next_last_offset.
104238         (struct re_dfa_t): Remove unused member states_alloc.
104239         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104241 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104243         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104244         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104245         and large-file glibc and in 32-bit large-file Solaris.
104247 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104249         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104250         lengths fit in regoff_t; this isn't true if regoff_t is the same
104251         width as size_t.
104252         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104253         (= START + RANGE) instead of RANGE.  This avoids overflow
104254         problems when regoff_t is the same width as size_t.
104255         All callers changed.
104256         (re_search_2_stub): Check for overflow when adding the
104257         sizes of the two strings.
104258         (re_search_stub): Check for overflow when adding START
104259         to RANGE; if it occurs, substitute the extreme value.
104261 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104263         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104265 2005-08-31  Jim Meyering  <jim@meyering.net>
104267         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104268         a pointer-to-const.
104269         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104270         (register_state): Likewise.
104271         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104272         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104273         (group_nodes_into_DFAstates): Likewise.
104275 2005-08-31  Jim Meyering  <jim@meyering.net>
104277         * check-module: Add a FIXME comment.
104279 2005-08-31  Eric Blake  <ebb9@byu.net>
104281         * modules/unistd-safer (Files): Add unistd--.h.
104282         * modules/stdio-safer (Files): Add stdio--.h.
104284 2005-08-31  Derek Price  <derek@ximbiot.com>
104286         * lib/getdelim.c (getdelim): Return EOF on EOF.
104287         Reported by Larry Jones <lawrence.jones@ugs.com>.
104289 2005-08-31  Bruno Haible  <bruno@clisp.org>
104291         Avoid unnecessary diffs in the generated lib/Makefile.am.
104292         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104293         the generated files.
104294         (func_import): Don't set cmd.
104296 2005-08-31  Bruno Haible  <bruno@clisp.org>
104298         * lib/strstr.c: Include <stddef.h>, for NULL.
104299         * lib/strcasestr.c: Likewise.
104300         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104302 2005-08-31  Bruno Haible  <bruno@clisp.org>
104304         * gnulib-tool: New option --macro-prefix.
104305         (func_import): Use macro_prefix.
104306         (import): Handle option --macro-prefix.
104308 2005-08-31  Bruno Haible  <bruno@clisp.org>
104310         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104311         Also use new variables cached_lgpl, cached_libtool.
104313 2005-08-31  Bruno Haible  <bruno@clisp.org>
104315         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104316         always instantiating them.
104318 2005-08-31  Bruno Haible  <bruno@clisp.org>
104320         * gnulib-tool (func_import): Read the previous cached settings
104321         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104322         earlier added by gnulib but are now dropped. Warn when a gnulib file
104323         overwrites a non-gnulib file.
104325 2005-08-31  Bruno Haible  <bruno@clisp.org>
104327         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104328         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104329         projects that don't keep autogenerated files in CVS. Put into
104330         actioncmd only the specified modules, not the transitive closure.
104332 2005-08-31  Bruno Haible  <bruno@clisp.org>
104334         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104335         Create directories that shall be filled.
104336         (import): Don't look for gl_* macros in configure.ac. Recurse across
104337         all directories containing a gnulib-cache.m4 files, if meaningful.
104339 2005-08-31  Bruno Haible  <bruno@clisp.org>
104341         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104342         (import): Set seen_libtool when we see gl_LIBTOOL.
104344 2005-08-31  Bruno Haible  <bruno@clisp.org>
104346         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104347         declaration macro definitions from generated gnulib.m4.
104349 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104351         * lib/iconvme.h: Add prototype for iconv_alloc.
104353 2005-08-29  Simon Josefsson  <jas@extundo.com>
104355         * lib/iconvme.c: Fix errno.
104357 2005-08-29  Bruno Haible  <bruno@clisp.org>
104359         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104360         that it works when the directory contains spaces.
104362 2005-08-29  Bruno Haible  <bruno@clisp.org>
104364         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104366 2005-08-29  Bruno Haible  <bruno@clisp.org>
104368         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104369         Emit more advice.
104371 2005-08-29  Bruno Haible  <bruno@clisp.org>
104372         and Stepan Kasal  <kasal@ucw.cz>
104374         * check-module: If more parameters are given, check each of them
104375         separately; add more exceptions, as noted by Jim Meyering.
104376         (check_module): New procedure.
104377         (%exempt_header): Now contains all exceptions.
104379 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104381         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104383 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104385         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104387 2005-08-28  Bruno Haible  <bruno@clisp.org>
104389         * m4/gnulib-tool.m4: New file.
104391 2005-08-27  Jim Meyering  <jim@meyering.net>
104393         * modules/unistd-safer (Files): Add pipe-safer.c.
104394         * modules/fcntl-safer (Files): Add creat-safer.c.
104396 2005-08-27  Jim Meyering  <jim@meyering.net>
104398         * m4/stdlib-safer.m4: New file.  From coreutils.
104399         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104400         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104401         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104402         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104403         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104405 2005-08-27  Jim Meyering  <jim@meyering.net>
104407         * lib/fopen-safer.c: Merge minor changes from coreutils.
104408         * lib/dup-safer.c: Likewise.
104409         * lib/fd-safer.c: Likewise.
104411         Merge from coreutils.
104412         * lib/stdio--.h: New file.
104413         * lib/stdlib--.h: New file.
104414         * lib/mkstemp-safer.c: New file.
104416         GNU tar needs these.
104417         * lib/pipe-safer.c: New file.
104418         * lib/creat-safer.c: New file.
104419         * lib/fcntl--.h (creat): Define to creat_safer.
104420         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104421         * lib/unistd--.h (pipe): Define to pipe_safer.
104422         * lib/unistd-safer.h: Declare pipe_safer.
104424 2005-08-26  Simon Josefsson  <jas@extundo.com>
104426         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104427         Haible <bruno@clisp.org>.
104429 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104431         * lib/regex_internal.h: Remove all references to
104432         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104433         or better.
104434         (bitset_not, bitset_merge, bitset_not_merge):
104435         (bitset_mask, re_string_allocate, re_string_construct):
104436         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104437         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104438         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104439         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104440         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104441         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104442         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104443         (re_acquire_state_context):
104444         Remove unnecessary forward decls.
104445         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104446         Put __attribute at function definition,
104447         now that the function decl has been removed.
104448         * lib/regex_internal.c (re_string_peek_byte_case):
104449         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104450         Likewise.
104452 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104454         * m4/regex.m4: Add AC_PREREQ(2.50).
104455         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104457 2005-08-25  Simon Josefsson  <jas@extundo.com>
104459         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104460         __fsetlocking.
104462 2005-08-25  Simon Josefsson  <jas@extundo.com>
104464         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104465         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104466         GLIBC specific code.
104468 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104470         Make regex safe for g++.  This fixes one real bug (an "err"
104471         that should have been "*err").  g++ problem reported by
104472         Sam Steingold.
104473         * lib/regex_internal.h (re_calloc): New macro, consistent with
104474         re_malloc etc.  All callers of calloc changed to use re_calloc.
104475         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104476         not int.  All callers changed.
104477         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104478         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104479         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104480         (find_recover_state): Change "err" to "*err"; this fixes what
104481         appears to be a real bug.
104482         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104483         versus int.
104485 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104487         * modules/regex (Depends-on): Add malloc, since the code
104488         assumes that !malloc(0) means failure.
104490 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104492         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104494         alloca modernization/simplification for regex.
104495         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104496         needs to be at the start of the file, and can be moved into
104497         regex_internal.h and simplified.
104498         * lib/regex_internal.h: Include <alloca.h>.
104499         (__libc_use_alloca) [!defined _LIBC]: New macro.
104500         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104501         now works outside glibc.
104503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104505         * config/srclist.txt: Add glibc bugs 1241, 1245.
104507 2005-08-25  Jim Meyering  <jim@meyering.net>
104509         * lib/open-safer.c: Include <config.h>.
104510         Otherwise, we'd lose LARGEFILE support in any file using
104511         e.g. "fcntl--.h"
104513 2005-08-25  Bruno Haible  <bruno@clisp.org>
104515         * m4/minmax.m4: Require autoconf 2.52.
104516         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104517         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104518         alternatives of translit over the alphabet.
104519         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104521 2005-08-24  Simon Josefsson  <jas@extundo.com>
104523         * tests/test-getpass.c: New file.
104525 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104527         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104528         for GNU regex features.
104530 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104532         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104533         * lib/regex.h (regerror): Likewise.
104535         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104536         requires this.  (The code never needed it.)
104538         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104539         All uses of recently-renamed identifiers changed to use the new,
104540         POSIX-compliant names.  The code will build and run just fine
104541         without these changes, but it's better to eat our own dog food
104542         and use the standard-conforming names.
104544         * lib/regex.h: Fix a multitude of POSIX name space violations.
104545         These changes have an effect only for programs that define
104546         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104547         do not change anything for programs compiled in the normal way.
104548         Also, there is no effect on the ABI.
104550         (_REGEX_SOURCE): New macro.
104551         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104552         defined and _GNU_SOURCE is not; this fixes a name space violation.
104554         Rename the following macros to obey POSIX requirements.
104555         The old names are still visible as macros if _REGEX_SOURCE is defined.
104556         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104557         RE_BACKSLASH_ESCAPE_IN_LISTS.
104558         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104559         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104560         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104561         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104562         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104563         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104564         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104565         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104566         (REG_INTERVALS): renamed from RE_INTERVALS.
104567         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104568         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104569         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104570         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104571         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104572         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104573         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104574         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104575         RE_UNMATCHED_RIGHT_PAREN_ORD.
104576         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104577         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104578         (REG_DEBUG): renamed from RE_DEBUG.
104579         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104580         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104581         unusual, since we can't clash with the POSIX REG_ICASE.
104582         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104583         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104584         (REG_NO_SUB): renamed from RE_NO_SUB.
104585         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104586         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104587         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104588         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104589         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104590         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104591         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104592         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104593         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104594         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104595         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104596         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104597         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104598         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104599         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104600         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104601         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104602         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104603         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104604         (REG_FIXED): Renamed from REGS_FIXED.
104605         (REG_NREGS): Renamed from RE_NREGS.
104607         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104608         of other REG_* macros, since POSIX says the user is allowed to
104609         #undef these macros selectively.
104611         (reg_errcode_t): Update comment stating what other tables need
104612         to be consistent.
104614         Rename the following enum values to obey POSIX requirements.
104615         The old names are still visible as macros.
104616         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104617         is not defined, since GNU is supposed to be a superset of POSIX as
104618         much as possible, and since we want reg_errcode_t to be a signed
104619         type for implementation consistency.
104620         (_REG_NOERROR): Renamed from REG_NOERROR.
104621         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104622         (_REG_BADPAT): Renamed from REG_BADPAT.
104623         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104624         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104625         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104626         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104627         (_REG_EBRACK): Renamed from REG_EBRACK.
104628         (_REG_EPAREN): Renamed from REG_EPAREN.
104629         (_REG_EBRACE): Renamed from REG_EBRACE.
104630         (_REG_BADBR): Renamed from REG_BADBR.
104631         (_REG_ERANGE): Renamed from REG_ERANGE.
104632         (_REG_ESPACE): Renamed from REG_ESPACE.
104633         (_REG_BADRPT): Renamed from REG_BADRPT.
104634         (_REG_EEND): Renamed from REG_EEND.
104635         (_REG_ESIZE): Renamed from REG_ESIZE.
104636         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104637         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104638         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104639         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104640         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104642         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104643         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104644         changed.  But support the old name if the new one is not defined
104645         and if _REGEX_SOURCE.
104647         Change the following member names in struct re_pattern_buffer.
104648         The old names are still supported if !_REGEX_SOURCE.
104649         The new names are always supported, regardless of _REGEX_SOURCE.
104650         (re_buffer): Renamed from buffer.
104651         (re_allocated): Renamed from allocated.
104652         (re_used): Renamed from used.
104653         (re_syntax): Renamed from syntax.
104654         (re_fastmap): Renamed from fastmap.
104655         (re_translate): Renamed from translate.
104656         (re_can_be_null): Renamed from can_be_null.
104657         (re_regs_allocated): Renamed from regs_allocated.
104658         (re_fastmap_accurate): Renamed from fastmap_accurate.
104659         (re_no_sub): Renamed from no_sub.
104660         (re_not_bol): Renamed from not_bol.
104661         (re_not_eol): Renamed from not_eol.
104662         (re_newline_anchor): Renamed from newline_anchor.
104664         Change the following member names in struct re_registers.
104665         The old names are still supported if !_REGEX_SOURCE.
104666         The new names are always supported, regardless of _REGEX_SOURCE.
104667         (rm_num_regs): Renamed from num_regs.
104668         (rm_start): Renamed from start.
104669         (rm_end): Renamed from end.
104671         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104672         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104673         Prepend __ to parameter names.
104675         Undo yesterday's changes.
104677 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104679         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104680         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104681         lib/regex.c.
104683 2005-08-24  Jim Meyering  <jim@meyering.net>
104685         Sync from coreutils.
104686         * m4/fcntl-safer.m4: New file.
104688         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104689         and object files for this module.
104691 2005-08-24  Jim Meyering  <jim@meyering.net>
104693         Sync from coreutils.
104694         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104696 2005-08-24  Jim Meyering  <jim@meyering.net>
104698         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104699         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104701 2005-08-24  Jim Meyering  <jim@meyering.net>
104703         * modules/fcntl-safer: New module.
104704         * modules/fts (Depends-on): Add fcntl-safer.
104705         * MODULES.html.sh (File descriptor based Input/Output):
104706         Add fcntl-safer.
104708 2005-08-24  Bruno Haible  <bruno@clisp.org>
104710         Support for unit test modules.
104711         * modules/README: Mention tests modules.
104712         * modules/TEMPLATE-TESTS: New file.
104713         * gnulib-tool: New options --extract-tests-module, --with-tests and
104714         --tests-base (unused for the moment).
104715         (testsbase, inctests): New variables.
104716         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104717         (func_verify_module): Exclude TEMPLATE-TESTS.
104718         (func_verify_nontests_module, func_verify_tests_module): New functions.
104719         (func_get_dependencies): Add implicit dependency for tests modules.
104720         (func_get_tests_module): New function.
104721         (func_modules_transitive_closure): When --with-tests was specified,
104722         include the unit tests as well, unless explicitly avoided.
104723         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104724         (func_emit_tests_Makefile_am): New function.
104725         (func_create_testdir): When --with-tests was specified, emit a
104726         tests/ directory.
104727         * MODULES.html.sh (Future developments): Update.
104729 2005-08-24  Bruno Haible  <bruno@clisp.org>
104731         * modules/tls-tests: New file.
104732         * tests/test-tls.c: New file, from GNU gettext.
104734 2005-08-24  Bruno Haible  <bruno@clisp.org>
104736         * modules/lock-tests: New file.
104737         * tests/test-lock.c: New file, from GNU gettext.
104739 2005-08-24  Bruno Haible  <bruno@clisp.org>
104741         * lib/lock.h: Add multiple inclusion guard.
104742         * lib/tls.h: Add multiple inclusion guard.
104744 2005-08-24  Bruno Haible  <bruno@clisp.org>
104746         * gnulib-tool: Add support for the --aux-dir option to
104747         --create-testdir, --create-megatestdir, --test, --megatest.
104748         (func_create_testdir, func_create_megatestdir): Optionally emit a
104749         AC_CONFIG_AUX_DIR directive.
104750         (create-testdir, create-megatestdir, test, megatest): Provide a
104751         default value for $auxdir.
104753 2005-08-24  Bruno Haible  <bruno@clisp.org>
104755         * gnulib-tool (import): Use compound statement instead of subshell
104756         where possible.
104758 2005-08-24  Bruno Haible  <bruno@clisp.org>
104760         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104762 2005-08-24  Bruno Haible  <bruno@clisp.org>
104764         * gnulib-tool (func_version): Update.
104766 2005-08-24  Bruno Haible  <bruno@clisp.org>
104768         * gnulib-tool (func_import, func_create_testdir,
104769         func_create_megatestdir): Quote all autoconf macro arguments.
104771 2005-08-24  Bruno Haible  <bruno@clisp.org>
104773         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104774         option --force, because --force causes the aclocal.m4 of each
104775         subdirectory to be newer than the corresponding config.h.in.
104777 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104779         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104780         All contents moved to gl_REGEX.
104781         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104782         assume that it does.
104784 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104786         * lib/regex.h (REG_NOSYS)
104787         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104788         Define, since POSIX requires it as of 2001.
104789         (_REG_ENOSYS)
104790         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104791         New private symbol, used to keep the enum signed in all cases.
104792         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104793         Youngman in
104794         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104796         * lib/regex_internal.c (re_string_skip_chars, register_state):
104797         (calc_state_hash):
104798         Remove forward decls; no longer needed now that we use prototypes.
104799         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104800         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104801         (clean_state_log_if_needed): Likewise.
104803 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104805         * config/srclist.txt: Add glibc bugs 1231-1233.
104807 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104809         Fix problems reported by Sam Steingold in
104810         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104811         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104812         assumed that reg_errcode_t is a signed type, which is not
104813         necessarily true if _XOPEN_SOURCE is not defined.
104814         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104815         since some compilers warn about it otherwise.
104817 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104819         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104820         (init_word_char, create_initial_state, duplicate_node_closure):
104821         (fetch_token, peek_token_bracket, build_range_exp):
104822         (build_collating_symbol): Remove forward decls; no longer needed
104823         now that we use prototypes.
104825         * lib/regcomp.c:
104826         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104827         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104828         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104829         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104830         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104831         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104832         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104833         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104834         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104835         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104836         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104837         (build_charclass, build_charclass_op, fetch_number, create_tree):
104838         (create_token_tree, mark_opt_subexp, duplicate_tree):
104839         Use prototypes rather than old-style definitions.
104841         * lib/regex_internal.c:
104842         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104843         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104844         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104845         (re_string_reconstruct, re_string_peek_byte_case):
104846         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104847         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104848         (re_node_set_init_copy, re_node_set_add_intersect):
104849         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104850         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104851         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104852         (re_acquire_state, re_acquire_state_context, register_state):
104853         (create_ci_newstate, create_cd_newstate, free_state):
104854         Likewise.
104855         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104856         re_search_2):
104857         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104858         (re_search_internal, prune_impossible_nodes):
104859         (acquire_init_state_context, check_matching, static):
104860         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104861         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104862         (update_regs, sift_states_backward, build_sifted_states):
104863         (clean_state_log_if_needed, merge_state_array):
104864         (update_cur_sifted_state, add_epsilon_src_nodes):
104865         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104866         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104867         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104868         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104869         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104870         (check_arrival, check_arrival_add_next_nodes):
104871         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104872         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104873         (check_node_accept_bytes, check_node_accept, extend_buffers):
104874         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104875         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104876         (sift_ctx_init):
104877         Likewise.
104879         * lib/regex_internal.h:
104880         (re_string_allocate, re_string_construct, re_string_reconstruct):
104881         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104882         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104883         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104884         (re_string_context_at, re_string_peek_byte_case):
104885         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104886         is defined, since we now use prototypes always.
104888         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104889         C89 or better.  All uses removed.
104891 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104893         * config/srclist.txt: Add glibc bugs 1220-1227.
104895 2005-08-20  Jim Meyering  <jim@meyering.net>
104897         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
104898         of unused local, dfa.
104900 2005-08-20  Bruno Haible  <bruno@clisp.org>
104902         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
104904 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104906         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
104907         (re_node_set_insert_last, re_dfa_add_node):
104908         Rename local variables to avoid GCC shadowing warnings.
104910 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104912         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
104913         [defined lint]: Suppress bogus uninitialized-variable warnings.
104915         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
104916         and let the caller return REG_ESPACE if out of space.  This
104917         removes an uninitialied-variable warning with GCC 4.0.1, and also
104918         avoids taking the address of a local variable.  All callers
104919         changed.
104921 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104923         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
104924         $LIBCSRC/posix/regexec.c.
104925         Add glibc bug 1217 for regcomp.c.
104927 2005-08-19  Jim Meyering  <jim@meyering.net>
104929         * lib/regexec.c (proceed_next_node): Redo local variables to
104930         avoid GCC shadowing warnings.
104932 2005-08-18  Bruno Haible  <bruno@clisp.org>
104934         * lib/strstr.c (strstr): Fix return value in multibyte case.
104935         * lib/strcasestr.c (strcasestr): Likewise.
104937 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104939         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
104941 2005-08-17  Jim Meyering  <jim@meyering.net>
104943         Make the %s format (seconds since the epoch) work for a negative
104944         number and when used with a zero-padded field width, e.g. %015s.
104946         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
104947         label so that it precedes the code to set `digits'.  Otherwise,
104948         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
104949         print `00-22'.  Now, it prints `-0022', as it should.
104951 2005-08-17  Bruno Haible  <bruno@clisp.org>
104953         * modules/strstr (Files): Add m4/mbrtowc.m4.
104954         (Depends-on): Add mbuiter.
104956 2005-08-17  Bruno Haible  <bruno@clisp.org>
104958         * modules/strcasestr: New file.
104959         * MODULES.html.sh (String handling, based on ANSI C 89): Add
104960         strcasestr.
104962 2005-08-17  Bruno Haible  <bruno@clisp.org>
104964         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
104966 2005-08-17  Bruno Haible  <bruno@clisp.org>
104968         * modules/mbuiter: New file.
104969         * MODULES.html.sh (Extended multibyte and wide character utilities):
104970         Add mbuiter.
104972 2005-08-17  Bruno Haible  <bruno@clisp.org>
104974         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
104975         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
104977 2005-08-17  Bruno Haible  <bruno@clisp.org>
104979         * m4/strcasestr.m4: New file.
104981 2005-08-17  Bruno Haible  <bruno@clisp.org>
104983         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
104984         * lib/strstr.c: Completely rewritten, with multibyte locale support.
104986 2005-08-17  Bruno Haible  <bruno@clisp.org>
104988         * lib/strcasestr.h: New file.
104989         * lib/strcasestr.c: New file.
104991 2005-08-17  Bruno Haible  <bruno@clisp.org>
104993         * lib/strcasecmp.c: Use mbuiter.h.
104995 2005-08-17  Bruno Haible  <bruno@clisp.org>
104997         * lib/mbuiter.h: New file.
104999 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105002         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105003         and gl_GETOPT are both invoked via different paths (as happens
105004         with GNU tar CVS because it uses both argp and getopt), the former
105005         wins.
105007 2005-08-16  Bruno Haible  <bruno@clisp.org>
105009         * modules/tls: New file.
105010         * MODULES.html.sh (Multithreading): Add tls.
105012 2005-08-16  Bruno Haible  <bruno@clisp.org>
105014         * modules/strnlen1: New file.
105015         * MODULES.html.sh (String handling): Add strnlen1.
105017 2005-08-16  Bruno Haible  <bruno@clisp.org>
105019         * modules/strcase (Files): Add m4/mbrtowc.m4.
105020         (Depends-on): Add strnlen1, mbchar.
105022 2005-08-16  Bruno Haible  <bruno@clisp.org>
105024         * modules/mbiter: New file.
105025         * MODULES.html.sh (Extended multibyte and wide character utilities):
105026         Add mbiter.
105028 2005-08-16  Bruno Haible  <bruno@clisp.org>
105030         * modules/mbfile: New file.
105031         * MODULES.html.sh (Extended multibyte and wide character utilities):
105032         Add mbfile.
105034 2005-08-16  Bruno Haible  <bruno@clisp.org>
105036         * modules/mbchar: New file.
105037         * MODULES.html.sh (Extended multibyte and wide character utilities):
105038         New section.
105040 2005-08-16  Bruno Haible  <bruno@clisp.org>
105042         * m4/tls.m4: New file, from GNU gettext.
105044 2005-08-16  Bruno Haible  <bruno@clisp.org>
105046         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105047         always.
105048         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105050 2005-08-16  Bruno Haible  <bruno@clisp.org>
105052         * m4/mbiter.m4: New file.
105054 2005-08-16  Bruno Haible  <bruno@clisp.org>
105056         * m4/mbfile.m4: New file.
105058 2005-08-16  Bruno Haible  <bruno@clisp.org>
105060         * m4/mbchar.m4: New file.
105062 2005-08-16  Bruno Haible  <bruno@clisp.org>
105064         * lib/tls.h: New file, from GNU gettext.
105065         * lib/tls.c: New file, from GNU gettext.
105067 2005-08-16  Bruno Haible  <bruno@clisp.org>
105069         * lib/strnlen1.h: New file.
105070         * lib/strnlen1.c: New file.
105072 2005-08-16  Bruno Haible  <bruno@clisp.org>
105074         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105075         (mbi_init): Update.
105076         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105077         NUL byte, not after it.
105079 2005-08-16  Bruno Haible  <bruno@clisp.org>
105081         * lib/strcase.h (strcasecmp): Add note in comments.
105082         * lib/strncasecmp.c: Use code from strcasecmp.c.
105083         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105084         (strcasecmp): Work correctly in multibyte locales.
105086 2005-08-16  Bruno Haible  <bruno@clisp.org>
105088         * lib/mbiter.h: New file.
105090 2005-08-16  Bruno Haible  <bruno@clisp.org>
105092         * lib/mbfile.h: New file.
105094 2005-08-16  Bruno Haible  <bruno@clisp.org>
105096         * lib/mbchar.h: New file.
105097         * lib/mbchar.c: New file.
105099 2005-08-16  Bruno Haible  <bruno@clisp.org>
105101         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105102         the valid ones. Makes the comparison operations transitive:
105103         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105104         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105106 2005-08-15  Simon Josefsson  <jas@extundo.com>
105108         * modules/ssize_t (License): Change to 'unlimited'.
105110         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105112 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105114         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105115         Add comments for each pending glibc patch.
105117 2005-08-15  Bruno Haible  <bruno@clisp.org>
105119         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105120         __cplusplus is defined.
105122 2005-08-14  Jim Meyering  <jim@meyering.net>
105124         Sync from coreutils.
105126         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105127         Use the hash-table-based cycle-detection code not just when
105128         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105129         Reported by James Youngman in
105130         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105131         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105132         FTS_TIGHT_CYCLE_CHECK.
105133         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105134         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105135         once again.
105136         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105137         * lib/fts.c (fd_safer): Remove decl.
105138         Include fcntl--.h rather than unistd-safer.h
105139         (fts_safe_changedir): Don't call fd_safer; no longer needed
105140         now that we include fcntl--.h.
105142 2005-08-12  Simon Josefsson  <jas@extundo.com>
105144         * modules/getndelim2: Use ssize_t module.
105145         * modules/getnline: Likewise.
105146         * modules/safe-read: Likewise.
105147         * modules/xreadlink: Likewise.
105149         * modules/ssize_t: New file.
105151 2005-08-12  Simon Josefsson  <jas@extundo.com>
105153         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105155 2005-08-12  Simon Josefsson  <jas@extundo.com>
105157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105158         ssize_t.
105160 2005-08-12  Simon Josefsson  <jas@extundo.com>
105162         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105163         readline, getdelim and check_version.
105164         (Support for systems lacking ISO C 99: Sizes of integer types):
105165         Add size_max.
105167 2005-08-12  Bruno Haible  <bruno@clisp.org>
105169         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105171 2005-08-11  Simon Josefsson  <jas@extundo.com>
105173         * modules/readline: New file.
105175         * modules/strnlen (Files): Add strnlen.h.
105177 2005-08-11  Simon Josefsson  <jas@extundo.com>
105179         * m4/readline.m4: New file.
105181 2005-08-11  Simon Josefsson  <jas@extundo.com>
105183         * lib/readline.h, readline.c: New file.
105185 2005-08-11  Simon Josefsson  <jas@extundo.com>
105187         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105188         gl_AVOID.
105190 2005-08-11  Bruno Haible  <bruno@clisp.org>
105192         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105194 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105196         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105198 2005-08-10  Simon Josefsson  <jas@extundo.com>
105200         * tests/test-iconvme.c: New file.
105202 2005-08-10  Simon Josefsson  <jas@extundo.com>
105204         * m4/strnlen.m4: New file.
105206         * m4/strndup.m4: Don't check for strnlen declaration, done in
105207         strnlen.m4.
105209 2005-08-10  Simon Josefsson  <jas@extundo.com>
105211         * lib/strndup.c: Use strnlen.h.
105213         * lib/strnlen.h: New file.
105215 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105217         * README: Typos.
105219 2005-08-02  Simon Josefsson  <jas@extundo.com>
105221         * modules/readline: New file.
105223 2005-08-02  Simon Josefsson  <jas@extundo.com>
105225         * modules/getdelim: New file.
105227         * modules/getline: Rewrite, don't use getndelim2.
105229 2005-08-02  Simon Josefsson  <jas@extundo.com>
105231         * m4/getline.m4: Separate out getdelim stuff into separate module.
105233         * m4/getdelim.m4: New file.
105235 2005-08-02  Simon Josefsson  <jas@extundo.com>
105237         * lib/getline.h, getline.c: Rewrite.
105239         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105241 2005-07-31  Bruno Haible  <bruno@clisp.org>
105243         * lib/lock.h (gl_lock_initializer): New macro.
105244         (gl_lock_define_initialized): Use it.
105245         (gl_rwlock_initializer): New macro.
105246         (gl_rwlock_define_initialized): Use it.
105247         (gl_recursive_lock_initializer): New macro.
105248         (gl_recursive_lock_define_initialized): Use it.
105250 2005-07-30  Karl Berry  <karl@gnu.org>
105252         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105253         Report from Ben Pfaff, regarding getopt.
105255 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105257         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105258         normal way.
105259         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105260         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105261         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105262         (gl_GETOPT): Use the new macros.  Most of the implementation
105263         is moved to the new macros.  This is for programs like Emacs
105264         that don't want all the functionality of gl_GETOPT.
105266 2005-07-26  Bruno Haible  <bruno@clisp.org>
105268         * m4/lock.m4: Update from GNU gettext.
105270 2005-07-26  Bruno Haible  <bruno@clisp.org>
105272         * lib/lock.h: Update from GNU gettext.
105273         * lib/lock.c: Update from GNU gettext.
105275 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105277         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105278         obsolescent AC_TRY_RUN.  Include the default includes files, for
105279         'exit'.
105281 2005-07-24  Bruno Haible  <bruno@clisp.org>
105283         * modules/visibility: New file.
105284         * MODULES.html.sh (Misc): Add visibility.
105286 2005-07-24  Bruno Haible  <bruno@clisp.org>
105288         * m4/visibility.m4: New file.
105290 2005-07-24  Bruno Haible  <bruno@clisp.org>
105292         * doc/visibility.texi: New file.
105294 2005-07-22  Bruno Haible  <bruno@clisp.org>
105296         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105297         $(ALLOCA_H), redundant through BUILT_SOURCES.
105298         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105299         redundant through BUILT_SOURCES.
105300         * modules/byteswap (Makefile.am): Remove explicit dependency on
105301         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105302         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105303         $(FNMATCH_H), redundant through BUILT_SOURCES.
105304         * modules/getopt (Makefile.am): Remove explicit dependency on
105305         $(GETOPT_H), redundant through BUILT_SOURCES.
105306         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105307         redundant through BUILT_SOURCES.
105308         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105309         redundant through BUILT_SOURCES.
105310         * modules/stdbool (Makefile.am): Remove explicit dependency on
105311         $(STDBOOL_H), redundant through BUILT_SOURCES.
105312         * modules/stdint (Makefile.am): Remove explicit dependency on
105313         $(STDINT_H), redundant through BUILT_SOURCES.
105314         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105315         Remove explicit dependency on $(SYSEXITS_H).
105316         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105318 2005-07-18  Simon Josefsson  <jas@extundo.com>
105320         * lib/check-version.c (check_version): Accept identical versions too.
105322 2005-07-18  Bruno Haible  <bruno@clisp.org>
105324         * modules/lock: New file.
105325         * MODULES.html.sh (Multithreading): New section.
105327 2005-07-18  Bruno Haible  <bruno@clisp.org>
105329         * m4/lock.m4: New file, from GNU gettext.
105331 2005-07-18  Bruno Haible  <bruno@clisp.org>
105333         * lib/lock.h: New file, from GNU gettext.
105334         * lib/lock.c: New file, from GNU gettext.
105336 2005-07-18  Bruno Haible  <bruno@clisp.org>
105338         * lib/lock.h (gl_once_t): New type.
105339         (gl_once_define, gl_once): New macros.
105340         * lib/lock.c (fresh_once): New variable.
105341         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105342         functions.
105344 2005-07-16  Simon Josefsson  <jas@extundo.com>
105346         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105347         workaround, suggested by Bruno.
105349 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105351         * modules/xalloc (Depends-on): Add xalloc-die.
105352         * modules/xvasprintf (Depends-on): Add xalloc-die.
105354 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105356         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105357         with a minor change.
105359 2005-07-15  Bruno Haible  <bruno@clisp.org>
105361         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105362         When using lib/poll.c, define poll as rpl_poll.
105364 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105366         * modules/argp (Depends-on): Remove unlocked-io.
105368 2005-07-14  Derek Price  <derek@ximbiot.com>
105370         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105371         for glob symlink bug.
105373 2005-07-14  Bruno Haible  <bruno@clisp.org>
105375         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105376         Instead, test for *_unlocked function declarations directly.
105378 2005-07-11  Simon Josefsson  <jas@extundo.com>
105380         * modules/size_max: New file.
105382         * modules/xsize: Depend on size_max module for size_max.m4.
105384 2005-07-11  Simon Josefsson  <jas@extundo.com>
105386         * lib/size_max.h: New file.
105388 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105390         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105391         copyright symbol and the year.
105392         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105393         (version_etc_va): Use parameterized copyright notice.
105394         Reword to conform to the current GNU coding standards.
105396 2005-07-11  Karl Berry  <karl@gnu.org>
105398         * doc/gnulib.texi (Quoting): new node.
105399         (Initial import): more info, from Patrice.
105401 2005-07-11  Bruno Haible  <bruno@clisp.org>
105403         * gnulib-tool (func_usage): Document option --avoid.
105404         (Command line options): Handle --avoid.
105405         (func_acceptable): New function.
105406         (func_modules_transitive_closure): Use it.
105408 2005-07-11  Bruno Haible  <bruno@clisp.org>
105410         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105411         Reported by Jim Meyering.
105413 2005-07-10  Bruno Haible  <bruno@clisp.org>
105415         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105416         Needed when size_t is smaller than 'unsigned int'.
105417         Reported by Paul Eggert.
105419 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105421         * modules/argp (Depends-on): Add unlocked-io
105423 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105425         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105426         block of defines.
105428 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105430         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105431         fix now.
105433 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105434         and Paul Eggert  <eggert@cs.ucla.edu>
105436         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105437         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105439 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105441         * modules/regex (Files): Add lib/regex_internal.c,
105442         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105443         (Depends-on): Add extensions.
105444         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105446 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105448         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105449         pathconf.
105450         * m4/same.m4 (gl_SAME): Likewise.
105451         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105453         * m4/regex.m4: Adjust to new libc regex implementation.
105454         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105455         all the .c and .h parts of (the new) regex.
105456         Quote the m4 stuff better.
105457         Check for RE_ICASE bug of old gnulib.
105458         Check for REG_STARTEND of recent libc.
105459         Rename local variables from jm_* to gl_*.
105460         Quote operand of "test -f".
105461         Say "recent enough" version of libc, not "version 2".
105462         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105463         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105464         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105465         Remove check for btowc, isascii.
105466         Require AM_LANGINFO_CODESET.
105468 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105470         * lib/regex.c, regex.h: Sync from libc.
105471         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105472         * lib/regexec.c:
105473         New files, synced from libc, except that regex_internal.h
105474         currently has a small porting fix.
105476 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105478         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105479         regex_internal.c, regexec.c.
105480         Add regex_internal.h too, but as a comment, since the libc version
105481         is currently broken in gnulib mode.
105483 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105485         Support programs like Emacs that use gnulib but not gettext.
105486         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105487         * modules/gettext-h: New file.
105488         * modules/gettext (Files): Remove lib/gettext.h.
105489         (Depends-on): Add gettext-h.
105490         (Makefile.am): Remove lib_SOURCES.
105491         * modules/argmatch, modules/c-stack, modules/closeout:
105492         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105493         * modules/execute, modules/file-type, modules/getaddrinfo:
105494         * modules/getopt, modules/human, modules/javacomp:
105495         * modules/javaexec, modules/mkdir-p, modules/obstack:
105496         * modules/openat, modules/pagealign_alloc, modules/pipe:
105497         * modules/quotearg, modules/regex, modules/rpmatch:
105498         * modules/unicodeio, modules/userspec, modules/version-etc:
105499         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105500         * modules/xsetenv:
105501         Depend on gettext-h, not gettext.
105503 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105505         * gnulib-tool (func_import): Add support for 'public domain' license.
105506         * modules/alloca, modules/atexit, modules/memmove:
105507         Now public domain, not GPL.
105508         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105509         * modules/realloc, modules/strerror, modules/strtod:
105510         Now LGPL, not GPL.
105512 2005-07-05  Bruno Haible  <bruno@clisp.org>
105514         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105515         autoconf CVS. Needed for mingw.
105517 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105519         Remove the dependency of the strftime module on the tzset module.
105520         * modules/strftime (Depends-on): Remove dependency on tzset.
105522 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105524         Remove the dependency of the strftime module on the tzset module.
105525         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105526         gl_FUNC_TZSET_CLOBBER.
105528 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105530         Remove the dependency of the strftime module on the tzset module.
105531         * lib/strftime.c (my_strftime)
105532         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105533         Copy the input structure, to work around some of the bug with
105534         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105535         Solaris releases, you should also use the tzset module, but we won't
105536         require it as a dependency any more since we don't want LGPLed code
105537         to depend on GPLed code.
105539 2005-07-02  Jim Meyering  <jim@meyering.net>
105541         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105542         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105543         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105544         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105546 2005-07-02  Jim Meyering  <jim@meyering.net>
105548         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105550 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105552         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105553         declares only 'struct timespec;' (!).
105555 2005-07-01  Jim Meyering  <jim@meyering.net>
105557         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105558         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105559         * lib/save-cwd.c, tempname.c:
105560         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105561         and don't include <sys/file.h>).
105563 2005-06-29  Jim Meyering  <jim@meyering.net>
105565         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105566         type name.  Use the variable name instead.
105567         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105568         Likewise.
105570 2005-06-28  Simon Josefsson  <jas@extundo.com>
105572         * modules/check-version (Files): Add check-version.m4.
105574 2005-06-28  Simon Josefsson  <jas@extundo.com>
105576         * m4/check-version.m4: New file, suggested by Jim Meyering
105577         <jim@meyering.net>.
105579 2005-06-28  Simon Josefsson  <jas@extundo.com>
105581         * lib/check-version.h, lib/check-version.c: New files.
105583 2005-06-28  Simon Josefsson  <jas@extundo.com>
105585         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105586         collision with global variable.  Better indentation.  Don't
105587         increment buffer pointer beyond buffer end.  Based on comments
105588         from Paul Eggert <eggert@cs.ucla.edu>.
105590         * lib/base64.h: Indent.
105592 2005-06-28  Simon Josefsson  <jas@extundo.com>
105594         * doc/gnulib.texi (Library version handling): New section.
105596 2005-06-28  Jim Meyering  <jim@meyering.net>
105598         * check-module (find_included_lib_files): Hard-code another
105599         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105600         but modules/fts-lgpl (correctly) does not list those files.
105602         * modules/canonicalize (Files): Add lib/pathmax.h.
105604 2005-06-25  Simon Josefsson  <jas@extundo.com>
105606         * modules/check-version: New file.
105608 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105610         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105611         initializer of struct addrinfo, as an indication that we don't
105612         care how many members the structure has.
105614 2005-06-24  Derek Price  <derek@ximbiot.com>
105615         and Bruno Haible  <bruno@clisp.org>
105617         Remove stat module & update lstat.
105618         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105619         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105620         * m4/stat.m4: Remove this file.
105622 2005-06-24  Derek Price  <derek@ximbiot.com>
105623         and Bruno Haible  <bruno@clisp.org>
105625         Remove stat module & update lstat.
105626         * lib/stat.c: Remove this file...
105627         (slash_aware_lstat): ...moving this content and its support...
105628         * lib/lstat.c (rpl_lstat): ...into here.
105629         * lib/lstat.h: New file.
105631 2005-06-24  Derek Price  <derek@ximbiot.com>
105632         and Bruno Haible  <bruno@clisp.org>
105634         Remove stat module & update lstat.
105635         * config/srclist.txt (libc sources): Remove stat.
105637 2005-06-24  Derek Price  <derek@ximbiot.com>
105638         and Bruno Haible  <bruno@clisp.org>
105640         Remove stat module & update lstat.
105641         * MODULES.html.sh (stat): Remove.
105642         * MODULES.html: Regenerated.
105643         * modules/lstat (Description): Correct function name.
105644         (Files): Add "lstat.h".
105645         (Depends-on): Remove stat, add xalloc, stat-macros.
105646         * modules/stat: Remove this file.
105647         (Include): Add "lstat.h", remove <sys/stat.h>.
105649 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105651         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105652         (ranged_convert): Don't save conversion in a temporary struct.
105653         This causes a warning with GCC 4.0.0, and anyway in the typical
105654         case it's not worth the extra 100 bytes or so of code.
105655         (ranged_convert, __mktime_internal): When calling a function via a
105656         pointer P, use P () rather than (*P) (), as we now assume C89 or
105657         better.
105659 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105661         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105662         "who -r" failed to give output.  Problem reported by Tim Waugh.
105664         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105665         (xcalloc): Use it to avoid needless tests.
105666         Problem reported by Jim Meyering.
105668 2005-06-20  Derek Price  <derek@ximbiot.com>
105670         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105671         unnecessary for Autoconfs > 2.59c.
105673 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105675         * lib/argp.h (__option_is_short): Check upper limit of
105676         __key. Isprint() requires its argument to have the value
105677         of an unsigned char or EOF.
105679 2005-06-16  Jim Meyering  <jim@meyering.net>
105681         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105682         when either N or S is zero.
105684 2005-06-16  Derek Price  <derek@ximbiot.com>
105686         * m4/bison.m4: Declare YACC & YFLAGS precious.
105688 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105690         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105691         multibyte string or pattern, fall back on unibyte matching.
105692         Problem reported by James Youngman.
105694 2005-06-08  Bruno Haible  <bruno@clisp.org>
105696         * modules/csharpcomp: New file.
105697         * MODULES.html.sh (C#): Add csharpcomp.
105699 2005-06-08  Bruno Haible  <bruno@clisp.org>
105701         * m4/csharpcomp.m4: New file, from GNU gettext.
105703 2005-06-08  Bruno Haible  <bruno@clisp.org>
105705         * lib/csharpcomp.h: New file, from GNU gettext.
105706         * lib/csharpcomp.c: New file, from GNU gettext.
105707         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105709 2005-06-08  Bruno Haible  <bruno@clisp.org>
105711         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105712         warning on mingw.
105714 2005-06-07  Derek Price  <derek@ximbiot.com>
105716         Sync from CVS.
105717         * lib/glob_.h: Indent nested #ifdef.
105719 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105721         Sync from coreutils.
105722         Use "file name" when talking about file names, instead of "filename"
105723         or "path", as per the GNU coding standards.
105724         * lib/mkdir-p.c: Renamed from makepath.c.
105725         (make_dir_parents): Renamed from make_path.  All callers changed.
105726         * lib/mkdir-p.h: Likewise.  All includers changed.
105727         * lib/filenamecat.c: Renamed from path-concat.c.
105728         (file_name_concat): Renamed from path_concat.  All callers changed.
105729         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105730         * lib/filenamecat.h: Likewise.  All includers changed.
105731         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105732         in comments or local variable names.
105733         * lib/basename.c: Likewise.
105734         * lib/canonicalize.c, canonicalize.h: Likewise.
105735         * lib/dirname.c, dirname.h: Likewise.
105736         * lib/euidaccess.c: Likewise.
105737         * lib/exclude.c: Likewise
105738         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105739         * lib/fsusage.c, fsuage.h: Likewise.
105740         * lib/fts.c, fts_.h: Likewise.
105741         * lib/getcwd.c: Likewise.
105742         * lib/getloadavg.c: Likewise.
105743         * lib/mkstemp.c: Likewise.
105744         * lib/mountlist.c, mountlist.h: Likewise.
105745         * lib/openat.c, openat.h: Likewise.
105746         * lib/readlink-stub.c: Likewise.
105747         * lib/readutmp.c, readutmp.h: Likewise.
105748         * lib/rename.c: Likewise.
105749         * lib/rmdir.c: Likewise.
105750         * lib/same.c: Likewise.
105751         * lib/savedir.c: Likewise.
105752         * lib/stripslash.c: Likewise.
105753         * lib/tempname.c: Likewise.
105754         * lib/xreadlink.c: Likewise.
105755         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105756         All uses changed.
105757         * lib/exclude.h: Likewise.
105759         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105760         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105761         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105762         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105763         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105764         files have been getting away with it for years (MORE/BSD 4.3
105765         is extinct now).
105766         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105767         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105769         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105770         Define to 256, not 255, as per modern POSIX.
105772 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105774         Sync from coreutils.
105775         Use "file name" when talking about file names, instead of "filename"
105776         or "path", as per the GNU coding standards.
105777         * MODULES.html.sh: mkdir-p renamed from makepath.
105778         filenamecat renamed from path-concat.
105779         * modules/filenamecat: Renamed from modules/path-concat.
105780         (Files): filenamecat.h and filenamecat.c renamed from
105781         path-concat.h and path-concat.c.
105782         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105783         (Include): filenamecat.h, not path-concat.h.
105784         * modules/mkdir-p: Renamed from modules/makepath.
105785         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105786         makepath.c.
105787         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105788         (Include): mkdir-p.h, not makepath.h.
105790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105792         Sync from coreutils.
105793         * m4/mkdir-p.m4: Renamed from makepath.m4.
105794         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105795         Rename files from makepath.c to mkdir-p.c, and from
105796         makepath.h to mkdir-p.h.
105797         * m4/filenamecat.m4: Renamed from path-concat.m4.
105798         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105799         Rename files from path-concat.c to filenamecat.c,
105800         and from path-concat.h to filenamecat.h.
105801         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105802         "file name" in local variables or comments.
105803         * m4/rename.m4: Likewise.
105805 2005-06-01  Bruno Haible  <bruno@clisp.org>
105807         * modules/csharpexec: New file.
105808         * MODULES.html.sh (C#): New section.
105810 2005-06-01  Bruno Haible  <bruno@clisp.org>
105812         * m4/csharp.m4: New file, from GNU gettext.
105813         * m4/csharpexec.m4: New file, from GNU gettext.
105815 2005-06-01  Bruno Haible  <bruno@clisp.org>
105817         * lib/csharpexec.h: New file, from GNU gettext.
105818         * lib/csharpexec.c: New file, from GNU gettext.
105819         * lib/csharpexec.sh.in: New file, from GNU gettext.
105821 2005-05-31  Derek Price  <derek@ximbiot.com>
105822             Paul Eggert  <eggert@cs.ucla.edu>
105824         Sync from cvs.
105825         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105827 2005-05-31  Derek Price  <derek@ximbiot.com>
105828             Paul Eggert  <eggert@cs.ucla.edu>
105830         Sync from cvs.
105831         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105833 2005-05-29  Derek Price  <derek@ximbiot.com>
105835         * config/srclist.txt (glob_.h, glob.c): Add these files.
105837 2005-05-29  Derek Price  <derek@ximbiot.com>
105839         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105840         * modules/glob: New file.
105841         * modules/getlogin_r: Add link to POSIX spec in description.
105843 2005-05-29  Derek Price  <derek@ximbiot.com>
105844             Paul Eggert  <eggert@cs.ucla.edu>
105846         * m4/glob.m4: New file.
105848 2005-05-29  Derek Price  <derek@ximbiot.com>
105849             Paul Eggert  <eggert@cs.ucla.edu>
105851         * lib/glob_.h, lib/glob.c: New files.
105853 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105855         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105856         * modules/fts-lgpl (Depends-on): Remove gettext.
105858 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105860         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105861         and don't require gt_INTTYPES_PRI.
105863 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105865         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105867         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105868         the configuration hassle isn't worth it.
105869         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105870         (LONGEST_MODIFIER, PRIuMAX): Remove.
105872 2005-05-27  Bruno Haible  <bruno@clisp.org>
105874         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105876 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105879         _POSIX_PTHREAD_SEMANTICS for Solaris.
105881 2005-05-25  Derek Price  <derek@ximbiot.com>
105883         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105885 2005-05-25  Derek Price  <derek@ximbiot.com>
105886             Paul Eggert  <eggert@cs.ucla.edu>
105888         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105889         * lib/getlogin_r.c, getlogin_r.h: New files.
105891 2005-05-25  Bruno Haible  <bruno@clisp.org>
105892             Derek Price  <derek@ximbiot.com>
105894         * lib/getlogin_r.h: Simplify API documentation.
105896 2005-05-23  Derek Price  <derek@ximbiot.com>
105898         * modules/minmax (Files): Add m4/minmax.m4.
105899         (configure.ac): Add gl_MINMAX.
105901 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105903         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
105904         so that unistd-safer.h (GPL'ed code) need not be included.
105906 2005-05-22  Bruno Haible  <bruno@clisp.org>
105908         * m4/minmax.m4: New file.
105909         Based on a patch by Derek Price <derek@ximbiot.com>.
105911 2005-05-22  Bruno Haible  <bruno@clisp.org>
105913         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
105914         (INT64_MIN): Fix definition.
105915         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
105917         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
105918         NEED_SIGNED_INT_TYPES.
105920         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
105921         HAVE_SYSTEM_INTTYPES.
105923 2005-05-22  Bruno Haible  <bruno@clisp.org>
105925         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
105926         Also include <sys/param.h> if it defines MIN, MAX.
105927         Based on a patch by Derek Price <derek@ximbiot.com>.
105929 2005-05-21  Jim Meyering  <jim@meyering.net>
105931         * modules/fts (Files): Add m4/inttypes-pri.m4.
105932         (Depends-on): Add lstat and remove gettext.  Alphabetize.
105934 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105936         New fts module.
105937         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
105938         (setup_dir, free_dir): New functions.
105939         (enter_dir, leave_dir): Define trivial
105940         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
105941         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
105942         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
105943         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
105944         Move to fts-cycle.c.
105945         (fts_open): Use setup_dir.
105946         (fts_close): Use free_dir.
105947         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
105948         This adds a label and some gotos, but the alternatives were messier.
105949         Check for memory allocation failure when entering a dir.
105950         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
105951         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
105952         (FTS): New member fts_cycle, that is a union that contains the
105953         old active_dir_ht and cycle_state.  All uses changed to mention
105954         fts_cycle.ht and fts_cycle.state.
105955         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
105956         fts.c, with the following changes:
105957         (setup_dir, free_dir): New functions.
105958         (enter_dir): Now returns bool.  Return true if successful, false
105959         if memory exhausted.  All callers changed.
105960         Do not bother partly cleaning up on
105961         memory allocation failure; that is free_dir's job.
105962         However, free ad if hash_insert fails, to avoid memory leak.
105963         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
105964         fts->fts_options to see which union member to use.
105966 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105968         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
105969         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
105971 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105973         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
105975 2005-05-20  Jim Meyering  <jim@meyering.net>
105977         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
105978         Now a macro, to pacify GCC.
105980 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105982         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
105983         of -1.
105985 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105987         * lib/chown.c (rpl_chown): Return -1 on failure.
105989 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105991         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
105992         Don't check for stddef.h.
105993         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
105994         don't use its results.
105995         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
105996         since we include them unconditionally.  Don't require
105997         AM_STDBOOL_H, since stdbool is a prerequisite.
105998         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
105999         since we assume C89 or better.
106000         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106001         as we don't use their results.
106002         Don't check for fchdir, memmove, memset, strrchr, as we use
106003         them unconditionally.
106004         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106005         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106009         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106010         Include <stddef.h> unconditionally, since we assume C89 now.
106011         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106012         * lib/fts.c: Include fts_.h first, to check interface.
106013         Do not include intprops.h; no longer needed.
106014         Include cycle-check.h and hash.h, since fts_.h no longer does.
106015         Remove unnecessary casts of closedir to void.
106016         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106017         decide whether to decrement nlinks.
106018         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106019         (FTS): Use struct hash_table * instead of Hash_table, so that
106020         we no longer need to include hash.h here.
106022 2005-05-18  Jim Meyering  <jim@meyering.net>
106024         * modules/dirfd (License): Change to LGPL.  Most of the code
106025         is already in the public domain.
106027 2005-05-18  Jim Meyering  <jim@meyering.net>
106029         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106030         Reported by Yoann Vandoorselaere.
106032 2005-05-17  Jim Meyering  <jim@meyering.net>
106034         * m4/fts.m4: New file, from coreutils.
106036 2005-05-17  Jim Meyering  <jim@meyering.net>
106038         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106040 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106042         Sync from coreutils.
106043         * m4/unlinkdir.m4: New file.
106045 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106047         Sync from coreutils.
106048         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106049         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106050         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106051         White space changes only.
106052         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106053         special.
106054         * lib/yesno.c: Include getline.h, not ctype.h.
106055         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106056         Use getline to remove arbitrary restriction on response length.
106058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106060         * config/srclist-update: Spell out "Street" in FSF postal
106061         mail address; this is the style the FSF seems to prefer.
106063         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106064         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106065         this updates FSF postal mail address.
106067         Sync from coreutils.
106068         * modules/unlinkdir: New file.
106069         * modules/yesno (Depends-on): Add getline.
106070         * MODULES.html.sh (File system functions): Add unlinkdir.
106072 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106074         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106075         lib/strsep.h:
106076         Change the initial comment to refer to GPL, not LGPL.
106077         gnulib-tool will change it to LGPL as needed.
106079         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106080         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106081         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106082         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106083         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106084         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106085         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106086         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106087         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106088         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106089         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106090         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106091         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106092         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106093         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106094         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106095         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106096         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106097         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106098         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106099         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106100         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106101         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106102         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106103         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106104         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106105         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106106         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106107         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106108         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106109         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106110         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106111         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106112         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106113         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106114         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106115         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106116         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106117         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106118         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106119         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106120         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106121         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106122         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106123         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106124         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106125         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106126         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106127         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106128         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106129         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106130         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106131         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106132         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106133         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106134         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106135         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106136         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106137         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106138         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106139         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106140         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106141         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106142         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106143         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106144         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106145         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106146         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106147         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106148         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106149         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106150         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106151         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106152         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106153         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106154         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106155         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106156         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106157         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106158         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106159         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106160         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106161         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106162         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106163         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106164         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106165         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106166         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106167         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106168         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106169         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106170         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106171         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106172         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106173         lib/yesno.c, lib/yesno.h:
106174         Update FSF postal mail address.
106176 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106178         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106179         tests/test-memmem.c, tests/test-stpncpy.c:
106180         Update FSF postal mail address.
106182 2005-05-13  Bruno Haible  <bruno@clisp.org>
106184         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106185         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106186         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106187         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106188         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106189         Add support for 64-bit integers in the MSVC compiler.
106191 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106193         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106195 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106197         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106199 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106201         * doc/getdate.texi (General date syntax): Don't say that date
106202         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106203         Problem reported by Nic Ferrier.
106205 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106207         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106208         specified in ai_socktype. Fix invalid ai_protocol
106209         check. ai_protocol is usually set to 0 or depending on
106210         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106211         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106212         ai_socktype / ai_protocol in the returned addrinfo structure.
106214 2005-05-10  Simon Josefsson  <jas@extundo.com>
106216         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106217         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106219 2005-05-10  Karl Berry  <karl@gnu.org>
106221         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106222         (from http://www.gnu.org/licenses).
106223         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106224         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106225         fdl.texi suffices.
106227 2005-05-10  Karl Berry  <karl@gnu.org>
106229         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106230         (COPYING.DOC): remove.
106232         * config/srclist-update: new FSF address.
106234 2005-05-10  Derek Price  <derek@ximbiot.com>
106236         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106237         possible.
106239 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106240             Bruno Haible  <bruno@clisp.org>
106242         * modules/inet_ntop: New file.
106243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106244         inet_ntop.
106246 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106247             Bruno Haible  <bruno@clisp.org>
106249         * m4/inet_ntop.m4: New file.
106251 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106252             Bruno Haible  <bruno@clisp.org>
106254         * lib/inet_ntop.h: New file.
106255         * lib/inet_ntop.c: New file, from glibc with modifications.
106257 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106259         * modules/time_r (License): Change to LGPL.
106260         * modules/extensions (License): Change to LGPL.  Actually,
106261         the license is more permissive than that, but currently gnulib-tool
106262         doesn't know how to handle more-permissive licenses.
106264         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106265         Problem reported by Dave Love.
106267 2005-05-08  Jim Meyering  <jim@meyering.net>
106269         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106270         blank.
106272 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106274         * modules/argmatch (Depends-on): Add stdbool.
106275         * modules/backupfile (Depends-on): Likewise.
106276         * modules/chdir-long (Depends-on): Likewise.
106277         * modules/closeout (Depends-on): Likewise.
106278         * modules/cycle-check (Depends-on): Likewise.
106279         * modules/dirname (Depends-on): Likewise.
106280         * modules/fnmatch (Depends-on): Likewise.
106281         * modules/fsusage (Depends-on): Likewise.
106282         * modules/fwriteerror (Depends-on): Likewise.
106283         * modules/getcwd (Depends-on): Likewise.
106284         * modules/getloadavg (Depends-on): Likewise.
106285         * modules/hard-locale (Depends-on): Likewise.
106286         * modules/makepath (Depends-on): Likewise.
106287         * modules/mountlist (Depends-on): Likewise.
106288         * modules/nanosleep (Depends-on): Likewise.
106289         * modules/posixtm (Depends-on): Likewise.
106290         * modules/quotearg (Depends-on): Likewise.
106291         * modules/readtokens (Depends-on): Likewise.
106292         * modules/readtokens0 (Depends-on): Likewise.
106293         * modules/readutmp (Depends-on): Likewise.
106294         * modules/save-cwd (Depends-on): Likewise.
106295         * modules/strftime (Depends-on): Likewise.
106296         * modules/userspec (Depends-on): Likewise.
106297         * modules/utimecmp (Depends-on): Likewise.
106298         * modules/xgetcwd (Depends-on): Likewise.
106299         * modules/xnanosleep (Depends-on): Likewise.
106300         * modules/xstrtod (Depends-on): Likewise.
106301         * modules/yesno (Depends-on): Likewise.
106303 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106305         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106306         needless checks.
106308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106310         Merge from coreutils.  Among other things,
106311         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106312         * lib/fd-safer.c: New file.
106313         * lib/fcntl-safer.h, open-safer.c: Remove.
106314         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106315         * lib/dup-safer.c: Include unistd-safer.h first.
106316         Don't include errno.h.
106317         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106318         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106319         * lib/file-type.c: Rely on file-type.h change.
106320         * lib/getloadavg.c: Include unistd-safer.h.
106321         (getloadavg): Use safer open.
106322         * lib/getusershell.c: Include "stdio-safer.h".
106323         (getusershell): Use safer fopen.
106324         * lib/long-options.c (long_options): Use NULL rather than 0.
106325         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106326         'free'.
106327         * lib/modechange.c: Likewise.
106328         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106329         (MODE_DONE): New constant.
106330         (struct mode_change): Remove 'next' member.
106331         (make_node_op_equals): New function; like the old one of the
106332         same name, except it allocates an array.
106333         (mode_compile, mode_create_from_ref): Use it.
106334         (mode_compile): Allocate result as an array, not a linked list.
106335         Parse octal string ourself, so that we catch mistakes like "+0".
106336         (mode_adjust): Arg is an array, not a linked list.
106337         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106338         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106339         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106340         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106341         Remove.  This is now stat-macros.h's job.
106342         (talloc): Remove.  All callers replaced by xalloc, so that
106343         our invokers don't have to worry about reporting memory failures.
106344         (make_node_op_equals): Remove.
106345         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106346         New constants.
106347         (struct mode_change): Moved here from modechange.h.
106348         (mode_append_entry): Remove.
106349         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106350         apps to have incorrect behavior.  Use simpler algorithm for head
106351         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106352         Detect more invalid usages rather than having somewhat-random behavior.
106353         Don't insert an "a=" action, as that leads to incorrect behavior.
106354         (mode_compile, mode_create_from_ref): Return NULL on error instead
106355         of an enum, since now there's only one way to have an error.  All
106356         callers changed.
106357         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106358         at the correct time.  Simplify calculation of "+u" and its ilk.
106359         Don't mishandle "+X".
106360         (mode_free): Remove "register" and localize decls.
106361         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106362         (struct mode_change): Move to modechange.c; callers don't
106363         need to see this stuff.
106364         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106365         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106366         (mode_change, mode_adjust): Reflect the new signatures noted above.
106367         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106368         that might redefine system include files.
106369         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106370         (my_usleep): Use NULL rather than (void *) 0.
106371         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106372         Use siginterrupt to specify that system calls should be interrupted.
106373         (rpl_nanosleep): Move initialization of suspended closer to call of
106374         my_usleep.
106375         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106376         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106377         (desirable_utmp_entry): New function.
106378         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106379         using x2nrealloc, to simplify logic.
106380         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106381         size calculation.  Do not assume utmp file is a regular file.
106382         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106383         (READ_UTMP_CHECK_PIDS): New constant.
106384         * lib/save-cwd.c: Include unistd-safer.h.
106385         (save_cwd): Use fd_safer.
106386         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106387         [!_LIBC] Include "stat-macros.h" instead.
106388         * lib/unistd-safer.h (fd_safer): New decl.
106390 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106392         * modules/getloadavg (Depends-on): Add unistd-safer.
106393         * modules/getusershell (Depends-on): Add stdio-safer.
106394         * modules/lstat (Depends-on): Remove xalloc.
106395         * modules/mkstemp (Depends-on): Add stat-macros.
106396         * modules/modechange (Depends-on): Remove xstrtol.
106397         Add stat-macros, xalloc.
106398         * modules/save-cwd (Depends-on): Add unistd-safer.
106399         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106400         * modules/unistd-safer (Files): Add lib/fd-safer.c
106401         (Makefile.am): Remove lib_SOURCES.
106403         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106404         Remove fcntl-safer; unistd-safer supersedes it.
106406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106408         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106409         AC_HEADER_STAT.
106410         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106411         (gl_PREREQ_CHOWN): Remove.
106412         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106413         it.  Don't require AC_HEADER_STAT.
106414         (gl_PREREQ_LSTAT): Remove.
106415         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106416         Don't require AC_HEADER_STAT.
106417         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106418         (gl_PREREQ_RMDIR): Remove.
106419         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106420         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106421         the stat-macros module a prerequisite.
106422         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106423         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106424         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106425         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106426         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106427         variable names.
106428         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106429         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106430         variable prefixes.
106431         * m4/fcntl-safer.m4: Remove.
106432         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106433         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106434         Invoke gl_PREREQ_FD_SAFER.
106435         (gl_PREREQ_FD_SAFER): New macro.
106436         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106437         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106438         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106439         Remove duplicate call to AC_LIBOBJ(readutmp).
106440         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106442         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106443         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106445 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106447         * MODULES.html.sh (Misc): Add byteswap.
106449 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106451         * modules/getcwd (Depends-on): Add extensions.
106452         * modules/openat (Depends-on): Likewise.
106454 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106456         * modules/byteswap: New file.
106458 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106460         * m4/byteswap.m4: New file.
106462 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106464         * lib/byteswap_.h: New file.
106466 2005-04-25  Karl Berry  <karl@gnu.org>
106468         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106470 2005-04-25  Albert Chin  <china@thewrittenword.com>
106472         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106473         Toolkit C bug.
106475 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106477         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106478         (func_ln_if_changed): Remove forcibly for no error message
106479         in case file does not exist.
106481 2005-04-19  Simon Josefsson  <jas@extundo.com>
106483         * gnulib-tool (Options): Make --symlink mean --symbolic.
106485 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106487         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106489 2005-04-16  Simon Josefsson  <jas@extundo.com>
106491         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106493 2005-04-15  Simon Josefsson  <jas@extundo.com>
106495         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106497 2005-04-15  Simon Josefsson  <jas@extundo.com>
106499         * gnulib-tool: Rename --symlink to --symbolic.
106501 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106503         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106504         symbolic links to files instead of copying/moving.  Add --aux-dir,
106505         specifying directory relative --dir where auxiliary build tools
106506         are placed.
106508 2005-04-14  Bruno Haible  <bruno@clisp.org>
106510         * modules/allocsa (License): Change to LGPL.
106511         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106513 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106515         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106516         that "UTC +1 second" continues to work.  Problem reported
106517         by Dmitry V. Levin.
106518         (relunit_snumber): New rule.
106519         (relunit): Use it.
106521 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106523         * lib/getdate.y (universal_time_zone_table): New constant.
106524         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106525         universal_time_zone_table.
106526         (lookup_zone): Prefer universal_time_zone_table to
106527         local_time_zone_table, so that "GMT" time stamps are allowed in
106528         London during the summer.  Problem reported by Ian Abbott.
106530 2005-04-12  Jim Meyering  <jim@meyering.net>
106532         * lib/human.c (humblock): Set *options even when returning due to
106533         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106534         warning from gcc-4.
106536 2005-04-09  Jim Meyering  <jim@meyering.net>
106538         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106539         -Wuninitialized: initialize tm0.tm_year.
106541 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106543         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106544         count, since there's no maximum.  All uses changed.
106545         Add member dsts_seen.
106546         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106547         not being INT_MAX.
106548         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106549         Use pc_rels_seen to decide whether a date is absolute.
106551         * lib/getdate.y (number): Don't overwrite year.
106552         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106553         check.
106555 2005-04-02  Simon Josefsson  <jas@extundo.com>
106557         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106558         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106560 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106562         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106563         where no absolute path name can be longer than PATH_MAX.
106565 2005-03-27  Jim Meyering  <jim@meyering.net>
106567         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106569 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106571         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106572         "one's complement" -> "ones' complement" in comment, as per Knuth.
106573         "value of type" -> "type or expression" in comment.
106574         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106576 2005-03-26  Jim Meyering  <jim@meyering.net>
106578         Comment nits.
106579         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106580         Correct typos: s/or/of/.
106582 2005-03-26  Jim Meyering  <jim@meyering.net>
106584         * modules/check-include-files: Move to ../ and rename to...
106585         * check-module: ...this.
106587 2005-03-25  Jim Meyering  <jim@meyering.net>
106589         * modules/xvasprintf (Files): Add xalloc.h.
106591 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106593         * modules/gettext (Files): config/config.rpath ->
106594         build-aux/config.rpath
106595         * modules/iconv (Files): Likewise.
106596         Problem reported by Oskar Liljeblad.
106598 2005-03-23  Jim Meyering  <jim@meyering.net>
106600         * modules/check-include-files: New script to check for
106601         missing dependencies, multiple includes, etc.
106603         * modules/c-strtold (Depends-on): Add xalloc.
106604         * modules/c-strtod (Depends-on): Add xalloc.
106605         * modules/hash (Depends-on): Add xalloc.
106606         (Files): Remove lib/xalloc.h.
106608         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106609         * modules/userspec (Files): Add lib/inttostr.h.
106611 2005-03-23  Jim Meyering  <jim@meyering.net>
106613         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106615 2005-03-22  Jim Meyering  <jim@meyering.net>
106617         * modules/stat-macros: New module.
106618         * modules/canonicalize, modules/euidaccess, modules/file-type,
106619         * modules/filemode, modules/lchown, modules/makepath,
106620         * modules/rmdir, modules/stat: Depend on new stat-macros module
106621         rather than listing lib/stat-macros.h manually.
106622         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106624 2005-03-22  Jim Meyering  <jim@meyering.net>
106626         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106628 2005-03-22  Bruno Haible  <bruno@clisp.org>
106630         * config/srclist.txt: Replace target directory 'config' with
106631         'build-aux'.
106632         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106633         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106634         ../build-aux/.
106636 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106638         * modules/chdir-long (Depends-on): Add mempcpy.
106640         * modules/acl, modules/backupfile, modules/c-strtod,
106641         modules/c-strtold, modules/canon-host, modules/canonicalize,
106642         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106643         modules/exclude, modules/exitfail, modules/file-type,
106644         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106645         modules/getdate, modules/getline, modules/getpagesize,
106646         modules/getpass, modules/getugroups, modules/group-member,
106647         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106648         modules/inttostr, modules/long-options, modules/makepath,
106649         modules/md5, modules/memcasecmp, modules/memcoll,
106650         modules/modechange, modules/mountlist, modules/path-concat,
106651         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106652         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106653         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106654         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106655         modules/strftime, modules/strndup, modules/strverscmp,
106656         modules/timespec, modules/unlocked-io, modules/userspec,
106657         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106658         modules/yesno:
106659         Remove lib_SOURCES line from Makefile.am section, as this is now
106660         done automatically by the corresponding Autoconf macro.
106662 2005-03-21  Jim Meyering  <jim@meyering.net>
106664         Changes imported from coreutils.
106666         * lib/cycle-check.c: Don't include xalloc.h.
106668         * lib/path-concat.c: Don't include assert.h.
106669         (path_concat): Remove assertion that would have triggered
106670         for ABASE starting with more than one slash.
106671         Reported by Andreas Schwab.
106673         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106674         properly when ABASE is an absolute file name.
106675         Correct the description of this function.
106676         Include <assert.h>.
106677         Add an assertion and a test driver.
106678         This fixes a bug introduced on 2004-07-02.
106679         Andreas Schwab reported the resulting failure of cp --parents:
106680         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106682 2005-03-21  Jim Meyering  <jim@meyering.net>
106684         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106687 2005-03-21  Jim Meyering  <jim@meyering.net>
106688         and  Paul Eggert  <eggert@cs.ucla.edu>
106690         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106691         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106692         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106693         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106694         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106695         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106696         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106697         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106698         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106699         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106700         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106701         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106702         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106703         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106704         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106705         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106706         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106707         for these modules.
106709 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106711         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106712         (which shouldn't happen), generate nothing instead of returning 0
106713         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106715 2005-03-16  Bruno Haible  <bruno@clisp.org>
106717         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106718         HAVE_LONGLONG_64BIT.
106720 2005-03-16  Bruno Haible  <bruno@clisp.org>
106722         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106723         HAVE_LONGLONG_64BIT.
106725 2005-03-16  Bruno Haible  <bruno@clisp.org>
106727         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106728         HAVE_LONGLONG_64BIT.
106730 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106732         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106733         reliably distinguish strftime failure from empty output on POSIX
106734         hosts.
106736 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106738         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106739         (iconv_string): Don't guess a size-zero buffer, as that might cause
106740         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106741         result would be 'too large', where 'too large' is (heuristically)
106742         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106743         overflow concerns.  This will prevent some unwanted malloc failures
106744         when the inputs are very large.
106746 2005-03-15  Karl Berry  <karl@gnu.org>
106748         * config/srclist.txt (config.rpath): from gettext.
106749         * config/config.rpath: update.
106751 2005-03-15  Bruno Haible  <bruno@clisp.org>
106753         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106754         to 'negate'.
106756         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106757         variable.
106759         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106760         results.
106762 2005-03-14  Simon Josefsson  <jas@extundo.com>
106764         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106765         <fx@gnu.org>.
106767 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106769         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106770         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106771         intprops.h.
106772         * lib/strtol.c: Likewise.
106774 2005-03-14  Jim Meyering  <jim@meyering.net>
106776         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106777         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106778         to be nonzero so that we (and caller) can detect the difference
106779         between a valid zero-length expansion and an error return, even
106780         when the underlying strftime fails before writing anything into
106781         that location.
106783 2005-03-14  Bruno Haible  <bruno@clisp.org>
106785         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106786         Update from GNU gettext 0.14.3.
106788 2005-03-10  Jim Meyering  <jim@meyering.net>
106790         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106792 2005-03-10  Jim Meyering  <jim@meyering.net>
106794         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106795         so that this module works on systems without fchdir.
106797 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106799         Factor int-properties macros into a single file, except for
106800         glibc-related files.
106801         * lib/intprops.h: New file.
106802         * lib/getloadavg.c: Include it instead of limits.h.
106803         (INT_STRLEN_BOUND): Remove.
106804         * lib/human.c: Include intprops.h.
106805         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106806         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106807         302/1000.
106808         * lib/inttostr.h: Include intprops.h instead of limits.h.
106809         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106810         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106811         for consistency with intprops.h.
106812         (time_t_is_integer, twos_complement_arithmetic): Use them.
106813         * lib/sig2str.h: Include <signal.h>, intprops.h.
106814         (INT_STRLEN_BOUND): Remove.
106815         * lib/strftime.c (TYPE_SIGNED): Remove.
106816         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106817         * lib/strtol.c: Adjust comments to match intprops.h.
106818         * lib/userspec.c: Include intprops.h.
106819         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106820         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106821         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106822         instead of rolling our own expressions.
106823         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106825         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106826         instead of int.
106827         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106828         the right thing even if adding 1900 would overflow.  Similarly
106829         for tm_mon + 1 and tm_yday + 1.
106830         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106831         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106832         (DO_SIGNED_NUMBER): New macro.
106833         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106835 2005-03-07  Bruno Haible  <bruno@clisp.org>
106837         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106839 2005-03-07  Bruno Haible  <bruno@clisp.org>
106841         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106843 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106845         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106846         (func_import): Only replace files via --import when they have actually
106847         changed.
106849 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106851         * m4/mmap-anon.m4: New file.
106852         * m4/pagealign_alloc.m4: New file.
106854 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106855             Bruno Haible  <bruno@clisp.org>
106857         * modules/pagealign_alloc: New file.
106858         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106860 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106861             Bruno Haible  <bruno@clisp.org>
106863         * lib/pagealign_alloc.h: New file.
106864         * lib/pagealign_alloc.c: New file.
106866 2005-03-03  Bruno Haible  <bruno@clisp.org>
106868         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106869         Use an all-permissive copyright notice, recommended by RMS.
106871 2005-03-02  Bruno Haible  <bruno@clisp.org>
106873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106874         of AIX, the replacement has to be done only after <string.h> is
106875         included, therefore not in config.h. stpncpy.h does the replacement,
106876         and stpncpy.c uses it.
106878 2005-03-02  Bruno Haible  <bruno@clisp.org>
106880         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106881         stpncpy.c uses it.
106883 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106885         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106886         The workaround isn't strictly needed for POSIX conformance, and
106887         it's too much of a pain to configure and maintain.  We'll ask
106888         people to fix their kernels instead.
106889         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106890         (NANOSLEEP_BUG_WORKAROUND): Remove.
106891         (xnanosleep): Remove the workaround.
106893 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106895         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
106896         Reported by Derek Price.
106897         (Include): Add "timespec.h".
106899         * modules/xnanosleep (Depends-on): Remove gethrxtime.
106901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106903         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
106904         to detect nanosleep bug.
106906 2005-03-01  Bruno Haible  <bruno@clisp.org>
106908         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
106910 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106912         * modules/gethrxtime: New file.
106913         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
106914         (Depends-on): Add gethrxtime.
106915         (configure.ac): Add gl_XNANOSLEEP.
106916         (Makefile.am): Remove lib_SOURCES line.
106918 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106920         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
106921         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
106923 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106925         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
106926         * lib/timespec.h (gettime): Return void, since it always
106927         succeeds now.  All uses changed.
106928         * lib/gettime.c (gettime): Likewise.
106929         [HAVE_NANOTIME]: Prefer nanotime.
106930         Assume gettimeofday succeeds, as POSIX requires.
106931         Assime time () succeeds, since other code already does.
106932         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
106933         (timespec_subtract): Remove.
106934         (NANOSLEEP_BUG_WORKAROUND): New constant.
106935         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
106936         things considerably.  Use it only on GNU/Linux hosts, since the
106937         workaround shouldn't be needed elsewhere.
106939 2005-02-24  Bruno Haible  <bruno@clisp.org>
106941         * modules/gettext (Files): Add m4/glibc2.m4.
106943 2005-02-24  Bruno Haible  <bruno@clisp.org>
106945         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
106946         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
106947         * m4/progtest.m4:
106948         Update from GNU gettext 0.14.2.
106949         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
106951 2005-02-24  Bruno Haible  <bruno@clisp.org>
106953         * lib/localcharset.c: Update from GNU gettext 0.14.2.
106954         * lib/config.charset: Update from GNU gettext 0.14.2.
106956 2005-02-24  Bruno Haible  <bruno@clisp.org>
106958         * lib/gettext.h: Update from GNU gettext 0.14.2.
106960 2005-02-23  Simon Josefsson  <jas@extundo.com>
106962         * m4/iconvme.m4: New file.
106964 2005-02-23  Jim Meyering  <jim@meyering.net>
106966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
106967         change.
106968         Thanks to Bruno Haible for catching it.
106970 2005-02-22  Simon Josefsson  <jas@extundo.com>
106972         * modules/iconvme: New file.
106974         * MODULES.html.sh: Add iconvme.
106976 2005-02-22  Simon Josefsson  <jas@extundo.com>
106978         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
106980 2005-02-22  Simon Josefsson  <jas@extundo.com>
106982         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
106984 2005-02-22  Jim Meyering  <jim@meyering.net>
106986         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
106987         s/ifndef/ifdef/.
106989 2005-02-20  Neil Conway  <neilc@samurai.com>
106991         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
106992         returned by OSX/Darwin if the specified buffer is not large
106993         enough for the hostname.
106995 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106997         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
106998         pass it to _help, otherwise the latter coredumps trying to
106999         dereference state.root_argp.
107001 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107003         * modules/chdir-long (Depends-on): Add memrchr.
107004         * modules/memrchr (Files): Add lib/memrchr.h.
107005         (Include): "memrchr.h".
107007 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107009         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107011 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107013         * lib/memrchr.h: New file.
107014         * lib/chdir-long.c: Include it.
107015         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107016         Don't bother including stddef.h.
107018 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107020         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107021         inclusion.
107022         Include <sys/types.h>, for dev_t.
107023         (ME_DUMMY, ME_REMOTE): Move from here....
107024         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107025         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107026         Dmitry V. Levin.
107027         Include mountlist.h first, to test the interface.
107029 2005-01-29  Bruno Haible  <bruno@clisp.org>
107031         * lib/progname.c (program_name): Initialize.
107032         Needed when linking statically on MacOS X.
107034 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107036         Sync from coreutils.
107037         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107038         (Depends-on): Add c-strtod.
107039         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107041 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107043         Sync from coreutils.
107044         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107046         Remove files that are specific to coreutils.
107047         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107049 2005-01-28  Bruno Haible  <bruno@clisp.org>
107051         * modules/javacomp: New file.
107052         * MODULES.html.sh (Java): Add javacomp.
107054 2005-01-28  Bruno Haible  <bruno@clisp.org>
107056         * m4/javacomp.m4: New file, from GNU gettext.
107058 2005-01-28  Bruno Haible  <bruno@clisp.org>
107060         * lib/javacomp.sh.in: New file, from GNU gettext.
107061         * lib/javacomp.h: New file, from GNU gettext.
107062         * lib/javacomp.c: New file, from GNU gettext.
107064 2005-01-26  Simon Josefsson  <jas@extundo.com>
107066         * lib/gai_strerror.c: Use GPL in header.
107068 2005-01-26  Bruno Haible  <bruno@clisp.org>
107070         * modules/javaexec: New file.
107071         * MODULES.html.sh (Java): Add javaexec.
107073 2005-01-26  Bruno Haible  <bruno@clisp.org>
107075         * m4/javaexec.m4: New file, from GNU gettext.
107077 2005-01-26  Bruno Haible  <bruno@clisp.org>
107079         * lib/javaexec.sh.in: New file, from GNU gettext.
107080         * lib/javaexec.h: New file, from GNU gettext.
107081         * lib/javaexec.c: New file, from GNU gettext.
107083 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107085         * modules/lchown (Depends-on): Remove lchown.h
107087 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107089         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107090         must be defined if the header file was not found, in order
107091         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107093 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107095         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107096         initializers for struct pentry_state.
107097         (__argp_error): Check return value of __asprintf
107098         (__argp_failure): Translate error message
107100         * lib/argp-parse.c: Removed braces around the expansion of N_()
107102 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107104         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107105         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107106         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107107         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107108         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107109         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107110         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107111         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107112         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107113         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107114         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107115         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107116         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107117         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107118         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107119         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107120         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107121         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107122         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107123         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107124         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107125         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107126         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107127         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107128         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107129         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107130         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107131         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107132         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107133         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107134         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107135         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107136         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107137         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107138         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107139         Use an all-permissive copyright notice, recommended by RMS.
107141 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107143         * modules/chdir-long (Depends-on): Remove mempcpy.
107145 2005-01-21  Jim Meyering  <jim@meyering.net>
107147         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107148         same value as for Solaris 9.
107150         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107151         component length.  This included changing the parameter to be
107152         of type `char *' rather than `char const *'.
107153         * lib/chdir-long.h (chdir_long): Update prototype.
107155         * lib/openat.c (fdopendir, fstatat): New functions.
107156         * lib/openat.h: Include headers required for use of DIR and struct
107157         stat.
107158         [AT_SYMLINK_NOFOLLOW]: Define.
107159         (fdopendir, fstatat): Add prototypes.
107161 2005-01-21  Bruno Haible  <bruno@clisp.org>
107163         * modules/classpath: New file.
107164         * MODULES.html.sh (Java): Add classpath.
107166 2005-01-21  Bruno Haible  <bruno@clisp.org>
107168         * lib/classpath.h: New file, from GNU gettext.
107169         * lib/classpath.c: New file, from GNU gettext.
107171 2005-01-20  Simon Josefsson  <jas@extundo.com>
107173         * modules/version-etc-fsf: New file.
107175 2005-01-20  Simon Josefsson  <jas@extundo.com>
107177         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107178         * lib/version-etc.c: Remove version_etc_copyright.
107179         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107180         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107182 2005-01-20  Simon Josefsson  <jas@extundo.com>
107184         * lib/base64.h (isbase64): Add.
107186         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107187         using a unsigned prototype, don't inline.
107188         (base64_decode): Use it.
107190 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107192         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107193         it.
107195 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107197         * lib/save-cwd.c (save_cwd): Remove code to support the case
107198         where fchdir is missing or flaky.
107200 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107202         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107204 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107206         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107207         AC_LIBSOURCES now does this.
107208         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107209         with new ullong_max module.
107211 2005-01-19  Bruno Haible  <bruno@clisp.org>
107213         * modules/sh-quote: New file.
107214         * MODULES.html.sh (Executing programs): Add sh-quote.
107216 2005-01-19  Bruno Haible  <bruno@clisp.org>
107218         * lib/sh-quote.h: New file, from GNU gettext.
107219         * lib/sh-quote.c: New file, from GNU gettext.
107221 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107223         Merge from coreutils.
107224         * m4/ullong_max.m4: New file.
107225         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107226         (gl_MACROS): Assume localeconv exists.
107228 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107230         Merge changes from coreutils, as described below in several
107231         changelogs dated today.
107233         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107234         (O_DIRECTORY): Remove; not needed here, since "." must be
107235         a directory.  All uses removed.
107236         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107237         universal on Suns, and we also need to test for IRIX.
107238         Revamp code to use 'if' rather than '#if'.
107239         Avoid unnecessary comparison of cwd->desc to 0.
107241         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107242         for known valid error numbers rather than observed invalid ones.
107244 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107246         * modules/ullong_max: New file.
107248         * modules/chdir-long, modules/openat: New files.
107249         * modules/save-cwd (Depends-on): Depend on chdir-long.
107250         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107252 2005-01-18  Jim Meyering  <jim@meyering.net>
107254         Merge from coreutils.
107255         * m4/chdir-long.m4, m4/openat.m4: New files.
107256         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107257         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107258         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107259         is sane and DOES follow symlinks.  Besides, testing 20 different
107260         systems found no broken chown implementations.
107261         Prompted by a change in rsync's copy of this macro.
107262         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107264         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107266         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107267         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107268         NULL-means-set-to-current-time semantics.
107269         Remove temporary file immediately, rather than waiting
107270         for configure's at-exit trap code to do it.
107272 2005-01-18  Jim Meyering  <jim@meyering.net>
107274         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107276         * lib/utimens.c (futimens): Account for the fact that futimes
107277         can also fail with errno == ENOSYS or errno == ENOENT.
107278         Patch from Dmitry V. Levin.
107280         Change the name of the robust chdir function from chdir to chdir_long.
107281         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107282         (restore_cwd): Use chdir_long, not chdir.
107283         * lib/chdir-long.c: Renamed from chdir.c.
107284         * lib/chdir-long.h: Renamed from chdir.h.
107285         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107286         Hurd.
107288 2005-01-18  Bruno Haible  <bruno@clisp.org>
107290         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107291         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107292         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107293         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107294         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107295         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107296         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107297         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107298         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107299         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107300         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107301         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107302         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107303         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107304         Use an all-permissive copyright notice, recommended by RMS.
107306 2005-01-18  Bob Proulx  <bob@proulx.com>
107308         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107309         simplify offsetof() macro construct to avoid compile failure with
107310         native HP-UX 11.0 ANSI C compiler.
107312 2005-01-17  Bruno Haible  <bruno@clisp.org>
107314         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107315         redundant because stpncpy.m4 takes care of it.
107317 2005-01-17  Bruno Haible  <bruno@clisp.org>
107319         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107321 2005-01-17  Bruno Haible  <bruno@clisp.org>
107323         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107324         used.
107326 2005-01-17  Bruno Haible  <bruno@clisp.org>
107328         * lib/fwriteerror.h (fwriteerror): Change specification to include
107329         fclose.
107330         * lib/fwriteerror.c: Include <stdbool.h>.
107331         (fwriteerror): At the end, close the file stream. Record whether
107332         stdout was already closed.
107334 2005-01-17  Bruno Haible  <bruno@clisp.org>
107336         * lib/execute.c (environ): Declare if needed.
107337         * lib/pipe.c (environ): Likewise.
107338         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107340 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107342         * modules/argp: Depend on vsnprintf
107344 2005-01-10  Jim Meyering  <jim@meyering.net>
107346         * modules/closeout (Depends-on): Add atexit.
107348 2005-01-06  Bruno Haible  <bruno@clisp.org>
107350         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107352 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107354         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107355         definitions to be after all include files, to avoid collisions.
107356         Problem reported by Bob Proulx.
107358 2005-01-04  Jim Meyering  <jim@meyering.net>
107360         Changes imported from coreutils.
107361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107362         as the mkstemp template, use a temporary directory and an
107363         8.3-friendly template to avoid trouble on systems like DJGPP.
107364         Reported by Juan M. Guerrero via Stepan Kasal.
107365         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107366         close. Remove the temporary directory right away, rather than waiting
107367         for configure's at-exit trap code to do it.
107368         Suggestion from Stepan Kasal.
107370 2005-01-01  Simon Josefsson  <jas@extundo.com>
107372         * gnulib-tool: Print #include directives when --import'ing.
107374 2004-12-28  Simon Josefsson  <jas@extundo.com>
107376         * tests/test-base64.c: Include required header files.  Remove
107377         unused variables.
107379 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107381         * modules/error (Depends-on): Remove gettext.
107383 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107385         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107386         not needed.  This removes a dependency on the gettext module.
107387         [defined _LIBC]: Do not include <libintl.h>; not needed.
107389 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107391         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107392         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107394 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107396         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107397         HAVE_DECL_STRTOLD.
107399 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107401         * modules/getdate (Depends-on): Remove alloca-opt.
107403 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107405         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107407 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107409         * lib/argp-parse.c: Include <stddef.h>.
107410         (alignof, alignto): New macros.
107411         (parser_init): Don't assume that void * is aligned sufficiently
107412         for struct option.
107414         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107415         need to extend the stack.
107416         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107417         large.
107419 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107421         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107423 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107425         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107426         (2004-10-24) change.  Apparently this was a false alarm.
107428         * modules/getdate: Depend on alloca-opt, not alloca.
107430 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107432         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107433         Remove now-obsolete comment about AIX.
107434         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107435         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107436         (YYMAXDEPTH): New macro.
107438 2004-12-18  Simon Josefsson  <jas@extundo.com>
107440         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107442 2004-12-18  Bruno Haible  <bruno@clisp.org>
107444         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107446 2004-12-18  Bruno Haible  <bruno@clisp.org>
107448         * lib/fatal-signal.c (fatal_signals): Make non-const.
107449         (init_fatal_signals): New function.
107450         (uninstall_handlers, install_handlers): Ignore signals that were set to
107451         SIG_IGN.
107452         (at_fatal_signal): Call init_fatal_signals.
107453         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107454         SIG_IGN.
107455         Reported by Paul Eggert.
107457 2004-12-18  Bruno Haible  <bruno@clisp.org>
107459         * doc/alloca.texi: New file.
107460         * doc/alloca-opt.texi: New file.
107462 2004-12-17  Jim Meyering  <jim@meyering.net>
107464         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107465         Otherwise, install-sh could exit with improper exit status when
107466         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107468 2004-12-16  Simon Josefsson  <jas@extundo.com>
107470         * tests/test-base64.c: Add license.
107472 2004-12-15  Stepan Kasal  <address@hidden>
107474         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107476 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107478         * modules/getcwd (Files): Add m4/d-ino.m4.
107479         Suggested by Mark D. Baushke.
107481 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107483         * lib/getdate.y (textint): New member "negative".
107484         (time_zone_hhmm): New function.
107485         Expect 14 shift-reduce conflicts, not 13.
107486         (o_colon_minutes): New rule.
107487         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107488         (yylex): Set the "negative" member of signed numbers.
107490 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107492         * doc/getdate.texi (Time of day items, Time zone items):
107493         Describe new formats +00:00, UTC+00:00.
107495 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107497         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107498         spurious "-l"s.  Problem reported by Stepan Kasal.
107500 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107502         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107503         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107505 2004-12-04  Simon Josefsson  <jas@extundo.com>
107507         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107508         Vandoorselaere <yoann@prelude-ids.org>.
107510 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107512         Changes imported from coreutils.
107513         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107514         exist.
107515         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107517 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107519         Changes imported from coreutils.
107520         * lib/hard-locale.c: Assume <locale.h> exists.
107521         Include "strdup.h".
107522         (GLIBC_VERSION): New macro.
107523         (hard_locale): Assume setlocale exists.
107524         Rewrite to avoid #ifdef.
107525         Use strdup rather than malloc + strcpy.
107526         * lib/human.c: Assume <locale.h> exists.
107527         (human_readable): Assume localeconv exists.
107529 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107531         * modules/hard-locale (Depends-on): Add strdup.
107533 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107535         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107536         convert T2, not T.  (Imported from libc.)
107538 2004-11-30  Simon Josefsson  <jas@extundo.com>
107540         * modules/restrict (License): Change to LGPL.
107542 2004-11-30  Simon Josefsson  <jas@extundo.com>
107544         * m4/restrict.m4: Add copyright and copying conditions.
107546 2004-11-30  Simon Josefsson  <jas@extundo.com>
107548         * m4/base64.m4: New file.
107550 2004-11-30  Simon Josefsson  <jas@extundo.com>
107552         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107553         base64.
107555         * tests/test-base64.c: New file.
107557         * modules/base64: New file.
107559 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107562         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107564         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107566 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107568         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107569         (__getcwd.c): Don't restore errno; glibc doesn't.
107570         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107571         first, falling back to our code only if its results look suspicious.
107572         Ensure that the resulting buffer is only as large as necessary.
107574         * lib/readutmp.c: Include readutmp.h first.
107575         Include <errno.h>, since readutmp.h no longer does that.
107576         * lib/readutmp.h: Don't include <errno.h>,
107577         <sys/param.h>, <time.h>; not needed to establish interface.
107578         (errno): Remove decl.
107579         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107580         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107581         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107583 2004-11-28  Simon Josefsson  <jas@extundo.com>
107585         * lib/base64.h, base64.c: New file.
107587 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107589         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107591 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107593         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107594         (Depends-on): Remove pathmax, same.  Add mempcpy.
107595         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107596         (Makefile.am): Append getcwd.h to lib_SOURCES.
107597         (Include): Add getcwd.h.
107598         (Maintainer): Change from Jim Meyering to "all, glibc",
107599         since getdate now uses intended-for-glibc code.
107600         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107601         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107603 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107605         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107606         HP's ANSI C compiler.
107607         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107608         Declaring int functions causes warnings on some modern systems and
107609         shouldn't be needed to compile on ancient ones.
107610         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107611         defined.
107613         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107614         with the following changes.
107615         (__set_errno): Parenthesize properly.
107616         Include <stdbool.h>.
107617         (MIN, MAX, MATCHING_INO): New macros.
107618         (__getcwd): Define with prototype, not K&R form.
107619         Use heuristics to allocate default buffer on stack if possible.
107620         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107621         behavior, and to avoid the PATH_MAX limit when computing
107622         ../../../../...
107623         Use MATCHING_INO to compare inode number to file.
107624         Check for arithmetic overflow in size calculations.
107625         Fix bug in reallocation of dot array that caused getcwd to fail
107626         on directories nested deeper than 75.
107627         Be more careful about saving errno on error.
107628         Do not use realloc; use only free+malloc, as this is a bit
107629         more flexible and avoids a needless copy operation.
107630         Do not inspect st_dev and st_ino for symbolic links; POSIX
107631         doesn't specify the latter.
107632         Check for closedir errors.
107633         Avoid needless casts.
107634         Use "#ifdef weak_alias" around weak_alias, to be like other
107635         glibc code.
107636         The following changes to getcwd.c have effect only when used in
107637         gnulib; they have no effect inside glibc proper.
107638         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107639         as alloca isn't used.
107640         (alloca, __alloca): Likewise.
107641         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107642         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107643         unconditionally, as gnulib assumes C89 or better.
107644         Do not include <sys/param.h>.
107645         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107646         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107647         better.
107648         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107649         Include <dirent.h> in a way that is compatible with modern Autoconf.
107650         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107651         New macros, if not already defined.
107652         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107653         Use "_LIBC", not "defined _LIBC", for consistency.
107654         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107655         a mempcpy module.
107656         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107657         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107658         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107659         credit only to Jim Meyering and adjust the copyright dates.
107660         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107661         <stdlib.h>, <unistd.h>, "pathmax.h".
107662         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107663         (INITIAL_BUFFER_SIZE): Remove.
107664         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107666 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107668         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107669         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107670         Use the _ONCE methods, for efficiency.
107671         Check for fcntl.h.  In test program, include <errno.h>
107672         and <fcntl.h> if available.  Remove old K&R cruft from
107673         test program.  Check for common errors in GNU/Linux,
107674         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107675         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107676         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107677         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107678         name accordingly.
107679         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107680         accommodate new getcwd.c.
107681         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107682         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107683         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107684         that's all we need now.
107686 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107688         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107689         argp-parse.c depends on getopt internals, that means we should
107690         always use our getopt, to be on the safe side.
107691         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107692         order not to spoil the result of an eventual previous invocation
107693         of gl_GETOPT_SUBSTITUTE.
107695 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107697         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107698         redefinition warnings. To avoid them, include the defines
107699         in `#if !defined __need_getopt ... #endif'. The only place
107700         where __getopt_argv_const is used is in definitions
107701         of getopt_long and getopt_long_only below, which are as well
107702         protected by `#ifndef __need_getopt'.
107703         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107704         __need_getopt after including <stdio.h> and <unistd.h> These
107705         headers might have defined it.
107707 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107709         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107711 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107713         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107714         (futimens): New function, which uses futimes if available.
107715         (futimens, utimens): Support timespec==NULL, with same semantics
107716         as utime and utimens.
107717         * lib/utimens.h (futimens): New decl.
107719 2004-11-23  Jim Meyering  <jim@meyering.net>
107721         * lib/getopt_.h: Remove trailing blanks.
107723 2004-11-23  Jim Meyering  <jim@meyering.net>
107725         * lib/__fpending.c: Add comment.
107727 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107729         * modules/canonicalize (Depends-on): Add xreadlink.
107730         Problem reported by James Youngman.
107732 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107734         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107735         New macros.
107736         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107737         optopt): Use them instead of invoking ## directly; otherwise, the
107738         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107740 2004-11-19  Bruno Haible  <bruno@clisp.org>
107742         * lib/strtok_r.c: Move comments from here...
107743         * lib/strtok_r.h: ... to here.
107745 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107747         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107748         implementations that mishandle size_t overflow.
107750 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107752         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107753         might fail.  Problem reported by Yoann Vandoorselaere.
107754         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107755         implementations that mishandle size_t overflow.
107757 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107759         * modules/canon-host (Depends-on): Add strdup.
107761 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107763         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107765 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107767         * lib/canon-host.c: Include "strdup.h".
107768         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107769         Use strdup instead of malloc/strcpy to duplicate strings.
107771         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107772         (human_space_before_unit): New constant.
107773         * lib/human.c (human_readable): Support it.
107775         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107776         (xgetcwd): Set errno correctly when failing.
107777         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107778         the failure is actually due to a PATH_MAX problem.
107780         Further getopt changes to make it more likely that glibc will
107781         buy the changes back.
107782         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107783         (getopt): Use it, so to preserve glibc semantic
107784         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107785         when compiling for libc.
107786         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107787         (getopt_long, getopt_long_only): Use it.
107789         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107790         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107791         (getopt): Argv is now char * const *, as per standard.
107792         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107793         not char *__getopt_argv_const *.
107794         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107795         _getopt_long_only_r): Likewise.
107796         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107797         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107798         _getopt_long_r, _getopt_long_only_r): Likewise.
107799         * lib/getopt_.h (__getopt_argv_const): Remove.
107800         (getopt): Argv is now char * const *, as per standard.
107802         * lib/getdate.y (tORDINAL): New token.
107803         (day, relunit): Allow it for relative times.
107804         (relative_time_table): Use tORDINAL for ordinals.
107806 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107808         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107809         Document that "second" isn't allowed as an ordinal number.
107811 2004-11-16  Jim Meyering  <jim@meyering.net>
107813         * modules/closeout (Depends-on): Add fpending.
107815 2004-11-15  Jim Meyering  <jim@meyering.net>
107817         * lib/closeout.c: Include "__fpending.h" once again.
107818         Include <stdbool.h>.
107819         (close_stdout): Don't fail just because stdout was closed initially,
107820         since some programs don't write to stdout in the normal course of
107821         operation (other than --version and --help), and we don't want this
107822         function to make e.g. `touch file >&-' fail.
107823         But do fail if it was closed and someone has tried to write to it.
107824         E.g., `printf foo >&-' must fail.
107826 2004-11-13  Jim Meyering  <jim@meyering.net>
107828         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107830 2004-11-12  Simon Josefsson  <jas@extundo.com>
107832         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107833         small doc fix is still pending.
107835 2004-11-11  Simon Josefsson  <jas@extundo.com>
107837         * modules/strtok_r: New file.
107839         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107840         strtok_r.
107842 2004-11-11  Simon Josefsson  <jas@extundo.com>
107844         * m4/strtok_r.m4: New file.
107846         * m4/getopt.m4: Replace opterr.
107848 2004-11-11  Simon Josefsson  <jas@extundo.com>
107850         * lib/strtok_r.h, strtok_r.c: New file.
107852 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107854         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107855         of replacing opterr, getopt, etc.  This should handle the
107856         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107858 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107860         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107861         we can stop lying to compilers about the constness of argv when we
107862         are compiled outside glibc.
107863         (getopt, getopt_long, getopt_long_only): Use it.
107864         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107865         _getopt_internal, getopt): Likewise.
107866         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107867         _getopt_long_only_r): Likewise.
107868         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107869         _getopt_long_r, _getopt_long_only_r): Likewise.
107871         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107872         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107873         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107874         the other external symbols.
107875         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107876         declaration, since the above renaming now works around collisions.
107878 2004-11-11  Jim Meyering  <jim@meyering.net>
107880         * lib/linebreak.c: Remove trailing blanks.
107881         * lib/alloca_.h: Likewise.
107882         * lib/acosl.c: Likewise.
107883         * lib/euidaccess.c: Likewise.
107884         * lib/allocsa.h: Likewise.
107886 2004-11-10  Simon Josefsson  <jas@extundo.com>
107888         * m4/getaddrinfo.m4: New file.
107890 2004-11-10  Simon Josefsson  <jas@extundo.com>
107892         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
107894 2004-11-10  Simon Josefsson  <jas@extundo.com>
107896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107897         getaddrinfo.
107899         * modules/getaddrinfo: New file.
107901 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107903         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
107905 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107907         * lib/mktime.c (SHR): New macro, which is a portable
107908         substitute for >> that should work even on Crays.
107909         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
107910         Problem reported by Mark D. Baushke in
107911         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
107912         * lib/getdate.y (SHR): Likewise.
107913         (tm_diff): Use it.
107914         * lib/strftime.c (SHR): Likewise.
107915         (tm_diff): Use it.
107916         * lib/quotearg.c (struct quoting_options): Use unsigned int for
107917         quote_these_too, so that right shifts are well defined.  All uses
107918         changed.
107920 2004-11-10  Jim Meyering  <jim@meyering.net>
107922         Ensure that no close failure goes unreported.
107923         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
107924         return early when it seems there's nothing to flush.
107925         Don't include __fpending.h.
107927 2004-11-10  Jim Meyering  <jim@meyering.net>
107929         * modules/closeout (Depends-on): Remove fpending.
107931 2004-11-10  Jim Meyering  <jim@meyering.net>
107933         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
107935 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107937         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
107938         gl_FUNC_STRFTIME.
107939         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
107940         and AC_REQUIRE when possible, to avoid duplicate checks.
107941         Check for <wchar.h>.
107943 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107945         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
107947 2004-11-09  Bruno Haible  <bruno@clisp.org>
107949         * m4/sockpfaf.m4: New file.
107951 2004-11-05  Bruno Haible  <bruno@clisp.org>
107953         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
107954         Reported by Mark D. Baushke <mdb@cvshome.org>.
107956 2004-11-04  Bruno Haible  <bruno@clisp.org>
107958         2004-09-11  Bruno Haible  <bruno@clisp.org>
107959                 * allocsa.valgrind: New file.
107960         2004-02-06  Bruno Haible  <bruno@clisp.org>
107961                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
107962                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
107963                 Reported by Christopher Seip <chris.seip@hp.com>.
107965 2004-11-04  Bruno Haible  <bruno@clisp.org>
107967         * modules/allocsa (Files): Add lib/allocsa.valgrind.
107968         (Makefile.am): Distribute it.
107970 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107972         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
107973         with errno == ERANGE if the buffer is too small.
107974         Problem reported by Mark D. Baushke.
107976 2004-11-03  Albert Chin  <china@thewrittenword.com>
107977             Paul Eggert  <eggert@cs.ucla.edu>
107979         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
107980         equivalent, substitute $ac_type for equivalent type rather than
107981         blindly using uint32_t *always* which won't work if uint32_t is not
107982         available.  Define _UINT32_T to work around typedef of uint32_t if
107983         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
107984         2.5.1.
107986 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107988         * m4/jm-macros.m4: Sync from coreutils.
107989         (gl_MACROS): Check for mbrlen, for pathchk.
107990         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
107992 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107994         * lib/xreadlink.c (MAXSIZE): New macro.
107995         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
107996         size does not exceed MAXSIZE.  Avoid cast.
107997         As suggested by Mark D. Baushke in
107998         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
107999         if readlink fails with buffer size just under MAXSIZE, try again
108000         with MAXSIZE.
108002 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108004         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108006 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108007         and  Paul Eggert  <eggert@cs.ucla.edu>
108009         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108010         (get_date): Overparenthesize to avoid GCC warning.
108012 2004-11-02  Bruno Haible  <bruno@clisp.org>
108014         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108015         returns void.
108017 2004-11-02  Bruno Haible  <bruno@clisp.org>
108019         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108020         function returns void.
108022 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108024         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108025         fflush_unlocked, flockfile, funlockfile, funlockfile,
108026         fputs_unlocked, putc_unlocked.
108028 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108030         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108031         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108032         already declared.
108034 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108036         * modules/getdate (Files): Add doc/getdate.texi.
108037         (Depends-on): Add setenv, xalloc.
108039 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108041         * lib/getdate.y: Add support for TZ="foo" within a date string.
108042         Fix some bugs near time_t boundaries.  Reject dates with
108043         out-of-range components, e.g., "Sept 31".
108044         Include <stdlib.h>, "setenv.h", "xalloc.h".
108045         (ISDIGIT_LOCALE): Remove; unused.
108046         Note that the TZ and time functions used here are not reentrant.
108047         (mktime_ok, get_tz): New functions.
108048         (TZBUFSIZE): New constant.
108049         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108050         This requires that we sometimes generate our own TZ="XXX..." setting.
108052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108054         * doc/getdate.texi: New file, from coreutils with modifications for
108055         the new TZ parsing.
108057 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108059         * lib/mktime.c (not_equal_tm): Remove redundant check.
108061 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108063         * modules/regex (lib_SOURCES): Add regex.c.
108064         Reported by James Youngman in
108065         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108067 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108069         * lib/getdate.y: Use Bison 1.875 features, and some minor
108070         code cleanups.  This change does not affect semantics.
108071         Don't include <stdlib.h>; no longer needed.
108072         Don't include unlocked-io.h; only the "#if TEST" code uses
108073         stdio, and performance isn't crucial there.
108074         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108075         Bison 1.875 features as described below.
108076         All uses of "PC." replaced by "pc->".
108077         (YYSTYPE): Add a forward declaration.
108078         (yylex, yyerror): Use full prototypes in forward decls.
108079         Use "%pure-parser" rather than obsolescent "%pure_parser".
108080         Use %parse-param and %lex-param instead of obsolescent
108081         YYPARSE_PARAM and YYLEX_PARAM.
108082         (meridian_table, month_and_day_table, time_units_table,
108083         relative_time_table, time_zone_table, military_table,
108084         lookup_zone, lookup_word, get_date):
108085         Use NULL instead of 0 where appropriate.
108086         (to_hour): Avoid abort (), to avoid a dependency on
108087         stdlib.h.
108088         (yyerror, yylex): Now accepts parser_control * arg.
108089         (main) [TEST]: Use '\0' rather than 0 for char.
108091 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108093         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108095 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108097         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108098         It's now the caller's responsibility to handle the case where
108099         !HAVE_GETPAGESIZE && !defined getpagesize.
108101         * lib/mktime.c (leapyear): Arg is long int, not int.
108103 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108105         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108107 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108109         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108110         missing.  Problem reported by James Youngman.
108112 2004-10-16  Simon Josefsson  <jas@extundo.com>
108114         * gnulib-tool: Fix comments.  Fix parse problem.
108115         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108117 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108119         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108120         implementation of getopt_long.  Problem reported by Alexander Taler in:
108121         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108123 2004-10-15  Bruno Haible  <bruno@clisp.org>
108125         * gnulib-tool: Untabify. Initialize supplied_libname.
108126         (func_usage): More homogenous output.
108127         (func_modules_transitive_closure, func_modules_to_filelist,
108128         func_emit_lib_Makefile_am): New functions.
108129         (func_import): New function, extracted from big case statement. Use
108130         func_get_license, func_modules_transitive_closure,
108131         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108132         opt_lgpl. Don't use test -a, as it's not portable.
108133         (func_create_testdir): Use func_modules_transitive_closure,
108134         func_modules_to_filelist, func_emit_lib_Makefile_am.
108136 2004-10-15  Bruno Haible  <bruno@clisp.org>
108138         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108140 2004-10-15  Bruno Haible  <bruno@clisp.org>
108142         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108143         the portions belonging to each module.
108144         Suggested by Derek Robert Price <derek@ximbiot.com>.
108146 2004-10-12  Simon Josefsson  <jas@extundo.com>
108148         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108149         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108150         to real functions.
108152 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108154         * modules/vsnprintf: New file.
108156 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108158         * m4/vsnprintf.m4: New file.
108160 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108162         * lib/vsnprintf.h: New file.
108163         * lib/vsnprintf.c: New file.
108165 2004-10-11  Bruno Haible  <bruno@clisp.org>
108167         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108168         vsnprintf.
108170 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108172         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108174 2004-10-07  Bruno Haible  <bruno@clisp.org>
108176         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108177         fits into the provided buffer.
108179 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108181         * lib/diacrit.c, diacrit.h: Add GPL notice.
108183         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108184         notice.
108185         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108186         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108187         This avoids a potential constant-folding bug.
108189 2004-10-05  Bruno Haible  <bruno@clisp.org>
108191         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108192         for the declaration of strsep.
108194 2004-10-05  Bruno Haible  <bruno@clisp.org>
108196         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108198 2004-10-04  Simon Josefsson  <jas@extundo.com>
108200         * modules/memmem: New file.
108201         * tests/test-memmem.c: New file.
108202         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108204 2004-10-04  Simon Josefsson  <jas@extundo.com>
108206         * m4/memmem.m4: New file.
108208 2004-10-04  Simon Josefsson  <jas@extundo.com>
108210         * lib/memmem.h: New file.
108211         * lib/memmem.c: New file, taken from glibc.
108213 2004-10-04  Simon Josefsson  <jas@extundo.com>
108215         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108216         '#ifdef USE_UNLOCKED_IO'.
108218 2004-10-04  Simon Josefsson  <jas@extundo.com>
108220         * config/srclist.txt: Add memmem from glibc.
108222 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108224         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108226         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108227         modules/exclude, modules/getdate, modules/getline,
108228         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108229         modules/getusershell, modules/linebuffer, modules/md5,
108230         modules/mountlist, modules/posixtm, modules/readtokens,
108231         modules/readutmp, modules/regex, modules/sha1,
108232         modules/version-etc, modules/yesno:
108233         Remove dependency on unlocked-io.
108235 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108237         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108239         * m4/unlocked-io.m4: Add copyright notice.
108240         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108242 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108244         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108245         * lib/xmalloc.c (xmemdup): Likewise.
108246         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108247         XFREE): Remove these long-obsolescent macros.
108248         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108249         * lib/xstrdup.c: Remove.
108251         * lib/regex.c (re_comp): Cast gettext return value to char *,
108252         Problem reported by Martin Neitzel via Mark D. Baushke.
108254 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108256         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108257         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108258         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108259         regex.c, sha1.c, version-etc.c, yesno.c:
108260         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108261         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108262         the includer's responsibility.
108264         Sync from coreutils.
108266         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108267         points to the start of a string, as the C Standard says the
108268         resulting behavior is undefined.
108270         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108271         simple -> simple_backups, numbered_existing ->
108272         numbered_existing_backups, numbered -> numbered_backups
108273         to avoid shadowing problems.  All uses changed.
108274         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108275         * lib/backupfile.c (check_extension, numbered_backup):
108276         Rename locals to avoid shadowing 'basename'.
108277         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108278         once.
108280         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108281         * lib/.cvsignore: Add getopt.h.
108283 2004-10-04  Bruno Haible  <bruno@clisp.org>
108285         * modules/README: New file.
108286         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108287         not a module.
108289 2004-10-02  Jim Meyering  <jim@meyering.net>
108291         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108293 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108295         * modules/strsep: New file.
108297 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108299         * m4/strsep.m4: New file.
108301 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108303         * lib/strsep.h: New file.
108304         * lib/strsep.c: New file.
108306 2004-10-01  Simon Josefsson  <jas@extundo.com>
108308         * lib/snprintf.c (snprintf): Handle size==0.
108310 2004-10-01  Simon Josefsson  <jas@extundo.com>
108311             Bruno Haible  <bruno@clisp.org>
108313         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108314         (snprintf): Declare 'args'.
108316 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108318         * lib/snprintf.c: Remove comments as to why each header is needed.
108320 2004-10-01  Bruno Haible  <bruno@clisp.org>
108322         * MODULES.html.sh: Add strsep.
108324 2004-09-30  Simon Josefsson  <jas@extundo.com>
108326         * modules/snprintf: New file.
108328 2004-09-30  Simon Josefsson  <jas@extundo.com>
108330         * m4/snprintf.m4: New file.
108332 2004-09-30  Simon Josefsson  <jas@extundo.com>
108334         * lib/snprintf.h, lib/snprintf.c: New files.
108336 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108338         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108339         (hol_entry_help): Never translate an empty string.
108340         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108341         * lib/argp.h (OPTION_NO_TRANS): New option.
108343 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108345         * modules/argp (Maintainer): Replace Simon Josefsson
108346         by Sergey Poznyakoff.
108348 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108350         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108351         changes merged back into glibc.
108353 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108355         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108357 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108359         * lib/xvasprintf.c: Include xalloc.h.
108360         (xvasprintf): Use xalloc_die, not xmalloc_die.
108362 2004-09-29  Bruno Haible  <bruno@clisp.org>
108364         * modules/alloca-opt: New file, derived from modules/alloca.
108365         * modules/allocsa: Depend on alloca-opt instead of alloca.
108366         * modules/setenv: Likewise.
108367         * modules/vasnprintf: Likewise.
108368         * MODULES.html.sh: Add alloca-opt.
108370 2004-09-28  Simon Josefsson  <jas@extundo.com>
108372         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108373         LGPL, and to replace license template from GPL to LGPL.
108375 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108377         * modules/dummy: Change license to LGPL.
108379 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108381         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108383 2004-09-24  Simon Josefsson  <jas@extundo.com>
108385         * modules/minmax (License): Change from GPL to LGPL.
108387 2004-09-23  Simon Josefsson  <jas@extundo.com>
108389         * gnulib-tool (--import): Typo.
108391 2004-09-23  Simon Josefsson  <jas@extundo.com>
108393         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108395 2004-09-22  Bruno Haible  <bruno@clisp.org>
108397         * modules/*: Add 'License' field.
108398         * gnulib-tool: Accept --extract-license option.
108399         (func_get_license): New function.
108401 2004-09-21  Bruno Haible  <bruno@clisp.org>
108403         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108404         Reported by Simon Josefsson.
108406 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108408         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108409         gl_AC_TYPE_LONG_LONG.
108411 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108413         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108415 2004-09-18  Simon Josefsson  <jas@extundo.com>
108416         and  Paul Eggert  <eggert@cs.ucla.edu>
108418         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108419         calls with autoreconf.  Define GL_LIB.
108421 2004-09-14  Karl Berry  <karl@gnu.org>
108423         * config/srclist.txt: unsync setenv.c, sigh.
108425 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108427         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108428         Problem reported by Bruno Haible in:
108429         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108431 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108433         * config/srclist.txt: Comment out argp-pvh.c.
108435 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108437         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108438         in case some system header has #define'd it.  Problem reported by
108439         Soeren D. Schulze in
108440         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108442 2004-09-09  Karl Berry  <karl@gnu.org>
108444         * regex.[ch]: delete from the root.  These were supposed to be
108445                 synced with emacs cvs, but this has not happened for about
108446                 a year, and anyway nothing else uses emacs regex.[ch].
108447                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108448                 lib/regex[.ch] is untouched.
108450 2004-09-09  Bruno Haible  <bruno@clisp.org>
108452         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108454 2004-09-09  Bruno Haible  <bruno@clisp.org>
108456         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108457         modifications.
108458         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108460 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108462         * modules/xvasprintf: New file.
108463         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108465 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108467         * lib/xvasprintf.h: New file.
108468         * lib/xvasprintf.c: New file.
108469         * lib/xasprintf.c: New file.
108471 2004-09-08  Bruno Haible  <bruno@clisp.org>
108473         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108475 2004-09-08  Bruno Haible  <bruno@clisp.org>
108477         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108478         length is > INT_MAX.
108479         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108480         more.
108482 2004-09-08  Bruno Haible  <bruno@clisp.org>
108484         * lib/stdint_.h: New file, taken from GNU clisp.
108486 2004-09-08  Bruno Haible  <bruno@clisp.org>
108487             Oskar Liljeblad  <oskar@osk.mine.nu>
108489         * modules/stdint: New file.
108490         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108492 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108494         Import from coreutils.
108495         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108496         strings on unbounded length.  alloca's performance benefits aren't
108497         that important here.
108498         (V_STRDUP): Remove.
108499         (parse_with_separator): New function, with most of the internals
108500         of the old parse_user_spec.  Allow user to omit both user and group,
108501         for compatibility with FreeBSD.
108502         Clone only the user name, not the entire spec.
108503         Do not set *uid, *gid unless entirely successful.
108504         Avoid memory leak in some failing cases.
108505         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108506         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108507         (parse_user_spec): Rewrite to use parse_with_separator.
108509 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108511         * modules/userspec: Don't depend on alloca.
108513 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108515         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108517 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108519         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108520         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108521         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108523 2004-08-16  Simon Josefsson  <jas@extundo.com>
108525         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108526         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108527         Add --dry-run for --import.
108528         Let user provided command line parameters override configure.ac
108529         settings.
108531 2004-08-12  Simon Josefsson  <jas@extundo.com>
108533         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108534         as discussed with Paul Eggert in threads rooted at
108535         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108536         and
108537         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108538         Before, the test was empty, and relied on ELIDE_CODE in source
108539         code.)
108540         (gl_PREREQ_GETOPT): New macro.
108541         (gl_GETOPT): Use them.
108543 2004-08-12  Simon Josefsson  <jas@extundo.com>
108545         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108546         * lib/getopt_.h: Renamed from getopt.h.
108548 2004-08-12  Simon Josefsson  <jas@extundo.com>
108550         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108551         Change default library name from libfoo to libgnu.
108552         Now, if you have a configure.ac that says:
108553                 gl_SOURCE_BASE(gl)
108554                 gl_M4_BASE(gl/m4)
108555                 gl_MODULES(error getopt etcetera)
108556                 gl_INIT
108557         you can import all you need by running:
108558                 ../gnulib/gnulib-tool --import
108560         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108561         (Makefile.am): Rewrite, use logic from argz.
108562         (Include): Use <getopt.h> instead of "getopt.h".
108564 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108566         * modules/argp (Files): Add m4/unlocked-io.m4.
108567         (Depends-on): Add extensions.
108569 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108571         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108572         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108573         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108574         Check for program_invocation_name, program_invocation_short_name,
108575         flockfile, funlockfile, features.h, _getopt_long_only_r.
108577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108579         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108580         its complicated substitute.
108581         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108582         and program_invocation_name.
108583         (__argp_basename) [!_LIBC]: Remove; the only use was
108584         replaced by its body.
108585         (__argp_short_program_name): Change condition from
108586         !defined __argp_short_program_name to
108587         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108588         to match argp-namefrob.h.
108589         (__argp_failure): Don't assume strerror_r returns char *.
108590         * lib/argp-parse.c (N_): Define unconditionally.
108591         (argp_default_options): Fill out initializers with 0 to avoid
108592         gcc warnings.
108594 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108596         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108597         getopt1.c.
108599 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108601         Merge from coreutils.
108603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108605         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108606         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108608 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108610         Merge from coreutils.
108612         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108613         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108614         for Reliant Unix 5.43.
108616         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108617         (union fooround): Use uintmax_t, not long int.
108618         The rest is a merge from libc:
108619         [defined _LIBC]: Include <shlib-compat.h>.
108620         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108622         * lib/settime.c (settime): Recode to avoid warning with
108623         Sun Forte C 6U2.
108625         * lib/strverscmp.c: Convert to UTF-8.
108627 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108629         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108630         m4/uintmax_t.m4.
108632 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108634         * modules/xalloc-die: New file.
108635         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108637         * modules/md5 (Files): Add m4/uint32_t.m4.
108638         * modules/sha1: Renamed from modules/sha.
108639         (Files):
108640         Rename lib/sha.h to lib/sha1.h.
108641         Rename lib/sha.c to lib/sha1.c.
108642         Rename m4/sha.m4 to m4/sha1.m4.
108643         (lib_SOURCES): Likewise.
108644         (configure.ac): Rename gl_SHA to gl_SHA1.
108645         (Include): sha.h -> sha1.h.
108647 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108649         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108650         * m4/sha1.m4: Renamed from sha.m4.
108651         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108653 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108655         * lib/obstack.h (obstack_empty_p):
108656         Don't assume that chunk->contents is suitably aligned.
108657         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108658         Likewise. Problem reported by Benno in
108659         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108661         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108662         readable.  This could be improved further but it'd take some work.
108664 2004-08-08  Simon Josefsson  <jas@extundo.com>
108666         * modules/xgethostname (Depends-on): Remove exit and error (not
108667         used).
108669         * modules/getpass-gnu: Add getpass.h.
108670         (Depends-on): Add stdbool.
108671         * modules/getpass: Add getpass.h.
108673 2004-08-08  Simon Josefsson  <jas@extundo.com>
108675         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108676         Check getpass declaration.
108678 2004-08-08  Simon Josefsson  <jas@extundo.com>
108680         * lib/xgethostname.c: Don't include error.h (not used).
108682         * lib/getpass.h: Add.
108683         * lib/getpass.c: Include getpass.h first.
108685 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108687         * lib/xalloc-die.c: New file.
108688         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108689         All uses removed.
108690         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108691         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108692         xalloc-die.c.
108693         (_, N_, xalloc_die): Move to xalloc-die.c.
108694         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108695         so that we needn't mess with xalloc_msg_memory_exhausted.
108697         * lib/sha1.h: Renamed from sha.h.
108698         (SHA1_H): Renamed from _SHA_H.
108699         (sha1_ctx): Renamed from sha_ctx.
108700         (sha1_init_ctx): Renamed from sha_init_ctx.
108701         (sha1_process_block): Renamed from sha_process_block.
108702         (sha1_process_bytes): Renamed from sha_process_bytes.
108703         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108704         (sha1_read_ctx): Renamed from sha_read_ctx.
108705         (sha1_stream): Renamed from sha_stream.
108706         (sha1_buffer): Renamed from sha_buffer.
108707         * lib/sha1.c: Likewise; renamed from sha.c.
108708         Do not include <sys/types.h>.
108709         Include <stddef.h> rather than <stdlib.h>.
108711 2004-08-08  Bruno Haible  <bruno@clisp.org>
108713         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108714         FILESYSTEM_PREFIX_LEN.
108715         * lib/progreloc.c: Likewise.
108716         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108718 2004-08-06  Simon Josefsson  <jas@extundo.com>
108720         * modules/progname (Depends-on): Don't depend on stdbool.
108722 2004-08-06  Simon Josefsson  <jas@extundo.com>
108724         * modules/getsubopt: New file.
108725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108726         getsubopt.
108728 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108730         More merge from coreutils.
108732         * m4/utimens.m4, m4/utimecmp.m4: New files.
108733         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108734         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108735         prereq.m4, sha.m4: Import changes from coreutils.
108737 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108739         More merge from coreutils.
108740         * modules/raise, modules/readtokens0, modules/utimens:
108741         * modules/utimecmp, module/xnanosleep: New files.
108742         * modules/strftime: Add lib/strftime.h.
108743         Change include from <time.h> to "strftime.h".
108744         * modules/yesno: Add lib/yesno.h.
108745         * modules/backupfile: Remove lib/addext.c.
108746         * modules/euidaccess: Add stat-macros.h.
108747         * modules/canonicalize, modules/euidaccess,
108748         modules/filemode, modules/lchown, modules/makepath,
108749         modules/rmdir, modules/stat: Likewise.
108751 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108753         Merge from tar.
108754         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108755         SIZE_MAX is a valid preprocessor constant.
108756         (__argp_basename): Change from "#ifndef _LIBC"
108757         to "#ifndef __argp_short_program_name", so that
108758         we don't compile these functions for tar.
108760         More merges from coreutils.
108761         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108762         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108763         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108764         * lib/addext.c: Remove; no longer needed.
108765         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108766         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108767         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108768         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108769         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108770         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108771         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108772         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108773         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108774         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108775         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108776         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108777         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108778         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108779         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108780         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108781         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108782         Import changes from coreutils.
108784 2004-08-05  Simon Josefsson  <jas@extundo.com>
108786         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108788 2004-08-05  Simon Josefsson  <jas@extundo.com>
108790         * m4/getsubopt.m4: New file.
108792 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108794         Merge from coreutils.
108796         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108797         * m4/getcwd-path-max.m4: New files.
108799         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108800         FILESYSTEM_PREFIX_LEN ->
108801         FILE_SYSTEM_PREFIX_LEN.
108802         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108803         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108804         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108805         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108807         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108808         prerequisite modules now handle the DOS stuff.
108809         Don't check for unistd.h.
108811 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108813         Merge from coreutils.
108815         * lib/.gdb-history: Remove; this doesn't belong here.
108817         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108818         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108819         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108820         * lib/getcwd.c: New files.
108822         * lib/dirname.h: Include <stdbool.h>.
108823         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108824         for consistency with POSIX terminology.  All uses changed.
108825         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108826         (strip_trailing_slashes): Use bool for booleans.
108827         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108829         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108830         sometimes returns a positive errno value even when it succeeds.
108831         (print_errno_message) [!LIBC]: Fall back on strerror if
108832         __strerror_r fails.
108834         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108835         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108836         (longest_relative_suffix): New function.
108837         (path_concat): Use it.  Assume first argument is not NULL.
108838         Port to DOS.  Omit redundant separators.
108839         Report an error instead of returning NULL.
108840         Use mempcpy instead of memcpy.
108841         (xpath_concat): Remove: not declared or used.
108843         * lib/same.h: Include <stdbool.h>
108844         (same_name): Return bool, not int.
108845         * lib/same.c (same_name): Likewise.
108846         (errno): Don't declare; we assume C89 or better now.
108848         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108849         if not already defined.
108851         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108852         * lib/dup-safer.c (errno): Likewise.
108854 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108856         Merge from coreutils.
108857         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108858         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108859         * modules/path-concat: Don't depend on strdup.
108861 2004-08-03  Simon Josefsson  <jas@extundo.com>
108863         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108864         * lib/progname.h: Don't include stdbool.h.
108866 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108868         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108869         * MODULES.html.sh (func_all_modules): Remove fatal.
108871 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108873         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108875 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108877         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108878         working.
108880 2004-08-02  Simon Josefsson  <jas@extundo.com>
108882         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108883         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108884         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108886 2004-08-01  Simon Josefsson  <jas@extundo.com>
108888         * lib/xgetdomainname.c: Include stdlib.h, for free().
108890 2004-07-19  Bruno Haible  <bruno@clisp.org>
108892         * MODULES.html.sh (func_all_modules): Add dummy.
108894 2004-07-16  Simon Josefsson  <jas@extundo.com>
108896         * modules/dummy: New file.
108898 2004-07-16  Simon Josefsson  <jas@extundo.com>
108900         * lib/dummy.c: New file.
108902 2004-07-16  Bruno Haible  <bruno@clisp.org>
108904         * lib/backupfile.h: Add extern "C" for C++.
108905         * lib/closeout.h: Likewise.
108906         * lib/copy-file.h: Likewise.
108907         * lib/findprog.h: Likewise.
108908         * lib/full-write.h: Likewise.
108909         * lib/pathname.h: Likewise.
108910         * lib/progname.h: Likewise.
108911         * lib/stpcpy.h: Likewise.
108912         * lib/stpncpy.h: Likewise.
108913         * lib/strcase.h: Likewise.
108914         * lib/strstr.h: Likewise.
108915         * lib/xalloc.h: Likewise.
108917         * lib/mbswidth.h: Add extern "C" for C++.
108918         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
108920 2004-07-13  Robert Millan  <robertmh@gnu.org>
108922         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
108924 2004-07-09  Simon Josefsson  <jas@extundo.com>
108926         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
108927         failed without this.)
108929 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108931         * modules/chown (Files): Add lib/fchown-stub.c, since
108932         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
108934 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108936         * lib/fchown-stub.c: New file.
108938 2004-06-24  Jim Meyering  <jim@meyering.net>
108940         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
108942 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108944         * modules/argz: Omit "#include".
108946         * MODULES.html.sh (func_all_modules): Add calloc, to match
108947         2004-06-01 addition of calloc module.
108949 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108951         * m4/argz.m4: New file, which is autoupdated from libtool.
108953 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108955         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
108956         libtool.
108958 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108960         * config/srclist-update: Don't insist on "USA." before the
108961         close-comment, as libtool omits the period and puts the */ on a
108962         separate line.
108963         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
108964         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
108966 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
108968         * modules/argz: New file.
108969         * MODULES.html.sh (func_all_modules): Add argz.
108971 2004-06-12  Jim Meyering  <jim@meyering.net>
108972         and  Paul Eggert  <eggert@cs.ucla.edu>
108974         * modules/hash (Files): Add lib/xalloc.h.
108975         * modules/pipe (Depends-on): Add wait-process.
108976         * modules/stat (Depends-on): Add xalloc.
108977         * modules/userspec (Files): Add lib/userspec.h.
108978         * modules/xstrto
108980         Upgrade from gettext-0.13.
108981         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
108982         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
108983         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
108985 2004-06-10  Jim Meyering  <jim@meyering.net>
108987         * lib/calloc.c: New file.
108989 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
108991         * lib/getdate.y (yylex): Allow space between sign and number.
108992         Problem reported by Dan Jacobson.
108994 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108996         Merge from coreutils CVS.
108998         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
108999         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109000         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109001         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109002         xstrtol.m4: Fix copyright date and/or serial number.
109004         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109005         See if we need an fchown replacement.
109006         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109007         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109008         and use the replacement function if we detect either defect.
109010         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109011         gl_UTIMECMP.
109013 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109014         and  Jim Meyering  <jim@meyering.net>
109016         Merge from coreutils CVS.
109018         * lib/stat-macros.h: New file, with contents from file-type.h
109019         and coreutils' system.h.
109020         * lib/file-type.c: Include "stat-macros.h".
109021         * lib/file-type.h (file_type): Move all macro definitions to new file,
109022         stat-macros.h.
109024         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109025         Wrap old code with this conditional.
109026         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109027         function that does not dereference symlinks.
109028         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109030         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109031         dependency problems.
109032         (xreadlink): Accept new arg SIZE, for efficiency.
109033         All decls and uses changed.
109034         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109036         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109037         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109039         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109040         sysexits.h.
109042 2004-06-01  Jim Meyering  <jim@meyering.net>
109044         * m4/calloc.m4: New file.
109046 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109048         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109049         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109050         Also, fix a typo in a diagnostic.
109052 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109054         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109055         or AC_FUNC_REALLOC.
109057 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109059         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109060         macros to be defined.
109061         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109062         the allocator returns NULL because the requested size is zero.
109064 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109066         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109067         var.  Add comment explaining why libc still defines it.  This
109068         merges the following patch from glibc:
109069         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109071 2004-05-20  Andreas Schwab  <schwab@suse.de>
109073         * m4/free.m4: Replace free if it not known to work, not the other
109074         way round.
109076 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109078         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109079         present in glibc since revision 1.1 of this file.
109080         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109081         obstack_alignment_mask, obstack_alloc, obstack_base,
109082         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109083         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109084         obstack_grow0, obstack_init, obstack_int_grow,
109085         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109086         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109087         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109088         nonexistent functions.
109090 2004-05-18  Karl Berry  <karl@gnu.org>
109092         * config/srclist.txt: break link for vasnprintf.c.
109094 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109096         Port obstack to the AS/400, where pointers are 16 bytes wide and
109097         you cannot cast an integer to a valid pointer.  This patch is
109098         currently waiting to be integrated into glibc; see
109099         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109101         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109102         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109103         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109104         (struct obstack): temp member is now a union of a pointer and
109105         an integer, instead of an integer.  All integer uses changed.
109106         This does not affect the physical layout of struct obstack,
109107         except on hosts (like the AS/400) where the size or alignment of
109108         void * is greater than that of ptrdiff_t.
109109         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109110         __STDC__)]: Store temporary in pointer member of union, not
109111         integer member.
109112         * lib/obstack.c: Include <stddef.h>, for offsetof.
109113         (struct fooalign): Remove; it doesn't need a name.
109114         (union fooround): Change double to long double, and add void *.
109115         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109116         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109117         not a macro.  Hence the values are always int; so remove all
109118         casts-to-int in uses.
109120 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109122         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109123         we can get this patch merged into glibc.
109125 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109126             Paul Eggert  <eggert@cs.ucla.edu>
109128         * m4/argp: Depend on alloca.
109130 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109131             Paul Eggert  <eggert@cs.ucla.edu>
109133         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109134         freecoding.
109136 2004-05-17  Bruno Haible  <bruno@clisp.org>
109138         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109139         precision that consists of a '.' followed by an empty digit string.
109140         Patch by Tor Lillqvist <tml@iki.fi>.
109142 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109145         for backward compatibility with older code.  We need our own
109146         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109147         it under some other name, and our alloca.h will define it.
109149 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109150             Derek Price  <derek@ximbiot.com>
109152         * lib/alloca.c: Include <alloca.h>, to get our interface.
109153         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109154         include <alloca.h> first.  Use C89 prototype for alloca; this
109155         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109156         Use #elif for simplicity, since we can assume C89 now.
109157         Don't try to source the system alloca.h since it will not be found
109158         and to prevent recursively including its replacement.
109159         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109160         * lib/regex.c: Likewise.
109162 2004-05-16  Derek Price  <derek@ximbiot.com>
109163             Paul Eggert  <eggert@cs.ucla.edu>
109165         getline cleanup.  This changes the getndelim2 API: both order of
109166         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109167         no delimiter).
109169         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109170         interface does that.
109171         (getline): Always use getdelim, so that we don't have two
109172         copies of this code.
109173         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109174         if available.
109175         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109176         (GETNDELIM2_MAXIMUM): New macro.
109177         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109178         instead of the old practice of delim2==0.  All callers changed.
109179         Return -1 on overflow, instead of returning junk.
109180         Do not set *linesize unless allocation succeeds.
109181         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109182         that we include sys/types.h.
109183         * lib/getnline.h: Likewise.
109184         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109185         (getndelim2): Reorder arguments.
109186         * lib/getnline.c (getnline, getndelim):
109187         Don't discard the NMAX argument.
109188         (getnline): Invoke getndelim, to avoid code duplication.
109189         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109190         of (size_t) -1 by callers of the getnline family.
109192 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109194         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109195         Check for gettimeofday.
109196         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109197         Check for settimeofday, stime.
109199 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109201         * lib/nanosleep.c (suspended): Change its type from int to
109202         sig_atomic_t volatile.
109203         (first_call): Make it private to rpl_nanosleep, and have it
109204         be zero initially as that's a bit faster.
109205         (my_usleep): Round up fractional times instead of truncating them,
109206         as this is the usual meaning for 'sleep'.
109208         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109209         doesn't work.
109210         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109211         (ENOSYS): Define if not defined.
109212         (settime): Fall back on stime if it exists and settimeofday fails.
109213         But don't bother with fallbacks if a method fails with errno == EPERM.
109215 2004-05-11  Jim Meyering  <jim@meyering.net>
109217         Prior to this change, the save_cwd caller required read access to the
109218         current directory on most systems (ones with the fchdir function).
109220         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109221         fails, try write-only, and finally, resort to using xgetcwd.
109223 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109225         * lib/obstack.c, obstack.h: Import changes from libc.
109227 2004-04-28  Bruno Haible  <bruno@clisp.org>
109229         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109230         also implicitly appends .exe to executables.
109231         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109232         accepts Windows pathnames.
109233         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109234         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109235         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109236         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109237         Reported by Derek Robert Price <derek@ximbiot.com>.
109239 2004-04-21  Karl Berry  <karl@gnu.org>
109241         * config/srclist.txt (localcharset.c): break sync.
109243 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109245         * m4/host-os.m4: Add a copyright notice.
109247 2004-04-20  Jim Meyering  <jim@meyering.net>
109249         Change UTILS_ to gl_ in AC_DEFINE'd names.
109250         Change utils_- and jm_-prefixed variables, too.
109251         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109252         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109255         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109256         Don't emit trailing blanks.
109257         Also rename jm_-prefixed variables to have gl_ prefix.
109259         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109260         Also rename jm_-prefixed variables to have gl_ prefix.
109262         * m4/jm-macros.m4: Reflect the renamings.
109263         * m4/prereq.m4: Likewise.
109265 2004-04-20  Jim Meyering  <jim@meyering.net>
109267         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109268         memory.
109270 2004-04-20  Jim Meyering  <jim@meyering.net>
109271             Bruno Haible  <bruno@clisp.org>
109273         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109274         memory when realloc fails.
109276 2004-04-19  Jim Meyering  <jim@meyering.net>
109278         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109279         now that readutmp.c may call `free (0)'.
109281 2004-04-19  Bruno Haible  <bruno@clisp.org>
109283         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109284         * m4/inttypes_h.m4: Likewise.
109285         * m4/stdint_h.m4: Likewise.
109286         * m4/intmax_t.m4: Likewise.
109287         * m4/uintmax_t.m4: Likewise.
109289 2004-04-18  Jim Meyering  <jim@meyering.net>
109291         * m4/prereq.m4: Don't forbid jm_ prefix.
109293         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109294         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109295         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109296         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109297         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109298         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109299         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109300         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109301         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109302         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109303         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109304         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109305         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109306         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109307         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109308         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109309         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109310         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109311         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109313 2004-04-18  Jim Meyering  <jim@meyering.net>
109315         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109316         failure, don't leak memory and do call END_UTMP_ENT.
109318 2004-04-16  Jim Meyering  <jim@meyering.net>
109320         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109321         coreutils' stat program.
109322         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109324 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109326         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109327         C89.
109328         (CHAR_BIT): Remove, since we assume C89.
109329         Include <stdint.h> if available, as per current Autoconf CVS advice.
109331 2004-03-31  Jim Meyering  <jim@meyering.net>
109333         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109334         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109335         * m4/xalloc.m4: Likewise.
109337 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109339         Merge from coreutils.
109341         * m4/inttostr.m4: New file.
109342         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109343         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109344         Require gl_CLOCK_TIME.
109345         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109347 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109349         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109350         not bool, to be more consistent with Unix conventions.
109351         Suggested by Bruno Haible.
109353         Merge from coreutils.
109355         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109356         * lib/umaxtostr.c: New files.
109358         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109359         the usual <time.h> dance.
109360         (get_date): Change signature to support fractional time stamps.
109361         All callers changed.
109362         * lib/getdate.y: Include "getdate.h" first, as we can now
109363         assume C89 and don't need to worry about 'const'.
109364         Similarly, include "unlocked-io.h" near start, not in middle.
109365         Include <limits.h>.
109366         (textint.value): Use long int rather than int.
109367         (textint.digits): Use size_t rather than int.
109368         (BILLION, LOG10_BILLION): New constants.
109369         (parser_control): New member rel_ns.  Members day_ordinal,
109370         time_zone, month, day, hour, minutes, rel_year, rel_month,
109371         rel_day, rel_hour, rel_minutes, rel_seconds
109372         are now long int, not int.  Member seconds is now struct timespec,
109373         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109374         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109375         not int.
109376         (%union.intval): Now long int, not int.
109377         New member timespec.
109378         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109379         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109380         (spec): Now is a timespec or an item list.
109381         (timespec, items): New nonterminals.
109382         (time, rel, relunit, number, get_date):
109383         Add support for fractional seconds.
109384         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109385         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109386         (to_hour): First arg is now long int, not int.
109387         (to_year): Returns long int, not int.
109388         Don't treat year -70 like 70.
109389         (tm_diff): Returns long int, not int.
109390         (lookup_word): Use bool instead of int when appropriate.
109391         (yylex): Use size_t for count, not int.
109392         Detect overflow when parsing large integer constants.
109393         Add support for fractions.
109394         (get_date): Make pointers 'const' if possible.
109395         Use more-portable code to detect integer overflow.
109396         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109397         Don't use ctime; it's not reliable if the year has >4 digits.
109399         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109400         This is for compatibility with BSD.
109402         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109403         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109404         From coreutils' system.h.
109406         * lib/userspec.c: Don't include "posixver.h".
109407         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109408         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109409         compatible extension.  Simplify code by removing a boolean int
109410         that was always nonzero if a string was nonnull.
109412 2004-03-30  Jim Meyering  <jim@meyering.net>
109414         Merge from coreutils.
109416         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109417         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109418         on some systems one must include <grp.h> before it.
109419         Reported by Christian Krackowizer.
109421 2004-03-30  Jim Meyering  <jim@meyering.net>
109423         Merge from coreutils.
109425         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109427         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109428         an empty input stream.
109430         * lib/readtokens.c: Include <stdbool.h>.
109431         (readtoken): Use `size_t' rather than int/long.
109432         All callers adjusted.
109433         Use `bool' rather than `int' where appropriate.
109434         Use memset rather than an explicit loop.
109435         Use x2nrealloc rather than xrealloc.
109436         Allow the use of `\0' as a delimiter.
109437         (readtokens): Likewise.
109438         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109440 2004-03-30  Jim Meyering  <jim@meyering.net>
109442         * m4/realloc.m4: Remove file, since now it does no more than
109443         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109444         the `configure.ac' section of module/realloc.
109445         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109447 2004-03-30  Bruno Haible  <bruno@clisp.org>
109449         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109450         nonnull.
109452 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109454         Merge changes to getloadavg.c from coreutils and Emacs.
109456         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109457         Define to an expression, not to the empty string.
109458         Include cloexec.h and xalloc.h.
109459         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109460         Use set_cloexec_flag rather than rolling our own.
109461         * lib/cloexec.c, lib/cloexec.h: New files.
109463 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109465         * m4/cloexec.m4: New file.
109467 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109469         * lib/getopt.h: Sync with libc CVS.
109471 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109472             Bruno Haible  <bruno@clisp.org>
109474         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109475         mbswidth.
109477 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109478             Bruno Haible  <bruno@clisp.org>
109480         * lib/mbswidth.h: Include <wchar.h> only if
109481         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109482         <wchar.h>.
109483         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109485 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109487         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109488         Sync with libc CVS.
109489         * lib/getopt_int.h: New file, also synced from libc.
109491 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109493         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109494         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109495         Bring back getopt.c, getopt.h, getopt1.c.
109497 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109499         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109500         All uses changed.  Check for sa_sigaction member; this fixes
109501         a bug first reported by Jason Andrade in
109502         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109504 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109506         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109507         '#if' expressions.  Unlike the code it replaces, it does not
109508         depend on (defined _SC_PAGESIZE).  However, it does depend on
109509         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109510         first reported by Jason Andrade in
109511         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109513 2004-02-25  Simon Josefsson  <jas@extundo.com>
109515         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109517 2004-02-25  Simon Josefsson  <jas@extundo.com>
109519         * lib/strdup.h: New file.
109520         * lib/strdup.c: Include it.
109521         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109522         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109524 2004-02-23  Karl Berry  <karl@gnu.org>
109526         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109527         (from fencepost.gnu.org:/gd/gnuorg).
109529 2004-02-23  Karl Berry  <karl@gnu.org>
109531         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109532         * config/srclist.txt: add maintain/standards documents.
109534 2004-02-18  Bruno Haible  <bruno@clisp.org>
109536         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109537         Reported by Derek Robert Price <derek@ximbiot.com>.
109539 2004-02-16  Karl Berry  <karl@gnu.org>
109541         * config/mkinstalldirs, install-sh: update from automake.
109543 2004-02-06  Karl Berry  <karl@gnu.org>
109545         * m4/po.m4: update from gettext 0.14.1.
109547 2004-02-06  Karl Berry  <karl@gnu.org>
109549         * lib/config.charset: update from gettext 0.14.1.
109551 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109553         Add comments and code, prompted by suggestions from Bruno Haible
109554         for sh-quote.
109555         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109556         describing the enum quoting_style values.
109557         * lib/quotearg.c (quotearg_alloc): New function.
109558         (quotearg_buffer_restyled): Treat lone { and } as special.
109559         Treat = as special.  Work around bug with older shells
109560         that "see" a '\' that is really the 2nd byte of a multibyte char.
109561         Quote empty string with shell_quoting_style.
109563 2004-02-03  Bruno Haible  <bruno@clisp.org>
109565         * m4/pipe.m4: New file, from GNU gettext.
109567 2004-02-03  Bruno Haible  <bruno@clisp.org>
109569         * lib/pipe.h: New file, from GNU gettext.
109570         * lib/pipe.c: New file, from GNU gettext.
109572 2004-01-27  Bruno Haible  <bruno@clisp.org>
109574         * m4/execute.m4: New file, from GNU gettext.
109576 2004-01-27  Bruno Haible  <bruno@clisp.org>
109578         * lib/execute.h: New file, from GNU gettext.
109579         * lib/execute.c: New file, from GNU gettext.
109580         * lib/w32spawn.h: New file, from GNU gettext.
109582 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109584         Merge from diffutils.
109586         * lib/file-type.c (file_type): Add typed memory objects.
109587         * lib/file-type.h (S_TYPEISTMO): New macro.
109589         * lib/c-stack.h (c_stack_action): Remove argv argument.
109590         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109591         (die): Don't calculate message unless segv_action returns.
109592         (get_stack_location, min_address_from_argv, max_address_from_argv,
109593         volatile stack_base, volatile_stack_size): Remove.
109594         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109595         that every segmentation violation is a stack overflow.  (Ouch!)
109596         See Debian bug 136249 (still outstanding) for more info about why
109597         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109599 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109601         Exit-status fix from coreutils.
109603         Use exit_failure consistently in place of EXIT_FAILURE,
109604         so that program exit statuses are consistent on failure.
109606         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109607         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109608         * lib/argmatch.h: Comment fix to match the above.
109609         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109610         Now a macro referring to exit_failure, instead of a separate
109611         variable.  Include "exitfail.h" to get it.
109612         * lib/xstrtol.h: Include "exitfail.h".
109613         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109615         * lib/long-options.c (parse_long_options): Use prototype
109616         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109617         for clarity.
109619 2004-01-21  Jim Meyering  <jim@meyering.net>
109621         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109622         so as not to conflict with a different-sized __mktime_internal
109623         function in GNU libc.
109624         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109625         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109627 2004-01-20  Karl Berry  <karl@gnu.org>
109629         * config/config.guess: update from config.
109631         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109633 2004-01-20  Bruno Haible  <bruno@clisp.org>
109635         Safer stack allocation.
109636         * lib/setenv.c: Include allocsa.h.
109637         (alloca): Remove fallback definition.
109638         (freea): Remove macro.
109639         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109640         instead of freea.
109642 2004-01-20  Bruno Haible  <bruno@clisp.org>
109644         * m4/eealloc.m4: New file, from GNU gettext.
109646 2004-01-20  Bruno Haible  <bruno@clisp.org>
109648         * m4/allocsa.m4: New file, from GNU gettext.
109650 2004-01-20  Bruno Haible  <bruno@clisp.org>
109652         * lib/xallocsa.h: New file, from GNU gettext.
109653         * lib/xallocsa.c: New file, from GNU gettext.
109655 2004-01-20  Bruno Haible  <bruno@clisp.org>
109657         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109659 2004-01-20  Bruno Haible  <bruno@clisp.org>
109661         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109662         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109663         specially.
109665 2004-01-20  Bruno Haible  <bruno@clisp.org>
109667         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109668         patch.
109670 2004-01-20  Bruno Haible  <bruno@clisp.org>
109672         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109674 2004-01-20  Bruno Haible  <bruno@clisp.org>
109676         * lib/eealloc.h: New file.
109678 2004-01-20  Bruno Haible  <bruno@clisp.org>
109680         * lib/binary-io.h: Avoid warnings on Cygwin.
109682 2004-01-20  Bruno Haible  <bruno@clisp.org>
109684         * lib/allocsa.h: New file, from GNU gettext.
109685         * lib/allocsa.c: New file, from GNU gettext.
109687 2004-01-18  Karl Berry  <karl@gnu.org>
109689         * doc/gpl.texi, doc/lgpl.texi: new files.
109691 2004-01-18  Karl Berry  <karl@gnu.org>
109693         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109694         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109696 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109698         Merge from coreutils.
109700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109701         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109702         (gl_DEFAULT_POSIX2_VERSION): Move
109703         the documentation from 'configure' into 'config.hin',
109704         so that 'configure --help' isn't burdened by it and
109705         we don't have to worry about its formatting there.
109706         Reword the documentation so that it's more succinct
109707         and can be run together into a single paragraph.
109708         * m4/same.m4 (gl_SAME): Check for pathconf.
109710 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109712         Merge from coreutils.
109714         * lib/posixver.c: Include posixver.h.
109716         * lib/same.c: Include <stdbool.h>, <limits.h>.
109717         (_POSIX_NAME_MAX): Define if not defined.
109718         (MIN): New macro.
109719         (same_name): If file names are silently truncated, report
109720         that the file names are the same if they are the same after
109721         the silent truncation.
109723         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109724         conversion function.
109725         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109726         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109727         longer needed.
109729 2004-01-15  Jim Meyering  <jim@meyering.net>
109731         Merge from coreutils.
109733         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109734         if no library is required.
109735         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109736         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109737         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109738         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109739         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109740         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109741         value, $ac_cv_search_crypt, if it's "none required".
109742         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109743         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109744         not gl_FUNC_GETLOADAVG.
109745         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109746         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109748 2004-01-15  Jim Meyering  <jim@meyering.net>
109750         Merge from coreutils.
109752         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109753         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109754         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109756         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109757         optional configure-time default.
109759         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109761         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109763 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109765         Merge from coreutils.
109767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109768         value, $ac_cv_search_nanosleep, if it's "none required".
109770 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109772         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109773         with like-named macro in fnmatch.c.
109774         (EXT): Use an internal constant instead.
109776         Merge fnmatch patches from glibc.
109777         * lib/fnmatch.c (mbsinit): Remove define.
109778         Add libc_hidden_ver (__fnmatch, fnmatch).
109779         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109780         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109782 2004-01-14  Karl Berry  <karl@gnu.org>
109784         * config/install-sh: update from automake.
109786 2004-01-13  Karl Berry  <karl@gnu.org>
109788         * config/install-sh: update from automake.
109790 2004-01-09  Karl Berry  <karl@gnu.org>
109792         * config/install-sh: update from automake.
109794 2004-01-05  Karl Berry  <karl@gnu.org>
109796         * config/config.{sub,guess}: update from config.
109798 2003-12-31  Karl Berry  <karl@gnu.org>
109800         * config/depcomp: update from automake.
109802 2003-12-14  Karl Berry  <karl@gnu.org>
109804         * lib/config.charset: update from gettext-runtime.
109806 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109808         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109809         Bug reported by Alfred M. Szmidt.
109811 2003-12-03  Bruno Haible  <bruno@clisp.org>
109813         * m4/gettext.m4: Upgrade from gettext-0.13.
109814         * m4/po.m4: Upgrade from gettext-0.13.
109815         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109816         * m4/intmax.m4: New file, from gettext-0.13.
109817         * m4/printf-posix.m4: New file, from gettext-0.13.
109819 2003-11-29  Karl Berry  <karl@gnu.org>
109821         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109823 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109824             Bruno Haible  <bruno@clisp.org>
109826         * lib/printf-parse.h: Don't include sys/types.h.
109827         (ARG_NONE): New macro.
109828         (char_directive): Change type of *arg_index fields to size_t.
109829         * lib/printf-parse.c: Don't include sys/types.h.
109830         (SSIZE_MAX): Remove macro.
109831         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109832         Remove unnecessary overflow check.
109833         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109834         fields.
109836 2003-11-25  Bruno Haible  <bruno@clisp.org>
109838         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109840 2003-11-25  Bruno Haible  <bruno@clisp.org>
109842         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109843         gt_TYPE_SSIZE_T.
109845 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109847         * modules/alloca: Remove dependency on xalloc.
109849 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109851         * lib/alloca.c: Remove dependency on xalloc module.
109852         (xalloc_die): Remove.
109853         (memory_full) [!defined emacs]: New macro.
109854         [!defined emacs]: Don't include xalloc.h.
109855         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109856         address arithmetic overflows.  Change datatypes a bit to avoid
109857         unnecessary casts.
109859 2003-11-22  Jim Meyering  <jim@meyering.net>
109861         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109862         s/size/size_t/.
109864 2003-11-21  Karl Berry  <karl@gnu.org>
109866         * config/config.{sub,guess}: update from config.
109868 2003-11-18  Karl Berry  <karl@gnu.org>
109870         * config/config.{sub,guess}: update from config.
109872         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109874 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109876         * README: Mention that S+T cannot overflow if S is the size of
109877         an existing object and T is sufficiently small.
109879 2003-11-17  Jim Meyering  <jim@meyering.net>
109881         On systems without utime and without a utimes function capable of
109882         dealing with a NULL struct utimbuf* argument, this utime replacement
109883         could -- in unusual circumstances -- leak a file descriptor.
109884         * lib/utime.c: Include <unistd.h> and <errno.h>.
109885         (utime_null): Be sure to close `fd' and to preserve errno.
109886         Reported by Geoff Collyer via Arnold Robbins.
109888 2003-11-17  Bruno Haible  <bruno@clisp.org>
109890         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109891         (Depends-on): Add xsize.
109893 2003-11-17  Bruno Haible  <bruno@clisp.org>
109895         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
109897 2003-11-17  Bruno Haible  <bruno@clisp.org>
109899         * lib/vasnprintf.c (alloca): Remove fallback definition.
109900         (freea): Remove definition.
109901         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
109902         Reported by Paul Eggert.
109904 2003-11-16  Paul Eggert  <eggert@twinsun.com>
109905             Bruno Haible  <bruno@clisp.org>
109907         Protect against address arithmetic overflow.
109908         * lib/printf-args.h: Include stddef.h.
109909         (arguments): Change type of field 'count' to size_t.
109910         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
109911         'unsigned int' where appropriate.
109912         * lib/printf-parse.h: Include sys/types.h.
109913         (char_directive): Change type of *arg_index fields to ssize_t.
109914         (char_directives): Change type of fields 'count', max_*_length to
109915         size_t.
109916         * lib/printf-parse.c: Include sys/types.h and xsize.h.
109917         (SSIZE_MAX): Define fallback value.
109918         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
109919         instead of 'int' where appropriate. Check a_allocated, d_allocated
109920         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
109921         * lib/vasnprintf.c: Include xsize.h.
109922         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
109923         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
109924         overflow. Avoid wraparound when converting a width or precision from
109925         decimal to binary.
109927 2003-11-16  Bruno Haible  <bruno@clisp.org>
109929         Update from GNU gettext.
109930         * lib/printf-parse.c: Generalize to it can be compiled for wide
109931         strings.
109932         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
109933         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
109934         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
109935         SNPRINTF): New macros.
109936         Don't include <alloca.h> if the file is used inside libintl.
109937         (local_wcslen): New function, for Solaris 2.5.1.
109938         (VASNPRINTF): Use it instead of wcslen.
109940 2003-11-16  Bruno Haible  <bruno@clisp.org>
109942         * lib/xsize.h (xmax): New function.
109943         (xsum, xsum3, xsum4): Declare as "pure" functions.
109945 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109947         * modules/xalloc (Files): Undo latest change, since xalloc.h
109948         no longer needs SIZE_MAX or PTRDIFF_MAX.
109950 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109952         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
109953         gl_PTRDIFF_MAX.
109955 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109957         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
109958         "return", to pacify some unknown compiler.  Problem reported
109959         by Joerg Schilling.
109961 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109963         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
109964         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
109965         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
109966         heuristic is just as accurate as far as we know, and it removes a
109967         dependency on size_max.m4 and ptrdiff_max.m4.
109969 2003-11-11  Bruno Haible  <bruno@clisp.org>
109971         * modules/xsize (Files): Add m4/size_max.m4.
109972         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
109974 2003-11-11  Bruno Haible  <bruno@clisp.org>
109976         * m4/size_max.m4: New file.
109977         * m4/ptrdiff_max.m4: New file.
109978         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
109979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
109980         (gl_XALLOC): Invoke it.
109982 2003-11-11  Bruno Haible  <bruno@clisp.org>
109984         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
109985         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
109986         defined.
109988 2003-11-10  Paul Eggert  <eggert@twinsun.com>
109990         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
109991         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
109992         rejected some allocations of exactly SIZE_MAX - 2 bytes.
109993         From Bruno Haible.
109994         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
109995         not (size_t) -1, since it's defined here.
109997 2003-11-09  Karl Berry  <karl@gnu.org>
109999         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110001 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110003         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110004         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110005         Reject sizes of exactly SIZE_MAX bytes.
110006         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110007         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110009 2003-11-05  Bruno Haible  <bruno@clisp.org>
110011         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110012         SIZE_MAX defined in <limits.h> on Solaris.
110014 2003-11-04  Jim Meyering  <jim@meyering.net>
110016         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110017         variable names, rather than @VAR@.
110018         * modules/poll: Likewise.
110020 2003-11-04  Bruno Haible  <bruno@clisp.org>
110022         * modules/xsize: New file.
110023         * modules/linebreak: Depend on xsize.
110024         * MODULES.html.sh (func_all_modules): Add xsize.
110026 2003-11-04  Bruno Haible  <bruno@clisp.org>
110028         * m4/xsize.m4: New file.
110030 2003-11-04  Bruno Haible  <bruno@clisp.org>
110032         * lib/xsize.h: New file.
110033         * lib/linebreak.c: Include xsize.h.
110034         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110035         argument for overflow.
110036         Suggested by Paul Eggert.
110038 2003-11-03  Karl Berry  <karl@gnu.org>
110040         * config/config.{guess,sub}: update from config.
110042 2003-11-03  Jim Meyering  <jim@meyering.net>
110044         * modules/userspec (lib_SOURCES): Add userspec.h.
110045         (Include): Add "userspec.h".
110046         Improve description.
110048 2003-11-03  Jim Meyering  <jim@meyering.net>
110050         * lib/userspec.c: Include "userspec.h".
110051         * lib/userspec.h: New file.
110053 2003-11-03  Bruno Haible  <bruno@clisp.org>
110055         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110057 2003-11-03  Bruno Haible  <bruno@clisp.org>
110059         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110060         available, to avoid (extremely rare) race condition.
110061         Suggested by Paul Eggert.
110063 2003-11-02  Karl Berry  <karl@gnu.org>
110065         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110067 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110069         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110070         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110071         (read_filesystem_list): Set and use me_type_malloced.
110072         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110073         whatever the type happens to be), for brevity and consistency.
110074         Check for size calculation overflow on Alphas running OSF/1.
110076 2003-10-31  Jim Meyering  <jim@meyering.net>
110078         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110080         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110082 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110083             Bruno Haible  <bruno@clisp.org>
110085         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110086         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110088 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110090         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110091         netbsd*-gnu*.  Suggested by Robert Millan.
110093 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110095         * modules/group-member: Depend on stdbool.
110097 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110099         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110101 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110103         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110104         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110105         after the 'gnu' in these cases.  This fixes some bugs in the
110106         previous change, and is based on suggestions by Robert Millan.
110108 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110110         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110111         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110112         no longer needed.
110113         * lib/quotearg.c (quotearg_n_options): Use it.
110114         * lib/group-member.c: Include <stdbool.h>.
110115         (free_group_info): Arg is now const *; don't free arg.
110116         (get_group_info): Now returns bool and accepts struct group_info *,
110117         rather than returning a malloc'ed struct group_info *.
110118         All uses changed.  Check for overflow in internal size calculation.
110120         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110121         rather than xmalloc/xrealloc.
110122         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110123         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110124         conformance bug: the old code used a pointer after freeing the
110125         storage that it addressed.
110126         * lib/hash.c (hash_initialize): Simplify the code by using
110127         xalloc_oversized rather than doing it by hand.
110128         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110129         the buffer preserved.  Use free and xmalloc instead.
110130         * lib/quotearg.c (quotearg_n_options): Likewise.
110131         Use a simpler test for size overflow.  Don't use xalloc_oversized
110132         because unsigned int might be wider than size_t (!); this suggests
110133         that we should switch from unsigned int to size_t for slot numbers.
110135 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110137         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110138         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110139         NetBSD kernels.  Requested by Richard Stallman.
110141 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110143         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110144         to allocate the returned structure.  Do not allocate a subarray,
110145         as x2nrealloc will do that.
110146         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110147         instead of xnrealloc.
110148         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110150 2003-10-27  Bruno Haible  <bruno@clisp.org>
110152         * lib/stdbool_.h: Better support for BeOS.
110154 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110156         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110157         now uses inline.
110159 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110161         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110162         callers that want to do their own size-overflow checking.  Include
110163         <stdbool.h>, since xalloc_oversized returns bool.
110164         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110165         to use xalloc_oversized.
110167         Add two functions x2realloc, x2nrealloc, for programs that grow
110168         arrays dynamically by doubling their sizes.
110169         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110170         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110171         New functions.
110173         Port to C99 semantics for 'inline' of external functions.
110174         Bug reported by Bruno Haible.
110175         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110176         with the old contents of xnmalloc.
110177         (xnmalloc, xmalloc): Use it.
110178         (xnrealloc_inline): New static inline function,
110179         with the old contents of xnrealloc.
110180         (xnrealloc, xrealloc): Use it.
110182         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110183         that.
110185 2003-10-26  Karl Berry  <karl@gnu.org>
110187         * config/srclist.txt (COPYING.DOC): no longer available from
110188         /gd/gnuorg; don't know where the ultimate source is.
110190 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110192         Fix several address-calculation bugs in the hash modules,
110193         plus some minor code cleanup.
110195         * lib/hash.h: Include <stdbool.h>, for bool.
110196         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110197         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110198         hash_get_n_entries, hash_get_max_bucket_length,
110199         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110200         hash_rehash): Use size_t rather than unsigned.
110201         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110202         hash_get_n_buckets_used, hash_get_n_entries,
110203         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110204         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110205         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110206         Likewise.
110207         (SIZE_MAX): Define if not defined.
110208         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110209         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110210         hash_print):
110211         Use const * when possible.
110212         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110213         (check_tuning): Fix bug: if tuning parameters were very close to
110214         0 or 1, rounding errors could have caused subscript violations.
110215         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110216         (hash_initialize): Add 'fail:' label
110217         to free table and return NULL, and use it to simplify code.
110218         Use calloc rather than clearing the storage ourself.
110219         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110220         buffer size calculations.
110221         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110222         Include <stddef.h>, for size_t.
110223         * lib/hash-pjw.c (hash_pjw): Likewise.
110224         Switch to method described by Bruno Haible.
110225         Include <limits.h>, for CHAR_BIT.
110226         (SIZE_BITS): New macro.
110228 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110230         * m4/getline.m4 (AM_FUNC_GETLINE):
110231         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110232         hosts.  Problem reported by Derek Robert Price in
110233         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110234         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110235         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110237 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110239         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110240         ceiling the allocation at NMAX bytes rather than silently
110241         discarding input bytes before NMAX is reached.  This makes
110242         a difference only if NMAX exceeds SIZE_MAX / 2.
110244         * lib/obstack.c: Merge from glibc.
110245         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110246         Add libc_hidden_def (_obstack_newchunk).
110247         (_obstack_free) [! defined _LIBC]: Remove.
110248         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110249         a clone of the function body.
110250         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110251         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110253         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110254         glibc.
110255         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110256         arg to memcpy.
110258         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110259         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110260         Don't use lvalue casts, as GCC plans to remove support for them
110261         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110262         was also present in the non-GCC version, indicating that this
110263         code had always been buggy and had never been widely used.
110264         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110265         Use the fast variant of each macro, rather than copying the
110266         definiens of the fast variant; that way, we'll be more likely to
110267         catch future bugs in the fast variants.
110269 2003-10-20  Bruno Haible  <bruno@clisp.org>
110271         * modules/wait-process: New file.
110272         * MODULES.html.sh (func_all_modules): Add wait-process.
110274 2003-10-20  Bruno Haible  <bruno@clisp.org>
110276         * m4/wait-process.m4: New file.
110278 2003-10-20  Bruno Haible  <bruno@clisp.org>
110280         * lib/wait-process.h: New file, from GNU gettext.
110281         * lib/wait-process.c: New file, from GNU gettext.
110283 2003-10-19  Jim Meyering  <jim@meyering.net>
110285         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110286         HPUX 10.20.
110288 2003-10-18  Karl Berry  <karl@gnu.org>
110290         * config/config.guess: update from config.
110292 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110294         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110295         (getgroups): First arg is int, not size_t.
110296         Don't let 'free' mangle errno.
110298 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110300         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110302 2003-10-16  Karl Berry  <karl@gnu.org>
110304         * config/config.{guess,sub}: update from config.
110306 2003-10-16  Jim Meyering  <jim@meyering.net>
110308         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110309         memcpy.
110311 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110313         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110314         (SIZE_MAX): Remove.
110315         (new_exclude, add_exclude_file): Initial size no longer needs to
110316         be a power of 2.
110317         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110318         our own address arithmetic overflow checking.
110320         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110321         (fnmatch): Do not alloca more than 2000 wide characters;
110322         instead, use malloc for large buffers.
110323         Check for address arithmetic overflow, and return -1
110324         with errno set to ENOMEM in that case.
110325         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110326         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110327         instead, return -1.  Check for address arithmetic overflow.
110329 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110331         Handle invalid suffixes and overflow independently, so that
110332         callers can treat them independently as needed.  Fix some bugs in
110333         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110334         suffix for a human-readable blocksize.  The major caller-visible
110335         change is the addition of a new
110336         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110337         that both overflow and suffix chars were found.
110339         * lib/human.c (humblock): Don't check separately for invalid suffix
110340         char; that is xstrtoumax's job (now that its bug is fixed).
110341         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110342         INTMAX_MAX]: New macros.
110343         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110344         TYPE_MAXIMUM): New macros.
110345         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110346         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110347         if overflow occurs, as it's what __strtol does and it's more useful
110348         in practice.
110349         (__xstrtol): If __strtol reports some error other than ERANGE,
110350         reflect it to the caller as LONGINT_INVALID.  If it reports
110351         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110352         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110353         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110354         value.
110355         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110356         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110357         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110358         [defined UINTMAX_MAX]: New macros.
110360 2003-10-14  Bruno Haible  <bruno@clisp.org>
110362         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110364 2003-10-14  Bruno Haible  <bruno@clisp.org>
110366         * m4/sig_atomic_t: New file, from GNU gettext.
110367         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110369 2003-10-14  Bruno Haible  <bruno@clisp.org>
110371         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110372         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110373         Also use volatile where needed.
110375 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110377         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110378         Change maintainer from Bruno Haible to 'all'.
110380 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110382         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110384 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110386         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110387         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110388         and define in terms of the other primitives.
110389         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110390         (SIZE_MAX): Define if not already defined.
110391         (array_size_overflow): New function.
110392         (xalloc_die): Abort instead of exiting if 'error' returns.
110393         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110394         (xmalloc, xrealloc): Use them.
110395         (xcalloc): Check for address arithmetic overflow.
110396         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110397         a bit faster than strcpy.
110399 2003-10-10  Simon Josefsson  <jas@extundo.com>
110401         * modules/argp (Depends-on): Add restrict and strcase.
110403 2003-10-10  Simon Josefsson  <jas@extundo.com>
110405         * m4/argp.m4: Add AC_C_INLINE.
110407 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110409         Merge getpass from libc, plus a few fixes.
110411         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110412         Include <stdbool.h>.
110413         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110414         __fsetlocking to empty.
110415         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110416         do include <bits/libc-lock.h>.
110417         Do not include <fcntl.h>; not needed.
110418         [_LIBC]: Include <wchar.h>.
110419         (NOTCANCEL_MODE): New macro.
110420         (flockfile, funlockfile) [_LIBC]: New macros.
110421         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110422         [!_LIBC]: New macros.
110423         (call_fclose): New function.
110424         (getpass): Use it.  Save tty stream separately; this simplifies the
110425         code and makes it more reliable if stdin happens to equal stdout.
110426         Invoke __fsetlocking on tty.
110427         Handle thread cancellation if needed.
110428         Namespace cleanup (use __tcgetattr, __getline).
110429         Use bool for Booleans.
110430         [USE_IN_LIBIO]: Handle wide streams.
110431         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110432         stream might go where.
110434         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110435         doesn't have to include <stdio.h> before us.
110436         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110437         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110438         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110439         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110440         if not declared, so that we can use getpass.c code from libc without
110441         rewriting it.
110442         (flockfile, ftrylockfile, funlockfile): New macros.
110444 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110446         * modules/getpass: Depend on stdbool.
110448 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110450         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110452 2003-10-07  Karl Berry  <karl@gnu.org>
110454         * config/config.{guess,sub}: update from config.
110456 2003-10-06  Jim Meyering  <jim@meyering.net>
110457             Bruno Haible  <bruno@clisp.org>
110459         This lets translators provide better translations for the
110460         "Written by ..." part of --version output.
110461         * lib/version-etc.h: Include stdarg.h.
110462         (version_etc_copyright): Declare as readonly.
110463         (version_etc): Make this function variadic with a NULL-terminated list
110464         of author name strings.
110465         (version_etc_va): New declaration.
110466         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110467         (version_etc_copyright): Declare as readonly.
110468         (version_etc_va): New function. Provide a different translatable string
110469         for each possible number of authors < 10. Abbreviate when there are 10
110470         authors or more.
110471         (version_etc): Make this function variadic. Call version_etc_va.
110472         Suggestion from Gary V. Vaughan.
110474         * lib/long-options.h (parse_long_options): Change prototype: the
110475         authors string is moved to the end and becomes variadic.
110476         * lib/long-options.c: Include stdarg.h.
110477         (parse_long_options): Make this function variadic, too.
110478         Call version_etc_va, not version_etc.
110480 2003-10-06  Bruno Haible  <bruno@clisp.org>
110482         * modules/version-etc-2: Remove file.
110483         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110485 2003-10-06  Bruno Haible  <bruno@clisp.org>
110487         * modules/fatal-signal: New file.
110488         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110490 2003-10-06  Bruno Haible  <bruno@clisp.org>
110492         * m4/fatal-signal.m4: New file.
110493         * m4/signalblocking.m4: New file, from GNU gettext.
110495 2003-10-06  Bruno Haible  <bruno@clisp.org>
110497         * lib/version-etc-2.h: Remove file.
110498         * lib/version-etc-2.c: Remove file.
110500 2003-10-06  Bruno Haible  <bruno@clisp.org>
110502         * lib/fatal-signal.h: New file, from GNU gettext.
110503         * lib/fatal-signal.c: New file, from GNU gettext.
110505 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110507         * README: Rework advice for preventing empty .o files.
110508         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110509         not <sys/types.h>.
110511 2003-10-04  Karl Berry  <karl@gnu.org>
110513         * lib/argp*: update from libc.
110515 2003-10-04  Karl Berry  <karl@gnu.org>
110517         * config/config.{guess,sub}: update from config.
110519 2003-10-02  Bruno Haible  <bruno@clisp.org>
110521         * modules/lchown (Include): Add lchown.h.
110522         * modules/time_r (Include): Use "..." syntax.
110523         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110525 2003-10-01  Simon Josefsson  <jas@extundo.com>
110527         * MODULES.html.sh (func_all_modules): Move gethostname from section
110528         'based on' to section 'lacking' POSIX:2001.
110530 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110532         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110533         to output mode on the same stream.
110535 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110537         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110538         Fix arg typo in previous patch.
110540 2003-09-28  Jim Meyering  <jim@meyering.net>
110542         * lib/error.c: Correct cpp indentation.
110544 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110546         * modules/free: New file.
110548 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110550         * m4/free.m4: New file.
110552 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110554         * lib/minmax.h (MIN, MAX)
110555         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110556         Omit the special code that used __typeof__, since we worry that
110557         it could be more trouble than it's worth.  See:
110558         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110559         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110561         * lib/free.c: New file.
110563 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110565         Trivial fixes to Makefile.am parts of module listings.
110566         * modules/strstr: Append strstr.h to lib_SOURCES.
110567         * modules/strcase: Likewise, for strcase.h.
110569 2003-09-27  Karl Berry  <karl@gnu.org>
110571         * config/mkinstalldirs: update from automake.
110573 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110575         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110576         (error_tail): Do not loop, reallocating temporary buffer, since
110577         the output cannot contain more wide characters than the input
110578         contains bytes, the size must be big enough already.  This avoids
110579         one potential size overflow calculation.  Check for size overflow
110580         when calculating temporary buffer size.  Free temporary buffer
110581         when done, if it was allocated with malloc; this plugs a memory
110582         leak.  Remove casts from void * to pointers, that are no longer
110583         needed now that we're assuming C89 or better.
110585         Merge error changes from glibc.
110587         * lib/error.c, error.h: Update copyright notice header to match glibc.
110588         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110589         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110590         Disable cancellation while printing error.
110591         * lib/error.h: Prepend __ to parameter names.
110593 2003-09-26  Jim Meyering  <jim@meyering.net>
110595         * lib/error.c (error_tail): Move some declarations
110596         into inner scope where the local variables are used.
110598 2003-09-26  Bruno Haible  <bruno@clisp.org>
110600         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110601         stpncpy().
110602         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110604 2003-09-26  Bruno Haible  <bruno@clisp.org>
110606         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110607         (stpncpy): Define as alias for gnu_stpncpy.
110608         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110610 2003-09-25  Simon Josefsson  <jas@extundo.com>
110612         * lib/xgetdomainname.h: New file.
110613         * lib/xgetdomainname.c: New file.
110615 2003-09-25  Simon Josefsson  <jas@extundo.com>
110616             Bruno Haible  <bruno@clisp.org>
110618         * modules/getdomainname: New file.
110619         * modules/xgetdomainname: New file.
110620         * MODULES.html.sh (func_all_modules): Add getdomainname,
110621         xgetdomainname.
110623 2003-09-25  Simon Josefsson  <jas@extundo.com>
110624             Bruno Haible  <bruno@clisp.org>
110626         * m4/getdomainname.m4: New file.
110628 2003-09-25  Simon Josefsson  <jas@extundo.com>
110629             Bruno Haible  <bruno@clisp.org>
110631         * lib/getdomainname.h: New file.
110632         * lib/getdomainname.c: New file.
110634 2003-09-25  Karl Berry  <karl@gnu.org>
110636         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110638 2003-09-25  Karl Berry  <karl@gnu.org>
110640         * config/install-sh: update from automake.
110642 2003-09-25  Bruno Haible  <bruno@clisp.org>
110644         * modules/version-etc-2: New file, from modules/version-etc with
110645         modifications.
110646         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110648 2003-09-25  Bruno Haible  <bruno@clisp.org>
110650         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110651         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110653 2003-09-24  Simon Josefsson  <jas@extundo.com>
110655         * modules/xgethostname: Add xgethostname.h.
110657 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110659         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110660         the buffer associated with the argument.  Bug reported by
110661         Simon Josefsson.
110663 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110665         * README: Document assumptions that 'int' is at least 32 bits
110666         wide, that integer arithmetic is 2's complement without overflow,
110667         that there are no holes in integer values, that adding sizes of
110668         two nonoverlapping objects can't overflow, and that all-bits-zero
110669         yields scalar zero.  Fix spelling and capitalization typos.
110671 2003-09-19  Karl Berry  <karl@gnu.org>
110673         * lib/argp.h: update from libc.
110675 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110678         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110679         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110681 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110683         * gnulib-tool: Use "test -h", not "test -L", for portability
110684         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110685         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110686         (sed_extract_prog): Issue s commands one-by-one, rather than
110687         using \| in one s command.
110689 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110691         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110692         input error, instead of returning NULL the next time we are called
110693         (and therefore losing track of errno).
110695 2003-09-16  Bruno Haible  <bruno@clisp.org>
110697         * gnulib-tool (func_create_testdir): Warn about duplicated
110698         dependencies.
110700 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110702         * modules/argmatch, modules/fatal, modules/obstack,
110703         modules/xalloc, modules/xgethostname: Sort dependencies by
110704         importance, not alphabetically.
110706 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110708         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110709         fails, so that the caller gets the proper errno.
110711         * lib/readutmp.c (read_utmp): Likewise.
110712         Check for fstat error.  Close stream and free storage
110713         when failing.
110715 2003-09-14  Karl Berry  <karl@gnu.org>
110717         * config/srclist.txt (strdup.c): disable for c89 changes.
110719 2003-09-14  Jim Meyering  <jim@meyering.net>
110721         * lib/getloadavg.c: Correct cpp indentation.
110722         * lib/strdup.c: Likewise.
110723         * lib/vasnprintf.c: Likewise.
110725 2003-09-14  Bruno Haible  <bruno@clisp.org>
110727         * modules/fwriteerror: New file.
110728         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110730 2003-09-14  Bruno Haible  <bruno@clisp.org>
110732         * lib/fwriteerror.h: New file.
110733         * lib/fwriteerror.c: New file.
110735 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110737         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110738         modules/xgethostname, modules/xalloc: Depend on exit.
110740 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110742         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110744         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110745         and AC_MINIX, too, so that their extensions are available.
110747         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110748         This macro has been superseded by gl_BACKUPFILE.
110750         More patches to assume C89 or better.
110752         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110754         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110755         unconditionally.
110756         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110757         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110758         Include <string.h>, <stdlib.h> unconditionally.
110759         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110760         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110761         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110762         headers or for string.h.
110763         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110764         or strtoul.
110766         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110767         headers.
110768         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110769         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110770         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110771         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110774         memcpy, memset.
110775         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110776         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110777         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110778         strtol.
110779         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110780         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110781         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110782         strtoul.
110784 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110786         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110787         * lib/obstack.c [!defined _LIBC]: Likewise.
110788         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110789         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110790         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110792         More changes to assume C89 or better.
110794         * lib/error.c (error_tail): Assume vprintf.
110796         * lib/argmatch.c (getenv): Remove decl.
110797         * lib/progreloc.c (get_full_program_name): Define via prototype.
110798         * lib/setenv.c (clearenv): Likewise.
110799         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110800         needed.
110801         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110802         (malloc, memcpy): Remove decls.
110803         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110804         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110805         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110806         (memcpy): Remove macro.
110807         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110808         (__P): Remove.  All uses removed.
110809         (PTR): Remove.  All uses changed to void *.
110810         (CHAR_BIT, NULL): Remove.
110811         (spaces, zeros, memset_space, memset_zero)
110812         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110813         Remove.
110814         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110815         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110816         Define with prototype.
110817         Remove now-unnecessary prototype decl.
110818         (extra_args_spec): Assume ANSI C.  All uses changed.
110819         (extra_args_spec_iso): Remove.
110820         (my_strftime, emacs_strftimeu): Define via prototype.
110821         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110822         unconditionally.
110823         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110824         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110825         (strtoul, strtol): Remove decls.
110826         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110827         LONG_MAX): Remove.
110828         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110829         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110830         (LOCALE_PARAM_PROTO): New macro.
110831         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110832         (INTERNAL (strtol), strtol): Define with a prototype.
110833         (PARAMS): Remove.  All uses removed.
110834         * lib/tempname.c: Include <string.h> unconditionally.
110835         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110836         * lib/xgethostname.c (main): Define with a prototype.
110837         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110838         Include <stdlib.h> unconditionally.
110839         (calloc, malloc, realloc, free): Remove decls.
110840         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110841         Include <stdlib.h> unconditionally.  Sort include file names.
110842         (strtod): Remove.
110843         (xstrtod): Define with a prototype.
110844         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110845         (strtol, strtoul): Remove decls.
110847 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110849         More patches to assume C89 or better.
110850         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110851         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110852         string.h, memchr, STDC_HEADERS.
110854 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110856         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110857         Include <stdlib.h>, <string.h> unconditionally.
110858         Remove now-unnecessary cast to char *.
110859         * lib/strnlen.c: Include <string.h> unconditionally.
110860         * lib/yesno.c (yesno): Define with a prototype.
110862 2003-09-11  Bruno Haible  <bruno@clisp.org>
110864         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110866 2003-09-10  Jim Meyering  <jim@meyering.net>
110868         * lib/error.c: Correct indentation of cpp directives.
110870 2003-09-10  Bruno Haible  <bruno@clisp.org>
110872         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110873         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110874         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110875         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110876         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110877         <stdlib.h> and <string.h> checks.
110878         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110879         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110881 2003-09-10  Bruno Haible  <bruno@clisp.org>
110883         * lib/strcspn.c: Include <string.h> unconditionally.
110884         * lib/strpbrk.c: Include <string.h> unconditionally.
110885         * lib/strstr.c: Include <string.h> unconditionally.
110886         * lib/unicodeio.c: Include <string.h> unconditionally.
110887         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110888         * lib/unsetenv.c: Likewise.
110889         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110890         * lib/yesno.c: Include <stdlib.h> unconditionally.
110891         (rpmatch): Add prototype.
110893 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110895         More patches to assume C89 or better.
110896         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
110897         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
110898         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
110899         or for string.h.
110900         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
110901         stdlib.h.
110902         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
110903         C headers.
110904         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
110905         string.h.
110906         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
110907         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
110908         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
110909         or for string.h.
110910         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
110911         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
110912         C headers.
110913         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
110914         memcpy.
110915         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
110916         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
110917         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
110918         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
110919         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
110920         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
110921         string.h, free.
110922         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
110923         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
110924         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
110925         C headers, or for string.h.
110926         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
110927         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
110928         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
110929         headers, memory.h, stdlib.h, string.h, strings.h.
110930         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
110931         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
110932         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
110933         strchr.
110934         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
110935         headers, memory.h, string.h.
110936         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
110937         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
110938         free.
110939         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
110940         headers.
110941         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
110942         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
110943         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
110944         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
110945         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
110947 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110949         More K&R removal.
110951         * lib/acosl.c (main): Use a prototype.
110952         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
110953         tanl.c: Likewise.
110955         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
110957         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
110958         (getopt, etopt_long, getopt_long_only, _getopt_internal)
110959         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
110960         with a prototype.
110961         * lib/getopt.c (const): Remove macro.
110962         Include <string.h> unconditionally.
110963         (my_index): Remove; all uses changed to strchr.
110964         (strlen): Remove decl.
110965         (exchange): Remove forward decl; no longer needed.
110966         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
110967         Define with prototype.
110968         * lib/getopt1.c (const): Remove macro.
110969         (getopt_long, getopt_long_only, main): Define with prototype.
110971         * lib/getugroups.c: Include <string.h> unconditionally.
110973         * lib/getusershell.c: Include <stdlib.h> unconditionally.
110974         (getusershell, setusershell, endusershell, readname, main):
110975         Define with prototypes.
110977         * lib/group-member.c: Include group-member.h first.
110978         Include <stdlib.h> unconditionally.
110980         * lib/hard-locale.c: Include hard-locale.h first.
110981         Include <stdlib.h>, <string.h> unconditionally.
110983         * lib/hash.c (free, malloc): Remove decls.
110984         Include <stdlib.h> unconditionally.
110986         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
110987         (getenv): Do not declare.
110989         * lib/idcache.c: Include <string.h> unconditionally.
110991         * lib/long-options.c: Include long-options.h first, to test interface.
110992         Include <stdlib.h> unconditionally.
110994         * lib/makepath.c: Include makepath.h first, to test interface.
110995         Include <stdlib.h> and <string.h> unconditionally.
110997         * lib/linebuffer.c: Include <stdlib.h>.
110998         (free): Remove decl.
111000         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111001         stddef.h. rpl_malloc returns void *, not char *.
111002         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111003         prototype.
111005         * lib/md5.h: Include <limits.h> unconditionally.
111006         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111007         (__P): Remove; all uses removed.
111008         * lib/md5.c: Include "md5.h" first.
111009         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111010         md5_buffer, md5_process_bytes, md5_process_block):
111011         Define with prototypes.
111012         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111013         * lib/sha.c: Include "sha.h" first.
111014         Include <stdlib.h>, <string.h> unconditionally.
111016         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111017         * lib/memcmp.c (__ptr_t): Likewise.
111018         * lib/memrchr.c (__ptr_t): Likewise.
111019         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111020         Include <string.h> unconditionally.
111021         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111022         * lib/memchr.c: Include <stdlib.h> unconditionally.
111023         * lib/memchr.c (LONG_MAX): Remove.
111024         * lib/memrchr.c (LONG_MAX): Likewise.
111025         * lib/memchr.c (__memchr): Define via a prototype.
111026         * lib/memrchr.c (__memrchr): Likewise.
111027         * lib/memcmp.c (__P): Remove, and remove all uses.
111028         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111029         Remove forward decls; no longer needed.
111030         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111031         Use types required by C89 in prototype.
111033         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111034         * lib/savedir.c: Likewise.
111035         * lib/mkdir.c (free): Remove decl.
111036         * lib/rmdir.c (rmdir): Define with a prototype.
111037         * lib/savedir.c: Include savedir.h first, to test interface.
111039         * lib/mktime.c (STDC_HEADERS): Remove.
111040         Include <stdlib.h>, <string.h> unconditionally.
111042         * lib/modechange.c: Include <stdlib.h> unconditionally.
111043         (malloc): Remove decl.
111045         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111046         (free): Remove decl.
111048         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111049         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111050         (This type really should be intptr_t, but that's a C99ism.)
111051         (_obstack_memcpy): Remove: all uses changed to memcpy.
111052         Include <string.h> unconditionally.
111053         (struct obstack): Assume __STDC__ for types of members
111054         chunkfun, freefun, extra_arg.
111055         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111056         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111057         obstack_begin, obstack_specify_allocation,
111058         obstack_specify_allocation_with_arg, obstack_chunkfun,
111059         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111060         Remove unprototyped decls and the macros that use them.
111061         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111062         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111063         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111064         (defined __STDC__ && __STDC__)]:
111065         Remove nonprototyped code.
111066         Include <stdlib.h> unconditionally.
111067         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111068         _obstack_allocated_p, _obstack_free, obstack_free,
111069         _obstack_memory_used, print_and_abort):
111070         Define using prototypes.
111071         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111072         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111073         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111074         obstack_next_free, obstack_object_size, obstack_room) [0]:
111075         Remove unused, unprototyped code.
111077         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111079         * lib/physmem.c (physmem_total, physmem_available, main): Define
111080         with prototypes.
111082         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111083         (main): Define with a prototype.
111085         * lib/posixver.c (getenv): Remove decl.
111087         * lib/putenv.c (malloc): Returns void *, not char *.
111088         Include <string.h> unconditionally.
111089         (strchr, memcpy, NULL): Do not define.
111091         * lib/readtokens.c: Include readtokens.h first, to test interface.
111092         Include <stdlib.h>, <string.h> unconditionally.
111093         (init_tokenbuffer): Define with a prototype.
111095         * lib/regex.c (PARAMS): Remove.  All uses removed.
111096         All uses of _RE_ARGS removed, too.
111097         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111098         unconditionally.
111099         (bzero): Assume memset exists.
111100         (memcmp, memcpy, NULL): Remove.
111101         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111102         char, or assignments to local vars of type signed char.
111103         (init_syntax_once, PREFIX(extract_number_and_incr),
111104         PREFIX(print_partial_compiled_pattern),
111105         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111106         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111107         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111108         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111109         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111110         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111111         wcs_compile_range, byte_compile_range, truncate_wchar,
111112         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111113         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111114         count_mbs_length, wcs_re_match_2_internal,
111115         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111116         PREFIX(alt_match_null_string_p),
111117         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111118         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111119         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111120         now-unnecessary declaration, if any.
111121         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111122         regcomp, regexec):
111123         Remove now-unnecessary casts among pointer types.
111124         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111126         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111127         (free): Remove decl.
111129         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111131         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111132         (free): Remove decl.
111134         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111135         * lib/xgetcwd.c: Likewise.
111137         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111138         (free): Remove decl.
111140         * lib/strchrnul.c (strchrnul): Define with a prototype.
111141         Fix bug: c_in was not converted to char before searching.
111143         The following changes are not K&R related:
111145         * lib/group-member.h: Include <sys/types.h>, so that this file is
111146         self-contained.
111147         * lib/makepath.h: Likewise.
111149         * lib/getusershell.c (readname, default_index, line_size, readname):
111150         Use size_t, not int, for sizes.
111151         (readname): If the size overflows, report an error instead of
111152         looping forever.
111154 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111156         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111157         libc.
111159 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111161         * README: New section: portability guidelines.
111163 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111165         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111166         C89 spec.
111168 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111170         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111172 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111174         Assume C89 or better; remove K&R cruft.
111175         A few of these changes were first proposed by Derek Robert Price
111176         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111178         * lib/addext.c: Include <string.h> unconditionally.
111179         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111180         Don't declare getenv or malloc.
111182         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111183         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111184         (NULL): Remove.
111185         (find_stack_direction, alloca): Use prototypes.
111187         * lib/atexit.c (atexit): Define using a prototype.
111189         * lib/basename.c, dirname.c, stripslash.c:
111190         Include <string.h> unconditionally.
111192         * lib/bcopy.c: Include <stddef.h>.
111193         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111195         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111197         * lib/error.h (error, error_at_line, error_print_progname)
111198         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111199         * lib/error.c: Include error.h first, to check interface.
111200         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111201         (VA_START): Remove; all uses changeed to va_start.
111202         (exit, strerror): Remove decls.
111203         (error_print_progname): Prototype uncondionally.
111204         Don't include <errno.h>; no longer needed.
111205         (private_strerror): Remove.
111206         (error_tail): Always define.
111207         (error, error_at_line): Assume C89 or better; always use prototypes.
111208         * lib/fatal.c: Include "fatal.h" first, to test interface.
111209         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111210         (VA_START): Remove; all uses changed to va_start.
111211         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111212         this case.
111213         (exit): Remove decl.
111214         (fatal): Prototype unconditionally.  Assume va_start works.
111215         Abort at end, to pacify gcc.
111217         * lib/euidaccess.c (main): Define with a prototype.
111219         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111221         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111223         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111224         prototypes.
111225         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111226         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111227         (getenv): Remove decl.
111228         (fnmatch): Define using a prototype.
111229         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111230         (FCT): Define using a prototype.
111232         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111234         * lib/gethostname.c: Include <stddef.h>.
111235         (gethostname): Define with prototype.  Length is size_t, not int.
111237 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111239         Assume C89 or better; remove K&R cruft.
111240         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111241         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111242         string.h, getenv, malloc.
111243         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111244         headers.
111245         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111246         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111247         do not check for strerror.
111248         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111249         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111250         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111251         do not check for doprnt or vprintf.
111252         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111253         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111257         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111258         getversion.c should have been removed then, but was accidentally
111259         preserved.
111261         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111262         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111264 2003-09-08  Karl Berry  <karl@gnu.org>
111266         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111267                 config, forget about prep.
111269         * config/depcomp, missing: update from automake.
111271 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111273         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111274         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111276 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111278         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111279         copy_tm_result.  Bug reported by Simon Josefsson in
111280         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111282 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111284         * m4/time_r.m4: New file.
111285         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111286         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111287         is. Check for timegm declaration.
111288         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111289         Do not check for gmtime_r.
111290         Replace mktime if __mktime_internal does not exist and if mktime
111291         hasn't been replaced already.
111293 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111295         * lib/time_r.c, lib/time_r.h: New files.
111297         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111298         __localtime_r.
111299         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111300         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111302         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111303         __gmtime_r.
111304         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111305         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111306         Include <time_r.h>.
111308         * lib/timegm.c: Switch to glibc implementation, with the following
111309         changes:
111310         [defined HAVE_CONFIG_H]: Include <config.h>.
111311         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111312         (__mktime_internal) [!defined _LIBC]: New decl.
111313         (__gmtime_r) [!defined _LIBC]: New macro and function.
111314         (timegm): Use a prototype, since gnulib assumes C89.
111315         Do not bother declaring tmp to be const, as it's not really usefu.
111316         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111317         (timegm): Declare only if HAVE_DECL_TIMEGM.
111319 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111321         * MODULES.html.sh (func_all_modules): Add time_r.
111322         * modules/time_r: New file.
111323         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111324         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111326 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111328         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111329         Bug reported by Lute Kamstra in
111330         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111332         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111333         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111334         course with correspondingly smaller numbers for tomorrow and
111335         yesterday.  From Tadayoshi Funaba.  Originally installed into
111336         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111337         coreutils merge?).
111339 2003-08-31  Simon Josefsson  <jas@extundo.com>
111341         * modules/timegm: New file.
111342         * MODULES.html.sh (func_all_modules): Add timegm.
111344 2003-08-31  Simon Josefsson  <jas@extundo.com>
111346         * m4/timegm.m4: New file.
111348 2003-08-31  Simon Josefsson  <jas@extundo.com>
111350         * lib/timegm.h: New file.
111351         * lib/timegm.c: New file.  Based on
111352         wget-1.8.2/src/http.c:mktime_from_utc.
111354 2003-08-31  Karl Berry  <karl@gnu.org>
111356         * lib/argp.h: update from libc.
111358 2003-08-28  Bruno Haible  <bruno@clisp.org>
111360         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111361         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111362         followed by '#define fnmatch fnmatch_posix' gives an error.
111364 2003-08-28  Bruno Haible  <bruno@clisp.org>
111366         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111367         warning on QNX, which defines O_BINARY to 000000.
111369 2003-08-27  Jim Meyering  <jim@meyering.net>
111371         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111372         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111373         would fail after 32.  Reported by Danny Levinson.  Details here:
111374         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111376 2003-08-24  Bruno Haible  <bruno@clisp.org>
111378         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111379         MSVC7 <stdio.h> is included later.
111381 2003-08-22  Simon Josefsson  <jas@extundo.com>
111383         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111385 2003-08-20  Karl Berry  <karl@gnu.org>
111387         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111389 2003-08-20  Bruno Haible  <bruno@clisp.org>
111391         * modules/progname: New file.
111392         * MODULES.html.sh (func_all_modules): Add progname.
111394 2003-08-20  Bruno Haible  <bruno@clisp.org>
111396         * lib/progname.h: New file, from GNU gettext.
111397         * lib/progname.c: New file, from GNU gettext.
111398         * lib/progreloc.c: New file, from GNU gettext.
111400 2003-08-19  Jim Meyering  <jim@meyering.net>
111402         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111403         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111405 2003-08-19  Bruno Haible  <bruno@clisp.org>
111407         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111408         more.
111410 2003-08-19  Bruno Haible  <bruno@clisp.org>
111412         * lib/xstrdup.c: Assume <string.h> exists.
111414 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111416         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111417         in makefile rules.
111419 2003-08-18  Jim Meyering  <jim@meyering.net>
111421         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111422         * m4/lib-ld.m4: Likewise.
111424 2003-08-18  Jim Meyering  <jim@meyering.net>
111426         * lib/setenv.h: Indent nested cpp directive.
111427         * lib/vasnprintf.c: Remove trailing blanks.
111429 2003-08-17  Simon Josefsson  <jas@extundo.com>
111431         * modules/xstrndup: New file.
111432         * MODULES.html.sh (func_all_modules): Add xstrndup.
111434 2003-08-17  Simon Josefsson  <jas@extundo.com>
111436         * modules/argp: Fix autoconf macro name. Add more dependencies.
111438 2003-08-17  Simon Josefsson  <jas@extundo.com>
111440         * m4/xstrndup.m4: New file.
111442 2003-08-17  Simon Josefsson  <jas@extundo.com>
111444         * m4/argp.m4: New file.
111446 2003-08-17  Simon Josefsson  <jas@extundo.com>
111447             Bruno Haible  <bruno@clisp.org>
111449         * lib/xstrndup.h: New file.
111450         * lib/xstrndup.c: New file.
111452 2003-08-17  Bruno Haible  <bruno@clisp.org>
111454         * modules/strndup (Files, Include): Add lib/strndup.h.
111456 2003-08-17  Bruno Haible  <bruno@clisp.org>
111458         * modules/euidaccess (Files): Add lib/euidaccess.h.
111460 2003-08-17  Bruno Haible  <bruno@clisp.org>
111462         * lib/strndup.h: New file.
111464 2003-08-17  Bruno Haible  <bruno@clisp.org>
111466         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111467         like AC_GNU_SOURCE.
111468         * modules/extensions (configure.ac): Comment out the invocation of
111469         gl_USE_SYSTEM_EXTENSIONS.
111471 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111473         Merges from coreutils, etc.
111474         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111475         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111476         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111477         fixing a typo.
111478         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111479         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111481 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111483         Document merge from coreutils.
111484         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111485         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111486         * modules/utime: Add m4/utimes-null.m4.
111488 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111490         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111491         space, undoing this 2003-08-12 change:
111492         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111494 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111496         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111497         strtoul.c from libc, undoing this 2003-08-12 change:
111498         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111500 2003-08-16  Jim Meyering  <jim@meyering.net>
111502         Merges from coreutils.
111503         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111504         prefix.  Adjust cache variables similarly.  Create 500 rather than
111505         just 300 files, to exercise bug on Darwin6.5, too.
111506         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111507         $missing_dir.
111508         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111509         AM_SYS_POSIX_TERMIOS.
111510         Reported by mkc@mathdogs.com.
111511         Also change use of $am_cv_sys_posix_termios
111512         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111513         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111514         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111515         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111516         in /proc/mounts until it finds one with matching device number.  This
111517         is unnecessary when the FILE argument *is* a mount point.  No stat call
111518         is necessary in that case.  So, disable the statvfs-testing code on
111519         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111520         as RedHat bug# 84846.
111521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111522         to 1MB, so as not to render systems with no stack size limit (e.g.,
111523         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111524         Include <unistd.h>.  On some systems,
111525         it is required for the definition of _SC_PAGESIZE.
111527 2003-08-16  Jim Meyering  <jim@meyering.net>
111529         Merge from coreutils.
111530         * lib/xstrtoimax.c: #else #if -> #elif.
111531         * lib/xstrtoumax.c: Likewise.
111533 2003-08-16  Jim Meyering  <jim@meyering.net>
111535         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111536         * m4/utimes.m4: Removed.
111537         * m4/utimes-null.m4: Renamed from utimes.m4.
111539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111540         to 1MB, so as not to render systems with no stack size limit (e.g.,
111541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111542         Include <unistd.h>.  On some systems,
111543         it is required for the definition of _SC_PAGESIZE.
111545 2003-08-16  Jim Meyering  <jim@meyering.net>
111546         and Paul Eggert  <eggert@cs.ucla.edu>
111548         Merges from coreutils, etc.
111550         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111551         using the latest version from cvs.  This avoids problems with #line
111552         directives using a vendor (Sun) compiler.
111553         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111554         Don't set GETGROUPS_LIB here; now it's
111555         done via getgroups.m4's wrapper function.
111556         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111557         rather than just in sh-util/configure.in, so that the
111558         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111559         same.
111560         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111561         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111562         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111563         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111564         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111565         Remove code that is now done by the newly-required macros.
111566         Append $(EXEEXT) to DF_PROG.
111567         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111568         Do not invoke or require the following here,
111569         since prereq.m4 or some gnulib .m4 now does this for us:
111570         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111571         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111572         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111573         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111574         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111575         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111576         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111577         AC_FUNC_OBSTACK.
111578         Do not replace the following functions, as this is now the job
111579         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111580         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111581         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111582         atexit getpass, strdup, getpagesize.
111583         Replace 'raise'.
111584         Do not check for the following functions, as this is now the job
111585         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111586         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111587         setregid.
111588         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111589         Check for sys/sysctl.h.
111590         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111591         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111592         of checking for ssize_t ourselves.
111594         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111595         Require every macro that gnulib/modules/* suggests for us.
111596         (jm_PREREQ_ADDEXT): New macro.
111597         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111598         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111600         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111601         (gl_PHYSMEM): Use it.
111602         Also check for `table' function.
111603         Check for new headers and functions.
111604         Add check for sys/sysmp.h.
111605         With suggestions from Kaveh Ghazi.
111606         Ignore headers that are present but cannot be compiled.  This
111607         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111608         C 5.4.
111610 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111612         Document merge from coreutils.
111613         * modules/userspec: Depend on posixver.
111614         * modules/strftime: Depend on tzset.
111616 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111618         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111619         rather than tab, after '#' in shell-script copyright notices.
111620         Suggested by Bruno Haible.
111622 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111624         * config/srclist-update: Use three spaces, rather than tab, after '#'
111625         in shell-script copyright notices.  Suggested by Bruno Haible.
111626         Remove unnecessary parenthesization in regular expression.
111628 2003-08-15  Jim Meyering  <jim@meyering.net>
111630         Merge from coreutils.
111631         * lib/xgethostname.c: Include <stdlib.h>.
111632         (xghostname): Don't exit for anything other than memory-related
111633         failure; just return NULL.
111634         * lib/userspec.c: Include "posixver.h".
111635         (parse_user_spec): Accept `.' as a separator only
111636         in pre-POSIX-200112 mode.
111637         * lib/strtoimax.c: Use #elif rather than #else #if.
111638         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111639         Remove function, now that we can rely on a working tzset function.
111640         [!_LIBC]: Ensure that the required autoconf test has been run.
111641         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111642         Use underlying_strftime for %r.
111643         * lib/sha.c: Merge in some clean-up and optimization changes from
111644         glibc.
111645         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111646         Ensure that it is a multiple of 64.
111647         Rearrange loop exit tests so as to avoid performing an
111648         additional fread after encountering an error or EOF.
111649         * lib/realloc.c: Update copyright date.
111651 2003-08-15  Jim Meyering  <jim@meyering.net>
111652         and Paul Eggert  <eggert@twinsun.com>
111654         Merge from coreutils.
111655         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111656         member but strut utmpx does not.  Needed for AIX 4.3.3.
111657         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111659 2003-08-15  Jim Meyering  <jim@meyering.net>
111660         and Paul Eggert  <eggert@cs.ucla.edu>
111662         Merges from coreutils, etc.
111663         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111664         Require gl_FUNC_TZSET_CLOBBER.
111665         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111666         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111667         members.
111669 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111671         Help the merge from coreutils.
111672         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111673         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111674         * m4/tzset.m4: Use it too.
111676 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111678         * modules/tzset: New file.
111680 2003-08-14  Jim Meyering  <jim@meyering.net>
111682         Merges from coreutils.
111683         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111684         variable names, rather than @FNMATCH_H@.
111685         * modules/alloca: Likewise for $(ALLOCA_H).
111687         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111688         the three copies of the literal target, `fnmatch.h'.
111689         * modules/alloca (alloca.h): Likewise.
111691 2003-08-14  Jim Meyering  <jim@meyering.net>
111693         Merge from coreutils.
111694         * m4/tzset.m4: New file.
111695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111696         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111697         otherwise, AIX 5.1 systems would end up using the latter.
111698         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111699         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111700         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111701         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111703 2003-08-14  Jim Meyering  <jim@meyering.net>
111705         Merge from coreutils.
111706         * lib/obstack.h: Whitespace changes.
111707         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111708         and xcalloc return values.
111709         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111710         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111711         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111712         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111713         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111714         error from mntctl.
111715         Use mntctl's return value to drive the entry-processing loop, since
111716         we can't rely on the value of the vmt_length member in the last
111717         entry.  On some systems doing so could result in exhausting
111718         virtual memory.  Based in part on a patch from Mike Jetzer.
111720 2003-08-14  Jim Meyering  <jim@meyering.net>
111721         and Paul Eggert  <eggert@twinsun.com>
111723         Merges from coreutils, plus other fixes.
111724         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111725         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111726         for credits and details.  Thanks to Kaveh Ghazi for helping
111727         to keep these files in sync.
111728         (ARRAY_SIZE): Define it.
111729         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111730         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111731         (memcasecmp): Don't assume size_t fits in unsigned int.
111732         Remove casts and duplicate code.
111733         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111734         (memcpy): Remove definition.
111735         Merge in some clean-up and optimization changes from glibc.
111736         [BLOCKSIZE]: Move definition to top of file.
111737         Ensure that it is a multiple of 64.
111738         Rearrange loop exit tests so as to avoid performing an
111739         additional fread after encountering an error or EOF.
111740         * lib/md5.h (md5_uintptr): Define.
111741         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111742         return to the initial working directory.  Preserve errno
111743         for caller.
111744         * lib/idcache.c: Include "xalloc.h".
111745         (xmalloc, xrealloc): Remove decls.
111746         (getuser): Remove casts no longer required in C89.
111747         * lib/human.c: Include stdio.h, for sprintf.
111748         * lib/group-member.c: Include "xalloc.h".
111749         (xmalloc, xrealloc): Remove decls.
111750         (get_group_info): Remove casts no longer required in C89.
111751         * lib/getusershell.c (readname): Remove casts no longer required in
111752         C89.
111753         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111754         * lib/getline.c: Whitespace fix, from coreutils.
111756 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111758         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111759         Check for isascii.
111761         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111762         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111763         Undo previous (whitespace-only) change.
111765 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111767         * lib/exclude.c: Include <ctype.h>
111768         (IN_CTYPE_DOMAIN): New macro.
111769         (is_space): New fn.
111770         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111771         and empty lines.
111773         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111774         Undo previous (whitespace-only) change.
111776 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111778         * config/srclist-update: Change update back to the old behavior,
111779         leaving whitespace alone.  Use one 'sed' command rather than a
111780         pipeline.
111781         (fixlicense): Now a variable, not a function.
111782         (remove_trailing_blanks): Remove.
111783         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111784         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111785         Undo previous (whitespace-only) change.
111787 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111789         Merge from coreutils.
111790         * modules/euidaccess: Add lib_SOURCES, include for new
111791         file euidaccess.h
111793 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111795         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111796         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111797         Normalize leading white space and remove trailing white space.
111799         Merge from coreutils
111800         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111802         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111803         0.12.1.  These files are now being upgraded automatically by
111804         ../config/srclist-update.
111806 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111808         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111809         Normalize leading white space and remove trailing white space.
111810         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111811         notice, as per ../config/srclist-update.
111813         Merge from coreutils.
111814         * lib/euidaccess.h: New file.
111815         * lib/euidaccess.c: Include it.
111816         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111817         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111818         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111820 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111822         * config/srclist-update: Add copyright notice.
111823         (remove_id_lines, remove_trailing_blanks): New constants.
111824         (fixfile): Use them to normalize spacing a bit in copied files.
111825         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111826         Normalize leading white space and remove trailing white space.
111828         * config/texinfo.tex: Sync with texinfo.
111830         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111831         strtoul.c from libc, to merge coreutils whitespace changes.
111833         * config/srclist.txt: Get the following m4 files from gettext:
111834         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111835         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111836         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111837         wint_t.m4.
111839 2003-08-12  Karl Berry  <karl@gnu.org>
111841         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111842         been made.
111844 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111846         * modules/gnu-source, m4/gnu-source.m4:
111847         Remove; we're assuming Autoconf 2.54 or later now.
111848         Suggested by Bruno Haible.
111849         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111851 2003-08-11  Bruno Haible  <bruno@clisp.org>
111853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111855 2003-08-11  Bruno Haible  <bruno@clisp.org>
111857         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111858         (vasnprintf): Use it instead of wcslen.
111860 2003-08-11  Bruno Haible  <bruno@clisp.org>
111862         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111863         value to ensure that _Bool promotes to int. Use #define for _Bool when
111864         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111866 2003-08-10  Karl Berry  <karl@gnu.org>
111868         * lib/regex.h: update from libc (whitespace fix).
111870 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111872         Merge some files from coreutils.  These changes were
111873         originally made by Jim Meyering.
111874         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111875         many older Unixes require this.
111876         * lib/alloca.c (alloca): Remove cast to argument of free;
111877         no longer needed in C89.
111878         * lib/alloca_.h, regex.h: Fix white space to match
111879         what GNU indent does.
111881 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111883         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111884         apparently Emacs's Unicode mode got confused before my 2003-08-05
111885         checkin.
111887 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111889         * m4/extensions.m4: New file.
111890         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111891         Require gl_USE_SYSTEM_EXTENSIONS.
111892         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111893         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
111895 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111897         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
111898         * modules/extensions, modules/gnu-source: New files.
111899         * modules/timespec, modules/unlocked-io: Depend on extensions.
111901 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111903         * modules/restrict: New file.
111904         * MODULES.html.sh (func_all_modules): Add restrict.
111905         * modules/regex: Depend on restrict.
111907 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111909         * m4/restrict.m4: New file.
111910         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
111912 2003-08-07  Bruno Haible  <bruno@clisp.org>
111914         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
111915         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
111917 2003-08-07  Bruno Haible  <bruno@clisp.org>
111919         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
111920         makes the module 'getndelim2' compatible with the module 'getline'.
111922 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111924         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
111925         byte with "\201" to avoid glitches when editing that source file
111926         with multi-gnome-terminal.
111928 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111930         * lib/bumpalloc.h: Remove.
111932 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111934         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
111935         * modules/bumpalloc: Remove.
111937 2003-08-04  Paul Eggert  <eggert@twinsun.com>
111939         * lib/getloadavg.c: Change copyright notice and spacing to conform to
111940         GNU coding style.
111942         Merge from coreutils.
111943         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
111944         1. From glibc.
111945         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
111946         from Karl Berry, implemented by Jim Meyering.
111947         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
111948         from Dmitry V. Levin.
111949         Remove anachronistic cast of xrealloc.
111950         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
111951         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
111952         type. Otherwise, it wouldn't compile with at least /bin/cc on
111953         ymp-cray-unicos9.0.2.X.
111954         Combine two mostly-identical uses of alloca into one.
111955         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
111957 2003-08-04  Dave Love  <d.love@dl.ac.uk>
111959         [From Emacs.]
111961         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
111962         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
111963         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
111964         obsolete NLIST_NAME_UNION.
111965         [__GNU__]: Undef BSD and FSCALE.
111966         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
111968 2003-08-03  Paul Eggert  <eggert@twinsun.com>
111970         * lib/stdbool_.h (_Bool): Make it signed char, instead of
111971         an enum type, so that it's guaranteed to promote to int.  See:
111972         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
111974 2003-08-03  Karl Berry  <karl@gnu.org>
111976         * config/depcomp: update from automake.
111978 2003-07-31  Paul Eggert  <eggert@twinsun.com>
111980         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
111981         (strerror): Don't assume that a printable int fits in 14 bytes.
111983 2003-07-31  Bruno Haible  <bruno@clisp.org>
111985         * modules/getpass-gnu: New file.
111986         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
111988 2003-07-31  Bruno Haible  <bruno@clisp.org>
111990         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
111992 2003-07-24  Karl Berry  <karl@gnu.org>
111994         * config/missing: update from automake.
111996 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
111997             Bruno Haible  <bruno@clisp.org>
111999         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112000         * lib/getline.c (getline, getdelim): Likewise.
112001         Remove _GNU_SOURCE define; now it's defined in config.h through
112002         m4/getline.m4.
112004 2003-07-23  Karl Berry  <karl@gnu.org>
112006         * config/config.sub: update from prep.
112008 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112010         * modules/xalloc (Depends-on): Add exitfail.
112011         * modules/xmemcoll: Likewise.
112013 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112015         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112016         over-parenthesization in macros.
112018         Sync with coreutils.
112020         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112021         required by C99.
112023         Use `exit_failure' for xalloc and xmemcoll instead of their own
112024         private exit-failure variables.
112025         * lib/xalloc.h (xalloc_exit_failure): Remove.
112026         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112027         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112028         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112029         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112030         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112032 2003-07-20  Jim Meyering  <jim@meyering.net>
112034         * modules/closeout (Depends-on): Add exitfail.
112035         Suggestion from Bruno Haible.
112037 2003-07-19  Karl Berry  <karl@gnu.org>
112039         * config/config.sub: update from prep.
112041 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112043         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112044         Remove.
112045         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112046         to test that it can stand by itself.  Include "exitfail.h".
112047         Clients should set exit_failure instead.
112048         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112050 2003-07-18  Bruno Haible  <bruno@clisp.org>
112052         * modules/getndelim2: New file.
112053         * modules/getline: Share files with module getndelim2.
112054         * modules/getnline: Depend on getndelim2 instead of sharing files with
112055         it. Add getnline.c to lib_SOURCES.
112056         * MODULES.html.sh (func_all_modules): Add getndelim2.
112058 2003-07-18  Bruno Haible  <bruno@clisp.org>
112060         * m4/getndelim2.m4: New file.
112061         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112062         invoke gl_PREREQ_GETNDELIM2.
112063         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112064         gl_PREREQ_GETNDELIM2.
112065         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112066         gl_GETNDELIM2.
112068 2003-07-18  Bruno Haible  <bruno@clisp.org>
112070         * lib/getndelim2.h: New file.
112071         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112072         getndelim2.h.
112073         (getndelim2): Make non-static. Change return type to ssize_t.
112074         * lib/getline.h: Change argument names.
112075         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112076         * lib/getnline.c: Include getndelim2.h.
112078 2003-07-18  Andreas Schwab  <schwab@suse.de>
112080         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112082 2003-07-17  Karl Berry  <karl@gnu.org>
112084         * config/config.sub: update from prep.
112086 2003-07-17  Bruno Haible  <bruno@clisp.org>
112088         * modules/getnline: New file.
112089         * modules/getline: Add lib/getndelim2.c to source file list.
112090         * MODULES.html.sh (func_all_modules): Add getnline.
112092 2003-07-17  Bruno Haible  <bruno@clisp.org>
112094         * m4/getnline.m4: New file.
112096 2003-07-17  Bruno Haible  <bruno@clisp.org>
112098         * m4/Makefile.am.in: Remove file.
112099         * m4/Makefile.am: Remove file.
112100         * m4/Makefile.in: Remove file.
112102 2003-07-17  Bruno Haible  <bruno@clisp.org>
112104         * lib/getnline.h: New file.
112105         * lib/getnline.c: New file.
112106         * lib/getndelim2.c: New file, extracted from getline.c.
112107         (getndelim2): Renamed from getdelim2, with added nmax argument.
112108         * lib/getline.c: Include getndelim2.c.
112109         (getdelim2): Moved out to getndelim2.c.
112110         (getline, getdelim): Update.
112112 2003-07-17  Bruno Haible  <bruno@clisp.org>
112114         * lib/Makefile.am: Remove file.
112115         * lib/Makefile.in: Remove file.
112117 2003-07-17  Bruno Haible  <bruno@clisp.org>
112119         * configure.in: Remove file.
112120         * Makefile.in: Remove file.
112122 2003-07-17  Bruno Haible  <bruno@clisp.org>
112124         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112126 2003-07-16  Karl Berry  <karl@gnu.org>
112128         * config/srclist-update: was running fixlicense twice, which caused
112129                 texinfo.tex to be nullified for some reason.  Simplify,
112130                 $gplsrc is no longer needed as far as I can see?
112132 2003-07-16  Jim Meyering  <jim@meyering.net>
112134         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112136 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112138         * config/srclist.txt: Get the following files from gettext-runtime/intl
112139         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112140         ref-del.sin.  From Bruno Haible.
112141         * config/srclist-update (fixfile): Change grep pattern again, since the
112142         previous fix didn't work (there was another trailing $).  Use
112143         '[$]' to escape the $s.
112145 2003-07-15  Karl Berry  <karl@gnu.org>
112147         * lib/vasnprintf.c: update from gettext.
112149 2003-07-15  Karl Berry  <karl@gnu.org>
112151         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112152         gets expanded when surrounded by '$'.
112154 2003-07-15  Jim Meyering  <jim@meyering.net>
112156         * modules/save-cwd: Don't depend on error.  From Derek Price.
112158 2003-07-15  Jim Meyering  <jim@meyering.net>
112160         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112162 2003-07-14  Simon Josefsson  <jas@extundo.com>
112164         * modules/mempcpy: New file.
112165         * MODULES.html.sh (func_all_modules): Add mempcpy.
112167 2003-07-14  Simon Josefsson  <jas@extundo.com>
112169         * m4/mempcpy.m4: New file.
112171 2003-07-14  Simon Josefsson  <jas@extundo.com>
112173         * lib/mempcpy.h: New file.
112174         * lib/mempcpy.c: New file.
112176 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112178         * modules/getdate, modules/posixtm: Depend on mktime.
112180 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112182         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112183         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112184         unicodeio.c, unicodeio.h, unlocked-io.h:
112185         Switch from LGPL to GPL.
112187 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112189         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112190         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112191         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112192         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112193         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112194         updated automatically by ../config/srclist-update.  This changes
112195         their license from LPGL to GPL.
112197 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112199         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112200         assumed to refer to the root of the most recent stable gettext version.
112201         * config/srclistvars.sh: Add defaults for eggert.
112202         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112203         Match "This program" as well as "The program".  This is needed
112204         for gettext.
112206 2003-07-14  Jim Meyering  <jim@meyering.net>
112208         Don't emit diagnostics.  Let callers do that.
112209         * lib/save-cwd.c: Don't include "error.h".
112210         (save_cwd): Don't call error.  Ensure that errno is valid
112211         when returning nonzero.
112213         * lib/save-cwd.h (restore_cwd): Update prototype.
112214         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112215         Simplify.  Don't call error upon failure.  Let callers do that.
112216         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112217         when auditing is enabled.  But don't bother updating the #if.
112219 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112221         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112222         it breaks C++ compilation.
112223         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112225 2003-07-10  Simon Josefsson  <jas@extundo.com>
112227         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112229 2003-07-10  Jim Meyering  <jim@meyering.net>
112231         * m4/clock_time.m4: Remove trailing blank.
112232         * m4/intmax_t.m4: Likewise.
112234 2003-07-10  Jim Meyering  <jim@meyering.net>
112236         * lib/vasnprintf.c: Remove trailing blanks.
112237         Make cpp indentation consistent.
112239 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112241         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112242         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112243         Switch from LGPL to GPL.
112245 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112247         * config/srclist.txt: Sort sublists.  Add
112248         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112249         that differ from gnulib for one reason or another; we'd like this list
112250         to be smaller but for now let's document what we have.
112252 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112254         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112255         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112256         and sweeter "eval x=$x".
112257         * config/srclist.txt: Get lib/argp* from glibc.
112259 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112261         * lib/mktime.c: Fix some boundary cases and remove need for floating
112262         point.
112264         Issue a compile-time diagnostic if time_t is floating point, or if
112265         two's complement arithmetic is not in effect, or if arithmetic
112266         right shift does not propagate the sign.  These assumptions were
112267         all in the original code but they weren't checked.
112269         (TIME_T_MIDPOINT, verify): New macros.
112270         (__isleap): Remove; it has integer overflow problems.
112271         (leapyear): New function, without those problems.
112272         (ydhms_tm_diff): Remove; splitting into two parts.
112273         (ydhms_diff): New function, containing the arithmetic part of
112274         the old ydhms_tm_diff function.  Issue a compile-time
112275         diagnostic if we are not using C99 integer division.
112276         Avoid casts when possible.
112277         (guess_time_tm): New function, containing the checking part of
112278         the old ydhms_tm_diff function.  Return the new value, rather than
112279         the difference between it and the old.  Accept a new argument T
112280         so that *T specifies the old value.  Check for overflow in the result.
112282         (__mktime_internal): Use a time_t offset, not a long int offset.
112283         This undoes the 2003-06-04 change, which is no longer needed now
112284         that we have better overflow checking.
112285         (localtime_offset): Likewise.
112287         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112288         and long are 64-bit but int is only 32-bit.
112289         (ydhms_diff): Use long int to store year1 and yday1.
112290         Issue a compile-time diagnostic if long int is not wide enough.
112292         (__mktime_internal): Use long int to store adjusted year and yday.
112293         Use plain C rather than preprocessor commands, if that doesn't
112294         affect efficiency.
112295         Check for overflow (and try to repair) after each probe
112296         rather than checking only at the very end.  This avoids some bugs
112297         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112298         does not equal GMT offset at maximum time).
112299         Use integer to check for overflow rather than floating point; this
112300         is more portable to non-IEEE hosts, and is a tad faster.
112301         When we detect that we are oscillating between two values,
112302         don't check whether tm_isdst has the requested value, since
112303         we already know the answer.  When tm_isdst has the wrong value,
112304         use a different heuristic to find the right one, based on the
112305         extreme values actually observed in practice in tz2003a,
112306         rather than the (overly optimistic) "previous 3 calendar quarters".
112308         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112309         "T const" to accommodate glibc style.
112310         (check_result): Use less-confusing report format.  "long" -> "long int.
112311         (main): Likewise.
112312         Don't loop if the iteration overflows time_t.
112313         Allow a negative step in the iteration.
112315 2003-07-06  Karl Berry  <karl@gnu.org>
112317         * config/depcomp: update from automake.
112318         * config/config.sub: update from prep.
112320 2003-07-03  Karl Berry  <karl@gnu.org>
112322         * config/config.guess: update from prep.
112324 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112326         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112327         xreadlink.c now includes it unconditionally.
112329 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112331         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112332         having it depend on HAVE_SYS_TYPES_H.
112334 2003-07-01  Bruno Haible  <bruno@clisp.org>
112336         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112337         <sys/types.h> should be sufficient.
112338         Reported by Paul Eggert.
112340 2003-06-26  Karl Berry  <karl@gnu.org>
112342         * config/depcomp: update from automake.
112344 2003-06-26  Bruno Haible  <bruno@clisp.org>
112346         * modules/human: Depend on module stdbool.
112348 2003-06-25  Bruno Haible  <bruno@clisp.org>
112350         * modules/readlink: New file.
112351         * modules/xreadlink: Depend on it.
112352         * MODULES.html.sh (func_all_modules): Add readlink.
112354 2003-06-25  Bruno Haible  <bruno@clisp.org>
112356         * m4/readlink.m4: New file.
112358 2003-06-25  Bruno Haible  <bruno@clisp.org>
112360         * lib/readlink.c: New file.
112362 2003-06-22  Karl Berry  <karl@gnu.org>
112364         * config/srclist.txt: update mkinstalldirs from automake.
112365         * config/mkinstalldirs: update.
112367 2003-06-22  Bruno Haible  <bruno@clisp.org>
112369         Portability to mingw32.
112370         * m4/ssize_t.m4: New file, from GNU gettext.
112371         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112372         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112374 2003-06-22  Bruno Haible  <bruno@clisp.org>
112376         * modules/safe-read: Add m4/ssize_t.m4.
112377         * modules/xreadlink: Add m4/ssize_t.m4.
112379 2003-06-20  Bruno Haible  <bruno@clisp.org>
112381         Assume C89, so PARAMS isn't needed.
112382         * lib/unicodeio.h (PARAMS): Remove.
112383         * lib/unicodeio.c: Don't use PARAMS.
112385 2003-06-18  Karl Berry  <karl@gnu.org>
112387         * config/config.{guess,sub}: update from prep.
112389 2003-06-18  Jim Meyering  <jim@meyering.net>
112391         Merge changes from coreutils.
112392         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112393         Remove explicit declarations of xmalloc and realloc.
112394         Include xalloc.h.
112395         (read_utmp): Remove anachronistic cast of xmalloc.
112397 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112399         Assume C89, so PARAMS isn't needed.
112400         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112401         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112402         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112403         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112404         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112405         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112406         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112407         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112408         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112409         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112410         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112411         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112412         no longer needed. Anyway, config.h should always be included before any
112413         other file.
112415 2003-06-11  Simon Josefsson  <jas@extundo.com>
112417         * modules/sysexits: New file.
112418         * MODULES.html.sh (func_all_modules): Add sysexits.
112420 2003-06-11  Simon Josefsson  <jas@extundo.com>
112422         * lib/sysexit_.h: New file.
112424 2003-06-11  Derek Price  <derek@ximbiot.com>
112426         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112427         necessary.
112429 2003-06-11  Bruno Haible  <bruno@clisp.org>
112431         * m4/sysexits.m4: New file.
112433 2003-06-10  Simon Josefsson  <jas@extundo.com>
112435         * lib/argp.h: New file, from glibc.
112436         * lib/argp-ba.c: New file, from glibc.
112437         * lib/argp-eexst.c: New file, from glibc.
112438         * lib/argp-fmtstream.c: New file, from glibc.
112439         * lib/argp-fmtstream.h: New file, from glibc.
112440         * lib/argp-fs-xinl.c: New file, from glibc.
112441         * lib/argp-help.c: New file, from glibc.
112442         * lib/argp-namefrob.h: New file, from glibc.
112443         * lib/argp-parse.c: New file, from glibc.
112444         * lib/argp-pv.c: New file, from glibc.
112445         * lib/argp-pvh.c: New file, from glibc.
112446         * lib/argp-xinl.c: New file, from glibc.
112448 2003-06-10  Simon Josefsson  <jas@extundo.com>
112450         * modules/strchrnul: New file.
112452 2003-06-10  Simon Josefsson  <jas@extundo.com>
112454         * modules/argp: New file.
112456 2003-06-10  Simon Josefsson  <jas@extundo.com>
112458         * m4/strchrnul.m4: New file.
112460 2003-06-10  Simon Josefsson  <jas@extundo.com>
112462         * lib/strchrnul.h: New file.
112463         * lib/strchrnul.c: New file.
112465 2003-06-10  Bruno Haible  <bruno@clisp.org>
112467         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112469 2003-06-07  Karl Berry  <karl@gnu.org>
112471         * config/config.{guess,sub}: update from prep.
112473 2003-06-07  Jim Meyering  <jim@meyering.net>
112475         * modules/strtod: Use $(...) notation, not @...@ for
112476         AC_REPLACE'd variables.
112477         * modules/localcharset: Likewise.
112479 2003-06-07  Jim Meyering  <jim@meyering.net>
112481         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112482         in place of my name in the copyright comment.
112483         Remove definition and uses of __P.
112485         From coreutils.
112486         * lib/stat.c: Don't declare xmalloc explicitly.
112487         Instead, include "xalloc.h".
112488         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112489         xrealloc, and xcalloc return values.
112490         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112491         Improve comment.
112492         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112494 2003-06-07  Bruno Haible  <bruno@clisp.org>
112496         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112497         avoid AC_CONFIG_LINKS.
112498         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112499         fnmatch.h, to avoid AC_CONFIG_LINKS.
112500         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112502 2003-06-07  Bruno Haible  <bruno@clisp.org>
112504         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112505         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112506         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112507         directory.
112508         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112509         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112510         directory.
112512 2003-06-06  Jim Meyering  <jim@meyering.net>
112514         Merge from coreutils.
112515         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112516         Consolidate declarations and initializations of *_base* locals.
112518         Merge from coreutils.
112519         This avoids a core dump on systems without GNU putenv,
112520         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112521         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112522         (unsetenv): New static function, from GNU libc.
112523         (rpl_putenv): Use it.
112525         * lib/modechange.c: Remove trailing blanks.
112527         Merge from coreutils.
112528         * lib/fsusage.c: Remove declaration of statfs.
112529         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112531         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112533 2003-06-06  Jim Meyering  <jim@meyering.net>
112535         * lib/stdbool_.h: Renamed from stdbool.h.in.
112537 2003-06-06  Jim Meyering  <jim@meyering.net>
112538             Bruno Haible  <bruno@clisp.org>
112540         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112541         Adjust Makefile.am snippet not to redirect directly to target.
112542         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112544 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112546         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112547         mismatch, look in future quarters as well as past.  This fixes a
112548         bug when processing fall-backwards gaps immediately after a long
112549         period of daylight-saving time.
112551         * lib/mktime.c: Assume freestanding C89 or better.
112552         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112553         (__P): Remove; not used.
112554         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112555         (mktime, not_equal_tm, print_tm, check_result,
112556         main): Use prototypes.  Use const * where appropriate.
112557         (main): Fix typo in testing code that uncovered by above changes.
112558         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112560 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112562         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112563         locale.h, localeconv.  This merges changes from coreutils.
112565         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112566         It can be removed after the next Autoconf is released.
112567         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112568         needed.
112570 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112572         * lib/mktime.c: Fix Debian bug 177940
112573         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112574         (localtime_offset): Now long int, not time_t, because we want it
112575         to be guaranteed to be signed.  All uses changed.
112576         (__mktime_internal): If overflow would occur when adding offset,
112577         don't add it.
112579         Merge 'human' changes from coreutils.  Rewrite to support
112580         locale-specific notations like thousands separators.
112581         * lib/human.c: Simplify authorship notice.
112582         Include human.h immediately after config.h.
112583         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112584         <limits.h>: Do not include, since human.h does.
112585         (SIZE_MAX, UINTMAX_MAX): New macros.
112586         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112587         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112588         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112589         (power_letter): Renamed from suffixes.
112590         (generate_suffix_backwards): Remove.
112591         (adjust_value): Now takes int style (because of human.h changes)
112592         and long double value (for greater precision on some platforms).
112593         (group_number): New function.
112594         (human_readable): Use it.  Use integer options, not enum.
112595         Put the options before the sizes in the arg list.
112596         Support all the new options.
112597         The old human_readable function has been removed;
112598         use inttostr.h instead.
112599         (human_readable, default_block_size, humblock):
112600         Use uintmax_t, not int, for block sizes.
112601         (human_readable_inexact, block_size_types): Remove.
112602         (block_size_opts): New constant.
112603         (human_options): Renamed from human_block_size, with new signature
112604         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112605         * lib/human.h: Add copyright and authorship notice.
112606         Include <limits.h> and <stdbool.h> unconditionally.
112607         (PARAMS): Remove.  All uses removed.
112608         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112609         (enum human_inexact_style): Remove tag; now a nameless enum.
112610         (human_floor, human_ceiling, human_round_to_even): Now have
112611         values 2, 0, 1 rather than -1, 1, 0.
112612         (human_group_digits, human_suppress_point_zero, human_autoscale,
112613         human_base_1024, human_SI, human_B): New constants.
112614         (human_readable_inexact, human_block_size): Remove.
112615         (human_readable): Size args are now uintmax_t, not int.
112616         (human_options): New decl.
112618         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112619         unnecessary now that we assume C89 or better.  This change
112620         imported from coreutils.
112622         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112623         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112624         in the 2003-05-30 sync from glibc.
112626         .h files should stand alone, but we shouldn't include <sys/types.h>
112627         if we can get away with just <stddef.h>.
112629         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112630         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112631         rather than <sys/types.h>, as we merely need size_t.
112632         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112633         to get size_t.
112634         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112635         Include <stdio.h>, to get FILE.
112636         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112637         memcasecmp.h has included <stddef.h> and all we need is size_t.
112638         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112639         our interface, instead of including <sys/types.h>
112641 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112643         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112644         now, as glibc mktime is buggy on non-glibc systems.
112646 2003-06-03  Karl Berry  <karl@gnu.org>
112648         * config/config.sub: update from prep.
112650 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112652         [from coreutils]
112653         Fix some minor time-related bugs with POSIX time arguments.
112654         Some valid time stamps were being rejected (notably -1, and
112655         time stamps before 1900 on 64-bit hosts).  And some invalid
112656         time stamps were being accepted, e.g. September 31.
112658         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112659         that we can return (time_t) -1 successfully.
112660         * lib/posixtm.c: Likewise.
112661         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112662         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112663         (t): Remove static var.
112664         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112665         of static var.  All uses changed.
112666         (year): Do not reject years before 1900; they can occur with
112667         64-bit time_t.
112668         (posix_time_parse): Do not check for out-of-range components;
112669         that is now the caller's responsibility, since our checks were
112670         only approximations.
112671         (posixtime): Use mktime to check for out-of-range components,
112672         since it knows them exactly.
112673         If mktime returns (time_t) -1, check whether an error actually occurred
112674         by invoking localtime on -1.
112675         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112676         posixtime failures better.
112677         Improve the test data (in comments only).
112679 2003-06-02  Karl Berry  <karl@gnu.org>
112681         * config/mkinstalldirs (version): new variable.
112682         (--version): new option.
112683         (usage): improve message.
112685 2003-05-30  Karl Berry  <karl@gnu.org>
112687         * lib/mktime.c: update from libc.
112689 2003-05-30  Bruno Haible  <bruno@clisp.org>
112691         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112692         * config/config.rpath: Upgrade to gettext-0.12.1.
112694 2003-05-30  Bruno Haible  <bruno@clisp.org>
112696         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112697         * m4/nls.m4: New file, from gettext-0.12.1.
112698         * m4/po.m4: New file, from gettext-0.12.1.
112699         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112701 2003-05-30  Bruno Haible  <bruno@clisp.org>
112703         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112704         * lib/localcharset.h: Likewise.
112705         * lib/localcharset.c: Likewise.
112707 2003-05-29  Karl Berry  <karl@gnu.org>
112709         * config/config.rpath: update from gettext.
112711 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112713         Assume the headers required for C89 freestanding compilers.
112714         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112715         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112716         * m4/human.m4 (gl_HUMAN): Likewise.
112717         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112718         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112719         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112720         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112722         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112724 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112726         Assume the headers required for C89 freestanding compilers.
112727         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112728         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112729         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112730         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112731         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112732         define, since <limits.h> is guaranteed to do that.
112733         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112734         * lib/exclude.c: Include <stdbool.h> unconditionally.
112735         * lib/tempname.c: Include <stddef.h> unconditionally.
112736         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112737         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112738         <stddef.h> does that.
112739         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112740         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112741         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112742         needed.
112743         * lib/xstrtol.c: Likewise.
112744         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112745         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112747         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112748         warnings on some platforms.
112750         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112751         arbitrarily.
112753 2003-05-26  Jim Meyering  <jim@meyering.net>
112755         Merge in a change from coreutils:
112756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112757         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112758         that condition, rather than `-1' which is slightly misleading.
112759         Change the name of the cache variable to have the gl_ prefix.
112760         Prompted by a patch from Richard Dawe for DJGPP.
112762 2003-05-24  Karl Berry  <karl@gnu.org>
112764         * config/config.guess: update from prep.
112766 2003-05-22  Karl Berry  <karl@gnu.org>
112768         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112770 2003-05-20  Karl Berry  <karl@gnu.org>
112772         * config/config.guess: update from prep.
112774 2003-05-18  Karl Berry  <karl@gnu.org>
112776         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112777         might actually be set by the user.
112779         * config/depcomp, install-sh, mdate-sh: update from automake.
112781 2003-05-17  Bruno Haible  <bruno@clisp.org>
112783         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112784         invalid expansion for AC_EGREP_CPP.
112785         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112786         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112787         Suggested by Akim Demaille <akim@epita.fr> in
112788         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112790 2003-05-12  Jim Meyering  <jim@meyering.net>
112792         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112793         the space-padded-by-default conversion specifiers, %e, %k, %l.
112795 2003-05-12  Bruno Haible  <bruno@clisp.org>
112797         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112798         the string is longer than 4 KB.
112800 2003-05-11  Karl Berry  <karl@gnu.org>
112802         * config/config.{guess,sub}: update from prep.
112804 2003-05-09  Bruno Haible  <bruno@clisp.org>
112806         * modules/error: Add m4/strerror_r.m4 to file list.
112808 2003-05-03  Bruno Haible  <bruno@clisp.org>
112810         Upgrade to Unicode-4.0.
112811         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112812         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112813         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112814         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112815         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112816         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112817         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112818         Change width of U+E0100..U+E01EF from 1 to 0.
112820 2003-04-25  Jim Meyering  <jim@meyering.net>
112822         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112823         of type size_t, not int.
112825 2003-04-25  Bruno Haible  <bruno@clisp.org>
112827         * lib/copy-file.c: Include <stddef.h>, for size_t.
112829 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112831         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112832         code which expansion is under static control.  Patch imported from
112833         Akim Demaille's patch to Bison; see
112834         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112836 2003-04-14  Bruno Haible  <bruno@clisp.org>
112838         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112840 2003-04-11  Jim Meyering  <jim@meyering.net>
112842         Merge changes from Coreutils.
112844         2003-03-22  Jim Meyering  <jim@meyering.net>
112846         * lib/strftime.c (widen): Cast alloca return value to proper type.
112848         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112850         From GNU libc.
112851         * lib/strftime.c (my_strftime): Handle very large width
112852         specifications for numeric values correctly.  Improve checks for
112853         overflow.
112855         2003-01-19  Jim Meyering  <jim@meyering.net>
112857         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112858         definitions.
112859         (nl_get_alt_digit) [! defined my_strftime]: Define.
112860         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112861         _nl_get_alt_digit and _nl_get_walt_digit.
112863         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112864         libc. These changes have no effect outside of _LIBC.
112866 2003-04-10  Bruno Haible  <bruno@clisp.org>
112868         * modules/findprog: New file.
112869         * MODULES.html.sh (func_all_modules): Add it.
112871 2003-04-10  Bruno Haible  <bruno@clisp.org>
112873         * m4/findprog.m4: New file.
112874         * m4/eaccess.m4: New file.
112876 2003-04-10  Bruno Haible  <bruno@clisp.org>
112878         * lib/findprog.h: New file, from GNU gettext.
112879         * lib/findprog.c: New file, from GNU gettext.
112881 2003-04-05  Jim Meyering  <jim@meyering.net>
112883         Merge changes from Coreutils.
112885         * lib/exclude.h (PARAMS): Remove definition and uses.
112886         * lib/exclude.c: Remove uses of `PARAMS'.
112888         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112889         Add test-cases for DOS filenames. Declare program_name.
112890         (main): Set up program_name.  Patch by Rich Dawe.
112892         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112893         error from mntctl.
112894         Use mntctl's return value to drive the entry-processing loop, since
112895         we can't rely on the value of the vmt_length member in the last
112896         entry.  On some systems doing so could result in exhausting
112897         virtual memory.  Based in part on a patch from Mike Jetzer.
112899 2003-04-04  Bruno Haible  <bruno@clisp.org>
112901         * modules/linebreak: New file.
112902         * MODULES.html.sh (func_all_modules): Add it.
112904 2003-04-04  Bruno Haible  <bruno@clisp.org>
112906         * m4/linebreak.m4: New file.
112908 2003-04-04  Bruno Haible  <bruno@clisp.org>
112910         * lib/linebreak.h: New file, from GNU gettext.
112911         * lib/linebreak.c: New file, from GNU gettext with slight
112912         modifications.
112913         * lib/lbrkprop.h: New file, from GNU gettext.
112915 2003-04-03  Bruno Haible  <bruno@clisp.org>
112917         * modules/utf8-ucs4: New file.
112918         * modules/utf16-ucs4: New file.
112919         * modules/ucs4-utf8: New file.
112920         * modules/ucs4-utf16: New file.
112921         * MODULES.html.sh (func_all_modules): Add them.
112923 2003-04-03  Bruno Haible  <bruno@clisp.org>
112925         * m4/utf-ucs4.m4: New file.
112926         * m4/ucs4-utf.m4: New file.
112928 2003-04-03  Bruno Haible  <bruno@clisp.org>
112930         * lib/utf8-ucs4.h: New file, from GNU gettext.
112931         * lib/utf16-ucs4.h: New file, from GNU gettext.
112932         * lib/ucs4-utf8.h: New file, from GNU gettext.
112933         * lib/ucs4-utf16.h: New file, from GNU gettext.
112935 2003-04-02  Bruno Haible  <bruno@clisp.org>
112937         * modules/binary-io: New file.
112938         * MODULES.html.sh (func_all_modules): Add it.
112940 2003-04-02  Bruno Haible  <bruno@clisp.org>
112942         * lib/binary-io.h: New file, from GNU gettext.
112944 2003-04-01  Bruno Haible  <bruno@clisp.org>
112946         * modules/pathname: New file.
112947         * MODULES.html.sh (func_all_modules): Add it.
112949 2003-04-01  Bruno Haible  <bruno@clisp.org>
112951         * lib/pathname.h: New file, from GNU gettext.
112952         * lib/concatpath.c: New file, from GNU gettext.
112954 2003-03-30  Bruno Haible  <bruno@clisp.org>
112956         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
112958 2003-03-30  Bruno Haible  <bruno@clisp.org>
112960         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
112961         function chown() doesn't exist.
112963 2003-03-28  Bruno Haible  <bruno@clisp.org>
112965         * modules/copy-file: New file.
112966         * MODULES.html.sh (func_all_modules): Add it.
112968 2003-03-28  Bruno Haible  <bruno@clisp.org>
112970         * m4/copy-file.m4: New file.
112972 2003-03-28  Bruno Haible  <bruno@clisp.org>
112974         * lib/copy-file.h: New file, from GNU gettext.
112975         * lib/copy-file.c: New file, from GNU gettext.
112977 2003-03-18  Jim Meyering  <jim@meyering.net>
112979         * lib/quote.c (quote_n): Fix typo in comment.
112981 2003-03-18  Bruno Haible  <bruno@clisp.org>
112983         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
112984         checking.
112985         * m4/onceonly_2_57.m4: Likewise.
112987 2003-03-17  Bruno Haible  <bruno@clisp.org>
112989         * m4/onceonly.m4: Require autoconf 2.54 or newer.
112990         (m4_quote): Remove macro.
112991         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
112993 2003-03-14  Jim Meyering  <jim@meyering.net>
112995         Merge changes from Coreutils.
112996         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
112997         to be const, in order to avoid warnings.
112998         (obstack_room): Likewise.
112999         (obstack_empty_p): Likewise.
113001 2003-03-14  Bruno Haible  <bruno@clisp.org>
113003         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113004         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113006 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113008         Merge changes from Bison.
113009         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113010         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113011         when compiling Bison 1.875's `bitset bset = obstack_alloc
113012         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113013         * lib/hash.c: Include <stdbool.h> unconditionally.
113015 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113017         * m4/onceonly.m4 (m4_quote): New macro.
113018         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113019         Quote AC_FOREACH variable-expansions properly.
113021 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113023         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113025 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113027         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113028         Reported by Bruce Becker; see:
113029         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113031 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113032             Bruno Haible  <bruno@clisp.org>
113034         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113035         Reported by John Hughes, see
113036         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113038 2003-02-20  Bruno Haible  <bruno@clisp.org>
113040         * MODULES.html.sh (func_all_modules): Add poll.
113042 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113044         * modules/poll: New file.
113046 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113048         * lib/poll_.h: New file.
113049         * lib/poll.c: New file.
113051 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113053         * m4/poll.m4: New file.
113055 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113057         * modules/mathl: New file.
113059 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113061         * lib/mathl.h: New file.
113062         * lib/acosl.c: New file.
113063         * lib/asinl.c: New file.
113064         * lib/atanl.c: New file.
113065         * lib/ceill.c: New file.
113066         * lib/cosl.c: New file.
113067         * lib/expl.c: New file.
113068         * lib/floorl.c: New file.
113069         * lib/frexpl.c: New file.
113070         * lib/ldexpl.c: New file.
113071         * lib/logl.c: New file.
113072         * lib/sincosl.c: New file.
113073         * lib/sinl.c: New file.
113074         * lib/sqrtl.c: New file.
113075         * lib/tanl.c: New file.
113076         * lib/trigl.c: New file.
113077         * lib/trigl.h: New file.
113079 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113081         * m4/mathl.m4: New file.
113083 2003-02-18  Bruno Haible  <bruno@clisp.org>
113085         * MODULES.html.sh (func_all_modules): Add mathl.
113087 2003-02-17  Bruno Haible  <bruno@clisp.org>
113089         * modules/mkdtemp: New module.
113090         * MODULES.html.sh (func_all_modules): Add it.
113092 2003-02-17  Bruno Haible  <bruno@clisp.org>
113094         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113096 2003-02-17  Bruno Haible  <bruno@clisp.org>
113098         * lib/mkdtemp.h: New file, from GNU gettext.
113099         * lib/mkdtemp.c: New file, from GNU gettext.
113101 2003-02-02  Jim Meyering  <jim@meyering.net>
113103         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113104         e.g. glibc-2.2.93.
113106 2003-01-31  Bruno Haible  <bruno@clisp.org>
113108         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113109         'rpl_rename'.
113110         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113111         'rpl_strnlen'.
113112         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113113         'rpl_strtod'.
113114         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113115         'rpl_utime'.
113117 2003-01-31  Bruno Haible  <bruno@clisp.org>
113119         * lib/rename.c: #undef rename before defining rpl_rename.
113120         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113122 2003-01-30  Bruno Haible  <bruno@clisp.org>
113124         * modules/vasnprintf, modules/vasprintf: New modules.
113125         * MODULES.html.sh (func_all_modules): Add them.
113127 2003-01-30  Bruno Haible  <bruno@clisp.org>
113129         * m4/signed.m4: New file, from GNU gettext.
113130         * m4/longdouble.m4: New file, from GNU gettext.
113131         * m4/wchar_t.m4: New file, from GNU gettext.
113132         * m4/wint_t.m4: New file, from GNU gettext.
113133         * m4/vasnprintf.m4: New file.
113134         * m4/vasprintf.m4: New file.
113136 2003-01-30  Bruno Haible  <bruno@clisp.org>
113138         * lib/printf-args.h: New file, from GNU gettext.
113139         * lib/printf-args.c: New file, from GNU gettext.
113140         * lib/printf-parse.h: New file, from GNU gettext.
113141         * lib/printf-parse.c: New file, from GNU gettext.
113142         * lib/vasnprintf.h: New file, from GNU gettext.
113143         * lib/vasnprintf.c: New file, from GNU gettext.
113144         * lib/asnprintf.c: New file, from GNU gettext.
113145         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113146         * lib/vasprintf.c: New file, from GNU gettext.
113147         * lib/asprintf.c: New file, from GNU gettext.
113149 2003-01-29  Bruno Haible  <bruno@clisp.org>
113151         * modules/stpncpy: New module.
113152         * MODULES.html.sh (func_all_modules): Add it.
113154 2003-01-29  Bruno Haible  <bruno@clisp.org>
113156         * m4/stpncpy.m4: New file.
113158 2003-01-29  Bruno Haible  <bruno@clisp.org>
113160         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113161         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113163 2003-01-28  Bruno Haible  <bruno@clisp.org>
113165         * modules/c-ctype: New module.
113166         * MODULES.html.sh (func_all_modules): Add it.
113168 2003-01-28  Bruno Haible  <bruno@clisp.org>
113170         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113171         Paul Eggert.
113172         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113173         Paul Eggert.
113175 2003-01-27  Bruno Haible  <bruno@clisp.org>
113177         * modules/xsetenv: New module.
113178         * MODULES.html.sh (func_all_modules): Add it.
113180 2003-01-27  Bruno Haible  <bruno@clisp.org>
113182         * lib/xsetenv.h: New file, from GNU gettext.
113183         * lib/xsetenv.c: New file, from GNU gettext.
113185 2003-01-23  Jim Meyering  <jim@meyering.net>
113187         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113188         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113190 2003-01-23  Bruno Haible  <bruno@clisp.org>
113192         * modules/minmax: New module.
113193         * MODULES.html.sh (func_all_modules): Add it.
113195 2003-01-23  Bruno Haible  <bruno@clisp.org>
113197         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113198         Eggert.
113200 2003-01-22  Bruno Haible  <bruno@clisp.org>
113202         * modules/exit: New module.
113203         * MODULES.html.sh (func_all_modules): Add it.
113205 2003-01-22  Bruno Haible  <bruno@clisp.org>
113207         * lib/exit.h: New file, from GNU gettext.
113209 2003-01-19  Bruno Haible  <bruno@clisp.org>
113211         * gnulib-tool: Recognize option --extract-maintainer.
113212         (func_get_maintainer): New function.
113213         * modules/*: Add Maintainer entry.
113215 2003-01-16  Jim Meyering  <jim@meyering.net>
113217         * m4/regex.m4: The `regex' struct is both input and output.
113218         Initialize it before each use.  Patch by Tim Waugh.
113220 2003-01-16  Bruno Haible  <bruno@clisp.org>
113222         * MODULES.html.sh: Add a table of contents. Add the module name as
113223         leftmost column. Add hyperlinks.
113225 2003-01-15  Bruno Haible  <bruno@clisp.org>
113227         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113229 2003-01-15  Bruno Haible  <bruno@clisp.org>
113231         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113232         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113233         suffix.
113235 2003-01-15  Bruno Haible  <bruno@clisp.org>
113237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113239 2003-01-15  Bruno Haible  <bruno@clisp.org>
113241         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113242         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113244 2003-01-14  Jim Meyering  <jim@meyering.net>
113246         * lib/same.c (same_name): Tweak a comment.
113248 2003-01-14  Bruno Haible  <bruno@clisp.org>
113250         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113251         when a string comparison is sufficient.
113253 2003-01-14  Bruno Haible  <bruno@clisp.org>
113255         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113256         'unsigned int'.
113258 2003-01-14  Bruno Haible  <bruno@clisp.org>
113260         * lib/hash-pjw.c: Add comment about low quality of this function.
113262 2003-01-13  Bruno Haible  <bruno@clisp.org>
113264         * modules/stpcpy: Distribute lib/stpcpy.h.
113265         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113267 2003-01-13  Bruno Haible  <bruno@clisp.org>
113269         * modules/*: Add a description.
113270         * modules/strpbrk: Fix Makefile.am snippet.
113271         * modules/strtoimax: Fix dependencies.
113272         * modules/strtoumax: Likewise.
113274 2003-01-13  Bruno Haible  <bruno@clisp.org>
113276         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113277         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113278         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113280 2003-01-13  Bruno Haible  <bruno@clisp.org>
113282         * gnulib-tool (func_create_testdir): Store config/* files in the main
113283         directory.
113284         * config.rpath: Move to ...
113285         * config/config.rpath: ... here.
113286         * modules/gettext: Contains config/config.rpath, not config.rpath.
113287         * modules/iconv: Likewise.
113289 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113291         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113292         to avoid collisions with libcurses and libreadline.
113294         * m4/getstr.m4: Remove.
113295         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113297 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113299         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113300         to avoid collisions with libcurses and libreadline.
113302         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113303         * lib/getstr.h, getstr.c: Remove.
113304         * lib/getline.c: Include "getline.h", to check interface.
113305         Move body of old getstr.c here: this defines MIN_CHUNK and
113306         declares getdelim2, which is renamed from getstr.
113307         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113309         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113310         All uses changed.
113311         * lib/linebuffer.h: Likewise.
113312         (readline): Remove backward-compatibility macro.
113314 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113316         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113317         to avoid collisions with libcurses and libreadline.
113318         * getstr: Remove.
113319         * MODULES.html.sh: Remove getstr.
113320         * modules/getline: Depend on unlocked-io, not getstr.
113322 2003-01-12  Jim Meyering  <jim@meyering.net>
113324         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113326 2003-01-10  Bruno Haible  <bruno@clisp.org>
113328         * modules/alloca: Change Makefile.am requirements. Simplify Include
113329         requirements. Add lib/alloca_.h to file list.
113331 2003-01-10  Bruno Haible  <bruno@clisp.org>
113333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113335 2003-01-10  Bruno Haible  <bruno@clisp.org>
113337         * lib/alloca_.h: New file.
113338         * lib/getdate.y: Unconditionally include alloca.h.
113339         * lib/makepath.c: Likewise.
113340         * lib/setenv.c: Likewise.
113341         * lib/userspec.c: Likewise.
113343 2003-01-09  Karl Berry  <karl@gnu.org>
113345         * MODULES.html.sh: include `dirname $0` in PATH, to find
113346         gnulib-tool.
113348 2003-01-09  Bruno Haible  <bruno@clisp.org>
113350         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113351         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113353 2003-01-09  Bruno Haible  <bruno@clisp.org>
113355         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113357 2003-01-09  Bruno Haible  <bruno@clisp.org>
113359         * lib/stdbool.h.in: New file.
113361 2003-01-09  Bruno Haible  <bruno@clisp.org>
113363         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113364         * MODULES.html.sh: Likewise.
113366 2003-01-08  Jim Meyering  <jim@meyering.net>
113368         * lib/full-write.c: Undefine and define-away `const' after inclusion
113369         of errno.h, not before.  Suggestion from Bruno Haible.
113371 2003-01-08  Bruno Haible  <bruno@clisp.org>
113373         * modules/full-read: Depend on full-write.
113375 2003-01-08  Bruno Haible  <bruno@clisp.org>
113377         * lib/safe-read.c: Include specification header first, to ensure its
113378         selfcontainedness.
113379         * lib/full-write.c: Likewise.
113381 2003-01-07  Jim Meyering  <jim@meyering.net>
113383         * lib/full-write.c: Rework so that it may serve to define full_read,
113384         too.
113385         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113387 2003-01-07  Bruno Haible  <bruno@clisp.org>
113389         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113390         <inttypes.h>.
113391         * lib/xstrtol.h: Likewise.
113392         * lib/xstrtoimax.c: Likewise.
113393         * lib/xstrtoumax.c: Likewise.
113394         * lib/human.h: Likewise.
113396         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113397         on systems that have <inttypes.h> but not <stdint.h>.
113399 2003-01-07  Bruno Haible  <bruno@clisp.org>
113401         * MODULES.html.sh: Add copyright notice.
113402         (missed_files): Omit CVS directory entries.
113403         (func_module): Make it work with sed-3.02.
113404         * MODULES.txt: Remove file.
113406 2003-01-06  Jim Meyering  <jim@meyering.net>
113408         * lib/version-etc.c: Update year in translatable copyright string.
113410 2003-01-03  Karl Berry  <karl@gnu.org>
113412         * config/config.{guess,sub}: update from prep.
113414 2003-01-02  Karl Berry  <karl@gnu.org>
113416         * doc/COPYING.DOC: belatedly updated to 1.2.
113418 2003-01-01  Karl Berry  <karl@gnu.org>
113420         * gnulib-tool (func_verify_module): report module name $module in
113421         error message, not $1.
113422         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113423         be created, only if it doesn't exist.
113424         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113426 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113428         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113430 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113432         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113433         memcmp if strcoll doesn't work.
113435 2002-12-31  Bruno Haible  <bruno@clisp.org>
113437         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113438         nonempty.
113440 2002-12-31  Bruno Haible  <bruno@clisp.org>
113442         * lib/memcoll.c (STRCOLL): New macro.
113443         (memcoll): Use it.
113445 2002-12-31  Bruno Haible  <bruno@clisp.org>
113447         * lib/localcharset.h: New file.
113448         * lib/localcharset.c: Include it.
113449         * lib/unicodeio.c: Likewise.
113451 2002-12-31  Bruno Haible  <bruno@clisp.org>
113453         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113454         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113456 2002-12-31  Bruno Haible  <bruno@clisp.org>
113458         * lib/getline.h: Include <stddef.h>, for size_t.
113460         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113461         * lib/unicodeio.c: Don't include <stddef.h>.
113463 2002-12-31  Bruno Haible  <bruno@clisp.org>
113465         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113466         HAVE_TM_ZONE.
113468 2002-12-24  Karl Berry  <karl@gnu.org>
113470         * config/config.guess: update from prep.
113472 2002-12-24  Bruno Haible  <bruno@clisp.org>
113474         General infrasructure.
113475         * m4/README: Rewritten.
113476         * m4/onceonly.m4: New file.
113477         * m4/onceonly_2_57.m4: New file.
113479         Module atexit.
113480         * m4/atexit.m4: New file.
113482         Module strtod.
113483         * m4/strtod.m4: New file.
113485         Module strtol.
113486         * m4/strtol.m4: New file.
113488         Module strtoul.
113489         * m4/strtoul.m4: New file.
113491         Module memchr.
113492         * m4/memchr.m4: New file.
113494         Module memcmp.
113495         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113496         (jm_FUNC_MEMCMP): Invoke it.
113498         Module memcpy.
113499         * m4/memcpy.m4: New file.
113501         Module memmove.
113502         * m4/memmove.m4: New file.
113504         Module memset.
113505         * m4/memset.m4: New file.
113507         Module strcspn.
113508         * m4/strcspn.m4: New file.
113510         Module strpbrk.
113511         * m4/strpbrk.m4: New file.
113513         Module strstr.
113514         * m4/strstr.m4: New file.
113516         Module strerror.
113517         * m4/strerror.m4: New file.
113519         Module mktime.
113520         * m4/mktime.m4: Renamed from jm-mktime.m4.
113521         (gl_PREREQ_MKTIME): New macro.
113522         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113524         Module malloc.
113525         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113526         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113527         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113529         Module realloc.
113530         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113531         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113532         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113534         Module strftime.
113535         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113536         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113537         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113538         gl_TM_GMTOFF.
113539         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113541         Module xalloc.
113542         * m4/xalloc.m4: New file.
113544         Module alloca.
113545         * m4/alloca.m4: New file.
113547         Module putenv.
113548         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113549         (jm_FUNC_PUTENV): Invoke it.
113551         Module setenv.
113552         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113553         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113554         when invoked twice.
113555         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113556         gt_FUNC_SETENV.
113558         Module memrchr.
113559         * m4/memrchr.m4: New file.
113561         Module stpcpy.
113562         * m4/stpcpy.m4: New file.
113564         Module strcase.
113565         * m4/strcase.m4: New file.
113567         Module strdup.
113568         * m4/strdup.m4: New file.
113570         Module strnlen.
113571         * m4/strnlen.m4: New file.
113573         Module strndup.
113574         * m4/strndup.m4: New file.
113576         Module xstrtod.
113577         * m4/xstrtod.m4: New file.
113579         Module xstrtol.
113580         * m4/xstrtol.m4: New file.
113582         Module getdate.
113583         * m4/getdate.m4: New file.
113585         Module unlocked-io.
113586         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113587         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113588         * m4/jm-glibc-io.m4n: Remove file.
113590         Module long-options.
113591         * m4/long-options.m4: New file.
113593         Module md5.
113594         * m4/md5.m4: New file.
113596         Module sha.
113597         * m4/sha.m4: New file.
113599         Module getstr.
113600         * m4/getstr.m4: New file.
113602         Module getline.
113603         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113604         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113605         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113606         simply getline. Infoke gl_PREREQ_GETLINE.
113608         Module obstack.
113609         * m4/obstack.m4: New file.
113611         Module hash.
113612         * m4/hash.m4: New file.
113614         Module readtokens.
113615         * m4/readtokens.m4: New file.
113617         Module strverscmp.
113618         * m4/strverscmp.m4: New file.
113620         Module stdbool.
113621         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113622         OSF/1.
113624         Module strtoll.
113625         * m4/strtoll.m4: New file.
113627         Module strtoull.
113628         * m4/strtoull.m4: New file.
113630         Module strtoimax.
113631         * m4/strtoimax.m4: New file.
113633         Module strtoumax.
113634         * m4/strtoumax.m4: New file.
113636         Module xstrtoimax.
113637         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113638         jm_AC_PREREQ_XSTRTOIMAX.
113639         Moved the strtol prerequisites to strtol.m4.
113640         Moved the strtoll prerequisites to strtoll.m4.
113641         Moved the strtoimax prerequisites to strtoimax.m4.
113643         Module xstrtoumax.
113644         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113645         jm_AC_PREREQ_XSTRTOUMAX.
113646         Moved the strtoul prerequisites to strtoul.m4.
113647         Moved the strtoull prerequisites to strtoull.m4.
113648         Moved the strtoumax prerequisites to strtoumax.m4.
113650         Module chown.
113651         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113652         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113654         Module dup2.
113655         * m4/dup2.m4: New file.
113657         Module ftruncate.
113658         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113659         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113661         Module getgroups.
113662         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113663         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113665         Module gettimeofday.
113666         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113667         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113668         gl_PREREQ_GETTIMEOFDAY.
113670         Module mkdir.
113671         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113672         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113674         Module mkstemp.
113675         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113676         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113677         jm_AC_TYPE_UINTMAX_T.
113678         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113680         Module stat.
113681         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113682         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113684         Module lstat.
113685         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113686         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113688         Module timespec.
113689         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113690         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113691         * m4/st_mtim.m4: Indentation.
113693         Module nanosleep.
113694         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113695         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113696         gl_PREREQ_NANOSLEEP.
113698         Module regex.
113699         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113700         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113701         (gl_REGEX): New macro.
113703         Module rename.
113704         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113705         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113707         Module rmdir.
113708         * m4/rmdir.m4: New file.
113710         Module utime.
113711         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113712         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113713         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113715         Module dirname.
113716         * m4/dirname.m4: New file.
113718         Module getopt.
113719         * m4/getopt.m4: New file.
113721         Module unistd-safer.
113722         * m4/unistd-safer.m4: New file.
113724         Module fnmatch.
113725         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113726         declaration.
113727         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113728         (gl_FUNC_FNMATCH_POSIX): New macro.
113729         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113730         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113731         simply fnmatch.
113733         Module exclude.
113734         * m4/exclude.m4: New file.
113736         Module human.
113737         * m4/human.m4: New file.
113739         Module acl.
113740         * m4/acl.m4: Nop.
113742         Module backupfile.
113743         * m4/backupfile.m4: New file.
113744         * m4/d-ino.m4: Indentation.
113746         Module fsusage.
113747         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113748         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113749         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113751         Module dirfd.
113752         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113753         requirements.
113755         Module euidaccess.
113756         * m4/euidaccess.m4: New file.
113758         Module file-type.
113759         * m4/file-type.m4: New file.
113761         Module fileblocks.
113762         * m4/fileblocks.m4: New file.
113764         Module filemode.
113765         * m4/filemode.m4: New file.
113767         Module isdir.
113768         * m4/isdir.m4: New file.
113770         Module lchown.
113771         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113772         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113774         Module makepath.
113775         * m4/makepath.m4: New file.
113777         Module modechange.
113778         * m4/modechange.m4: New file.
113780         Module mountlist.
113781         * m4/mountlist.m4: New file.
113782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113783         Indentation.
113785         Module path-concat.
113786         * m4/path-concat.m4: New file.
113788         Module pathmax.
113789         * m4/pathmax.m4: New file.
113791         Module same.
113792         * m4/same.m4: New file.
113794         Module save-cwd.
113795         * m4/save-cwd.m4: New file.
113797         Module savedir.
113798         * m4/savedir.m4: New file.
113800         Module xgetcwd.
113801         * m4/xgetcwd.m4: New file.
113802         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113804         Module xreadlink.
113805         * m4/xreadlink.m4: New file.
113807         Module safe-read.
113808         * m4/safe-read.m4: New file.
113810         Module safe-write.
113811         * m4/safe-write.m4: New file.
113813         Module closeout.
113814         * m4/closeout.m4: New file.
113816         Module stdio-safer.
113817         * m4/stdio-safer.m4: New file.
113819         Module getpass.
113820         * m4/getpass.m4: New file.
113822         Module getugroups.
113823         * m4/getugroups.m4: New file.
113825         Module group-member.
113826         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113827         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113829         Module idcache.
113830         * m4/idcache.m4: New file.
113832         Module userspec.
113833         * m4/userspec.m4: New file.
113835         Module gettime.
113836         * m4/clock_time.m4: New file.
113837         * m4/gettime.m4: New file.
113839         Module settime.
113840         * m4/settime.m4: New file.
113842         Module posixtm.
113843         * m4/posixtm.m4: New file.
113845         Module gethostname.
113846         * m4/gethostname.m4: New file.
113848         Module canon-host.
113849         * m4/canon-host.m4: New file.
113851         Module gettext.
113852         * m4/codeset.m4: New file, from gettext-0.11.5.
113853         * m4/gettext.m4: New file, from gettext-0.11.5.
113854         * m4/glibc21.m4: New file, from gettext-0.11.5.
113855         * m4/iconv.m4: New file, from gettext-0.11.5.
113856         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113857         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113858         * m4/inttypes.m4: New file, from gettext-0.11.5.
113859         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113860         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113861         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113862         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113863         * m4/lib-link.m4: New file, from gettext-0.11.5.
113864         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113865         * m4/progtest.m4: New file, from gettext-0.11.5.
113866         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113867         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113868         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113870         Module localcharset.
113871         * m4/localcharset.m4: New file.
113873         Module hard-locale.
113874         * m4/hard-locale.m4: New file.
113876         Module mbswidth.
113877         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113878         onceonly macros.
113879         * m4/mbrtowc.m4: Add comment.
113881         Module memcasecmp.
113882         * m4/memcasecmp.m4: New file.
113884         Module memcoll.
113885         * m4/memcoll.m4: New file.
113887         Module unicodeio.
113888         * m4/unicodeio.m4: New file.
113890         Module rpmatch.
113891         * m4/rpmatch.m4: New file.
113893         Module yesno.
113894         * m4/yesno.m4: New file.
113896         Module exitfail.
113897         * m4/exitfail.m4: New file.
113899         Module c-stack.
113900         * m4/c-stack.m4 (gl_C_STACK): New macro.
113901         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
113903         Module error.
113904         * m4/error.m4 (gl_ERROR): New macro.
113905         (jm_PREREQ_ERROR): Use onceonly macros.
113907         Module fatal.
113908         * m4/fatal.m4: New file.
113910         Module getloadavg.
113911         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
113912         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
113914         Module getpagesize.
113915         * m4/getpagesize.m4: New file.
113917         Module getusershell.
113918         * m4/getusershell.m4: New file.
113920         Module physmem.
113921         * m4/physmem.m4: New file.
113923         Module posixver.
113924         * m4/posixver.m4: New file.
113926         Module quotearg.
113927         * m4/quotearg.m4: New file.
113929         Module quote.
113930         * m4/quote.m4: New file.
113932         Module readutmp.
113933         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
113935         Module sig2str.
113936         * m4/sig2str.m4: New file.
113938         Other.
113939         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
113940         ulonglong.m4.
113941         * m4/intmax_t.m4: New file.
113942         * m4/d-type.m4: Indentation.
113943         * m4/jm-macros.m4: Update.
113944         * m4/prereq.m4 (jm_PREREQ): Update.
113945         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
113946         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
113947         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
113948         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
113949         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
113950         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
113951         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
113952         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
113953         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
113954         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
113955         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
113956         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
113957         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
113958         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
113959         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
113960         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
113961         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
113962         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
113963         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
113965 2002-12-24  Bruno Haible  <bruno@clisp.org>
113967         * MODULES.txt: Update according to m4/ changes.
113969         Module gettext.
113970         * config.rpath: New file, from gettext-0.11.5.
113972         * modules/*: New module descriptions.
113973         * gnulib-tool: New file.
113974         * MODULES.html.sh: New file.
113976 2002-12-21  Karl Berry  <karl@gnu.org>
113978         * doc/fdl.texi: update to version 1.2.
113980 2002-12-19  Karl Berry  <karl@gnu.org>
113982         * config/config.guess: update from prep.
113984 2002-12-18  Bruno Haible  <bruno@clisp.org>
113986         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
113987         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
113989 2002-12-17  Bruno Haible  <bruno@clisp.org>
113991         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
113992         stdlib.h, string.h.
113994 2002-12-17  Bruno Haible  <bruno@clisp.org>
113996         * lib/canon-host.c (strdup): Remove unused declaration.
113998         * lib/fsusage.c: Include full_read.h.
113999         (get_fs_usage): Use full_read instead of safe_read.
114001         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114003 2002-12-12  Karl Berry  <karl@gnu.org>
114005         * config/config.guess: update from prep.
114007 2002-12-11  Bruno Haible  <bruno@clisp.org>
114009         * m4/setenv.m4: New file, from gettext-0.11.5.
114011 2002-12-11  Bruno Haible  <bruno@clisp.org>
114013         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114014         not unsetenv().
114015         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114016         modifications:
114018         2002-12-11  Bruno Haible  <bruno@clisp.org>
114020                 * setenv.c (alloca): Fall back to malloc.
114021                 (freea): New macro.
114022                 (setenv): Use freea() to free memory allocated with alloca().
114024         2002-11-13  Bruno Haible  <bruno@clisp.org>
114026                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114027                 function declarations.
114028                 * unsetenv.c (unsetenv): Likewise.
114030         2002-03-04  Bruno Haible  <bruno@clisp.org>
114032                 Portability to AIX 4.3.3.
114033                 * unsetenv.c: New file, extracted from setenv.c.
114034                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114036         2001-12-20  Bruno Haible  <bruno@clisp.org>
114038                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114039                 use malloc instead. For SunOS 4.
114041         2001-12-11  Bruno Haible  <bruno@clisp.org>
114043                 * setenv.c: Declare alloca.
114044                 (compar_fn_t): New typedef.
114045                 (KNOWN_VALUE, STORE_VALUE): Use it.
114047         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114048         setenv.h.
114050 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114052         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114053         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114054         Choose values that are less likely to collide with system fnmatch
114055         options.
114056         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114057         defined (e.g., a pure POSIX system).
114058         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114059         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114061 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114063         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114064         a pain in practice to deal with generated m4 files.  This change
114065         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114067         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114068         and jm-glibc-io.m4, as they are no longer a special case.
114069         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114070         kludge and the auto-generation stuff.  Check only whether the
114071         functions are declared, not whether they exist, since older hosts
114072         that don't declare the functions can't use the optimization anyway.
114074 2002-12-06  Jim Meyering  <jim@meyering.net>
114076         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114078         Merge in changes from libc's misc/error.c, in preparation
114079         for the merge of gnulib's changes back into libc.
114081         * lib/error.c (_): Define only if not already defined.
114082         Move definition to follow all #include directives.
114083         Include unlocked-io.h only if !_LIBC.
114084         [_LIBC]: Include <libio/libioP.h>.
114085         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114086         (fflush): Tweak definition to use INTUSE.
114087         (putc): Define.
114089 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114091         * lib/alloca.c [defined emacs]: Include "lisp.h".
114092         (xalloc_die) [defined emacs]: New macro.
114093         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114094         [! defined emacs]: Include <xalloc.h>.
114095         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114096         (pointer): Typedef to POINTER_TYPE *.
114097         (malloc): Remove decl; we now always use xmalloc.
114098         (alloca): Use old-style definition, since Emacs needs this.
114099         Check for arithmetic overflow when computing combined size.
114101 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114103         Do not generate unlocked-io.h automatically, since it's easier to
114104         maintain it by hand.
114106         * lib/unlocked-io.h: New file, from GNU diffutils,
114107         but with proper copyright notice and attribution.
114108         * lib/gen-uio: Remove.
114109         * lib/Makefile.am: Add copyright notice.
114110         (libfetish_a_SOURCES): Add unlocked-io.h.
114111         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114112         (DISTCLEANFILES, io_functions): Remove macros.
114113         (EXTRA_DIST): Remove gen_uio.
114114         (unlocked-io.h): Remove rule.
114116 2002-12-04  Jim Meyering  <jim@meyering.net>
114118         Reflect the fact that stat.c and lstat.c are no longer generated.
114119         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114120         (DISTCLEANFILES): Likewise.
114121         (EXTRA_DIST): Likewise.
114122         (all_local): Don't depend on stat.c or lstat.c.
114123         (stat.c, lstat.c): Remove rules.
114124         (EXTRA_DIST): Remove xstat.in.
114126         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114127         * lib/stat.c: New file.  Contents mostly from xstat.in.
114128         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114129         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114131         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114132         too.
114133         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114135 2002-12-03  Jim Meyering  <jim@meyering.net>
114137         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114138         but not semantics, to minimize the differences between these two files.
114139         (safe_read): Change comment to mention SAFE_READ_ERROR.
114141         * lib/safe-read.c (IS_EINTR): Define.
114142         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114144 2002-12-02  Jim Meyering  <jim@meyering.net>
114146         * lib/safe-read.c (EINTR): Define.
114147         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114148         (INT_MAX): Provide fallback.
114149         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114151         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114153 2002-12-02  Bruno Haible  <bruno@clisp.org>
114155         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114156         Define, taken from safe-read.c.
114157         (INT_MAX): Provide fallback.
114158         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114159         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114161         * lib/safe-read.c (EINTR): Remove definition.
114162         (safe_read): Don't use EINTR if it is absent.
114164 2002-12-01  Jim Meyering  <jim@meyering.net>
114166         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114167         zero.
114168         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114170 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114172         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114173         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114174         with `if (! (value < limit)) abort ();', for readability.
114176 2002-11-26  Karl Berry  <karl@gnu.org>
114178         * lib/strdup.c: copy from libc again, with jim's ok.
114179         * lib/.cppi-disable: re-add strdup.c
114181 2002-11-25  Karl Berry  <karl@gnu.org>
114183         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114184         instead of "strtol.c".
114186 2002-11-25  Karl Berry  <karl@gnu.org>
114188         * config/install-sh: update from automake for variable quoting, $0 in
114189         error msgs, etc.
114191         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114192         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114193         entry.
114195 2002-11-25  Jim Meyering  <jim@meyering.net>
114197         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114199 2002-11-24  Karl Berry  <karl@gnu.org>
114201         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114202         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114204 2002-11-24  Jim Meyering  <jim@meyering.net>
114206         Update from coreutils:
114208         * lib/mktime.c: Merge in changes from libc.
114210         Avoid a link-time failure on some Linux systems.
114211         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114212         (otherwise).
114213         (__mon_yday): Declare with the STATIC attribute.
114214         (__mktime_internal): Likewise.
114215         Based on a report from Greg Schafer.
114217 2002-11-23  Jim Meyering  <jim@meyering.net>
114219         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114220         Use `unsigned', not `int', as type of index.
114222         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114224         * lib/fsusage.c: Remove unneeded parentheses around operands of
114225         `defined'.
114227 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114229         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114230         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114231         so that we can be included first.
114232         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114233         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114234         No need to include stddef.h or sys/types.h any more.
114235         Surround local include files with "", not "<>".
114236         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114237         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114238         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114239         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114240         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114241         (ISPRINT): Remove; no longer needed now that we assume C89.
114243         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114244         Preserve errno.
114246         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114247         quotearg_char): Use SIZE_MAX rather than
114248         (size_t) -1 when we are talking about "infinity".
114250         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114252 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114254         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114255         hint that one should use `if (! x) abort ();' rather than `assert
114256         (x);', and anyway it's one less thing to worry about configuring.
114257         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114258         hash_rehash, hash_insert): Use abort rather than assert.
114260 2002-11-22  Bruno Haible  <bruno@clisp.org>
114262         * lib/safe-read.h: Assume C89. Add comments.
114263         (safe_read): Change return type to size_t.
114264         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114265         byte counts > SSIZE_MAX correctly.
114266         * lib/safe-write.h: New file.
114267         * lib/safe-write.c: New file.
114268         * lib/full-read.h: New file.
114269         * lib/full-read.c: New file.
114270         * lib/full-write.h: Assume C89. Add comments.
114271         * lib/full-write.c: Include safe-write.h.
114272         (full_write): Rewritten to use safe_write.
114273         Suggested by Jim Meyering and Paul Eggert.
114275 2002-11-21  Jim Meyering  <jim@meyering.net>
114277         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114279         Merge in changes from the coreutils.
114281         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114282         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114283         <stdint.h>.
114284         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114285         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114286         int.  Work more efficiently if X is the same width as uintmax_t.
114287         Do not compare X to -1, to avoid bogus compiler warning.
114288         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114289         Don't assume that f_frsize and f_bsize are the same type.
114291         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114292         warning on FreeBSD.
114294         * lib/makepath.c (make_path): Restore umask *before* creating the final
114295         component.
114296         (make_path): Minor reformatting.
114298         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114299         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114300         HAVE_MALLOC/HAVE_REALLOC.
114302         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114303         dummy ones.  At least on GNU/Linux systems, `auto' means something
114304         else.
114305         From Michael Stone.
114307 2002-11-21  Bruno Haible  <bruno@clisp.org>
114309         Remove case insensitive option matching.
114310         * lib/argmatch.h (argcasematch): Remove declaration.
114311         (ARGCASEMATCH): Remove macro.
114312         (__xargmatch_internal): Remove case_sensitive argument.
114313         (XARGMATCH): Update.
114314         (XARGCASEMATCH): Remove macro.
114315         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114316         case_sensitive argument.
114317         (argcasematch): Remove function.
114318         (__xargmatch_internal): Remove case_sensitive argument.
114319         (main): Use XARGMATCH instead of XARGCASEMATCH.
114321         * lib/xmalloc.c: Change compile-time error message. Add comment about
114322         required autoconf version.
114324 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114326         Merge argmatch cleanups from Bison.  Assume C89.
114328         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114329         Include stdlib.h, for EXIT_FAILURE.
114330         Always include <string.h>, since we assume C89.
114331         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114332         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114333         Include <stddef.h> instead, since it's all we need for size_t.
114334         (PARAMS): Remove.  All uses removed.
114335         (ARRAY_CARDINALITY): Do not bother to #undef.
114336         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114337         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114338         Remove unnecessary parentheses.
114339         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114340         Insert necessary parentheses.
114341         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114342         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114344 2002-11-19  Bruno Haible  <bruno@clisp.org>
114346         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114347         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114349         * lib/mbswidth.h (PARAMS): Remove macro.
114350         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114351         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114353         * lib/gcd.h (PARAMS): Remove macro.
114354         (gcd): Use ANSI C function declarations.
114355         * lib/gcd.c (gcd): Likewise.
114357 2002-11-15  Bruno Haible  <bruno@clisp.org>
114359         * lib/strcspn.c: Include <stddef.h>.
114360         (strcspn): Use ANSI C function declaration. Change return type to
114361         size_t. Use NULL.
114362         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114363         (strpbrk): Use NULL.
114364         * lib/strpbrk.h (PARAMS): Remove macro.
114365         (strpbrk): Use ANSI C function declaration.
114366         * lib/strstr.c: Don't include <sys/types.h>.
114367         * lib/strstr.h (PARAMS): Remove macro.
114368         (strstr): Use ANSI C function declarations.
114370 2002-11-14  Karl Berry  <karl@gnu.org>
114372         * config/mkinstalldirs: `do' on separate line, instead of
114373         `for var; do'.
114375 2002-11-06  Bruno Haible  <bruno@clisp.org>
114377         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114378         * lib/gcd.c (gcd): Likewise.
114380 2002-11-05  Bruno Haible  <bruno@clisp.org>
114382         * lib/gcd.h: New file, from gettext-0.11.5.
114383         * lib/gcd.c: New file, from gettext-0.11.5.
114385 2002-11-05  Bruno Haible  <bruno@clisp.org>
114387         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114388         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114389         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114390         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114392         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114393         <libintl.h>.
114394         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114395         <libintl.h>.
114397         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114398         * lib/human.c: Include gettext.h instead of <libintl.h>.
114399         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114400         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114401         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114402         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114403         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114404         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114405         (textdomain): Remove definition.
114406         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114408         * lib/long-options.c: Remove include of <libintl.h> and definition of
114409         _.
114410         * lib/same.c: Remove include of <libintl.h> and definition of _.
114412 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114414         * lib/config.charset: A few additions for Solaris.
114416 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114418         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114419         * lib/localcharset.c (locale_charset): Declare as extern "C".
114421 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114423         * lib/config.charset: msdos in uk_UA uses CP1125.
114425 2002-11-04  Bruno Haible  <bruno@clisp.org>
114427         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114428         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114429         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114430         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114431         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114433 2002-11-04  Bruno Haible  <bruno@clisp.org>
114435         * lib/localcharset.c (locale_charset): Don't return an empty string.
114437 2002-11-04  Bruno Haible  <bruno@clisp.org>
114439         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114440         aliases.
114442 2002-11-04  Bruno Haible  <bruno@clisp.org>
114444         * lib/config.charset: Update for newest glibc. Add canonical names
114445         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114447 2002-11-04  Bruno Haible  <bruno@clisp.org>
114449         * lib/config.charset: Add support for NetBSD.
114451 2002-11-04  Bruno Haible  <bruno@clisp.org>
114453         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114455 2002-11-01  Bruno Haible  <bruno@clisp.org>
114457         * configure.in: Add AC_CONFIG_AUX_DIR call.
114458         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114459         test/Makefile.
114460         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114462 2002-09-28  Karl Berry  <karl@gnu.org>
114464         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114465         installed automake until the next release, since changes have been
114466         made.
114468 2002-09-25  Karl Berry  <karl@gnu.org>
114470         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114471         * lib/getopt*: copy from libc/posix.
114472         * lib/gettext.h: copy from gettext.
114473         * lib/.cppi-disable: add strdup.c, gettext.h.
114475 2002-09-25  Karl Berry  <karl@gnu.org>
114477         * config/srclist.txt: enable gettext.h check.
114478         * config/config.{guess,sub}: update from prep.
114479         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114480                 from automake 1.6.3.
114481         See srclist*.
114483 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114485         * regex.c (PATFETCH): Remove the translating fetch.
114486         (PATFETCH_RAW): Rename to PATFETCH.
114487         (set_image_of_range): New fun.
114488         (SET_RANGE_TABLE_WORK_AREA): Use it.
114489         (regex_compile): Don't translate the pattern chars so eagerly.
114490         Only do it when inserting an `exactn' bytecode or when handling
114491         a char-range.
114492         (mutually_exclusive_p): Avoid empty statement.
114494 2002-07-06  Jim Meyering  <meyering@lucent.com>
114496         * m4/README: Don't mention Makefile.am.in.
114497         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114499 2002-07-01  Jim Meyering  <meyering@lucent.com>
114501         * lib/c-stack.c: Include sys/time.h.
114502         From Volker Borchert.
114504 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114506         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114508 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114510         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114511         New macro.  Use it uniformly instead of
114512         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114513         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114514         reported by Vin Shelton.
114516 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114518         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114519         Do not assume SA_SIGINFO behavior.
114520         Bug reported by Jim Meyering on NetBSD 1.5.2.
114522 2002-06-22  Jim Meyering  <meyering@lucent.com>
114524         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114528         now that configure.ac uses AC_GNU_SOURCE.
114529         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114530         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114532         Update to latest tools.  Suggestions from Paul Eggert.
114533         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114534         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114535         * m4/fnmatch.m4: Likewise.
114536         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114537         to AC_HEADER_STDBOOL
114539 2002-06-22  Jim Meyering  <meyering@lucent.com>
114541         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114542         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114544 2002-06-22  Jim Meyering  <meyering@lucent.com>
114546         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114548         * lib/exitfail.c, exitfail.h: Likewise.
114549         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114551         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114552         of fnmatch.h.
114553         (EXTRA_DIST): Add fnmatch_loop.c.
114554         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114556         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114557         * lib/fnmatch.c: Update from diffutils-2.8.2.
114558         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114559         * lib/fnmatch.h: Remove file.
114561 2002-06-21  Jim Meyering  <meyering@lucent.com>
114563         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114564         * m4/mbrtowc.m4: Likewise.
114566         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114567         * m4/mbswidth.m4: Reflect name change:
114568         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114569         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114571         * m4/lib-link.m4: Update from gettext-0.11.2.
114572         * m4/gettext.m4: Likewise.
114574         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114575         From Alfred M. Szmidt.
114577 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114579         * lib/file-type.h: Report an error if neither S_ISREG nor
114580         S_IFREG is defined, instead of using a test specific to glibc
114581         2.2.  This should be safe, since POSIX requires S_ISREG and
114582         Unix Version 7 had S_IFREG.  We don't need to check for
114583         <sys/types.h> since we don't use any symbols that it defines.
114585 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114587         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114588         $@-t, so that each temporary file name is unique and valid in the first
114589         8 characters, for operation under DOS.
114591 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114595 2002-06-15  Jim Meyering  <meyering@lucent.com>
114597         Work even with DJGPP 2.03, which lacks support for symlinks.
114598         From Richard Dawe.
114599         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114600         is defined.
114601         * lib/lchown.c (S_ISLNK): Likewise.
114603 2002-06-15  Jim Meyering  <meyering@lucent.com>
114605         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114606         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114607         have been included before this file.
114609 2002-06-14  Jim Meyering  <meyering@lucent.com>
114611         * lib/file-type.h: Use the version from diffutils-2.8.2.
114612         * lib/file-type.c: Likewise.
114614 2002-06-07  Jim Meyering  <meyering@lucent.com>
114616         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114617         They're needed at least for NetBSD 1.5.2.
114618         ($statxfs_includes): Include those same headers.
114619         ($statxfs_includes): Include sys/vfs.h if available.
114620         ($statxfs_includes): Likewise for sys/statvfs.h.
114621         Check for the following members in both structs statfs and statvfs:
114622         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114624 2002-06-01  Jim Meyering  <meyering@lucent.com>
114626         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114627         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114629 2002-05-28  Jim Meyering  <meyering@lucent.com>
114631         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114632         Reported by Volker Borchert.
114634 2002-05-27  Jim Meyering  <meyering@lucent.com>
114636         Fix a problem seen only on nonconforming systems whereby ls.c's
114637         use of localtime, and then of gettimeofday would cause trouble:
114638         the localtime call used to initialize rpl_gettimeofday's save
114639         mechanism would clobber ls's current local time information so
114640         that in any long listing the first file would always be listed
114641         with date 1970-01-01.  Analysis by Volker Borchert.
114643         * lib/gettimeofday.c (localtime): Undefine.
114644         (rpl_localtime): New function.
114646 2002-05-27  Jim Meyering  <meyering@lucent.com>
114648         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114649         localtime.
114651         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114652         use the replacement function; it wouldn't resolve at link time.
114653         Reported by Volker Borchert.
114655 2002-05-22  Jim Meyering  <meyering@lucent.com>
114657         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114658         file-type.h.
114659         * lib/file-type.h: New file.
114660         * lib/file-type.c (file_type): New file/function.  Extracted from
114661         diffutils.
114663 2002-04-30  Jim Meyering  <meyering@lucent.com>
114665         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114667 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114669         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114671 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114673         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114674         Do not check for alloca.h (no longer used) or stdbool.h (was never
114675         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114677 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114679         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114681 2002-04-29  Jim Meyering  <meyering@lucent.com>
114683         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114684         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114685         Use AC_FUNC_STRNLEN here instead.
114687         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114688         With autoconf-2.53a, it's part of AC_PROG_CC.
114690 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114692         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114695 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114697         * lib/sig2str.h, lib/sig2str.c: New files.
114698         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114700 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114702         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114703         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114704         of 127, since 64 is the largest conceivable number for ancient
114705         nonstandard hosts.
114706         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114708 2002-04-28  Jim Meyering  <meyering@lucent.com>
114710         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114712 2002-04-24  Jim Meyering  <meyering@lucent.com>
114714         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114715         (jm_PREREQ): Use it.
114717         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114718         mach/mach.h fcntl.h.
114719         Check for this function: setlocale.
114721 2002-04-24  Jim Meyering  <meyering@lucent.com>
114723         * lib/gettext.h: New file, from Gettext.
114724         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114725         (libfetish_a_SOURCES): Add gettext.h.
114727 2002-04-16  Jim Meyering  <meyering@lucent.com>
114729         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114730         ut_pid, ut_id, ut_exit.
114732 2002-04-16  Jim Meyering  <meyering@lucent.com>
114734         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114735         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114736         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114738 2002-04-12  Jim Meyering  <meyering@lucent.com>
114740         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114741         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114742         existence of the getmntinfo function.  Needed for Darwin 5.3.
114744         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114745         This is necessary at least on Darwin 5.3.
114747         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114748         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114749         strnlen.o in the library, and that makes some versions of ranlib
114750         object.
114752 2002-04-12  Jim Meyering  <meyering@lucent.com>
114754         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114756 2002-04-09  Jim Meyering  <meyering@lucent.com>
114758         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114759         to be more precise.  Rather than saying we're checking whether the
114760         function `works', say what we're testing.
114761         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114762         Reported by Bruno Haible.
114764 2002-03-10  Jim Meyering  <meyering@lucent.com>
114766         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114767         Suggestion from Santiago Vila.
114769 2002-03-08  Jim Meyering  <meyering@lucent.com>
114771         * lib/rename.c: Mention that this wrapper is needed also on
114772         mips-dec-ultrix4.4 systems.
114774 2002-03-02  Jim Meyering  <meyering@lucent.com>
114776         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114777         not HAVE_CLOCK_SETTIME.
114779 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114781         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114782         Check for clock_settime.
114784 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114786         * lib/nanosleep.h: Rename to....
114787         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114789         * lib/gettime.c: New file.
114790         * lib/settime.c: New file.
114791         * lib/stime.c: Remove.
114793         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114794         timespec.h.  Remove nanosleep.h.
114796 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114798         * m4/acl.m4: New file.
114799         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114800         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114802 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114804         * lib/acl.c, lib/acl.h: New files.
114805         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114807 2002-02-24  Jim Meyering  <meyering@lucent.com>
114809         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114810         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114811         cause trouble.  Reported by Nelson Beebe.
114813 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114815         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114816         compilers that don't know that xalloc_die never returns.
114818 2002-02-20  Jim Meyering  <meyering@lucent.com>
114820         * lib/getdate.c: Regenerate using bison-1.33.
114822 2002-02-17  Jim Meyering  <meyering@lucent.com>
114824         * config/config.guess (main): Don't use `head -1'; it's no longer
114825         portable. Use `sed 1q' instead.
114827 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114829         * m4/codeset.m4: Upgrade to gettext-0.11.
114830         * m4/gettext.m4: Upgrade to gettext-0.11.
114831         * m4/glibc21.m4: Upgrade to gettext-0.11.
114832         * m4/iconv.m4: Upgrade to gettext-0.11.
114833         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114834         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114835         * m4/lib-ld.m4: New file, from gettext-0.11.
114836         * m4/lib-link.m4: New file, from gettext-0.11.
114837         * m4/lib-prefix.m4: New file, from gettext-0.11.
114838         * m4/progtest.m4: Upgrade to gettext-0.11.
114840 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114842         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114843         (jm_PREREQ): Use it.
114845 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114847         * lib/posixver.c, lib/posixver.h: New files.
114848         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114850 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114851             Bruno Haible  <bruno@clisp.org>
114853         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114854         (fwrite_success_callback): New declaration.
114855         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114856         print_unicode_char. Call failure callback instead of error.
114857         (fwrite_success_callback): New function.
114858         (exit_failure_callback): New function.
114859         (fallback_failure_callback): New function.
114860         (print_unicode_char): Call unicode_to_mb.
114862 2002-01-26  Jim Meyering  <meyering@lucent.com>
114864         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114865         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114867 2002-01-26  Jim Meyering  <meyering@lucent.com>
114869         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114871 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114873         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114875 2002-01-22  Jim Meyering  <meyering@lucent.com>
114877         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114878         Otherwise, some versions of automake would omit the rule that makes
114879         Makefile from Makefile.in.
114881 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114883         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114884         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114885         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114886         (memcoll): Set errno to zero if there is no error.
114888         * lib/quotearg.c (quotearg_buffer_restyled):
114889         Fix bug with quoting buffers containing NUL when backslashing escapes.
114890         This bug was exposed by the other changes in this patch.
114891         (quotearg_n_options): New arg ARGSIZE.
114892         All callers changed.
114893         (quoting_options_from_style): New function.
114894         (quotearg_n_style): Use it.
114895         (quotearg_n_style_mem): New function.
114897         * lib/quotearg.h (quotearg_n_style_mem): New function.
114899 2002-01-19  Jim Meyering  <meyering@lucent.com>
114901         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
114902         Remove useless quotes: DF_PROG="df".
114903         * m4/strnlen.m4: New file.
114905 2002-01-16  Paul Eggert  <eggert@twinsun.com>
114907         * lib/backupfile.c (ISDIGIT): Comment fix.
114908         * lib/getdate.y (ISDIGIT): Likewise.
114909         * lib/posixtm.c (ISDIGIT, year): Likewise.
114910         * lib/strverscmp.c (ISDIGIT): Likewise.
114911         * lib/userspec.c (ISDIGIT): Likewise.
114913 2002-01-16  Jim Meyering  <meyering@lucent.com>
114915         * lib/getdate.y: Add three semicolons, each just before a closing
114916         brace. Bison (as of version 1.31) no longer papers over that mistake.
114918 2002-01-05  Jim Meyering  <meyering@lucent.com>
114920         * lib/version-etc.c (version_etc_copyright): Update copyright year.
114922 2001-12-19  Paul Eggert  <eggert@twinsun.com>
114924         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
114925         not silently exit merely because the output buffer happens to
114926         have nothing pending.
114928 2001-12-18  Paul Eggert  <eggert@twinsun.com>
114930         See the big note in ../ChangeLog.
114931         * lib/human.c (suffixes): Prefer K to k for 1024.
114932         (generate_suffix_backwards): New function.
114933         (human_readable_inexact): Use it.
114934         * lib/xstrtol.c (__xstrtol): If there is no number but there
114935         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
114936         Accept 'K' as well as 'k'.
114938 2001-12-15  Jim Meyering  <meyering@lucent.com>
114940         * lib/regex.h (__restrict_arr): Update from libc.
114942         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
114943         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
114944         (STREQ): Define.
114946 2001-12-14  Jim Meyering  <meyering@lucent.com>
114948         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
114949         Suggestion from Bruno Haible.
114951 2001-12-10  Jim Meyering  <meyering@lucent.com>
114953         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
114954         xrealloc, Instead, include "xalloc.h".
114955         (initbuffer): Don't cast xmalloc return value to char*.
114956         (readline): Reword comment.
114957         Don't cast xrealloc return value to char*
114958         Return NULL, not 0.
114960 2001-12-09  Jim Meyering  <meyering@lucent.com>
114962         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
114963         about `signed and unsigned type in conditional expression'.
114964         * lib/posixtm.c (posix_time_parse): Likewise.
114966         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
114968         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
114969         to avoid a pedantic warning.
114971         * lib/getstr.c: Don't include assert.h.
114972         (getstr): Remove warning-evoking assertions.
114973         Return -1 if offset parameter is out of bounds.
114974         Change the type of a local from int to size_t.
114976         * lib/strftime.c (my_strftime_localtime_r): Include this function
114977         definition in the `#if ! HAVE_TM_GMTOFF' block.
114979         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
114980         Include xalloc.h instead.
114982 2001-12-02  Jim Meyering  <meyering@lucent.com>
114984         * lib/tempname.c: Don't declare getenv, thus reverting the change of
114985         2001-11-18.  It's no longer necessary, now that stdlib.h is always
114986         included.
114988         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
114989         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
114991 2001-11-30  Akim Demaille  <akim@epita.fr>
114993         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
114994         before being defined.
114996 2001-11-27  Paul Eggert  <eggert@twinsun.com>
114998         * lib/quotearg.h (quotearg_n, quotearg_n_style):
114999         First arg is int, not unsigned.
115000         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115001         (SIZE_MAX, UINT_MAX): New macros.
115002         (quotearg_n_options): Abort if N is negative.
115003         Avoid overflow check on hosts where size_t is 64 bits and int
115004         is 32 bits, as overflow is impossible there.
115005         Fix off-by-one typo that caused unnecessary reallocation.
115007 2001-11-27  Jim Meyering  <meyering@lucent.com>
115009         * lib/tempname.c: Merge with version from libc.
115010         * lib/regex.c: Likewise.
115012         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115013         systems for which STDC_HEADERS is 0, it was not included, resulting in
115014         a warning about an integer-to-pointer conversion problem with getenv.
115015         Reported by Volker Borchert.
115017 2001-11-26  Jim Meyering  <meyering@lucent.com>
115019         * lib/gtod.h: Remove file.
115020         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115021         * lib/gettimeofday.c: Don't include gtod.h.
115022         (GTOD_init): Remove function.
115023         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115024         Suggestion from Volker Borchert.
115026 2001-11-23  Jim Meyering  <meyering@lucent.com>
115028         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115029         it.
115030         * lib/hash.c (struct hash_table): Define it here instead.
115032 2001-11-22  Jim Meyering  <meyering@lucent.com>
115034         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115036 2001-11-20  Jim Meyering  <meyering@lucent.com>
115038         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115039         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115041 2001-11-19  Jim Meyering  <meyering@lucent.com>
115043         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115044         directory.  Use "conftestXXXXXX" as the template.
115045         Suggestion from Paul Eggert.
115047         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115048         immediately, so the test doesn't mistakenly hit the max-open-files
115049         limit.
115051 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115053         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115054         (TEMPORARIES): New macro.
115055         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115056         removes an artificial limitation (e.g. HP-UX 10.20, where
115057         TMP_MAX is 17576).
115059 2001-11-18  Jim Meyering  <meyering@lucent.com>
115061         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115063 2001-11-18  Jim Meyering  <meyering@lucent.com>
115065         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115066         on SunOS 4.
115068         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115069         files will be created before anything else.
115071 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115073         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115074         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115076 2001-11-17  Jim Meyering  <meyering@lucent.com>
115078         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115079         Prompted by a report from Bob Proulx.
115081         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115082         Instead, require UTILS_FUNC_MKSTEMP.
115084 2001-11-17  Jim Meyering  <meyering@lucent.com>
115086         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115087         Now, that's done as part of AC_FUNC_STRTOD.
115089 2001-11-17  Jim Meyering  <meyering@lucent.com>
115091         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115092         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115093         rather than group writable.  Patch by Juan F. Codagnone.
115095         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115096         xrealloc, Instead, include "xalloc.h".
115098         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115099         Remove explicit declarations of xmalloc, xrealloc,
115100         and xstrdup.  Instead, include "xalloc.h".
115102         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115103         unlocked-io.h.
115104         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115105         Likewise.
115106         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115108         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115109         Reported by Padraig Brady.
115111         * lib/mkstemp.c: #undef mkstemp.
115112         Include config.h.
115113         (rpl_mkstemp): Rename from mkstemp.
115114         Protoize.
115116 2001-11-16  Jim Meyering  <meyering@lucent.com>
115118         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115119         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115120         determine the amount of total physical memory, use pstat_getstatic.
115121         HPUX-11 doesn't define _SC_PHYS_PAGES.
115122         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115123         If sysconf couldn't be used to determine the amount of available
115124         physical memory, use both pstat_getstatic and pstat_getdynamic.
115125         Based on a patch from Bob Proulx.
115127 2001-11-10  Jim Meyering  <meyering@lucent.com>
115129         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115130         (jm_PREREQ): Use it.
115132 2001-11-09  Jim Meyering  <meyering@lucent.com>
115134         * m4/jm-macros.m4: Require autoconf-2.52f.
115135         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115136         Use these AC_-prefixed names, not the AM_-prefixed ones.
115138         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115140 2001-11-05  Jim Meyering  <meyering@lucent.com>
115142         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115144 2001-11-04  Jim Meyering  <meyering@lucent.com>
115146         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115147         $DEFS.
115149 2001-11-03  Jim Meyering  <meyering@lucent.com>
115151         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115152         of AC_DEFUN.
115154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115155         know the name of the variable in the macro definition.
115157 2001-11-03  Jim Meyering  <meyering@lucent.com>
115159         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115160         in argmatch_to_argument call.
115162         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115163         argument.
115165         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115166         e.g., a fault due to an attempt to free a NULL pointer.
115168 2001-11-01  Jim Meyering  <meyering@lucent.com>
115170         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115171         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115173 2001-11-01  Jim Meyering  <meyering@lucent.com>
115175         * lib/dirfd.c, lib/dirfd.h: New files.
115176         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115178         * lib/hash.c (hash_print) [TESTING]: Clean up.
115180 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115182         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115183         to avoid a warning if -Wall.
115185 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115187         * README: New file
115188         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115189         (per RMS's instructions, this is now the canonical source)
115190         * lgpl/, gpl/: New directories.
115192 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115194         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115196 2001-10-21  Jim Meyering  <meyering@lucent.com>
115198         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115199         this code would end up calling gettext even in packages built
115200         with --disable-nls.
115201         * lib/getopt.c (_): Likewise.
115202         * lib/regex.c (_): Likewise.
115204 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115206         * m4/error.m4 (jm_PREREQ_ERROR):
115207         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115208         AC_FUNC_STRERROR_R does that.
115209         Check for strerror declaration.
115211         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115212         are supposed to have them these days.
115213         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115214         Merge changes from latest Autoconf CVS.
115215         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115216         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115217         POSIX decided to standardize on the int flavor of strerror_r.
115219 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115221         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115222         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115223         Use strerror_r that is only a macro, even if it is not a function.
115224         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115225         (private_strerror): Use prototypes, not old-style function definition.
115226         (print_errno_message): New function.
115227         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115228         char*-flavored one.
115229         (error_tail, error, error_at_line): Use it.
115231 2001-10-11  Jim Meyering  <meyering@lucent.com>
115233         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115234         and quote_n (1, ... to avoid clobbering a buffer.
115236 2001-10-05  Jim Meyering  <meyering@lucent.com>
115238         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115239         hash-pjw.h.
115240         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115241         * lib/hash-pjw.h: New file.
115243 2001-09-30  Jim Meyering  <meyering@lucent.com>
115245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115246         `struct fsstat' has the `f_fstypename' member.
115247         Use that to define FS_TYPE, which is now used to make
115248         the getfsstat link test tighter.
115250 2001-09-30  Jim Meyering  <meyering@lucent.com>
115252         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115253         Include <sys/ucred.h>, for Apple Darwin.
115254         Include sys/mount.h and sys/fs_types.h only if available.
115255         (FS_TYPE): Define.
115256         (read_filesystem_list): Use FS_TYPE.
115258 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115260         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115261         a boolean context.
115263 2001-09-29  Jim Meyering  <meyering@lucent.com>
115265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115266         [one-argument getmntent function]): Include stdio.h before mntent.h.
115267         SunOS 4.1.x needs it for the declaration of `FILE'.
115268         Patch by Volker Borchert.
115270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115271         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115272         sys/fs_types.h, and make the link-test for getfsstat guard #include
115273         directives with appropriate #if HAVE_*_H tests so that we can
115274         detect getfsstat on Apple Darwin1.3.7 systems.
115275         Reported by Nelson Beebe.
115276         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115278 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115280         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115281         #defines strtoimax.  Also treat the other strto* functions
115282         like strtoimax.
115284         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115285         Check for strtoul and strtoumax,
115286         as those declarations are made even in the signed case.
115287         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115288         Likewise, for strtol and strtoimax.
115290 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115292         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115293         #defines strtoimax.  Also treat the other strto* functions
115294         like strtoimax.
115296         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115297         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115298         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115300 2001-09-26  Jim Meyering  <meyering@lucent.com>
115302         Most macros in unlocked-io.h had the wrong number of arguments.
115303         * lib/gen-uio: New script.
115304         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115305         * lib/unlocked-io.hin: Remove file.
115306         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115307         rather than trying to embed it here.
115308         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115309         Reported by Padraig Brady.
115311 2001-09-25  Volker Borchert  <bt@teknon.de>
115313         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115314         `result'.
115316 2001-09-24  Jim Meyering  <meyering@lucent.com>
115318         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115320 2001-09-23  Jim Meyering  <meyering@lucent.com>
115322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115323         instead of the mere test for existence of mntent.h.  The latter
115324         would get a false-positive on AIX 3.4 systems.
115325         In the outer getmntent if-block, don't die if neither of the getmntent
115326         tests succeeds.  Instead, just fall through and continue with the
115327         remaining tests.
115329 2001-09-23  Jim Meyering  <meyering@lucent.com>
115331         * lib/mountlist.c: Remove useless parentheses in #if directives.
115332         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115333         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115335 2001-09-22  Jim Meyering  <meyering@lucent.com>
115337         * m4/gettext.m4: New file.  From gettext.
115338         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115339         * m4/progtest.m4: Likewise
115340         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115341         * m4/glibc21.m4: Likewise.
115343         * m4/libintl.m4: Remove.  No longer used.
115345 2001-09-22  Jim Meyering  <meyering@lucent.com>
115347         * lib/localcharset.c: Update from latest gettext.
115348         * lib/config.charset: Likewise.
115350 2001-09-20  Jim Meyering  <meyering@lucent.com>
115352         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115353         strtoimax.
115354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115355         strtoumax.
115357 2001-09-20  Jim Meyering  <meyering@lucent.com>
115359         * lib/xstrtol.c (strtoimax): Guard declaration with
115360         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115361         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115362         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115363         (strtoumax): Likewise, for completeness (it wasn't necessary).
115365 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115367         * lib/strtoimax.c (HAVE_LONG_LONG):
115368         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115369         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115370         to work around bug in IBM C compiler.
115372 2001-09-17  Jim Meyering  <meyering@lucent.com>
115374         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115375         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115376         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115377         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115378         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115379         whenever the right hand side need not be expanded by the shell.
115381 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115383         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115384         library.  It's not correct, as some older glibcs are buggy.
115385         fnmatch wasn't fixed until glibc 2.2.
115387         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115388         special shell magic here.
115390 2001-09-16  Jim Meyering  <meyering@lucent.com>
115392         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115393         * m4/jm-macros.m4: Require it.
115395 2001-09-16  Jim Meyering  <meyering@lucent.com>
115397         * lib/mkdir.c: New file.
115399 2001-09-15  Jim Meyering  <meyering@lucent.com>
115401         * m4/jm-macros.m4: Check for help2man.
115403 2001-09-11  Jim Meyering  <meyering@lucent.com>
115405         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115406         The body, by Paul Eggert, was moved here from configure.in.
115407         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115409 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115411         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115412         (jm_PREREQ): Use it.
115414 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115416         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115417         Use ssize_t, not int, to store result of readlink.
115418         Check for ssize_t overflow as well as size_t overflow,
115419         as POSIX says the result of readlink is implementation-defined
115420         when ssize_t overflows.
115421         Remove unnecessary cast to char*.
115422         Use free+malloc instead of realloc, as the storage doesn't need
115423         to be preserved and it's clearer and can be more efficient that way.
115424         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115425         * lib/xreadlink.h (xreadlink): Update prototype.
115427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115429         * lib/xgetcwd.c: Revert some of the previous change; intead,
115430         fix the HAVE_GETCWD_NULL code to behave more like the
115431         !HAVE_GETCWD_NULL code used to.
115433         Include "xalloc.h".
115434         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115435         invoke xalloc_die.
115437 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115439         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115440         sys/param.h, as pathmax.h includes them.
115442 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115444         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115445         (jm_PREREQ_XGETCWD): New macro.
115447         * m4/getcwd.m4: New file.
115449 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115451         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115452         like the HAVE_GETCWD_NULL code.
115453         Include pathmax.h if not HAVE_GETCWD.
115454         Do not include xalloc.h.
115455         (INITIAL_BUFFER_SIZE): New symbol.
115456         Do not use xmalloc / xrealloc, since the caller is responsible for
115457         handling errors.  Preserve errno around `free' during failure.
115458         Do not overrun buffer when using getwd.
115460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115462         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115463         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115464         getcwd (NULL, 0).
115466 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115468         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115469         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115470         spotted by Jim Meyering.
115472 2001-09-03  Jim Meyering  <meyering@lucent.com>
115474         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115475         failure.
115477 2001-09-02  Jim Meyering  <meyering@lucent.com>
115479         * lib/error.c: Update from GNU libc.
115481 2001-09-01  Jim Meyering  <meyering@lucent.com>
115483         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115484         Used by df.
115486 2001-09-01  Jim Meyering  <meyering@lucent.com>
115488         * lib/xreadlink.c: New file.
115489         * lib/xreadlink.h: New file.
115490         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115491         xreadlink.h.
115493         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115494         doesn't conflict with sparc Solaris 7's definition in
115495         /usr/include/sys/int_types.h.
115497         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115498         files.
115499         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115500         and strncasecmp as r-values.  Unixware didn't have declarations.
115502 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115504         * lib/xstrtol.h: Add copyright notice.
115505         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115506         LONGINT_INVALID_SUFFIX_CHAR.
115508 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115510         * lib/xstrtol.c (strtoimax): New decl.
115512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115514         * lib/xgetcwd.c: Don't include pathmax.h.
115515         Include stdlib.h and unistd.h if available.
115516         Include xalloc.h.
115517         (xmalloc, xstrdup, free): Remove decls.
115518         (xgetcwd): Don't assume sizes fit in unsigned.
115519         Check for overflow when computing sizes.
115520         Simplify reallocation code.
115522 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115524         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115525         a directory's st_size can have an arbitrary value, so the old
115526         usage could waste an arbitrary amount of memory.  All uses
115527         changed.
115528         * lib/savedir.h: Update prototype.
115530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115532         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115534         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115535         old strtoimax.c.
115537         Also, make the following further changes to make this file's
115538         configuration more similar to that of strtol.c:
115539         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115540         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115541         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115542         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115543         changed to signed values.
115545         And make the following changes as well:
115546         Fix copyright notice, as 1999 was missing.
115547         (verify): New macro.
115548         (strtoimax): Check sizes at compile-time, not run-time.
115549         Prefer strtol to strtoll if both work.
115550         (main): Remove; it was not that useful and was a pain to maintain.
115552         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115554 2001-08-31  Jim Meyering  <meyering@lucent.com>
115556         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115557         Use an initial, malloc'd, buffer of length 128 rather than
115558         a statically allocated one of length 1024.
115560 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115562         Simplify code, partly by assuming autoconf 2.52 semantics.
115564         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115566         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115567         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115568         All uses removed.
115569         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115570         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115571         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115572         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115573         jm_AC_HEADER_INTTYPES_H.
115574         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115576         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115578         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115579         Quote first arg of AC_DEFUN.
115580         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115581         since they are needed to parse the include file even if we need
115582         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115583         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115584         but with opposite signedness.
115586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115588         Merge 'exclude' changes from tar 1.13.22.
115589         This fixes one or two unlikely storage allocation overflow bugs,
115590         but doesn't change user-visible behavior otherwise.
115592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115595         (jm_PREREQ_EXCLUDE): New macro.
115597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115599         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115600         tm to be declared.
115602 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115604         * lib/hash.c: Remove '2001' from copyright notice.
115606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115608         * lib/full-write.h: New file.
115609         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115610         * lib/full-write.c: Correct credits, as cccp.c no longer
115611         exists and anyway it was so heavily changed from the old cccp
115612         code as to be unrecognizable.  Include full-write.h.
115613         (full_write): Return size_t, with short writes meaning failure.
115614         All callers changed.  This fixes a bug with large buffers
115615         on 64-bit hosts.
115616         * lib/utime.c: Include full-write.h.
115618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115620         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115621         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115622         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115623         Include if available.
115624         (<xalloc.h>): Include
115625         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115626         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115627         collide with FNM macros.
115628         (struct patopts): New struct.
115629         (struct exclude): Use it, as exclude patterns now come with options.
115630         (new_exclude): Support above changes.
115631         (new_exclude, add_exclude_file):
115632         Initial size must now be a power of two to simplify overflow checking.
115633         (free_exclude, fnmatch_no_wildcards): New function.
115634         (excluded_filename): No longer requires options arg, as the options
115635         are determined by add_exclude.  Now returns bool, not int.
115636         (excluded_filename, add_exclude):
115637         Add support for the fancy new exclusion options.
115638         (add_exclude, add_exclude_file): Now takes int options arg.
115639         Check for arithmetic overflow when computing sizes.
115640         (add_exclude_file): xrealloc might modify errno, so don't
115641         realloc until after errno might be used.
115643         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115644         New macros.
115645         (free_exclude): New decl.
115646         (add_exclude, add_exclude_file): Now takes int options arg.
115647         (excluded_filename): No longer requires options arg, as the options
115648         are determined by add_exclude.  Now returns bool, not int.
115650 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115652         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115654 2001-08-27  Jim Meyering  <meyering@lucent.com>
115656         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115658         * lib/version-etc.c (N_): Remove definition.
115659         Revert most of last change.
115660         Instead, simply don't mark the `Copyright...' string for translation.
115661         Based on advice from Paul Eggert.
115663         * lib/strtoxmax.c: Tweak comment.
115665 2001-08-26  Jim Meyering  <meyering@lucent.com>
115667         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115669         * m4/xstrtoimax.m4: New file.
115670         * m4/xstrtoumax.m4: Add comments explaining why we
115671         AC_REPLACE_FUNCS(strtol).
115673 2001-08-26  Jim Meyering  <meyering@lucent.com>
115675         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115676         of copyright with `%s' so translators don't get an untranslated
115677         message in 2002.
115678         (COPYRIGHT_YEAR): Define.
115679         (version_etc): Use fprintf rather than fputs.
115680         Suggestion from Ulrich Drepper.
115682         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115684         * lib/strtoll.c: New file, from GNU libc.
115685         * lib/xstrtoimax.c: New file.
115687         * lib/xstrtol.h: Add xstrtoimax.
115688         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115689         * lib/strtoimax.c: New file.  Likewise, but first define
115690         STRTOUXMAX_SIGNED.
115692         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115693         ...
115694         * lib/strtoxmax.c: ... then renamed to this.
115696 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115698         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115699         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115700         (jm_AC_TYPE_INTMAX_T): New macro.
115701         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115703         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115705         * m4/longlong.m4: Renamed from ulonglong.m4.
115706         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115707         * m4/uintmax_t.m4: Removed.
115709 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115711         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115712         Port to Solaris 8, where 'sed' requires a space after the 'r'
115713         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115714         Redirect output to $tmp just once.
115716 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115718         * lib/addext.c (<errno.h>): Include.
115719         (errno): Declare if not defined.
115720         (addext): Work correctly when pathconf returns -1 and leaves
115721         errno alone because there is no limit.  Also, work even if
115722         pathconf returns a value greater than SIZE_MAX.
115724 2001-08-12  Jim Meyering  <meyering@lucent.com>
115726         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115727         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115728         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115729         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115730         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115731         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115732         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115733         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115734         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115735         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115736         utime.m4, utimes.m4, xstrtoumax.m4:
115737         Quote the first argument in each use of AC_DEFUN.
115739 2001-08-12  Jim Meyering  <meyering@lucent.com>
115741         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115742         Simply `return getcwd (NULL, 0);'.
115743         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115744         Use 1300 as initial value for length, not PATH_MAX.
115746         * lib/pathmax.h: Clean up cpp syntax.
115748 2001-08-12  Jim Meyering  <meyering@lucent.com>
115750         * lib/gettimeofday.c: New file.
115751         * lib/gtod.h: New file.
115752         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115754 2001-08-05  Jim Meyering  <meyering@lucent.com>
115756         * m4/jm-macros.m4: Require autoconf-2.52.
115758 2001-08-04  Jim Meyering  <meyering@lucent.com>
115760         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115761         stmt, to get in sync with glibc.
115763 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115765         The following changes are from gettext 0.10.39 as maintained by
115766         Bruno Haible.
115768         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115769         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115770         with inverted sense.  All uses changed.
115772         * lib/mbswidth.c: Don't include <limits.h>.
115773         Include <stdlib.h> and <string.h> unconditionally.
115774         (iswcntrl, mbsinit, ISCNTRL): New macros.
115775         (mbsnwidth): Use K&R style function declarations.
115776         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115777         can optimize it when MB_CUR_MAX == 1.
115778         The width of control characters is zero, not 1.
115780 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115782         The following changes are from gettext 0.10.39 as maintained by
115783         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115785         * m4/codeset.m4: Upgrade to serial AM1.
115786         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115787         all uses changed.  Quote first arg of AC_DEFUN.
115788         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115790         * m4/iconv.m4: Upgrade to serial AM2.
115791         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115792         Add --with-libconv-prefix.
115793         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115794         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115795         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115796         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115797         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115799         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115800         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115801         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115802         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115803         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115804         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115805         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115806         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115807         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115809         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115810         string.h any more.
115812         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115813         not the default value.
115815         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115816         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115817         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115818         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115819         Also check for iswcntrl, used for wcwidth fallback.
115820         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115821         to Autoconf 2.13.
115823 2001-08-03  Jim Meyering  <meyering@lucent.com>
115825         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115826         as it was in the original.  Reported by Paul Eggert.
115828 2001-07-16  Jim Meyering  <meyering@lucent.com>
115830         * m4/gettimeofday.m4: New file.
115831         Prompted by a report from Bernhard Baehr.
115833 2001-07-15  Jim Meyering  <meyering@lucent.com>
115835         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115836         stuff. Now it's in ../Makefile.cfg.
115838 2001-07-15  Jim Meyering  <meyering@lucent.com>
115840         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115841         (BUILT_SOURCES): Add unlocked-io.h.
115842         (io_functions): Define.
115843         (unlocked-io.h): New rule.
115844         (DISTCLEANFILES): Add unlocked-io.h.
115845         (all-local): Depend on unlocked-io.h, to ensure it is created.
115847         * lib/unlocked-io.hin: New file
115849         * lib/regex.c: Update from glibc.
115851 2001-07-05  Jim Meyering  <meyering@lucent.com>
115853         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115854         recommendation.
115855         (libfetish_a_SOURCES): Put all .h files here instead.
115856         Remove a thus-exposed (better checks in automake) duplicate and
115857         two unnecessary .h files.
115859 2001-07-04  Jim Meyering  <meyering@lucent.com>
115861         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115862         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115863         distcheck failure.
115865 2001-07-02  Jim Meyering  <meyering@lucent.com>
115867         The following changes were prompted by suggestions from Bruno Haible.
115869         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115870         is now generated.
115871         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115872         definition of EXTRA_DIST.
115873         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115874         ensure that the generated file is created/updated whenever the list
115875         of $(unlocked_functions) is changed.
115876         (jm-glibc-io.m4): New rule.
115877         (unlocked-io.h): New rule -- currently unused.
115879 2001-06-24  Jim Meyering  <meyering@lucent.com>
115881         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115882         unmatched right bracket, rather than kludging it with an extra,
115883         falsely-matching quote in a comment.  Patch by Akim Demaille.
115885 2001-06-11  Jim Meyering  <meyering@lucent.com>
115887         * lib/regex.c: Update from GNU libc.
115889 2001-05-27  Jim Meyering  <meyering@lucent.com>
115891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115892         Check for ut_type in struct utmp.
115894 2001-05-27  Jim Meyering  <meyering@lucent.com>
115896         * lib/readutmp.h (UT_TYPE): Define.
115898 2001-05-24  Jim Meyering  <meyering@lucent.com>
115900         * lib/argmatch.c: Include "quote.h".
115901         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
115902         quote function.  Reported by Göran Uddeborg.
115904 2001-05-22  Jim Meyering  <meyering@lucent.com>
115906         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
115907         now that we use the package-supplied version unconditionally.
115908         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
115910 2001-05-21  Jim Meyering  <meyering@lucent.com>
115912         * m4/regex.m4: Change a couple backticks to single quotes to avoid
115913         shell syntax errors.
115915 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115917         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
115919 2001-05-20  Paul Eggert  <eggert@twinsun.com>
115921         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
115922         Don't bother to check library strftime, since
115923         we'll be using our own my_strftime function anyway.
115924         Define my_strftime instead of strftime.
115926 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
115928         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
115929         which is not yet declared.
115931 2001-05-15  Jim Meyering  <meyering@lucent.com>
115933         * m4/regex.m4: Use proper quoting so brackets appear in the test
115934         program.
115935         Reported by, and with help from, Bruno Haible.
115937 2001-05-13  Jim Meyering  <meyering@lucent.com>
115939         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
115940         undefined.
115942 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115944         dirname code cleanup.  base_name now behaves more compatibly
115945         with POSIX basename when given file names that have trailing
115946         slashes, and similarly for dir_name.  Add new primitives
115947         base_len and dir_len.  Put the directory-name-related decls
115948         into dirname.h.
115950         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
115951         * lib/backupfile.c (base_name): Likewise.
115952         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
115953         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
115954         * lib/makepath.c (strip_trailing_slashes): Likewise.
115955         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
115956         ISSLASH): Likewise.
115957         * lib/rename.c (strip_trailing_slashes): Likewise.
115958         * lib/same.c (base_name): Likewise.
115959         * lib/stripslash.c (ISSLASH): Likewise.
115961         * lib/addext.c: Include <dirname.h> after size_t is defined.
115962         * lib/backupfile.c: Likewise.
115964         * lib/addext.c (addext): Use base_len to trim redundant
115965         trailing slashes instead of doing it ourselves.
115966         But do not trim the last slash if it is not redundant.
115968         * lib/backupfile.c (find_backup_file_name,
115969         max_backup_version): Use base_len instead of rolling it ourselves.
115970         Handle the case of "" and (on DOS) "C:" correctly.
115972         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
115973         needed. Include <string.h>, <dirname.h>.
115974         (base_name): Allow file names ending in slashes, other than names
115975         that are all slashes.  In this case, return the basename followed
115976         by the slashes.  This is more general, and can be used in places
115977         where the original base_name purposely had an assertion failure.
115978         (base_len): New function.
115980         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
115981         Do not include <assert.h>; no longer needed.
115982         Include xalloc.h.
115983         (memrchr): Remove decl.
115984         (dir_name_r): Remove.
115985         (dir_len): Renamed from dirlen.  All callers changed.
115986         Rewrite in terms of base_name, for simplicity and consistency.
115987         (dir_name): Never return NULL.  All callers changed.
115988         Do not include <stdlib.h> in test program; no longer needed.
115989         return 0; is fine for test program.
115991         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
115992         New macros.
115993         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
115995         * lib/path-concat.c (path_concat): Use base_len to compute
115996         base length, not strlen; this means we cannot rely on memcpy
115997         to null-terminate.
115999         * lib/same.c (STREQ): Remove.
116000         (same_name): Handle the case where the basename ends in trailing '/'.
116002         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116003         a slash was stripped.  Do not strip the last slash after a
116004         file system prefix.
116006 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116008         * lib/Makefile.am (libfetish_a_SOURCES):
116009         Add strftime.c, since we now compile it on all hosts.
116011         * lib/strftime.c (my_strftime):
116012         Define to nstrftime if emacs, but only if my_strftime is not defined.
116013         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116014         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116015         Add one more extra argument: a nanoseconds value.
116016         All uses changed.
116017         (ns): New macro.
116018         (my_strftime function): Add %N format.
116019         (emacs_strftimeu): Renamed from emacs_strftime,
116020         with extra ut argument.
116022 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116024         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116026 2001-04-21  Jim Meyering  <meyering@lucent.com>
116028         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116029         doesn't interfere.
116031 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116033         * m4/ftruncate.m4: Check for chsize.
116034         Link with ftruncate.o unconditionally if ftruncate is missing.
116035         This was required when cross-compiling to i586-mingw32msvc.
116037 2001-04-08  Jim Meyering  <meyering@lucent.com>
116039         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116040         recomputed; that's necessary when the offset spans a DST transition.
116041         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116043 2001-04-02  Jim Meyering  <meyering@lucent.com>
116045         * lib/regex.h, regex.c: Update from GNU libc.
116047 2001-03-24  Jim Meyering  <meyering@lucent.com>
116049         * m4/jm-macros.m4: Require autoconf-2.49d.
116051 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116053         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116055 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116057         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116059 2001-03-17  Jim Meyering  <meyering@lucent.com>
116061         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116062         now that the version in autoconf is equivalent.
116063         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116065         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116066         Suggestion from Akim Demaille.
116068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116069         (jm_PREREQ_TEMPNAME): New function.
116071 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116073         * lib/tempname.c (uint64_t): Define to uintmax_t if
116074         not defined, and if UINT64_MAX is not defined.
116075         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116076         Reported by John David Anglin.
116078 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116080         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116081         resolve alias if codeset is empty.
116082         * lib/config.charset (BeOS): Use wildcard syntax.
116084 2001-03-13  Jim Meyering  <meyering@lucent.com>
116086         * lib/path-concat.c (path_concat)
116087         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116088         concatenating e.g., `C:' and `foo'.
116089         From Bruno Haible.
116091 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116093         * lib/localcharset.c (locale_charset): Don't use
116094         setlocale(LC_CTYPE,NULL). Don't return NULL.
116095         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116097 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116099         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116100         support for DOS/DJGPP.
116102 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116104         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116105         lacks mkstemp.  Compile our own tempname.c if we compile our own
116106         mkstemp.c, as mkstemp relies on tempname.
116108 2001-03-01  Jim Meyering  <meyering@lucent.com>
116110         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116111         AH_VERBATIM really does output its argument verbatim.
116113 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116115         * lib/Makefile.am (libfetish_a_SOURCES):
116116         Add dup-safer.c, fopen-safer.c.
116117         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116119         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116120         * lib/unistd-safer.h: New files.
116122 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116124         The mkstemp replacement is taken from glibc 2.2.2, with some
116125         portability fixes for use outside glibc, as follows:
116127         * lib/tempname.c (struct_stat64): New macro.
116128         (direxists, __gen_tempname): Use it.
116129         This avoids a portability problem with Solaris 8.
116131         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116132         (<stddef.h>, <stdint.h>, <string.h>):
116133         Include only if STDC_HEADERS || _LIBC.
116134         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116135         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116136         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116137         (__set_errno): Define this macro if <errno.h> doesn't.
116138         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116139         Define these macros if <stdio.h> doesn't.
116140         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116141         Define these macros if <sys/stat.h>
116142         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116143         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116144         __xstat64): Define if not _LIBC.
116145         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116146         (__gen_tempname): Invoke gettimeofday only if
116147         HAVE_GETTIMEOFDAY || _LIBC;
116148         otherwise, fall back on plain "time".
116149         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116151         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116153         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116155 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116157         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116159 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116161         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116162         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116163         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116164         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116166 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116168         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116169         Remove workaround macros for hosts that have mbrtowc but not
116170         mbstate_t, as we now insist on proper declarations for both
116171         before using mbrtowc.
116173 2001-02-17  Jim Meyering  <meyering@lucent.com>
116175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116176         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116177         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116178         UnixWare 7.1.1.
116180         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116181         rather than AC_CACHE_VAL.
116183 2001-02-17  Jim Meyering  <meyering@lucent.com>
116185         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116186         around included file name.
116188         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116190         * lib/strftime.c: Update from GNU libc (the only changes were to
116191         comments).
116193 2001-02-17  Jim Meyering  <meyering@lucent.com>
116195         * lib/regex.c: Update from libc.
116197 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116199         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116200         clash.
116202 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116204         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116205         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116206         Reported by Mark Hounschell via Paul Eggert.
116208 2001-02-07  Jim Meyering  <meyering@lucent.com>
116210         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116212 2001-02-05  Jim Meyering  <meyering@lucent.com>
116214         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116215         it includes the patch required for `large file' support with at least
116216         HP-UX's 10.20 /bin/cc.
116218 2001-02-03  Jim Meyering  <meyering@lucent.com>
116220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116221         AS_IF, now that it works once again (mysteriously).
116222         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116224 2001-01-30  Jim Meyering  <meyering@lucent.com>
116226         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116227         * m4/chown.m4: Rename conftestchown to conftest.chown.
116228         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116229         s/conftestdir2/conftest.d2/.
116230         * m4/utimes.m4: s/conftestdata/conftest.data/
116231         Inspired by Pavel Roskin's change in autoconf.
116233 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116235         * lib/config.charset: Update for FreeBSD 4.2.
116237 2001-01-27  Jim Meyering  <meyering@lucent.com>
116239         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116240         a use of AS_IF.
116241         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116243 2001-01-26  Jim Meyering  <meyering@lucent.com>
116245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116246         quotearg.c includes it.
116248 2001-01-26  Jim Meyering  <meyering@lucent.com>
116250         * lib/quotearg.c: Include stddef.h.
116251         * lib/quote.c: Include stddef.h.
116252         Reported by Axel Kittenberger.
116254         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116255         line in double quotes so that it evokes a better diagnostic.
116256         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116257         Reported by Axel Kittenberger.
116259 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116261         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116262         as if it was a `charset'.
116264 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116266         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116267         has const.
116269 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116271         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116272         to avoid a warning.  Add back 'const' to inptr.
116274 2001-01-20  Jim Meyering  <meyering@lucent.com>
116276         Be sure that headers are checked before used in code compiled
116277         for the type checks.
116278         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116279         In place of that, invoke jm_CHECK_ALL_TYPES.
116280         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116281         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116282         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116283         The check for ssize_t was mistakenly run before the test for unistd.h.
116285         The configure-time check for stdbool.h was missing.
116286         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116287         (jm_PREREQ_HASH): New function.
116289 2001-01-17  Jim Meyering  <meyering@lucent.com>
116291         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116292         for autoconf-2.49c.
116293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116295 2001-01-16  Jim Meyering  <meyering@lucent.com>
116297         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116298         From Bruno Haible.
116300 2001-01-14  Jim Meyering  <meyering@lucent.com>
116302         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116303         foo and bar.  Create conftestdir/ in the script, not in the C code.
116304         Remove directories in the script, not in the C code.
116305         Remove conftestdir{,2} before trying to create the directory.
116306         Make the entire configure script fail if the mkdir fails.
116308 2001-01-14  Jim Meyering  <meyering@lucent.com>
116310         * lib/rename.c: New file.  From Volker Borchert.
116311         Include stdlib.h, string.h or strings.h, and xalloc.h.
116312         Use strip_trailing_slashes rather than open-coding it.
116314 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116316         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116318 2001-01-03  Jim Meyering  <meyering@lucent.com>
116320         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116321         of local `inptr' to avoid warning with some system declarations of
116322         iconv.
116324 2001-01-02  Volker Borchert  <bt@teknon.de>
116326         * m4/rename.m4: New file.
116327         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116329 2001-01-01  Jim Meyering  <meyering@lucent.com>
116331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116332         even on systems with utmpx.h.  It's necessary for the declaration of
116333         utmp's ut_user member.  Reported by Andreas Jaeger.
116335         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116336         available. They are required for the declarations of getgrgid and
116337         getpwuid resp.
116338         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116339         Reported by Andreas Jaeger.
116341 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116343         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116344         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116345         so `make install' also works in VPATH builds.
116347 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116349         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116350         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116351         can be used in subdirectories.
116353 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116355         * lib/modechange.c: Do not assume that mode_t uses the
116356         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116357         the other-execute bit of FOO even if S_IXOTH != 1.
116359         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116360         WOTH, XOTH, ALLM): New macros.
116361         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116362          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116363         Use them.
116364         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116365         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116366         (mode_compile):
116367         No need to use uintmax_t; unsigned long is long enough.
116368         Don't bother to get suffix since we don't use it.
116370 2000-12-26  Jim Meyering  <meyering@lucent.com>
116372         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116373         better with autoheader.
116375 2000-12-24  Jim Meyering  <meyering@lucent.com>
116377         * lib/hash.c (is_prime): Return explicit boolean values.
116378         (hash_get_first): Return NULL to appease Irix5.6's 89.
116379         Reported by Nelson Beebe.
116381 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116383         * lib/localcharset.c (locale_charset): Add support for Win32.
116385 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116387         * lib/physmem.h, lib/physmem.c: New files.
116389         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116390         (noinst_HEADERS): Add physmem.h.
116392         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116393         't' for compatibility with Solaris 8 sort.
116395 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116397         * lib/config.charset: Add support for BeOS.
116399 2000-12-17  Jim Meyering  <meyering@lucent.com>
116401         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116402         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116404 2000-12-16  Jim Meyering  <meyering@lucent.com>
116406         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116407         N and M) would have treated it like `chown N:N FILE'.
116409         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116411 2000-12-16  Jim Meyering  <meyering@lucent.com>
116413         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116414         SHELLS_FILE to a file name that's useful on djgpp systems.
116415         Include stdlib.h.
116416         (ADDITIONAL_DEFAULT_SHELLS): Define.
116417         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116418         Based mostly on a patch from Prashant TR.
116420 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116422         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116423         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116424         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116426 2000-12-08  Andreas Schwab  <schwab@suse.de>
116428         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116429         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116431 2000-12-07  Jim Meyering  <meyering@lucent.com>
116433         * lib/stripslash.c (ISSLASH): Define.
116434         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116435         `/'.
116436         From Prashant TR.
116438         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116439         (dir_name_r): Declare this function as static.
116440         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116441         manifest itself on a name containing a mix of slashes and
116442         backslashes.
116443         Make this function work with names starting with a DOS-style
116444         drive letter and colon prefix.
116445         (dir_name): Append `.' if necessary.
116446         Based mostly on patches from Prashant TR and Eli Zaretskii.
116448         * lib/dirname.h (dir_name_r): Remove prototype.
116450 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116452         * m4/off_t-format.m4: Remove this file.
116453         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116455 2000-12-06  Jim Meyering  <meyering@lucent.com>
116457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116458         replacement strtoull, we may well need the replacement strtoul, too.
116459         Check for declarations of strtoul and strtoull.
116460         Check for strtol.  Mainly as a cue to cause automake to include
116461         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116462         Check for limits.h -- strtol.c needs it.
116464 2000-12-05  Jim Meyering  <meyering@lucent.com>
116466         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116468 2000-12-04  Jim Meyering  <meyering@lucent.com>
116470         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116471         Also include memory.h, stdlib.h, unistd.h if appropriate.
116472         Reported by Andreas Jaeger (conflicting declaration of malloc).
116474 2000-12-02  Jim Meyering  <meyering@lucent.com>
116476         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116477         * m4/jm-macros.m4 (jm_MACROS): require it.
116479 2000-12-02  Jim Meyering  <meyering@lucent.com>
116481         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116483 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116485         * lib/memrchr.c: Include <config.h> before any system include file.
116487 2000-11-30  Jim Meyering  <meyering@lucent.com>
116489         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116491 2000-11-30  Jim Meyering  <meyering@lucent.com>
116493         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116495 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116497         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116499 2000-11-26  Jim Meyering  <meyering@lucent.com>
116501         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116503 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116505         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116506         size of (size_t) -1; it's not portable.
116508 2000-11-17  Jim Meyering  <meyering@lucent.com>
116510         * lib/strstr.c: Update from GNU libc.
116512 2000-11-17  Akim Demaille  <akim@epita.fr>
116514         * lib/obstack.h: Formatting changes.
116515         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116516         prevent type checking.
116517         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116518         cast the value to (void *): assigning a `foo *' to a `void *'
116519         variable is valid.
116520         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116522 2000-11-16  Jim Meyering  <meyering@lucent.com>
116524         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116526 2000-11-11  Jim Meyering  <meyering@lucent.com>
116528         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116530 2000-11-10  Jim Meyering  <meyering@lucent.com>
116532         * lib/obstack.h: Update from GNU libc.
116533         * lib/obstack.c: Likewise.
116535 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116537         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116539 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116541         * lib/getusershell.c (setusershell): Use rewind rather than
116542         fseek/fseeko, to avoid configuration hassles with fseeko.
116543         Don't bother opening SHELLS_FILE if shellstream is NULL;
116544         it's not necessary.
116546 2000-11-05  Jim Meyering  <meyering@lucent.com>
116548         * lib/makepath.h (make_dir): Declare.
116549         * lib/makepath.c (make_dir): Remove `static' attribute.
116550         Tweak a comment.
116552 2000-11-04  Jim Meyering  <meyering@lucent.com>
116554         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116556 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116558         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116559         last one in a bucket, advance to the next bucket.
116561 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116563         * lib/fnmatch.c: Do not comment out all the code if we are using
116564         the GNU C library, because in some cases we are replacing buggy
116565         code in the GNU C library itself.
116567 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116569         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116570         (regex_compile): Catch bogus \(\1\).
116572 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116574         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116575         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116576         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116578 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116580         * lib/error.h, getline.h, modechange.h:
116581         Remove "2000" from Copyright line, as the file hasn't been
116582         changed this year other than in the copyright notice.
116584         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116585         was changed this year.
116587 2000-10-29  Jim Meyering  <meyering@lucent.com>
116589         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116590         renaming.
116591         * m4/ls-mntd-fs.m4: Likewise
116593 2000-10-29  Jim Meyering  <meyering@lucent.com>
116595         * lib/xstat.in: Fix grammar in comment.
116597 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116599         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116600         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116601         doesn't define __restrict_arr.
116603 2000-10-28  Jim Meyering  <meyering@lucent.com>
116605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116606         (jm_PREREQ_MEMCHR): New function.
116608 2000-10-28  Jim Meyering  <meyering@lucent.com>
116610         * lib/memchr.c: Update from libc.
116611         Adjust for portability:
116612         [HAVE_STDLIB_H]: Include stdlib.h.
116613         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116614         Undef __memchr, too.
116615         [!weak_alias]: Define __memchr to memchr.
116617         * lib/regex.c: Update from libc.
116618         * lib/regex.h: Likewise.
116619         * lib/getopt1.c: Likewise.
116620         * lib/memcmp.c: Likewise.
116622         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116623         Avoid using fseek, when possible -- it's broken by design.
116624         Patch by Ulrich Drepper.
116626 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116628         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116629         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116630         Giving in to popular pressure to shut up the compiler with casts.
116632 2000-10-26  Jim Meyering  <meyering@lucent.com>
116634         * lib/strftime.c: Update from libc.
116636 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116638         * regex.c: More `unsigned char' -> `re_char' changes.
116639         Also change several `int' into `re_wchar_t'.
116640         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116641         (PUSH_FAILURE_POINTER): Don't cast any more.
116642         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116643         We want GCC to complain, since this piece of code makes
116644         re_match non-reentrant, which *should* be fixed.
116645         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116646         (EXTEND_BUFFER): Use RETALLOC.
116647         (SET_LIST_BIT): Don't cast.
116648         (re_wchar_t): New type.
116649         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116650         that those two functions will always properly return.
116651         (IMMEDIATE_QUIT_CHECK): Cast to void.
116652         (analyse_first): Use recursion rather than an explicit stack.
116653         (re_compile_fastmap): Can't fail anymore.
116654         (re_search_2): Don't check re_compile_fastmap for failure.
116655         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116656         Now also sets the new value (passed in a new argument).
116657         (re_match_2_internal): Use it.
116658         Also, use a new var `reg' of type size_t when looping through regs
116659         rather than reuse the inappropriate `mcnt'.
116661 2000-10-25  Jim Meyering  <meyering@lucent.com>
116663         * lib/obstack.c: Update from libc.
116665 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116667         * regex.c (regex_compile): Change the way of handling a range from
116668         a char less than 256 to a char not less than 256.
116670 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116672         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116673         NT-Emacs only.
116674         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116675         so that re_search functions only quit when callers expect them to.
116677 2000-10-23  Jim Meyering  <meyering@lucent.com>
116679         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116680         wrong.  That set_locale call must not have any side effects.
116681         From Paul Eggert.
116683 2000-10-22  Jim Meyering  <meyering@lucent.com>
116685         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116686         [CYCLIC]: Remove now-unused definition.
116688         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116689         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116690         Suggestion from Ulrich Drepper.
116692 2000-10-21  Jim Meyering  <meyering@lucent.com>
116694         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116695         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116698 2000-10-21  Jim Meyering  <meyering@lucent.com>
116700         * lib/dirname.c (memrchr): Declare if necessary.
116701         (dir_name): Remove the restriction that there be no
116702         trailing slashes.  Now, this code skips past them, effectively
116703         ignoring them.
116704         [TEST_DIRNAME] (main): New unit tests.
116706         * lib/memrchr.c: New file from GNU libc.
116707         Undef __memrchr, too.
116708         [!weak_alias]: Define __memrchr to memrchr.
116709         Guard weak_alias use with `#ifdef weak_alias'.
116711 2000-10-21  Jim Meyering  <meyering@lucent.com>
116713         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116714         (dir_name): Use dir_name_r.
116715         * lib/dirname.h (dir_name_r): Declare it.
116717 2000-10-17  Jim Meyering  <meyering@lucent.com>
116719         * lib/quote.h (PARAMS): Define and use.
116720         Reported by Akim Demaille.
116722         * lib/getopt.c: Update from libc.
116724 2000-10-16  Jim Meyering  <meyering@lucent.com>
116726         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116727         setlocale.
116728         From Jan Fedak.
116730 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116732         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116734 2000-09-25  Jim Meyering  <meyering@lucent.com>
116736         * lib/md5.h (rol): Define (from GnuPG).
116738         * lib/sha.c: Give credit (GnuPG) where due.
116739         (M): Use rol rather than open-coding it.
116740         Add a FIXME comment.
116742 2000-09-21  Jim Meyering  <meyering@lucent.com>
116744         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116745         Reported by Michael Stone.
116747 2000-09-20  Jim Meyering  <meyering@lucent.com>
116749         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116750         (noinst_HEADERS): Add sha.h.
116751         Based on code from Scott G. Miller and from GnuPG.
116753 2000-09-18  Jim Meyering  <meyering@lucent.com>
116755         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116756         LIBS. Otherwise, everyone ends up linking with -lelf for some
116757         configurations.
116758         Reported by Mike Stone.
116760 2000-09-15  Jim Meyering  <meyering@lucent.com>
116762         * lib/regex.c: Update from libc.
116764 2000-09-10  Jim Meyering  <meyering@lucent.com>
116766         * lib/getopt.c (_getopt_internal): Update from glibc.
116768 2000-09-09  Jim Meyering  <meyering@lucent.com>
116770         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116771         think it should be used as a general replacement for isascii.
116772         * lib/fnmatch.c: Likewise.
116773         * lib/mbswidth.c: Likewise
116774         * lib/regex.c: Likewise.
116776         Don't use atoi.
116777         * lib/userspec.c: Include sys/param.h and limits.h.
116778         Include xstrtol.h.
116779         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116780         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116781         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116782         UID, GID.  Check range.
116784 2000-09-06  Jim Meyering  <meyering@lucent.com>
116786         * lib/getopt.c (_getopt_internal): Update from glibc.
116788 2000-08-30  Jim Meyering  <meyering@lucent.com>
116790         * lib/strftime.c: Merge in changes from GNU libc.
116792 2000-08-26  Jim Meyering  <meyering@lucent.com>
116794         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116795         * m4/fpending.m4: New file.
116797 2000-08-26  Jim Meyering  <meyering@lucent.com>
116799         * lib/closeout.c: Include "__fpending.h".
116800         (close_stdout_status): Return right away if there's nothing to flush.
116802         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116803         * lib/__fpending.c: New file.
116804         * lib/__fpending.h: New file.
116806 2000-08-20  Jim Meyering  <meyering@lucent.com>
116808         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116809         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116810         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116812 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116814         Improve fileutils installation on systems where running
116815         programs (like install) can't be unlinked.
116816         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116817         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116819 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116821         Standardize on "memory exhausted" instead of "Memory exhausted"
116822         or "virtual memory exhausted".
116823         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116824         "virtual memory exhausted".
116825         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116826         our own message.
116827         * lib/userspec.c (parse_user_spec): Likewise.
116828         * lib/bumpalloc.h: comment fix
116829         * lib/same.c, userspec.c: Include xalloc.h.
116831         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116832         not char *const and pointing to a constant array.
116833         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116834         (xrealloc): Comment fix.
116836         * lib/userspec.c (parse_user_spec):
116837         Don't translate a message until just before returning,
116838         to avoid unnecessary translation.
116840 2000-08-07  Jim Meyering  <meyering@lucent.com>
116842         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116843         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116844         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116845         getgroups.c, gethostname.c, getopt.h, group-member.c,
116846         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116847         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116848         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116849         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116850         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116851         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116852         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116853         yesno.c: Back out Copyright date changes for each file with no change
116854         this year.  This eases coordination with other programs using the same
116855         source code modules.  From Paul Eggert.
116857 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116859         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116860         not char, for compatibility with glibc 2.1.3 strftime.c.
116862 2000-08-03  Greg McGary  <greg@mcgary.org>
116864         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116865         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116866         (EXTEND_BUFFER): Use them.
116868 2000-08-01  Jim Meyering  <meyering@lucent.com>
116870         * lib/dirname.c (ISSLASH): Define.
116871         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116872         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116873         both `\' and `/' may be use as path separators.
116874         Based on a patch from Prashant TR.
116876 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116878         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116879         slot vector a constant, since it might get modified.
116881 2000-07-31  Jim Meyering  <meyering@lucent.com>
116883         * lib/xmalloc.c: Use `virtual memory exhausted', not
116884         `Memory exhausted'.
116885         * lib/obstack.c (print_and_abort): Likewise.
116887 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116889         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116890         buffer, so that the caller can always quote one small
116891         component of a "memory exhausted" message in slot 0.
116892         From a suggestion by Jim Meyering.
116894 2000-07-30  Jim Meyering  <meyering@lucent.com>
116896         * lib/makepath.c (make_path): Quote the other instance, too.
116898         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
116899         (STATIC_BUF_SIZE): Define.
116900         (quotearg_n_options): Use only statically allocated storage when
116901         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
116902         than STATIC_BUF_SIZE.
116904 2000-07-29  Jim Meyering  <meyering@lucent.com>
116906         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
116907         * lib/dirname.c (dir_name): Likewise.
116909         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
116910         `/'.
116912         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
116913         (dir_name): Assert that there are no trailing slashes.
116915 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
116917         * lib/mbswidth.h (mbswidth): Add a flags argument.
116918         (mbswidth): New declaration.
116919         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
116920         * lib/mbswidth.c (mbswidth): Add a flags argument.
116921         (mbsnwidth): New function.
116923 2000-07-24  Jim Meyering  <meyering@lucent.com>
116925         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
116927 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116929         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
116931 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116933         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
116934         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
116935         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
116936         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
116937         invoke multibyte primitives.
116939 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116941         * lib/quotearg.c:
116942         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
116943         so that mbstate_t is always defined.
116945         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
116946         be 1 in at least one GCC installation, and this configuration
116947         error is likely to be common.  Ignoring MB_LEN_MAX hurts
116948         performance on hosts that have mbrtowc but have only unibyte
116949         locales, but I assume these hosts are rare.
116951 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116953         * lib/mbswidth.c (_XOPEN_SOURCE):
116954         Don't define; this causes problems on Solaris 7.
116955         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
116957 2000-07-23  Jim Meyering  <meyering@lucent.com>
116959         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
116960         too: getgrgid, getpwuid, getuid.
116962 2000-07-23  Jim Meyering  <meyering@lucent.com>
116964         * lib/basename.c (base_name): Add an assertion.
116966 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
116968         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
116969         shadow its mbsinit function.
116971 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116973         * lib/mbswidth.h: New file.
116974         * lib/mbswidth.c: New file.
116975         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
116976         (noinst_HEADERS): Add mbswidth.h.
116978 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116980         * lib/config.charset: Add support for FreeBSD. Improve support for
116981         HP-UX and IRIX 6.
116983 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
116985         * m4/mbswidth.m4: New file.
116986         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
116988 2000-07-15  Jim Meyering  <meyering@lucent.com>
116990         * lib/makepath.c: Include quote.h.
116991         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
116992         corresponding argument in a `quote (...)' call.
116993         Give better diagnostics.
116995         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
116996         (noinst_HEADERS): Add quote.h.
116998         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
116999         from tar's src/misc.c.
117000         * lib/quote.h: New file.  Prototypes for same.
117002 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117004         From a suggestion by Bruno Haible.
117005         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117006         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117007         to decide whether to define the BeOS workaround macro;
117008         this adjusts to the change to AC_MBSTATE_T.
117010 2000-07-14  Jim Meyering  <meyering@lucent.com>
117012         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117013         jm_AC_TYPE_UINTMAX_T.
117015 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117017         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117019         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117020         quotearg_buffer_restyled): Add support for
117021         clocale_quoting_style.  Undo previous change to
117022         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117023         and "{RIGHT QUOTATION MARK}" msgids.
117025 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117027         From a suggestion by Bruno Haible.
117028         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117029         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117030         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117031         and mbstate_t, to a single-part test that simply defines mbstate_t.
117032         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117033         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117035 2000-07-10  Jim Meyering  <meyering@lucent.com>
117037         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117039         * m4/gnu-source.m4: Output to confdefs.h directly.
117040         Suggestion from Akim Demaille.
117042 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117044         The old behavior of quoting `like this' doesn't look good with
117045         newer, ISO-style fonts.  See:
117046         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117048         Instead, quote "like this" by default.  Let the translator
117049         tailor the locale-specific quoting behavior by providing
117050         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117052         * lib/quotearg.c (N_): New macro.
117053         (gettext_default): New function.
117054         (quotearg_buffer_restyled): Use
117055         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117056         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117058 2000-07-09  Jim Meyering  <meyering@lucent.com>
117060         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117061         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117063         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117066 2000-07-09  Jim Meyering  <meyering@lucent.com>
117068         * lib/Most files: Update copyright dates to include 2000.
117070 2000-07-08  Jim Meyering  <meyering@lucent.com>
117072         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117073         if not defined.
117074         (xgethostname): Remove now-unnecessary #ifdef.
117075         Move declaration of `err' into loop where it's used.
117077 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117078         and Bruno Haible  <haible@clisp.cons.org>
117080         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117081         only if the test for an object-type mbstate_t fails.  This
117082         prevents us from mistakenly reporting that mbstate_t is a
117083         system object type after we "#define mbstate_t int" to work
117084         around its lack.
117086 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117087         and Bruno Haible  <haible@clisp.cons.org>
117089         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117091 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117093         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117094         to strerror_r.
117095         Include <ctype.h> for use of isalpha.
117097 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117099         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117100         by allocating a larger buffer. Test the gethostname return value for
117101         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117102         returns an error and ENAMETOOLONG isn't defined.
117104 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117106         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117107         dimension.
117109 2000-07-04  Jim Meyering  <meyering@lucent.com>
117111         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117112         of the deprecated AC_CHECKING.
117114 2000-07-04  Jim Meyering  <meyering@lucent.com>
117116         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117117         Reported by Bruno Haible.
117119 2000-07-04  Jim Meyering  <meyering@lucent.com>
117121         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117122         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117123         lacks mbrtowc.
117125 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117127         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117128         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117130 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117131         and Bruno Haible  <haible@clisp.cons.org>
117133         * lib/quotearg.c (mbrtowc):
117134         Assign to *pwc, and return 1 only if result is nonzero.
117135         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117137 2000-07-03  Jim Meyering  <meyering@lucent.com>
117139         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117141 2000-07-03  Jim Meyering  <meyering@lucent.com>
117143         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117144         This is necessary to get a definition of e.g., UTMP_FILE on
117145         HP-UX 10.20.
117146         From Bob Proulx.
117148 2000-07-02  Jim Meyering  <meyering@lucent.com>
117150         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117152         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117153         AC_LIBOBJ(function_name).
117154         * m4/chown.m4: Likewise.
117155         * m4/fnmatch.m4: Likewise.
117156         * m4/ftruncate.m4: Likewise.
117157         * m4/getgroups.m4: Likewise.
117158         * m4/getline.m4: Likewise.
117159         * m4/group-member.m4: Likewise.
117160         * m4/jm-macros.m4: Likewise.
117161         * m4/lstat.m4: Likewise.
117162         * m4/malloc.m4: Likewise.
117163         * m4/memcmp.m4: Likewise.
117164         * m4/nanosleep.m4: Likewise.
117165         * m4/putenv.m4: Likewise.
117166         * m4/realloc.m4: Likewise.
117167         * m4/regex.m4: Likewise.
117168         * m4/stat.m4: Likewise.
117169         * m4/strftime.m4: Likewise.
117171 2000-07-02  Jim Meyering  <meyering@lucent.com>
117173         * lib/quotearg.c (mbstate_t): Don't define here.
117175 2000-07-02  Jim Meyering  <meyering@lucent.com>
117177         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117179 2000-07-01  Jim Meyering  <meyering@lucent.com>
117181         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117183 2000-07-01  Jim Meyering  <meyering@lucent.com>
117185         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117186         problem.
117188 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117190         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117191         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117193 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117195         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117196         per change in ../m4/ls-mntd-fs.m4.
117197         (read_filesystem_list): Ignore symbolic links.
117199 2000-06-29  Jim Meyering  <meyering@lucent.com>
117201         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117202         for declaration of strcmp.
117204         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117206         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117207         Avoid warning by casting result to `char *' to remove `const'.
117209 2000-06-28  Jim Meyering  <meyering@lucent.com>
117211         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117212         included by quotearg.c, for which we perform this test.  From
117213         Bruno Haible.
117215 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117217         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117218         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117219         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117221 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117223         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117225 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117227         savedir now sets errno on failure and invokes xmalloc to get memory.
117228         Fix a couple of other minor bugs while we're at it.
117230         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117231         (NAMLEN): Remove macro.
117232         (malloc, realloc): Remove decls.
117233         (stpcpy): Likewise.
117234         ("xalloc.h"): Include.
117235         (NAME_SIZE_DEFAULT): New macro.
117236         (savedir): Use xmalloc / xrealloc to allocate memory.
117237         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117238         Skip "" directory entries.
117239         Use strlen to calculate directory entry length, since the old method
117240         is rarely used these days and isn't worth supporting.
117241         Don't use a pointer after freeing it.
117242         Check for integer overflow when calculating allocation size.
117243         Use memcpy to copy entries, instead of stpcpy.
117244         Set errno properly when returning NULL.
117245         Check for readdir error.
117247 2000-06-26  Jim Meyering  <meyering@lucent.com>
117249         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117251 2000-06-25  Jim Meyering  <meyering@lucent.com>
117253         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117254         Linux header bug when _XOPEN_SOURCE is defined to 500.
117256 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117258         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117259         deficiency.
117261 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117263         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117264         Include xalloc.h.
117265         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117267 2000-06-24  Jim Meyering  <meyering@lucent.com>
117269         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117270         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117271         for which strerror does return char*, but which lacks a conveniently
117272         accessible declaration of the function.  If the compile-test says
117273         strerror_r doesn't work, then resort to a `run'-test that works on
117274         BeOS and segfaults on DEC Unix.
117276 2000-06-24  Jim Meyering  <meyering@lucent.com>
117278         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117280 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117282         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117283         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117285 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117287         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117288         (mbrtowc, mbstate_t): Define substitutes if
117289         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117290         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117291         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117293 2000-06-23  Jim Meyering  <meyering@lucent.com>
117295         * m4/afs.m4: Add missing AC_MSG_RESULT.
117296         Reported by Bruno Haible.
117298         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117299         Suggestion from Bruno Haible.
117301 2000-06-23  Jim Meyering  <meyering@lucent.com>
117303         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117305 2000-06-21  Jim Meyering  <meyering@lucent.com>
117307         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117309 2000-06-21  Jim Meyering  <meyering@lucent.com>
117311         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117312         (noinst_HEADERS): Add getstr.h.
117314         * lib/getline.c (getstr): Move into a separate file.
117315         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117316         the following changes: new parameter, delim2; both delim[12]
117317         parameters have type `int', not `char'.  The latter would lose
117318         with 8-bit delimiters.
117319         * lib/getstr.h: New file.
117321 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117323         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117324         than 1024, return a memory chunk of least possible size, instead
117325         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117326         Use free/xmalloc instead of xrealloc to avoid copying for very long
117327         paths.
117329 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117331         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117332         the empty string.
117334 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117336         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117337         address, not strdup.  Include <stdlib.h> and don't declare free().
117339 2000-06-19  Jim Meyering  <meyering@lucent.com>
117341         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117343 2000-06-18  Jim Meyering  <meyering@lucent.com>
117345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117347         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117348         `checking whether...' message to be consistent with that of the
117349         lstat test.
117351 2000-06-18  Jim Meyering  <meyering@lucent.com>
117353         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117354         Besides, these days every porting target provides a mkdir function.
117356         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117357         needed. (this snippet comes from src/system.h).
117359 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117361         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117363 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117365         * lib/human.c (adjust_value): New function.
117366         (human_readable_inexact): Apply rounding style even when
117367         printing approximate values.
117369 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117371         * lib/human.c (human_readable_inexact): Allow an input block
117372         size that is not a multiple of the output block size, and vice versa.
117373         Reported by Piergiorgio Sartor.
117375 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117377         * lib/getdate.y (get_date): Apply relative times after time
117378         zone indicator, not before.  Reported by Todd A. Jacobs.
117380 2000-06-13  Jim Meyering  <meyering@lucent.com>
117382         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117384         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117386 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117388         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117390 2000-06-12  Jim Meyering  <meyering@lucent.com>
117392         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117393         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117394         optional argument.
117395         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117396         the optional argument, `lib'.
117398 2000-06-08  Jim Meyering  <meyering@lucent.com>
117400         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117402 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117404         Rewrite largefile configuration so that we don't need to run
117405         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117406         AC_CANONICAL_HOST in configure.in -- jmm]
117408         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117409         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117410         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117411         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117412         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117413         All uses changed.
117414         Instead of inspecting the output of getconf, try to compile the
117415         test program without and with the macro definition.
117416         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117417         for getconf.  Instead, check for the needed flags by compiling
117418         test programs.
117420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117422         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117424 2000-06-04  Jim Meyering  <meyering@lucent.com>
117426         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117427         SunOS 4.1.4 for which gid_t is an unsigned type.
117429 2000-06-03  Jim Meyering  <meyering@lucent.com>
117431         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117432         now that autoconf requires that.
117434         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117435         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117436         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117438 2000-06-03  Jim Meyering  <meyering@lucent.com>
117440         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117442 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117444         * m4/glibc21.m4: New file.
117445         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117447 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117449         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117450         newer, don't install charset.alias.
117451         * lib/config.charset: Change the Linux/glibc rules so they become empty
117452         on glibc-2.1 or newer.
117454 2000-06-02  Jim Meyering  <meyering@lucent.com>
117456         * lib/mountlist.c: Back out last change.  Instead, do this...
117457         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117458         me_dummy member using the same `ignore'-testing code.
117459         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117460         fs_type strings.
117461         From Mark D. Roth.
117463 2000-05-29  Jim Meyering  <meyering@lucent.com>
117465         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117466         mounts with the `ignore' attribute.  Based on a patch from
117467         Mark D. Roth.
117469 2000-05-28  Jim Meyering  <meyering@lucent.com>
117471         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117472         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117473         * m4/stat.m4: Likewise.
117474         * m4/lstat.m4: Likewise.
117475         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117477         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117478         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117480 2000-05-26  Jim Meyering  <meyering@lucent.com>
117482         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117484 2000-05-24  Jim Meyering  <meyering@lucent.com>
117486         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117487         autoconf requires that.
117488         * m4/lib-check.m4: Likewise.
117489         * m4/jm-macros.m4: Likewise.
117490         * m4/strftime.m4: Likewise.
117492         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117493         AC_CHECK_DECLS, now that autoconf requires that.
117495 2000-05-22  Jim Meyering  <meyering@lucent.com>
117497         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117498         * m4/lstat.m4: Likewise.
117500 2000-05-22  Jim Meyering  <meyering@lucent.com>
117502         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117504 2000-05-20  Jim Meyering  <meyering@lucent.com>
117506         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117507         (jm_PREREQ): Use it.
117509 2000-05-18  Jim Meyering  <meyering@lucent.com>
117511         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117512         back, too, since it may have been modified by allocate_entry.
117513         (hash_delete): Rewrite to use neither the assignment operator
117514         nor the comma operator in an if-expression.
117516 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117518         * lib/closeout.c:
117519         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117520         Remove; no longer needed.
117521         "quotearg.h": Add include.
117522         (file_name): Do not bother to explicitly initialize to NULL; it's less
117523         efficient on some hosts.
117524         (close_stdout_status): Remove test as to whether stdout was already
117525         closed; it breaks for the case "echo x | sort >&-".
117526         Quote file name colons.
117527         Do not assume that _("write error") lacks format strings.
117529 2000-05-15  Jim Meyering  <meyering@lucent.com>
117531         * lib/version-etc.c (version_etc_copyright): Update the copyright
117532         string used in all --version output.
117534 2000-05-14  Jim Meyering  <meyering@lucent.com>
117536         * lib/closeout.c (close_stdout_set_file_name): New function.
117537         (close_stdout_status): Use new file-scoped global.
117538         Return right away if fstat says the stdout file descriptor is invalid.
117539         * lib/closeout.h (close_stdout_set_file_name): Declare.
117541 2000-05-10  Jim Meyering  <meyering@lucent.com>
117543         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117544         (close_stdout_set_status): New function.
117545         * lib/closeout.h (close_stdout_set_status): Declare.
117547 2000-05-09  Jim Meyering  <meyering@lucent.com>
117549         * m4/gettext.m4: Rename this...
117550         * m4/libintl.m4: ...to this.
117552 2000-05-08  Jim Meyering  <meyering@lucent.com>
117554         * lib/long-options.c: Don't include closeout.h.
117555         (parse_long_options): Don't call close_stdout for --version.
117557 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117559         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117560         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117561         2.1.3 bug.  This avoids a clash when files like regex.c define
117562         _GNU_SOURCE.
117564 2000-05-06  Jim Meyering  <meyering@lucent.com>
117566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117567         (AC_REPLACE_FUNCS): Add strnlen.
117569         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117570         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117572         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117573         AC_SEARCH_LIBS call for nanosleep.
117574         (LIB_NANOSLEEP): Set and AC_SUBST.
117576 2000-05-06  Jim Meyering  <meyering@lucent.com>
117578         * lib/strnlen.c: Undefine __strnlen and strnlen.
117579         [!weak_alias]: Define __strnlen to strnlen.
117581         * lib/atexit.c: New file, from libiberty.
117583 2000-05-06  Jim Meyering  <meyering@lucent.com>
117585         * lib/closeout.c (close_stdout_status): Also check for errors on the
117586         stderr stream.
117588 2000-05-05  Jim Meyering  <meyering@lucent.com>
117590         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117591         AC_SEARCH_LIBS call for clock_gettime.
117592         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117594         * m4/search-libs.m4: Update from autoconf.
117596         su doesn't work on Solaris 2.6.
117597         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117598         <shadow.h>.  Reported by Dragos Harabor.
117600 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117602         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117603         memcpy instead of xmalloc, xrealloc, path_concat.
117604         (locale_charset): Treat empty environment variables as absent.
117605         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117607 2000-05-04  Jim Meyering  <meyering@lucent.com>
117609         * lib/getopt.c: Update from glibc.
117610         * lib/obstack.c: Likewise.
117611         * lib/obstack.h: Likewise.
117612         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117613         file
117615         * lib/regex.h: Likewise.
117616         * lib/strndup.c: Likewise.
117617         * lib/strnlen.c: New file, from glibc.
117619 2000-05-03  Jim Meyering  <meyering@lucent.com>
117621         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117623 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117625         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117626         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117627         compile-time test, rather than inspecting host and OS, to
117628         decide whether to define _LARGEFILE_SOURCE.
117630 2000-05-01  Jim Meyering  <meyering@lucent.com>
117632         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117635         Based on a patch from Bruno Haible.
117637 2000-05-01  Jim Meyering  <meyering@lucent.com>
117639         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117641 2000-04-29  Jim Meyering  <meyering@lucent.com>
117643         * lib/path-concat.c: Declare strdup only if it's not defined.
117644         * lib/canon-host.c: Likewise.
117646 2000-04-28  Jim Meyering  <meyering@lucent.com>
117648         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117649         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117650         is included first, then limits.h is included by locale.h by libintl.h.
117651         From John David Anglin.
117653 2000-04-25  Jim Meyering  <meyering@lucent.com>
117655         * lib/makepath.c (S_IRWXUGO): Define.
117656         (make_path): Always perform explicit chmod if MODE specifies any
117657         of the `special' permission bits.  Prompted by a bug report against
117658         install from Mate Wierdl and Joost van Baal.
117660 2000-04-18  Jim Meyering  <meyering@lucent.com>
117662         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117663         (jm_PREREQ): Use it.
117665 2000-04-18  Jim Meyering  <meyering@lucent.com>
117667         * lib/README: New file.
117669         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117670         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117672 2000-04-17  Jim Meyering  <meyering@lucent.com>
117674         Get it right :-)
117675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117676         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117677         Suggestion from Akim Demaille.
117679 2000-04-17  Jim Meyering  <meyering@lucent.com>
117681         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117682         the definition of it to rpl_strftime also defined-away the system's
117683         declaration.
117685 2000-04-15  Jim Meyering  <meyering@lucent.com>
117687         Use `C' to denote so-called `contiguous' files, the same way
117688         that tar does.
117689         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117690         (ftypelet): Use S_ISCTG.
117691         From Michael Deutschmann.
117693 2000-04-14  Jim Meyering  <meyering@lucent.com>
117695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117696         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117697         clobbered.
117699 2000-04-14  Jim Meyering  <meyering@lucent.com>
117701         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117703 2000-04-13  Jim Meyering  <meyering@lucent.com>
117705         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117706         AH_VERBATIM to insert required #ifndef into config.h.in.
117707         Suggestion from Akim Demaille.
117709 2000-04-12  Jim Meyering  <meyering@lucent.com>
117711         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117712         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117713         Christian Krackowizer.
117715         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117716         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117717         (AC_SYS_LARGEFILE): Require.
117718         (AM_C_PROTOTYPES): Require.
117720 2000-04-08  Jim Meyering  <meyering@lucent.com>
117722         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117723         names don't conflict.  Reported by Eli Zaretskii.
117725 2000-04-07  Jim Meyering  <meyering@lucent.com>
117727         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117728         sys/types.h, to work around system header problems on AIX 3.2.5.
117729         From Bruno Haible.
117731 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117733         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117734         bug.  Deal with the different error behavior of Irix iconv.
117736 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117738         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117739         IRIX if the installer said otherwise.
117741 2000-04-05  Jim Meyering  <meyering@lucent.com>
117743         Portability tweaks required for ultrix4.3.
117744         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117745         (jm_CHECK_DECLS): Add getutent to the list of functions.
117746         (_jm_DECL_HEADERS): Add utmpx.h.
117747         From John David Anglin.
117749         * m4/strftime.m4: Back out the 2000-04-02 change.
117750         Instead of that change, simply undefine putenv in the test program.
117752 2000-04-05  Jim Meyering  <meyering@lucent.com>
117754         Portability tweaks required for ultrix4.3.
117755         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117756         getutent.
117757         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117758         * lib/canon-host.c: Declare strdup.
117759         * lib/path-concat.c: Likewise.
117760         From John David Anglin.
117762 2000-04-04  Jim Meyering  <meyering@lucent.com>
117764         Be more DOS 8.3-friendly.
117765         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117766         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117767         * lib/Makefile.am: Reflect renaming.
117768         Reported by Eli Zaretskii.
117770         Use a temporary file name that won't clash with `charset.alias'
117771         in the DOS 8.3 name space.
117772         * lib/Makefile.am (charset_tmp): Define.
117773         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117774         (uninstall-local): Likewise.
117775         Reported by Eli Zaretskii.
117777 2000-04-03  Jim Meyering  <meyering@lucent.com>
117779         * m4/gettext.m4: Fix typo in comment.
117781         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117782         textutils/configure.in).  Suggestion from Paul Eggert.
117783         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117785 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117787         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117788         variable in the shell rather than using putenv, which isn't
117789         portable.  This avoids the configure-time inter-test dependency
117790         on the potentially-renamed putenv function.
117792 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117795         before checking struct stat.st_blksize, so that
117796         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117798 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117801         since strftime.c uses HAVE_STRFTIME to decide whether to use
117802         the underlying strftime.
117804 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117806         * lib/time/strftime.c (my_strftime): Make sure we call the system
117807         strftime, not ourselves, when invoking the underlying strftime.
117809 2000-03-24  Jim Meyering  <meyering@lucent.com>
117811         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117812         (charset_alias): Define.
117813         (install-exec-local): Factor out common code.
117814         (uninstall-local): Split lines longer than 80.
117815         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117816         (SUFFIXES): Define.
117817         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117818         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117820 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117822         * lib/config.charset: Output a line containing "Packages using this
117823         file".
117824         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117825         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117826         ref-del.sed): New rules.
117828 2000-03-17  Jim Meyering  <meyering@lucent.com>
117830         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117831         Otherwise, include <strings.h>
117833 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117835         * lib/unicodeio.c (utf8_wctomb): New function.
117836         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117837         format instead of in UCS-4 with platform dependent endianness.
117839 2000-03-10  Jim Meyering  <meyering@lucent.com>
117841         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117842         From Marco Franzen.
117844 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117846         * lib/savedir.c (savedir): Work even if directory size is
117847         negative; this can happen with some screwy NFS configurations.
117849 2000-03-06  Jim Meyering  <meyering@lucent.com>
117851         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117852         if it's NULL (because we ran out of memory).  From Bruno Haible.
117854 2000-03-05  Jim Meyering  <meyering@lucent.com>
117856         * lib/localcharset.c ("path-concat.h"): Include.
117857         (get_charset_aliases): Use path_concat instead of ANSI string
117858         concatenation.
117860         * lib/unicodeio.h (PARAMS): Define.
117861         Use it to guard prototype.
117863 2000-03-04  Jim Meyering  <meyering@lucent.com>
117865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117866         for lib/localcharset.c.
117868 2000-03-04  Jim Meyering  <meyering@lucent.com>
117870         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117871         installing into it.
117872         (uninstall-local): Uncomment this rule so `make distcheck' works
117873         once again.
117875         * lib/unicodeio.c (<errno.h>): Include it.
117876         (errno): Declare if not defined.
117878         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117880         * lib/config.charset: New version, incorporating remarks from a linux
117881         i18n mailing list.  From Bruno Haible.
117883 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117885         * m4/codeset.m4: New file.
117886         * m4/iconv.m4: New file.
117887         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117889 2000-03-03  Jim Meyering  <meyering@lucent.com>
117891         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117893 2000-03-02  Jim Meyering  <meyering@lucent.com>
117895         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
117896         the messages come out on separate lines.
117898         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
117899         rather than jm_CHECK_DECLARATIONS.
117900         * m4/decl.m4: Remove now-unused file.
117902         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
117903         geteuid.
117905 2000-03-02  Jim Meyering  <meyering@lucent.com>
117907         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
117909 2000-03-01  Jim Meyering  <meyering@lucent.com>
117911         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
117912         * lib/unicodeio.c: Likewise.
117914 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
117916         * lib/config.charset: New file.
117917         * lib/localcharset.c: New file.
117918         * lib/unicodeio.h, lib/unicodeio.c: New files.
117919         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
117920         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
117921         (noinst_HEADERS): Add unicodeio.h.
117922         (all-local, install-exec-local, charset.alias): New targets.
117924 2000-02-28  Paul Eggert  <eggert@twinsun.com>
117926         * lib/quotearg.c (ALERT_CHAR): New macro.
117927         (quotearg_buffer_restyled): Use it.
117929 2000-02-27  Jim Meyering  <meyering@lucent.com>
117931         * m4/check-decl.m4: Add getenv to the list.
117933 2000-02-27  Jim Meyering  <meyering@lucent.com>
117935         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
117936         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
117938         * lib/backupfile.c: Guard inclusion of stdlib.h with
117939         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
117940         Declare malloc if needed.
117942         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
117943         `#ifndef HAVE_DECL..'
117944         now that autoconf always defines the HAVE_DECL_ symbols.
117945         * lib/human.c: Likewise.
117946         * lib/same.c: Likewise.
117947         * lib/strtoumax.c: Likewise.
117949         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
117950         declaration check was not run.
117951         * lib/hash.c: Likewise.
117952         * lib/human.c: Likewise.
117953         * lib/same.c: Likewise.
117954         * lib/strtoumax.c: Likewise.
117956         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
117957         `.', then first look up the entire `.'-containing string as a login
117958         name.
117960 2000-02-23  Jim Meyering  <meyering@lucent.com>
117962         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
117963         in place of my hack.
117965 2000-02-18  Paul Eggert  <eggert@twinsun.com>
117967         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
117968         (textint): New typedef.
117969         (parser_control): Member year changed from int to textint.
117970         All uses changed.
117971         (YYSTYPE): Removed; replaced by %union with int and textint members.
117972         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
117973         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
117974         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
117975         (tSNUMBER, tUNUMBER): Now of type <textintval>.
117976         (date, number, to_year): Use width of number in digits, not its value,
117977         to determine whether it's a 2-digit year, or a 2-digit time.
117978         (yylex): Store number of digits of numeric tokens.
117979         Reported by John Kendall.
117981         (parser_control): Changed from struct parser_control to typedef (for
117982         consistency).  All uses changed.
117984         (tID): Removed; not used.
117985         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117987 2000-02-14  Paul Eggert  <eggert@twinsun.com>
117989         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
117990         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
117992 2000-02-12  Jim Meyering  <meyering@lucent.com>
117994         * lib/userspec.c (ISDIGIT): Define it.
117995         (isdigit): Remove definition.
117996         (is_number): Use ISDIGIT, not isdigit.
117997         <libintl.h>: Include.
117998         (_ and N_): Define.
117999         (parse_user_spec): Mark translatable strings.
118001 2000-02-10  Jim Meyering  <meyering@lucent.com>
118003         With these changes, nanosleep.[ch] are finally enough like the other
118004         lib/* replacement files to compile on a few more losing systems.
118006         * lib/nanosleep.h: Don't include config.h.
118007         Remove prototype from declaration of nanosleep.
118008         (PARAMS): Remove now-unneeded definition.
118009         * lib/nanosleep.c: #undef nanosleep.
118010         (rpl_nanosleep): Rename from nanosleep.
118012 2000-02-10  Jim Meyering  <meyering@lucent.com>
118014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118015         gnu_nanosleep to rpl_nanosleep.
118017 2000-02-09  Jim Meyering  <meyering@lucent.com>
118019         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118020         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118022 2000-02-08  Akim Demaille  <akim@epita.fr>
118024         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118025         `[' and `]' and remove uses of `changequote'.
118026         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118027         (AC_SYS_LARGEFILE): Likewise.
118028         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118029         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118030         of changequote.
118031         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118032         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118033         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118034         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118036 2000-02-05  Jim Meyering  <meyering@lucent.com>
118038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118039         Remove explicit use of AC_HEADER_TIME.  It is required by
118040         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118041         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118042         in autoconf whereby the expansion of the latter ended up preceding
118043         the expansion of its prerequisite, AC_HEADER_TIME.
118044         Reported by Volker Borchert.
118046 2000-02-03  Jim Meyering  <meyering@lucent.com>
118048         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118050 2000-02-03  Jim Meyering  <meyering@lucent.com>
118052         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118053         rather than with `#if HAVE_UTMPNAME'.
118055 2000-02-02  Jim Meyering  <meyering@lucent.com>
118057         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118058         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118059         Reported by Eli Zaretskii.
118061 2000-02-01  Jim Meyering  <meyering@lucent.com>
118063         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118065 2000-01-31  Jim Meyering  <meyering@lucent.com>
118067         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118068         functions.  Add the time.h and sys/time.h headers along with the
118069         AC_REQUIRE'ment of AC_HEADER_TIME.
118071 2000-01-31  Jim Meyering  <meyering@lucent.com>
118073         * lib/nanosleep.h (nanosleep): Guard declaration with
118074         `#if ! HAVE_DECL_NANOSLEEP'.
118075         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118076         the declaration in that vendor's sys/timers.h.
118077         Reported by Christian Krackowizer.
118079         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118080         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118081         (ISPRINT): Likewise.
118082         Reported by Tom Tromey.
118084 2000-01-30  Jim Meyering  <meyering@lucent.com>
118086         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118088         * m4/prereq.m4 (utmp_includes): Define.
118089         Check for ut_user and ut_name members in both struct utmpx
118090         and struct utmp.
118092 2000-01-30  Jim Meyering  <meyering@lucent.com>
118094         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118095         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118096         header files where only utmpx.ut_user is declared.
118098         * lib/readutmp.h (UT_USER): Define.
118100 2000-01-29  Jim Meyering  <meyering@lucent.com>
118102         * m4/lib-check.m4: New file containing library-related checks from
118103         fileutils and sh-utils (textutils had none).
118105 2000-01-28  Jim Meyering  <meyering@lucent.com>
118107         * m4/perl.m4: Change format of warning message to look more like that
118108         from the missing script.  Suggestion from François Pinard.
118110 2000-01-25  Jim Meyering  <meyering@lucent.com>
118112         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118113         well as time.h in the compile check.
118114         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118115         Fix typo in cross-compiling case: s/yes/no/.
118117 2000-01-23  Jim Meyering  <meyering@lucent.com>
118119         * m4/jm-macros.m4: Move df-related tests here from
118120         fileutils/configure.in
118122         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118123         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118125         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118126         s/space/ac_fsusage_space/.
118127         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118129         * m4/ftruncate.m4: New file (derived from part of
118130         fileutils/configure.in).
118131         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118132         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118134         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118135         AC_SUBST these here, rather than just in sh-util/configure.in, so
118136         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118137         all the same.
118138         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118139         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118140         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118141         (AC_SUBST(POW_LIBM)): Likewise.
118142         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118144 2000-01-23  Jim Meyering  <meyering@lucent.com>
118146         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118147         obstack.c.
118149 2000-01-22  Jim Meyering  <meyering@lucent.com>
118151         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118155         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118156         configure.in
118157         (AC_CHECK_HEADERS): Likewise for sh-utils.
118158         (AC_CHECK_HEADERS): Likewise for textutils.
118159         Merge the three lists of headers.
118161         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118162         from fileutils' configure.in.
118164         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118165         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118166         check-decl.m4.
118168         * m4/check-decl.m4: Use #if rather than #ifdef.
118169         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118170         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118171         (_jm_DECL_HEADERS): Define new function.
118172         (jm_CHECK_DECLARATIONS): Require it.
118174 2000-01-22  Jim Meyering  <meyering@lucent.com>
118176         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118177         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118178         Required for some AIX systems.  Reported by Christian Krackowizer.
118179         [TESTING] (main): New function.
118181         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118182         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118183         letters.
118185         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118186         iswprint.
118188         * lib/strverscmp.c (ISDIGIT): Define.
118189         (strverscmp): Use ISDIGIT, not isdigit.
118191 2000-01-19  Jim Meyering  <meyering@lucent.com>
118193         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118194         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118195         defines `struct timespec' in <sys/time.h>
118197         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118198         Thanks to Akim for explaining.
118200 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118202         * lib/nanosleep.c (nanosleep):
118203         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118204         POSIX.1 doesn't require SA_INTERRUPT and some systems
118205         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118206         it's been part of POSIX.1 since day 1 (in 1988).
118208 2000-01-17  Jim Meyering  <meyering@lucent.com>
118210         * lib/interlock: Remove unused file.  Reported by François Pinard.
118212 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118214         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118215         alert, backslash, formfeed, and vertical tab unnecessarily in
118216         shell quoting style.
118218 2000-01-16  Jim Meyering  <meyering@lucent.com>
118220         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118221         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118222         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118223         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118225 2000-01-16  Jim Meyering  <meyering@lucent.com>
118227         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118228         because the latter didn't work.
118230 2000-01-15  Jim Meyering  <meyering@lucent.com>
118232         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118233         (AC_REPLACE_FUNCS): Add memcpy and memset.
118234         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118235         Add strpbrk.
118236         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118238 2000-01-12  Jim Meyering  <meyering@lucent.com>
118240         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118241         (jm_PREREQ): Use it.
118242         (jm_PREREQ_READUTMP): New macro.
118243         (jm_PREREQ): Use it.
118245 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118247         Quote multibyte characters correctly.
118248         * m4/c-bs-a.m4: New file.
118249         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118250         (jm_PREREQ): Use it.
118252 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118254         * m4/uintmax_t.m4: Port to autoconf 2.13.
118256 2000-01-08  Jim Meyering  <meyering@ascend.com>
118258         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118259         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118261 2000-01-04  Jim Meyering  <meyering@ascend.com>
118263         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118264         jm_STRUCT_DIRENT_D_TYPE.
118265         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118266         jm_STRUCT_DIRENT_D_INO.
118267         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118268         jm_STRUCT_UTIMBUF.
118269         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118270         renamings.
118271         * m4/utime.m4: Likewise.
118273         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118274         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118276 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118278         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118279         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118281 2000-01-02  Jim Meyering  <meyering@ascend.com>
118283         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118284         remember if this is necessary.
118286 1999-12-26  Jim Meyering  <meyering@ascend.com>
118288         * m4/jm-macros.m4: Use it here.
118289         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118291 1999-12-23  Jim Meyering  <meyering@ascend.com>
118293         * m4/jm-macros.m4: Check for clock_gettime (moved from
118294         fileutils/configure.in)
118295         Check for gettimeofday.
118297 1999-12-20  Jim Meyering  <meyering@ascend.com>
118299         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118300         autoconf-2.14a-1999-12-20.
118302 1999-12-19  Jim Meyering  <meyering@ascend.com>
118304         * m4/lstat-slash.m4: New file.
118305         * m4/jm-macros.m4: Use the new macro:
118306         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118308 1999-12-07  Jim Meyering  <meyering@ascend.com>
118310         * m4/perl.m4: Require that File::Compare be available, too.
118311         Too many systems seem to lack it.
118313         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118314         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118316 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118318         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118319         problem with the QNX 4.25 shell, which doesn't propagate exit
118320         status of failed commands inside shell assignments.
118322 1999-11-17  Jim Meyering  <meyering@ascend.com>
118324         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118326 1999-11-07  Jim Meyering  <meyering@ascend.com>
118328         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118330 1999-11-06  Jim Meyering  <meyering@ascend.com>
118332         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118333         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118335 1999-11-05  Jim Meyering  <meyering@ascend.com>
118337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118338         configure.in of textutils, fileutils, and sh-utils into this one
118339         (shared between those packages) file.
118340         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118341         AC_STRUCT_ST_BLKSIZE.
118343 1999-11-03  Jim Meyering  <meyering@ascend.com>
118345         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118346         of AC_CHECK_TYPE checks includes unistd.h.
118347         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118348         Suggestion from Akim Demaille.
118350 1999-10-30  Jim Meyering  <meyering@ascend.com>
118352         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118353         m4-quoted string.
118354         * m4/ls-mntd-fs.m4: Likewise.
118355         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118356         * m4/jm-winsz1.m4: Likewise.
118358         * m4/const.m4: Remove file, since the fix made it into the experimental
118359         version of autoconf.
118360         * m4/mktime.m4: Likewise.
118362         * m4/check-type.m4: Remove file, now that the latest version of
118363         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118365         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118366         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118367         AC_CHECK_TYPE.
118369 1999-10-04  Jim Meyering  <meyering@ascend.com>
118371         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118373 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118375         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118376         2.95.1 bug with HP-UX 10.20.
118378 1999-09-17  Jim Meyering  <meyering@ascend.com>
118380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118381         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118382         due to missing strdup (against sh-utils-2.0).
118384 1999-08-29  Jim Meyering  <meyering@ascend.com>
118386         * m4/jm-macros.m4: Require jm_BISON.
118387         * m4/bison.m4: New file.
118389 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118391         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118392         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118394 1999-08-05  Jim Meyering  <meyering@ascend.com>
118396         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118397         to avoid conflicts with `conftest' on 8+3 filesystems.
118398         Suggestion from Eli Zaretskii.
118400 1999-08-04  Jim Meyering  <meyering@ascend.com>
118402         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118403         fileutils and sh-utils (textutils's getline test was inadequate).
118404         (AM_FUNC_GETLINE): Run this test.
118405         (AC_CHECK_FUNCS): Check for getdelim.
118406         Reported by Bob Proulx.
118408 1999-08-02  Jim Meyering  <meyering@ascend.com>
118410         * m4/jm-macros.m4: Add a comment.
118412 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118414         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118415         <inttypes.h> defines strtoumax as a macro (and not as a
118416         function).
118418 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118420         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118421         that we can shift, multiply and divide unsigned long long
118422         values; Ultrix cc can't do it.
118424 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118426         * m4/mktime.m4: New file, which is a preview of what should appear
118427         in the next public autoconf release.
118429 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118431         * m4/lfs.m4: Remove this file.
118432         * m4/largefile.m4: New file.  It contains the old contents of
118433         lfs.m4, except that all names with prefix AC_LFS have been
118434         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118435         compatible with future autoconf versions.  Also, some minor m4
118436         quoting problems have been fixed.
118438 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118440         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118441         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118442         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118443         and simplify the shell code.
118445 1999-08-01  Jim Meyering  <meyering@ascend.com>
118447         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118448         m4.
118450 1999-07-20  Jim Meyering  <meyering@ascend.com>
118452         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118454 1999-07-15  Jim Meyering  <meyering@ascend.com>
118456         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118458 1999-05-22  Jim Meyering  <meyering@ascend.com>
118460         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118462 1999-05-20  Jim Meyering  <meyering@ascend.com>
118464         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118465         Add a colon after each `then' in case $4 is empty.
118467 1999-05-16  Jim Meyering  <meyering@ascend.com>
118469         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118471 1999-05-10  Jim Meyering  <meyering@ascend.com>
118473         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118475         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118476         AC_FUNC_MKTIME.
118478 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118480         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118482 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118484         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118485         not CPPFLAGS, so that linking works correctly in IRIX.
118487 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118491 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118493         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118494         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118496         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118499         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118501 1999-04-20  Jim Meyering  <meyering@ascend.com>
118503         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118504         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118505         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118507 1999-04-18  Jim Meyering  <meyering@ascend.com>
118509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118510         * m4/jm-macros.m4: Use it.
118512 1999-04-06  Jim Meyering  <meyering@ascend.com>
118514         * m4/strftime.m4: Remove test for %f.
118516 1999-03-29  Jim Meyering  <meyering@ascend.com>
118518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118519         superset of the AC_TYPE_* checks in the textutils, fileutils,
118520         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118521         AC_TYPE_PID_T.
118523 1999-03-28  Jim Meyering  <meyering@ascend.com>
118525         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118526         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118527         replaced e.g., in the *.sh files of the sh-utils.
118529 1999-03-20  Jim Meyering  <meyering@ascend.com>
118531         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118532         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118533         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118535 1999-03-19  Jim Meyering  <meyering@ascend.com>
118537         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118539 1999-03-12  Jim Meyering  <meyering@ascend.com>
118541         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118543 1999-03-07  Jim Meyering  <meyering@ascend.com>
118545         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118546         declared.
118548 1999-02-17  Jim Meyering  <meyering@ascend.com>
118550         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118551         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118553 1999-02-07  Jim Meyering  <meyering@ascend.com>
118555         * m4/group-member.m4: New file -- extracted from sh-utils'
118556         configure.in.
118558         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118559         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118561 1999-02-06  Jim Meyering  <meyering@ascend.com>
118563         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118564         * m4/fnmatch.m4: Likewise.
118565         * m4/getgroups.m4: Likewise.
118566         * m4/lstat.m4: Likewise.
118567         * m4/malloc.m4: Likewise.
118568         * m4/putenv.m4: Likewise.
118569         * m4/realloc.m4: Likewise.
118570         * m4/regex.m4: Likewise.
118571         * m4/stat.m4: Likewise.
118572         * m4/strftime.m4: Likewise.
118573         Suggestion from Alain Magloire.
118575         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118576         * m4/fnmatch.m4: Likewise.
118577         * m4/getgroups.m4: Likewise.
118578         * m4/getline.m4: Likewise.
118579         * m4/lstat.m4: Likewise.
118580         * m4/malloc.m4: Likewise.
118581         * m4/memcmp.m4: Likewise.
118582         * m4/putenv.m4: Likewise.
118583         * m4/realloc.m4: Likewise.
118584         * m4/regex.m4: Likewise.
118585         * m4/stat.m4: Likewise.
118586         * m4/strftime.m4: Likewise.
118587         Suggestion from Alain Magloire.
118589         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118590         an argument.
118592         * m4/regex.m4: Add a run-time Test for proper operation of
118593         re_compile_pattern.
118595 1999-01-31  Jim Meyering  <meyering@ascend.com>
118597         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118599 1999-01-30  Jim Meyering  <meyering@ascend.com>
118601         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118603         * m4/jm-mktime.m4: Make this a wrapper around the official
118604         AM_FUNC_MKTIME rather than my private copy, now that the official one
118605         is up to date.
118606         * m4/mktime.m4: Remove file.
118608         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118609         * m4/uptime.m4: Likewise.
118610         * m4/uintmax_t.m4: Likewise.
118612 1999-01-28  Jim Meyering  <meyering@ascend.com>
118614         * m4/jm-macros.m4: Use jm_AFS.
118615         * m4/afs.m4: New file (from fileutils' configure.in).
118617         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118618         * m4/chown.m4: Likewise.
118619         * m4/d-ino.m4: Likewise.
118620         * m4/d-type.m4: Likewise.
118621         * m4/fnmatch.m4: Likewise.
118622         * m4/getgroups.m4: Likewise.
118623         * m4/gettext.m4: Likewise.
118624         * m4/jm-mktime.m4: Likewise.
118625         * m4/jm-winsz2.m4: Likewise.
118626         * m4/lcmessage.m4: Likewise.
118627         * m4/ls-mntd-fs.m4: Likewise.
118628         * m4/malloc.m4: Likewise.
118629         * m4/memcmp.m4: Likewise.
118630         * m4/putenv.m4: Likewise.
118631         * m4/realloc.m4: Likewise.
118632         * m4/st_mtim.m4: Likewise.
118633         * m4/strftime.m4: Likewise.
118635 1999-01-16  Jim Meyering  <meyering@ascend.com>
118637         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118638         (ARGMATCH_DIE_DECL): Define.
118640 1999-01-12  Jim Meyering  <meyering@ascend.com>
118642         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118643         Reported by Lars Hecking.
118645 1999-01-10  Jim Meyering  <meyering@ascend.com>
118647         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118648         gross kludge.
118649         * m4/inttypes_h.m4: Likewise.
118650         * m4/lstat.m4: Likewise.
118651         * m4/malloc.m4: Likewise.
118652         * m4/readdir.m4: Likewise.
118653         * m4/realloc.m4: Likewise.
118654         * m4/st_dm_mode.m4: Likewise.
118655         * m4/stat.m4: Likewise.
118656         * m4/utimbuf.m4: Likewise.
118657         * m4/utimes.m4: Likewise.
118659         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118660         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118661         comments in config.h.in are meaningful.
118663         * m4/jm-macros.m4: Require autoconf-2.13 here.
118665         * m4/regex.m4: By default, don't use the included regex.c on systems
118666         with glibc 2.  Suggestion from Uli Drepper.
118668 1999-01-02  Jim Meyering  <meyering@ascend.com>
118670         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118672 1998-12-18  Jim Meyering  <meyering@ascend.com>
118674         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118675         Based on a suggestion from Lars Hecking.
118677 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118679         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118681 1998-11-16  Jim Meyering  <meyering@ascend.com>
118683         * m4/lfs.m4: Double-quote the `uname...` expression.
118685 1998-11-14  Jim Meyering  <meyering@ascend.com>
118687         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118688         * m4/stat.m4: Likewise.
118690 1998-11-03  Jim Meyering  <meyering@ascend.com>
118692         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118693         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118695 1998-10-18  Jim Meyering  <meyering@ascend.com>
118697         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118699 1998-10-17  Jim Meyering  <meyering@ascend.com>
118701         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118702         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118703         calls for those previously hard-coded headers.  Instead, take a new
118704         parameter.
118705         (jm_CHECK_DECLARATIONS): Reflect interface change.
118706         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118707         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118709         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118711 1998-10-14  Jim Meyering  <meyering@ascend.com>
118713         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118714         instead of "TZ=America/Vancouver".  From Paul Eggert.
118716 1998-10-11  Jim Meyering  <meyering@ascend.com>
118718         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118719         This adds a test for a recently added compatibility fix for mktime.c.
118720         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118722 1998-09-27  Jim Meyering  <meyering@ascend.com>
118724         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118726         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118727         ../configure.in, including a change from Gordon Matzigkeit to allow
118728         cross-compiling for the Hurd.
118730         * m4/glibc.m4: New file/macro to test for the GNU C Library
118731         versions 1 and 2.  From Gordon Matzigkeit.
118732         Indent.
118734 1998-09-21  Jim Meyering  <meyering@ascend.com>
118736         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118738 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118740         Port nanosecond-resolution times to UnixWare 2.1.2 and
118741         pedantic Solaris 2.6.
118743         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118744         AC_STRUCT_ST_MTIM.
118745         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118746         Generate name of ns member, instead of just 1 or undef.
118747         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118749 1998-08-15  Jim Meyering  <meyering@ascend.com>
118751         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118752         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118753         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118754         instead of jm_TYPE_SSIZE_T.
118756 1998-08-12  Jim Meyering  <meyering@ascend.com>
118758         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118760 1998-08-02  Jim Meyering  <meyering@ascend.com>
118762         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118763         in acconfig.h manually.
118765 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118767         * m4/st_mtim.m4: New file.
118769 1998-07-28  Jim Meyering  <meyering@ascend.com>
118771         * m4/utimes.m4: Undef stat.
118773 1998-07-25  Jim Meyering  <meyering@ascend.com>
118775         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118776         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118778 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118780         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118781         uid and gid actually remain unchanged.
118783 1998-07-07  Jim Meyering  <meyering@ascend.com>
118785         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118787 1998-07-04  Jim Meyering  <meyering@ascend.com>
118789         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118790         to prove that this macro can be used in packages without regex.c.
118792 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118794         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118795         is to be used.
118797 1998-07-03  Jim Meyering  <meyering@ascend.com>
118799         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118801         * m4/gettext.m4: New file -- from gettext-0.10.35.
118802         * m4/lcmessage.m4: Likewise.
118803         * m4/progtest.m4: Likewise.
118805         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118806         * m4/jm-macros.m4: Require the new macro.
118808 1998-06-29  Jim Meyering  <meyering@ascend.com>
118810         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118811         for the definition of NGROUPS (used in a system header included
118812         by sys/mount.h).
118814 1998-06-28  Jim Meyering  <meyering@ascend.com>
118816         * m4/ls-mntd-fs.m4: New file.
118817         * m4/fstypename.m4: New file.
118819         * m4/jm-macros.m4: Require the new macro.
118820         * m4/jm-glibc-io.m4: New file.
118822 1998-05-19  Jim Meyering  <meyering@ascend.com>
118824         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118825         * m4/lchown.m4: New file.
118827         * m4/Makefile.am.in: New file.
118828         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118830 1998-05-14  Jim Meyering  <meyering@ascend.com>
118832         * m4/Makefile.am (EXTRA_DIST): Add them.
118833         * m4/jm-macros.m4: New file.
118834         * m4/utimbuf.m4: New file.
118836 1998-05-12  Jim Meyering  <meyering@ascend.com>
118838         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118840 1998-05-11  Jim Meyering  <meyering@ascend.com>
118842         * m4/isc-posix.m4: New file.
118844 1998-05-10  Jim Meyering  <meyering@ascend.com>
118846         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118848 1998-05-09  Jim Meyering  <meyering@ascend.com>
118850         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118851         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118852         with automake.
118854         * m4/ssize_t.m4: New file.
118855         * m4/mktime.m4: Remove file -- the new automake has this now.
118857 1998-04-26  Jim Meyering  <meyering@ascend.com>
118859         * m4/assert.m4: New file.
118860         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118862 1998-04-05  Jim Meyering  <meyering@ascend.com>
118864         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118865         (jm_PREREQ): Use it here.
118867 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118869         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118870         in acconfig.h.
118872 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118874         * m4/prereq.m4: New file.
118875         * m4/error.m4: New file.
118876         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118878 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118880         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118881         cache-check for the same variable -- that defeated the purpose of
118882         the test; the test program was never run.  This was a problem only
118883         on systems with losing getline functions -- HP-UX 10.20 is one.
118884         Reported by Bjorn Helgaas.
118886 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118888         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118890 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118892         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
118894         * m4/const.m4: New file.  Use an initializer in this declaration
118895         typedef int charset[2]; const charset x;
118896         Reported by Bob Glickstein.
118898 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
118900         * m4/chown.m4: Fix reversed types on -1 args to chown.
118901         From Kaveh Ghazi.
118903 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
118905         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
118906         Add lseek and memchr.
118908         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
118909         T.E.Dickey <dickey@clark.net> said that some older preprocessors
118910         have a 20-character limit on names.
118912 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
118914         * m4/inttypes_h.m4: New file.
118915         * m4/uintmax_t.m4: New file.
118916         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
118919         -----
118921         Local Variables:
118922         coding: utf-8
118923         End:
118925         Copyright (C) 1997-2019 Free Software Foundation, Inc.
118927         Copying and distribution of this file, with or without
118928         modification, are permitted provided the copyright notice
118929         and this notice are preserved.